Commit e9f06215 authored by Bryant's avatar Bryant

Merge branch 'master' of https://github.com/mavlink/qgroundcontrol into rem_unconnected

Conflicts:
	src/ui/MainWindow.cc
parents 1b1e5727 2a3ee957
...@@ -74,11 +74,6 @@ This file is part of the QGROUNDCONTROL project ...@@ -74,11 +74,6 @@ This file is part of the QGROUNDCONTROL project
#include "QGCUASFileViewMulti.h" #include "QGCUASFileViewMulti.h"
#include <QDesktopWidget> #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 #ifdef QGC_OSG_ENABLED
#include "Q3DWidgetFactory.h" #include "Q3DWidgetFactory.h"
#endif #endif
...@@ -369,7 +364,6 @@ void MainWindow::init() ...@@ -369,7 +364,6 @@ void MainWindow::init()
ui.actionHardwareConfig->setShortcut(QApplication::translate("MainWindow", "Meta+3", 0)); ui.actionHardwareConfig->setShortcut(QApplication::translate("MainWindow", "Meta+3", 0));
ui.actionSimulationView->setShortcut(QApplication::translate("MainWindow", "Meta+4", 0)); ui.actionSimulationView->setShortcut(QApplication::translate("MainWindow", "Meta+4", 0));
ui.actionEngineersView->setShortcut(QApplication::translate("MainWindow", "Meta+5", 0)); ui.actionEngineersView->setShortcut(QApplication::translate("MainWindow", "Meta+5", 0));
ui.actionMavlinkView->setShortcut(QApplication::translate("MainWindow", "Meta+M", 0));
ui.actionFullscreen->setShortcut(QApplication::translate("MainWindow", "Meta+Return", 0)); ui.actionFullscreen->setShortcut(QApplication::translate("MainWindow", "Meta+Return", 0));
#else #else
ui.actionFlightView->setShortcut(QApplication::translate("MainWindow", "Ctrl+1", 0)); ui.actionFlightView->setShortcut(QApplication::translate("MainWindow", "Ctrl+1", 0));
...@@ -377,7 +371,6 @@ void MainWindow::init() ...@@ -377,7 +371,6 @@ void MainWindow::init()
ui.actionHardwareConfig->setShortcut(QApplication::translate("MainWindow", "Ctrl+3", 0)); ui.actionHardwareConfig->setShortcut(QApplication::translate("MainWindow", "Ctrl+3", 0));
ui.actionSimulationView->setShortcut(QApplication::translate("MainWindow", "Ctrl+4", 0)); ui.actionSimulationView->setShortcut(QApplication::translate("MainWindow", "Ctrl+4", 0));
ui.actionEngineersView->setShortcut(QApplication::translate("MainWindow", "Ctrl+5", 0)); ui.actionEngineersView->setShortcut(QApplication::translate("MainWindow", "Ctrl+5", 0));
ui.actionMavlinkView->setShortcut(QApplication::translate("MainWindow", "Ctrl+M", 0));
ui.actionFullscreen->setShortcut(QApplication::translate("MainWindow", "Ctrl+Return", 0)); ui.actionFullscreen->setShortcut(QApplication::translate("MainWindow", "Ctrl+Return", 0));
#endif #endif
...@@ -500,9 +493,6 @@ void MainWindow::buildCustomWidget() ...@@ -500,9 +493,6 @@ void MainWindow::buildCustomWidget()
case VIEW_MISSION: case VIEW_MISSION:
dock = createDockWidget(plannerView,tool,tool->getTitle(),tool->objectName(),(VIEW_SECTIONS)view,location); dock = createDockWidget(plannerView,tool,tool->getTitle(),tool->objectName(),(VIEW_SECTIONS)view,location);
break; break;
case VIEW_MAVLINK:
dock = createDockWidget(mavlinkView,tool,tool->getTitle(),tool->objectName(),(VIEW_SECTIONS)view,location);
break;
case VIEW_GOOGLEEARTH: case VIEW_GOOGLEEARTH:
dock = createDockWidget(googleEarthView,tool,tool->getTitle(),tool->objectName(),(VIEW_SECTIONS)view,location); dock = createDockWidget(googleEarthView,tool,tool->getTitle(),tool->objectName(),(VIEW_SECTIONS)view,location);
break; break;
...@@ -593,17 +583,6 @@ void MainWindow::buildCommonWidgets() ...@@ -593,17 +583,6 @@ void MainWindow::buildCommonWidgets()
addToCentralStackedWidget(engineeringView, VIEW_ENGINEER, tr("Logfile Plot")); 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 #ifdef QGC_GOOGLE_EARTH_ENABLED
if (!googleEarthView) if (!googleEarthView)
{ {
...@@ -1215,7 +1194,6 @@ void MainWindow::connectCommonActions() ...@@ -1215,7 +1194,6 @@ void MainWindow::connectCommonActions()
// Bind together the perspective actions // Bind together the perspective actions
QActionGroup* perspectives = new QActionGroup(ui.menuPerspectives); QActionGroup* perspectives = new QActionGroup(ui.menuPerspectives);
perspectives->addAction(ui.actionEngineersView); perspectives->addAction(ui.actionEngineersView);
perspectives->addAction(ui.actionMavlinkView);
perspectives->addAction(ui.actionFlightView); perspectives->addAction(ui.actionFlightView);
perspectives->addAction(ui.actionSimulationView); perspectives->addAction(ui.actionSimulationView);
perspectives->addAction(ui.actionMissionView); perspectives->addAction(ui.actionMissionView);
...@@ -1228,9 +1206,6 @@ void MainWindow::connectCommonActions() ...@@ -1228,9 +1206,6 @@ void MainWindow::connectCommonActions()
/* Hide the actions that are not relevant */ /* Hide the actions that are not relevant */
ui.actionSoftwareConfig->setVisible(getCustomMode() == CUSTOM_MODE_APM); ui.actionSoftwareConfig->setVisible(getCustomMode() == CUSTOM_MODE_APM);
#ifndef QGC_MAVGEN_ENABLED
ui.actionMavlinkView->setVisible(false);
#endif
#ifndef QGC_GOOGLE_EARTH_ENABLED #ifndef QGC_GOOGLE_EARTH_ENABLED
ui.actionGoogleEarthView->setVisible(false); ui.actionGoogleEarthView->setVisible(false);
#endif #endif
...@@ -1244,11 +1219,6 @@ void MainWindow::connectCommonActions() ...@@ -1244,11 +1219,6 @@ void MainWindow::connectCommonActions()
ui.actionEngineersView->setChecked(true); ui.actionEngineersView->setChecked(true);
ui.actionEngineersView->activate(QAction::Trigger); ui.actionEngineersView->activate(QAction::Trigger);
} }
if (currentView == VIEW_MAVLINK)
{
ui.actionMavlinkView->setChecked(true);
ui.actionMavlinkView->activate(QAction::Trigger);
}
if (currentView == VIEW_FLIGHT) if (currentView == VIEW_FLIGHT)
{ {
ui.actionFlightView->setChecked(true); ui.actionFlightView->setChecked(true);
...@@ -1325,7 +1295,6 @@ void MainWindow::connectCommonActions() ...@@ -1325,7 +1295,6 @@ void MainWindow::connectCommonActions()
connect(ui.actionHardwareConfig, SIGNAL(triggered()), this, SLOT(loadHardwareConfigView())); connect(ui.actionHardwareConfig, SIGNAL(triggered()), this, SLOT(loadHardwareConfigView()));
connect(ui.actionSoftwareConfig,SIGNAL(triggered()),this,SLOT(loadSoftwareConfigView())); connect(ui.actionSoftwareConfig,SIGNAL(triggered()),this,SLOT(loadSoftwareConfigView()));
connect(ui.actionTerminalView,SIGNAL(triggered()),this,SLOT(loadTerminalView())); connect(ui.actionTerminalView,SIGNAL(triggered()),this,SLOT(loadTerminalView()));
connect(ui.actionMavlinkView, SIGNAL(triggered()), this, SLOT(loadMAVLinkView()));
// Help Actions // Help Actions
connect(ui.actionOnline_Documentation, SIGNAL(triggered()), this, SLOT(showHelp())); connect(ui.actionOnline_Documentation, SIGNAL(triggered()), this, SLOT(showHelp()));
...@@ -1723,9 +1692,6 @@ void MainWindow::loadViewState() ...@@ -1723,9 +1692,6 @@ void MainWindow::loadViewState()
case VIEW_FLIGHT: case VIEW_FLIGHT:
centerStack->setCurrentWidget(pilotView); centerStack->setCurrentWidget(pilotView);
break; break;
case VIEW_MAVLINK:
centerStack->setCurrentWidget(mavlinkView);
break;
case VIEW_MISSION: case VIEW_MISSION:
centerStack->setCurrentWidget(plannerView); centerStack->setCurrentWidget(plannerView);
break; break;
...@@ -1913,17 +1879,6 @@ void MainWindow::loadSimulationView() ...@@ -1913,17 +1879,6 @@ void MainWindow::loadSimulationView()
} }
} }
void MainWindow::loadMAVLinkView()
{
if (currentView != VIEW_MAVLINK)
{
storeViewState();
currentView = VIEW_MAVLINK;
ui.actionMavlinkView->setChecked(true);
loadViewState();
}
}
QList<QAction*> MainWindow::listLinkMenuActions() QList<QAction*> MainWindow::listLinkMenuActions()
{ {
return ui.menuNetwork->actions(); return ui.menuNetwork->actions();
......
...@@ -232,8 +232,6 @@ public slots: ...@@ -232,8 +232,6 @@ public slots:
void loadEngineerView(); void loadEngineerView();
/** @brief Load view for operator */ /** @brief Load view for operator */
void loadOperatorView(); void loadOperatorView();
/** @brief Load MAVLink XML generator view */
void loadMAVLinkView();
/** @brief Load Terminal Console views */ /** @brief Load Terminal Console views */
void loadTerminalView(); void loadTerminalView();
/** @brief Load Google Earth View */ /** @brief Load Google Earth View */
...@@ -337,7 +335,6 @@ protected: ...@@ -337,7 +335,6 @@ protected:
VIEW_MISSION, VIEW_MISSION,
VIEW_FLIGHT, VIEW_FLIGHT,
VIEW_SIMULATION, VIEW_SIMULATION,
VIEW_MAVLINK,
VIEW_FIRMWAREUPDATE, VIEW_FIRMWAREUPDATE,
VIEW_HARDWARE_CONFIG, VIEW_HARDWARE_CONFIG,
VIEW_SOFTWARE_CONFIG, VIEW_SOFTWARE_CONFIG,
...@@ -410,7 +407,6 @@ protected: ...@@ -410,7 +407,6 @@ protected:
QPointer<SubMainWindow> pilotView; QPointer<SubMainWindow> pilotView;
QPointer<SubMainWindow> configView; QPointer<SubMainWindow> configView;
QPointer<SubMainWindow> softwareConfigView; QPointer<SubMainWindow> softwareConfigView;
QPointer<SubMainWindow> mavlinkView;
QPointer<SubMainWindow> engineeringView; QPointer<SubMainWindow> engineeringView;
QPointer<SubMainWindow> simView; QPointer<SubMainWindow> simView;
QPointer<SubMainWindow> terminalView; QPointer<SubMainWindow> terminalView;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment