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
ea50f06b
Commit
ea50f06b
authored
Jun 21, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #711 from koenkooi/widgets
Detach the map widget - rebase
parents
c7e4a65c
287d75ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MainWindow.cc
src/ui/MainWindow.cc
+8
-2
No files found.
src/ui/MainWindow.cc
View file @
ea50f06b
...
...
@@ -556,7 +556,7 @@ void MainWindow::buildCommonWidgets()
{
pilotView
=
new
SubMainWindow
(
this
);
pilotView
->
setObjectName
(
"VIEW_FLIGHT"
);
pilotView
->
setCentralWidget
(
new
QGCMapTool
(
this
));
pilotView
->
setCentralWidget
(
new
PrimaryFlightDisplay
(
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
);
menuActionHelper
->
createToolAction
(
tr
(
"Map View"
),
"MAP_VIEW_DOCKWIDGET"
);
menuActionHelper
->
createToolAction
(
tr
(
"Status Details"
),
"UAS_STATUS_DETAILS_DOCKWIDGET"
);
{
...
...
@@ -677,7 +679,7 @@ void MainWindow::buildCommonWidgets()
menuActionHelper
->
createToolAction
(
tr
(
"Actuator Status"
),
"HEAD_DOWN_DISPLAY_2_DOCKWIDGET"
);
menuActionHelper
->
createToolAction
(
tr
(
"Radio Control"
));
createDockWidget
(
engineeringView
,
new
HUD
(
320
,
240
,
this
),
tr
(
"Video Downlink"
),
"HEAD_UP_DISPLAY_DOCKWIDGET"
,
VIEW_
ENGINEER
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
engineeringView
,
new
HUD
(
320
,
240
,
this
),
tr
(
"Video Downlink"
),
"HEAD_UP_DISPLAY_DOCKWIDGET"
,
VIEW_
FLIGHT
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
simView
,
new
PrimaryFlightDisplay
(
this
),
tr
(
"Primary Flight Display"
),
"PRIMARY_FLIGHT_DISPLAY_DOCKWIDGET"
,
VIEW_SIMULATION
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
pilotView
,
new
PrimaryFlightDisplay
(
this
),
tr
(
"Primary Flight Display"
),
"PRIMARY_FLIGHT_DISPLAY_DOCKWIDGET"
,
VIEW_FLIGHT
,
Qt
::
LeftDockWidgetArea
);
...
...
@@ -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