Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
aea21143
Commit
aea21143
authored
Apr 29, 2014
by
treymarc
Committed by
Koen Kooi
Jun 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make HUD the center widget in Flight view. Add menu item for map widget.
parent
abe60a9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MainWindow.cc
src/ui/MainWindow.cc
+7
-1
No files found.
src/ui/MainWindow.cc
View file @
aea21143
...
...
@@ -556,7 +556,7 @@ void MainWindow::buildCommonWidgets()
{
pilotView
=
new
SubMainWindow
(
this
);
pilotView
->
setObjectName
(
"VIEW_FLIGHT"
);
pilotView
->
setCentralWidget
(
new
QGCMapTool
(
this
));
pilotView
->
setCentralWidget
(
new
HUD
(
640
,
480
,
this
));
addToCentralStackedWidget
(
pilotView
,
VIEW_FLIGHT
,
"Pilot"
);
}
...
...
@@ -658,6 +658,8 @@ void MainWindow::buildCommonWidgets()
createDockWidget
(
engineeringView
,
new
ParameterInterface
(
this
),
tr
(
"Onboard Parameters"
),
"PARAMETER_INTERFACE_DOCKWIDGET"
,
VIEW_ENGINEER
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
simView
,
new
ParameterInterface
(
this
),
tr
(
"Onboard Parameters"
),
"PARAMETER_INTERFACE_DOCKWIDGET"
,
VIEW_SIMULATION
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
pilotView
,
new
QGCMapTool
(
this
),
tr
(
"Map view"
),
"MAP_VIEW_DOCKWIDGET"
,
VIEW_MISSION
,
Qt
::
RightDockWidgetArea
);
menuActionHelper
->
createToolAction
(
tr
(
"Status Details"
),
"UAS_STATUS_DETAILS_DOCKWIDGET"
);
{
...
...
@@ -819,6 +821,10 @@ void MainWindow::loadDockWidget(const QString& name)
{
createDockWidget
(
centerStack
->
currentWidget
(),
new
UASInfoWidget
(
this
),
tr
(
"Status Details"
),
"UAS_STATUS_DETAILS_DOCKWIDGET"
,
currentView
,
Qt
::
RightDockWidgetArea
);
}
else
if
(
name
==
"MAP_VIEW_DOCKWIDGET"
)
{
createDockWidget
(
centerStack
->
currentWidget
(),
new
QGCMapTool
(
this
),
tr
(
"Map view"
),
"MAP_VIEW_DOCKWIDGET"
,
currentView
,
Qt
::
RightDockWidgetArea
);
}
else
if
(
name
==
"COMMUNICATION_DEBUG_CONSOLE_DOCKWIDGET"
)
{
//This is now a permanently detached window.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment