|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGCApplication.h>
Inheritance diagram for QGCApplication:
Collaboration diagram for QGCApplication:Public Slots | |
| void | showVehicleConfig () |
| void | qmlAttemptWindowClose () |
| QLocale | getCurrentLanguage () const |
| Get current language. | |
| void | showCriticalVehicleMessage (const QString &message) |
| Show non-modal vehicle message to the user. | |
| void | showAppMessage (const QString &message, const QString &title=QString()) |
| Show modal application message to the user. | |
| void | showRebootAppMessage (const QString &message, const QString &title=QString()) |
| QGCImageProvider * | qgcImageProvider () |
Signals | |
| void | languageChanged (const QLocale &locale) |
Public Member Functions | |
| QGCApplication (int &argc, char *argv[], const QGCCommandLineParser::CommandLineParseResult &args) | |
| ~QGCApplication () | |
| bool | runningUnitTests () const |
| bool | simpleBootTest () const |
| bool | logOutput () const |
| Returns true if Qt debug output should be logged to a file. | |
| void | reportMissingParameter (int componentId, const QString &name) |
| bool | fakeMobile () const |
| void | setLanguage () |
| QQuickWindow * | mainRootWindow () |
| uint64_t | msecsSinceBoot () const |
| QString | numberToString (quint64 number) |
| QString | bigSizeToString (quint64 size) |
| QString | bigSizeMBToString (quint64 size_MB) |
| void | addCompressedSignal (const QMetaMethod &method) |
| Registers the signal such that only the last duplicate signal added is left in the queue. | |
| void | removeCompressedSignal (const QMetaMethod &method) |
| bool | event (QEvent *e) final |
| void | init () |
| Perform initialize which is common to both normal application running and unit tests. | |
| void | shutdown () |
| QQmlApplicationEngine * | qmlAppEngine () const |
| Although public, these methods are internal and should only be called by UnitTest code. | |
Static Public Member Functions | |
| static void | deleteAllSettingsNextBoot () |
| Sets the persistent flag to delete all settings the next time QGroundControl is started. | |
| static void | clearDeleteAllSettingsNextBoot () |
| Clears the persistent flag to delete all settings the next time QGroundControl is started. | |
| static QString | cachedParameterMetaDataFile () |
| static QString | cachedAirframeMetaDataFile () |
Friends | |
| class | UnitTest |
| Unit Test have access to creating and destroying singletons. | |
The main application and management class. Needs QApplication base to support QtCharts module. TODO: Use QtGraphs to convert to QGuiApplication
Definition at line 41 of file QGCApplication.h.
| QGCApplication::QGCApplication | ( | int & | argc, |
| char * | argv[], | ||
| const QGCCommandLineParser::CommandLineParseResult & | args | ||
| ) |
Definition at line 50 of file QGCApplication.cc.
References QGCNetworkHelper::initializeProxySupport(), QGCLoggingCategoryManager::instance(), ParameterManager::parameterCacheDir(), and QGCLoggingCategoryManager::setFilterRulesFromSettings().
| QGCApplication::~QGCApplication | ( | ) |
Definition at line 206 of file QGCApplication.cc.
| void QGCApplication::addCompressedSignal | ( | const QMetaMethod & | method | ) |
Registers the signal such that only the last duplicate signal added is left in the queue.
Definition at line 591 of file QGCApplication.cc.
| QString QGCApplication::bigSizeMBToString | ( | quint64 | size_MB | ) |
Definition at line 707 of file QGCApplication.cc.
References getCurrentLanguage().
| QString QGCApplication::bigSizeToString | ( | quint64 | size | ) |
Definition at line 689 of file QGCApplication.cc.
References getCurrentLanguage().
|
static |
Definition at line 537 of file QGCApplication.cc.
|
static |
Definition at line 530 of file QGCApplication.cc.
|
static |
Clears the persistent flag to delete all settings the next time QGroundControl is started.
Definition at line 332 of file QGCApplication.cc.
Referenced by QGroundControlQmlGlobal::clearDeleteAllSettingsNextBoot().
|
static |
Sets the persistent flag to delete all settings the next time QGroundControl is started.
Definition at line 326 of file QGCApplication.cc.
Referenced by QGroundControlQmlGlobal::deleteAllSettingsNextBoot().
|
final |
Definition at line 643 of file QGCApplication.cc.
|
inline |
Definition at line 68 of file QGCApplication.h.
|
inlineslot |
Get current language.
Definition at line 104 of file QGCApplication.h.
Referenced by bigSizeMBToString(), bigSizeToString(), and numberToString().
| void QGCApplication::init | ( | ) |
Perform initialize which is common to both normal application running and unit tests.
Definition at line 211 of file QGCApplication.cc.
References MavlinkSettings::gcsMavlinkSystemID().
Referenced by main().
|
signal |
Referenced by QGeoTiledMappingManagerEngineQGC::QGeoTiledMappingManagerEngineQGC(), and setLanguage().
|
inline |
Returns true if Qt debug output should be logged to a file.
Definition at line 61 of file QGCApplication.h.
| QQuickWindow * QGCApplication::mainRootWindow | ( | ) |
Definition at line 446 of file QGCApplication.cc.
|
inline |
Definition at line 72 of file QGCApplication.h.
| QString QGCApplication::numberToString | ( | quint64 | number | ) |
Definition at line 684 of file QGCApplication.cc.
References getCurrentLanguage().
|
slot |
Definition at line 665 of file QGCApplication.cc.
|
inline |
Although public, these methods are internal and should only be called by UnitTest code.
Definition at line 93 of file QGCApplication.h.
|
slot |
Definition at line 462 of file QGCApplication.cc.
| void QGCApplication::removeCompressedSignal | ( | const QMetaMethod & | method | ) |
Definition at line 596 of file QGCApplication.cc.
| void QGCApplication::reportMissingParameter | ( | int | componentId, |
| const QString & | name | ||
| ) |
Used to report a missing Parameter. Warning will be displayed to user. Method may be called multiple times.
Definition at line 338 of file QGCApplication.cc.
|
inline |
Definition at line 57 of file QGCApplication.h.
Referenced by showAppMessage(), and showCriticalVehicleMessage().
| void QGCApplication::setLanguage | ( | ) |
Definition at line 157 of file QGCApplication.cc.
References languageChanged(), and JsonHelper::translator().
|
slot |
Show modal application message to the user.
Definition at line 398 of file QGCApplication.cc.
References runningUnitTests().
Referenced by showRebootAppMessage().
|
slot |
Show non-modal vehicle message to the user.
Definition at line 378 of file QGCApplication.cc.
References runningUnitTests().
|
slot |
Show modal application message to the user about the need for a reboot. Multiple messages will be supressed if they occur one after the other.
Definition at line 418 of file QGCApplication.cc.
References showAppMessage().
|
slot |
Definition at line 455 of file QGCApplication.cc.
| void QGCApplication::shutdown | ( | ) |
Definition at line 670 of file QGCApplication.cc.
Referenced by main().
|
inline |
Definition at line 58 of file QGCApplication.h.
|
friend |
Unit Test have access to creating and destroying singletons.
Definition at line 46 of file QGCApplication.h.