|
|
|
@ -796,6 +796,7 @@ void MainWindow::connectCommonActions()
@@ -796,6 +796,7 @@ void MainWindow::connectCommonActions()
|
|
|
|
|
|
|
|
|
|
// Connect internal actions
|
|
|
|
|
connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(UASCreated(UASInterface*))); |
|
|
|
|
connect(UASManager::instance(), SIGNAL(UASDeleted(int)), this, SLOT(UASDeleted(int))); |
|
|
|
|
|
|
|
|
|
// Unmanned System controls
|
|
|
|
|
connect(_ui.actionLiftoff, SIGNAL(triggered()), UASManager::instance(), SLOT(launchActiveUAS())); |
|
|
|
@ -909,6 +910,14 @@ void MainWindow::UASCreated(UASInterface* uas)
@@ -909,6 +910,14 @@ void MainWindow::UASCreated(UASInterface* uas)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MainWindow::UASDeleted(int uasId) |
|
|
|
|
{ |
|
|
|
|
if (_mapUasId2HilDockWidget.contains(uasId)) { |
|
|
|
|
_mapUasId2HilDockWidget[uasId]->deleteLater(); |
|
|
|
|
_mapUasId2HilDockWidget.remove(uasId); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Stores the state of the toolbar, status bar and widgets associated with the current view
|
|
|
|
|
void MainWindow::_storeCurrentViewState(void) |
|
|
|
|
{ |
|
|
|
|