|
|
|
@ -40,6 +40,7 @@
@@ -40,6 +40,7 @@
|
|
|
|
|
#include "LogCompressor.h" |
|
|
|
|
#include "UAS.h" |
|
|
|
|
#include "QGCImageProvider.h" |
|
|
|
|
#include "QGCCorePlugin.h" |
|
|
|
|
|
|
|
|
|
#ifndef __mobile__ |
|
|
|
|
#include "Linecharts.h" |
|
|
|
@ -175,6 +176,9 @@ MainWindow::MainWindow()
@@ -175,6 +176,9 @@ MainWindow::MainWindow()
|
|
|
|
|
_ui.menuWidgets->addAction(qmlTestAction); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
connect(qgcApp()->toolbox()->corePlugin(), &QGCCorePlugin::showAdvancedUIChanged, this, &MainWindow::_showAdvancedUIChanged); |
|
|
|
|
_showAdvancedUIChanged(qgcApp()->toolbox()->corePlugin()->showAdvancedUI()); |
|
|
|
|
|
|
|
|
|
// Status Bar
|
|
|
|
|
setStatusBar(new QStatusBar(this)); |
|
|
|
|
statusBar()->setSizeGripEnabled(true); |
|
|
|
@ -558,3 +562,13 @@ QObject* MainWindow::rootQmlObject(void)
@@ -558,3 +562,13 @@ QObject* MainWindow::rootQmlObject(void)
|
|
|
|
|
{ |
|
|
|
|
return _mainQmlWidgetHolder->getRootObject(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MainWindow::_showAdvancedUIChanged(bool advanced) |
|
|
|
|
{ |
|
|
|
|
if (advanced) { |
|
|
|
|
menuBar()->addMenu(_ui.menuFile); |
|
|
|
|
menuBar()->addMenu(_ui.menuWidgets); |
|
|
|
|
} else { |
|
|
|
|
menuBar()->clear(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|