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
2a3ee957
Commit
2a3ee957
authored
Aug 06, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #798 from Susurrus/rem_mavgen
Finish removing MAVLink generation code.
parents
e0471245
6a1f5f84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
49 deletions
+0
-49
MainWindow.cc
src/ui/MainWindow.cc
+0
-45
MainWindow.h
src/ui/MainWindow.h
+0
-4
No files found.
src/ui/MainWindow.cc
View file @
2a3ee957
...
...
@@ -74,11 +74,6 @@ This file is part of the QGROUNDCONTROL project
#include "QGCUASFileViewMulti.h"
#include <QDesktopWidget>
// Add support for the MAVLink generator UI if it's been requested.
#ifdef QGC_MAVGEN_ENABLED
#include "XMLCommProtocolWidget.h"
#endif
#ifdef QGC_OSG_ENABLED
#include "Q3DWidgetFactory.h"
#endif
...
...
@@ -369,7 +364,6 @@ void MainWindow::init()
ui
.
actionHardwareConfig
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+3"
,
0
));
ui
.
actionSimulationView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+4"
,
0
));
ui
.
actionEngineersView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+5"
,
0
));
ui
.
actionMavlinkView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+M"
,
0
));
ui
.
actionUnconnectedView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+U"
,
0
));
ui
.
actionFullscreen
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Meta+Return"
,
0
));
#else
...
...
@@ -378,7 +372,6 @@ void MainWindow::init()
ui
.
actionHardwareConfig
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+3"
,
0
));
ui
.
actionSimulationView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+4"
,
0
));
ui
.
actionEngineersView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+5"
,
0
));
ui
.
actionMavlinkView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+M"
,
0
));
ui
.
actionUnconnectedView
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+U"
,
0
));
ui
.
actionFullscreen
->
setShortcut
(
QApplication
::
translate
(
"MainWindow"
,
"Ctrl+Return"
,
0
));
#endif
...
...
@@ -502,9 +495,6 @@ void MainWindow::buildCustomWidget()
case
VIEW_MISSION
:
dock
=
createDockWidget
(
plannerView
,
tool
,
tool
->
getTitle
(),
tool
->
objectName
(),(
VIEW_SECTIONS
)
view
,
location
);
break
;
case
VIEW_MAVLINK
:
dock
=
createDockWidget
(
mavlinkView
,
tool
,
tool
->
getTitle
(),
tool
->
objectName
(),(
VIEW_SECTIONS
)
view
,
location
);
break
;
case
VIEW_GOOGLEEARTH
:
dock
=
createDockWidget
(
googleEarthView
,
tool
,
tool
->
getTitle
(),
tool
->
objectName
(),(
VIEW_SECTIONS
)
view
,
location
);
break
;
...
...
@@ -595,17 +585,6 @@ void MainWindow::buildCommonWidgets()
addToCentralStackedWidget
(
engineeringView
,
VIEW_ENGINEER
,
tr
(
"Logfile Plot"
));
}
// Add the MAVLink generator UI if it's been requested.
#ifdef QGC_MAVGEN_ENABLED
if
(
!
mavlinkView
)
{
mavlinkView
=
new
SubMainWindow
(
this
);
mavlinkView
->
setObjectName
(
"VIEW_MAVLINK"
);
mavlinkView
->
setCentralWidget
(
new
XMLCommProtocolWidget
(
this
));
addToCentralStackedWidget
(
mavlinkView
,
VIEW_MAVLINK
,
tr
(
"Mavlink Generator"
));
}
#endif
#ifdef QGC_GOOGLE_EARTH_ENABLED
if
(
!
googleEarthView
)
{
...
...
@@ -1217,7 +1196,6 @@ void MainWindow::connectCommonActions()
// Bind together the perspective actions
QActionGroup
*
perspectives
=
new
QActionGroup
(
ui
.
menuPerspectives
);
perspectives
->
addAction
(
ui
.
actionEngineersView
);
perspectives
->
addAction
(
ui
.
actionMavlinkView
);
perspectives
->
addAction
(
ui
.
actionFlightView
);
perspectives
->
addAction
(
ui
.
actionSimulationView
);
perspectives
->
addAction
(
ui
.
actionMissionView
);
...
...
@@ -1231,9 +1209,6 @@ void MainWindow::connectCommonActions()
/* Hide the actions that are not relevant */
ui
.
actionSoftwareConfig
->
setVisible
(
getCustomMode
()
==
CUSTOM_MODE_APM
);
#ifndef QGC_MAVGEN_ENABLED
ui
.
actionMavlinkView
->
setVisible
(
false
);
#endif
#ifndef QGC_GOOGLE_EARTH_ENABLED
ui
.
actionGoogleEarthView
->
setVisible
(
false
);
#endif
...
...
@@ -1247,11 +1222,6 @@ void MainWindow::connectCommonActions()
ui
.
actionEngineersView
->
setChecked
(
true
);
ui
.
actionEngineersView
->
activate
(
QAction
::
Trigger
);
}
if
(
currentView
==
VIEW_MAVLINK
)
{
ui
.
actionMavlinkView
->
setChecked
(
true
);
ui
.
actionMavlinkView
->
activate
(
QAction
::
Trigger
);
}
if
(
currentView
==
VIEW_FLIGHT
)
{
ui
.
actionFlightView
->
setChecked
(
true
);
...
...
@@ -1334,7 +1304,6 @@ void MainWindow::connectCommonActions()
connect
(
ui
.
actionHardwareConfig
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
loadHardwareConfigView
()));
connect
(
ui
.
actionSoftwareConfig
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
loadSoftwareConfigView
()));
connect
(
ui
.
actionTerminalView
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
loadTerminalView
()));
connect
(
ui
.
actionMavlinkView
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
loadMAVLinkView
()));
// Help Actions
connect
(
ui
.
actionOnline_Documentation
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
showHelp
()));
...
...
@@ -1732,9 +1701,6 @@ void MainWindow::loadViewState()
case
VIEW_FLIGHT
:
centerStack
->
setCurrentWidget
(
pilotView
);
break
;
case
VIEW_MAVLINK
:
centerStack
->
setCurrentWidget
(
mavlinkView
);
break
;
case
VIEW_MISSION
:
centerStack
->
setCurrentWidget
(
plannerView
);
break
;
...
...
@@ -1934,17 +1900,6 @@ void MainWindow::loadSimulationView()
}
}
void
MainWindow
::
loadMAVLinkView
()
{
if
(
currentView
!=
VIEW_MAVLINK
)
{
storeViewState
();
currentView
=
VIEW_MAVLINK
;
ui
.
actionMavlinkView
->
setChecked
(
true
);
loadViewState
();
}
}
QList
<
QAction
*>
MainWindow
::
listLinkMenuActions
()
{
return
ui
.
menuNetwork
->
actions
();
...
...
src/ui/MainWindow.h
View file @
2a3ee957
...
...
@@ -234,8 +234,6 @@ public slots:
void
loadEngineerView
();
/** @brief Load view for operator */
void
loadOperatorView
();
/** @brief Load MAVLink XML generator view */
void
loadMAVLinkView
();
/** @brief Load Terminal Console views */
void
loadTerminalView
();
/** @brief Load Google Earth View */
...
...
@@ -339,7 +337,6 @@ protected:
VIEW_MISSION
,
VIEW_FLIGHT
,
VIEW_SIMULATION
,
VIEW_MAVLINK
,
VIEW_FIRMWAREUPDATE
,
VIEW_HARDWARE_CONFIG
,
VIEW_SOFTWARE_CONFIG
,
...
...
@@ -413,7 +410,6 @@ protected:
QPointer
<
SubMainWindow
>
pilotView
;
QPointer
<
SubMainWindow
>
configView
;
QPointer
<
SubMainWindow
>
softwareConfigView
;
QPointer
<
SubMainWindow
>
mavlinkView
;
QPointer
<
SubMainWindow
>
engineeringView
;
QPointer
<
SubMainWindow
>
simView
;
QPointer
<
SubMainWindow
>
terminalView
;
...
...
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