Commit b0fb15a1 authored by Bryant's avatar Bryant

Remove the Software view.

parent 0d0069bd
...@@ -160,7 +160,6 @@ MainWindow::MainWindow(QSplashScreen* splashScreen, enum MainWindow::CUSTOM_MODE ...@@ -160,7 +160,6 @@ MainWindow::MainWindow(QSplashScreen* splashScreen, enum MainWindow::CUSTOM_MODE
case VIEW_FLIGHT: case VIEW_FLIGHT:
case VIEW_SIMULATION: case VIEW_SIMULATION:
case VIEW_SETUP: case VIEW_SETUP:
case VIEW_SOFTWARE_CONFIG:
case VIEW_TERMINAL: case VIEW_TERMINAL:
// And only re-load views if they're supported with the current QGC build // And only re-load views if they're supported with the current QGC build
...@@ -210,23 +209,20 @@ MainWindow::MainWindow(QSplashScreen* splashScreen, enum MainWindow::CUSTOM_MODE ...@@ -210,23 +209,20 @@ MainWindow::MainWindow(QSplashScreen* splashScreen, enum MainWindow::CUSTOM_MODE
toolBar = new QGCToolBar(this); toolBar = new QGCToolBar(this);
this->addToolBar(toolBar); this->addToolBar(toolBar);
// Add actions for average users (displayed next to each other) // Add the perspectives to the toolbar
QList<QAction*> actions; QList<QAction*> actions;
actions << ui.actionSetup; actions << ui.actionSetup;
actions << ui.actionMissionView; actions << ui.actionMissionView;
actions << ui.actionFlightView; actions << ui.actionFlightView;
actions << ui.actionEngineersView; actions << ui.actionEngineersView;
toolBar->setPerspectiveChangeActions(actions); toolBar->setPerspectiveChangeActions(actions);
// Add actions for advanced users (displayed in dropdown under "advanced") // Add actions for advanced users (displayed in dropdown under "advanced")
QList<QAction*> advancedActions; QList<QAction*> advancedActions;
advancedActions << ui.actionGoogleEarthView; advancedActions << ui.actionGoogleEarthView;
advancedActions << ui.actionLocal3DView; advancedActions << ui.actionLocal3DView;
advancedActions << ui.actionSoftwareConfig;
advancedActions << ui.actionTerminalView; advancedActions << ui.actionTerminalView;
advancedActions << ui.actionSimulationView; advancedActions << ui.actionSimulationView;
toolBar->setPerspectiveChangeAdvancedActions(advancedActions); toolBar->setPerspectiveChangeAdvancedActions(advancedActions);
customStatusBar = new QGCStatusBar(this); customStatusBar = new QGCStatusBar(this);
...@@ -1176,11 +1172,6 @@ void MainWindow::connectCommonActions() ...@@ -1176,11 +1172,6 @@ void MainWindow::connectCommonActions()
ui.actionSetup->setChecked(true); ui.actionSetup->setChecked(true);
ui.actionSetup->activate(QAction::Trigger); ui.actionSetup->activate(QAction::Trigger);
} }
if (currentView == VIEW_SOFTWARE_CONFIG)
{
ui.actionSoftwareConfig->setChecked(true);
ui.actionSoftwareConfig->activate(QAction::Trigger);
}
if (currentView == VIEW_TERMINAL) if (currentView == VIEW_TERMINAL)
{ {
ui.actionTerminalView->setChecked(true); ui.actionTerminalView->setChecked(true);
...@@ -1228,7 +1219,6 @@ void MainWindow::connectCommonActions() ...@@ -1228,7 +1219,6 @@ void MainWindow::connectCommonActions()
connect(ui.actionSetup,SIGNAL(triggered()),this,SLOT(loadSetupView())); connect(ui.actionSetup,SIGNAL(triggered()),this,SLOT(loadSetupView()));
connect(ui.actionGoogleEarthView, SIGNAL(triggered()), this, SLOT(loadGoogleEarthView())); connect(ui.actionGoogleEarthView, SIGNAL(triggered()), this, SLOT(loadGoogleEarthView()));
connect(ui.actionLocal3DView, SIGNAL(triggered()), this, SLOT(loadLocal3DView())); connect(ui.actionLocal3DView, SIGNAL(triggered()), this, SLOT(loadLocal3DView()));
connect(ui.actionSoftwareConfig,SIGNAL(triggered()),this,SLOT(loadSoftwareConfigView()));
connect(ui.actionTerminalView,SIGNAL(triggered()),this,SLOT(loadTerminalView())); connect(ui.actionTerminalView,SIGNAL(triggered()),this,SLOT(loadTerminalView()));
// Help Actions // Help Actions
...@@ -1574,10 +1564,6 @@ void MainWindow::loadViewState() ...@@ -1574,10 +1564,6 @@ void MainWindow::loadViewState()
case VIEW_SETUP: case VIEW_SETUP:
centerStack->setCurrentWidget(setupView); centerStack->setCurrentWidget(setupView);
break; break;
case VIEW_SOFTWARE_CONFIG:
if (softwareConfigView)
centerStack->setCurrentWidget(softwareConfigView);
break;
case VIEW_ENGINEER: case VIEW_ENGINEER:
centerStack->setCurrentWidget(engineeringView); centerStack->setCurrentWidget(engineeringView);
break; break;
...@@ -1588,11 +1574,9 @@ void MainWindow::loadViewState() ...@@ -1588,11 +1574,9 @@ void MainWindow::loadViewState()
case VIEW_MISSION: case VIEW_MISSION:
centerStack->setCurrentWidget(plannerView); centerStack->setCurrentWidget(plannerView);
break; break;
case VIEW_SIMULATION: case VIEW_SIMULATION:
centerStack->setCurrentWidget(simView); centerStack->setCurrentWidget(simView);
break; break;
case VIEW_TERMINAL: case VIEW_TERMINAL:
centerStack->setCurrentWidget(terminalView); centerStack->setCurrentWidget(terminalView);
break; break;
...@@ -1694,17 +1678,6 @@ void MainWindow::loadSetupView() ...@@ -1694,17 +1678,6 @@ void MainWindow::loadSetupView()
} }
} }
void MainWindow::loadSoftwareConfigView()
{
if (currentView != VIEW_SOFTWARE_CONFIG)
{
storeViewState();
currentView = VIEW_SOFTWARE_CONFIG;
ui.actionSoftwareConfig->setChecked(true);
loadViewState();
}
}
void MainWindow::loadTerminalView() void MainWindow::loadTerminalView()
{ {
if (currentView != VIEW_TERMINAL) if (currentView != VIEW_TERMINAL)
......
...@@ -195,7 +195,6 @@ public slots: ...@@ -195,7 +195,6 @@ public slots:
void handleMisconfiguration(UASInterface* uas); void handleMisconfiguration(UASInterface* uas);
/** @brief Load configuration views */ /** @brief Load configuration views */
void loadSetupView(); void loadSetupView();
void loadSoftwareConfigView();
/** @brief Load view for pilot */ /** @brief Load view for pilot */
void loadPilotView(); void loadPilotView();
/** @brief Load view for simulation */ /** @brief Load view for simulation */
...@@ -303,11 +302,9 @@ protected: ...@@ -303,11 +302,9 @@ protected:
{ {
VIEW_ENGINEER, // Engineering/Analyze view mode. Used for analyzing data and modifying onboard parameters VIEW_ENGINEER, // Engineering/Analyze view mode. Used for analyzing data and modifying onboard parameters
VIEW_MISSION, // Mission/Map/Plan view mode. Used for setting mission waypoints and high-level system commands. VIEW_MISSION, // Mission/Map/Plan view mode. Used for setting mission waypoints and high-level system commands.
VIEW_FLIGHT, // Flight/Fly/Operate view mode. Used for 1st-person observation of the vehicle VIEW_FLIGHT, // Flight/Fly/Operate view mode. Used for 1st-person observation of the vehicle.
VIEW_SIMULATION, // Simulation view. Useful overview of the entire system for simulation. VIEW_SIMULATION, // HIL Simulation view. Useful overview of the entire system when doing hardware-in-the-loop simulations.
VIEW_FIRMWAREUPDATE, // UNUSED, left for backwards compatibility with existing saved settings.
VIEW_SETUP, // Setup view. Used for initializing the system for operation. Includes UI for calibration, firmware updating/checking, and parameter modifcation. VIEW_SETUP, // Setup view. Used for initializing the system for operation. Includes UI for calibration, firmware updating/checking, and parameter modifcation.
VIEW_SOFTWARE_CONFIG, // Software view. Used for configuring the onboard software/firmware.
VIEW_TERMINAL, // Terminal interface. Used for communicating with the remote system, usually in a special configuration input mode. VIEW_TERMINAL, // Terminal interface. Used for communicating with the remote system, usually in a special configuration input mode.
VIEW_LOCAL3D, // A local 3D view. Provides a local 3D view that makes visualizing 3D attitude/orientation/pose easy while in operation. VIEW_LOCAL3D, // A local 3D view. Provides a local 3D view that makes visualizing 3D attitude/orientation/pose easy while in operation.
VIEW_GOOGLEEARTH // 3D Google Earth view. A 3D terrain view, though the vehicle is still 2D. VIEW_GOOGLEEARTH // 3D Google Earth view. A 3D terrain view, though the vehicle is still 2D.
......
...@@ -457,18 +457,6 @@ ...@@ -457,18 +457,6 @@
<string>Simulation</string> <string>Simulation</string>
</property> </property>
</action> </action>
<action name="actionSoftwareConfig">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="../../qgroundcontrol.qrc">
<normaloff>:/files/images/categories/applications-system.svg</normaloff>:/files/images/categories/applications-system.svg</iconset>
</property>
<property name="text">
<string>Software</string>
</property>
</action>
<action name="actionTerminalView"> <action name="actionTerminalView">
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
......
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