|
QGroundControl
Ground Control Station for MAVLink Drones
|
The main application and management class. More...
#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 | bootTestPassed () 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 |
| 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 QString | cachedParameterMetaDataFile () |
| static QString | cachedAirframeMetaDataFile () |
Friends | |
| class | UnitTest |
| Unit Test have access to creating and destroying singletons. | |
The main application and management class.
Definition at line 37 of file QGCApplication.h.
| QGCApplication::QGCApplication | ( | int & | argc, |
| char * | argv[], | ||
| const QGCCommandLineParser::CommandLineParseResult & | args | ||
| ) |
Definition at line 53 of file QGCApplication.cc.
References AppSettings::clearSettingsNextBootKey, QGCLoggingCategoryManager::init(), QGCNetworkHelper::initializeProxySupport(), QGCLoggingCategoryManager::installFilter(), QGCLoggingCategoryManager::instance(), and ParameterManager::parameterCacheDir().
| QGCApplication::~QGCApplication | ( | ) |
Definition at line 216 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 632 of file QGCApplication.cc.
|
inline |
Definition at line 49 of file QGCApplication.h.
Referenced by main().
|
static |
Definition at line 578 of file QGCApplication.cc.
|
static |
Definition at line 571 of file QGCApplication.cc.
|
final |
Definition at line 684 of file QGCApplication.cc.
|
inline |
Definition at line 59 of file QGCApplication.h.
|
inlineslot |
Get current language.
Definition at line 92 of file QGCApplication.h.
| void QGCApplication::init | ( | ) |
Perform initialize which is common to both normal application running and unit tests.
Definition at line 221 of file QGCApplication.cc.
References SettingsManager::appSettings(), SettingsManager::init(), LogManager::instance(), SettingsManager::instance(), SettingsManager::mavlinkSettings(), Fact::rawValueChanged(), LogManager::remoteSink(), AppSettings::savePathsChanged(), and LogRemoteSink::setHost().
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 52 of file QGCApplication.h.
| QQuickWindow * QGCApplication::mainRootWindow | ( | ) |
Definition at line 487 of file QGCApplication.cc.
Referenced by QGCRhiCapture::qrhi().
|
inline |
Definition at line 63 of file QGCApplication.h.
|
slot |
Definition at line 709 of file QGCApplication.cc.
|
inline |
Although public, these methods are internal and should only be called by UnitTest code.
Definition at line 81 of file QGCApplication.h.
|
slot |
Definition at line 503 of file QGCApplication.cc.
| void QGCApplication::removeCompressedSignal | ( | const QMetaMethod & | method | ) |
Definition at line 637 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 379 of file QGCApplication.cc.
|
inline |
Definition at line 47 of file QGCApplication.h.
Referenced by showAppMessage(), and showCriticalVehicleMessage().
| void QGCApplication::setLanguage | ( | ) |
Definition at line 167 of file QGCApplication.cc.
References languageChanged(), and JsonParsing::translator().
|
slot |
Show modal application message to the user.
Definition at line 439 of file QGCApplication.cc.
References runningUnitTests().
Referenced by showRebootAppMessage().
|
slot |
Show non-modal vehicle message to the user.
Definition at line 419 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 459 of file QGCApplication.cc.
References showAppMessage().
|
slot |
Definition at line 496 of file QGCApplication.cc.
| void QGCApplication::shutdown | ( | ) |
Definition at line 714 of file QGCApplication.cc.
References QGCCorePlugin::cleanup(), VideoManager::cleanup(), QGCCorePlugin::instance(), SettingsManager::instance(), VideoManager::instance(), and ParameterManager::parameterCacheDir().
Referenced by main().
|
inline |
Definition at line 48 of file QGCApplication.h.
|
friend |
Unit Test have access to creating and destroying singletons.
Definition at line 42 of file QGCApplication.h.