Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e9883bfb
Commit
e9883bfb
authored
Jan 21, 2011
by
pixhawk
Browse files
Added further video widgets
parent
60e7913f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
e9883bfb
...
...
@@ -496,6 +496,30 @@ void MainWindow::buildPxWidgets()
addToToolsMenu
(
headUpDockWidget
,
tr
(
"Control Indicator"
),
SLOT
(
showToolWidget
()),
MENU_HUD
,
Qt
::
LeftDockWidgetArea
);
}
if
(
!
video1DockWidget
)
{
video1DockWidget
=
new
QDockWidget
(
tr
(
"Video Stream 1"
),
this
);
HUD
*
video1
=
new
HUD
(
160
,
120
,
this
);
video1
->
enableHUDInstruments
(
false
);
video1
->
enableVideo
(
true
);
// FIXME select video stream as well
video1DockWidget
->
setWidget
(
video1
);
video1DockWidget
->
setObjectName
(
"VIDEO_STREAM_1_DOCK_WIDGET"
);
addToToolsMenu
(
video1DockWidget
,
tr
(
"Video Stream 1"
),
SLOT
(
showToolWidget
()),
MENU_VIDEO_STREAM_1
,
Qt
::
LeftDockWidgetArea
);
}
if
(
!
video2DockWidget
)
{
video2DockWidget
=
new
QDockWidget
(
tr
(
"Video Stream 2"
),
this
);
HUD
*
video2
=
new
HUD
(
160
,
120
,
this
);
video2
->
enableHUDInstruments
(
false
);
video2
->
enableVideo
(
true
);
// FIXME select video stream as well
video2DockWidget
->
setWidget
(
video2
);
video2DockWidget
->
setObjectName
(
"VIDEO_STREAM_2_DOCK_WIDGET"
);
addToToolsMenu
(
video2DockWidget
,
tr
(
"Video Stream 2"
),
SLOT
(
showToolWidget
()),
MENU_VIDEO_STREAM_2
,
Qt
::
LeftDockWidgetArea
);
}
// Dialogue widgets
//FIXME: free memory in destructor
}
...
...
src/ui/MainWindow.h
View file @
e9883bfb
...
...
@@ -212,6 +212,8 @@ protected:
MENU_SLUGS_HIL
,
MENU_SLUGS_CAMERA
,
MENU_MAVLINK_LOG_PLAYER
,
MENU_VIDEO_STREAM_1
,
MENU_VIDEO_STREAM_2
,
CENTRAL_SEPARATOR
=
255
,
// do not change
CENTRAL_LINECHART
,
CENTRAL_PROTOCOL
,
...
...
@@ -368,6 +370,8 @@ protected:
QPointer
<
QDockWidget
>
watchdogControlDockWidget
;
QPointer
<
QDockWidget
>
headUpDockWidget
;
QPointer
<
QDockWidget
>
video1DockWidget
;
QPointer
<
QDockWidget
>
video2DockWidget
;
QPointer
<
QDockWidget
>
logPlayerDockWidget
;
QPointer
<
QDockWidget
>
hsiDockWidget
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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