|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGroundControlQmlGlobal.h>
Inheritance diagram for QGroundControlQmlGlobal:
Collaboration diagram for QGroundControlQmlGlobal:Public Types | |
| enum | AltMode { AltitudeModeMixed , AltitudeModeRelative , AltitudeModeAbsolute , AltitudeModeCalcAboveTerrain , AltitudeModeTerrainFrame , AltitudeModeNone } |
Signals | |
| void | isMultiplexingEnabledChanged (bool enabled) |
| void | mavlinkSystemIDChanged (int id) |
| void | flightMapPositionChanged (QGeoCoordinate flightMapPosition) |
| void | flightMapZoomChanged (double flightMapZoom) |
| void | showMessageDialogRequested (QObject *owner, QString title, QString text, int buttons, QJSValue acceptFunction, QJSValue closeFunction) |
Static Public Member Functions | |
| static void | deleteAllSettingsNextBoot () |
| static void | clearDeleteAllSettingsNextBoot () |
| static QmlObjectListModel * | treeLoggingCategoriesModel () |
| Returns the hierarchical list of available logging category names. | |
| static QmlObjectListModel * | flatLoggingCategoriesModel () |
| Returns the flat list of available logging category names. | |
| static void | setCategoryLoggingOn (const QString &category, bool enable) |
| Turns on/off logging for the specified category. State is saved in app settings. | |
| static bool | categoryLoggingOn (const QString &category) |
| Returns true if logging is turned on for the specified category. | |
| static void | disableAllLoggingCategories () |
| static QString | appName () |
| static QGeoCoordinate | flightMapPosition () |
| static double | flightMapZoom () |
| static QString | qgcVersion () |
| static QString | qgcAppDate () |
| static bool | qgcDailyBuild () |
Public Attributes | |
| QString appName READ appName const QString & | value |
Static Public Attributes | |
| static constexpr int | kDefaultMessageDialogButtons = 0x00000400 |
Definition at line 40 of file QGroundControlQmlGlobal.h.
| Enumerator | |
|---|---|
| AltitudeModeMixed | |
| AltitudeModeRelative | |
| AltitudeModeAbsolute | |
| AltitudeModeCalcAboveTerrain | |
| AltitudeModeTerrainFrame | |
| AltitudeModeNone | |
Definition at line 52 of file QGroundControlQmlGlobal.h.
|
explicit |
Definition at line 34 of file QGroundControlQmlGlobal.cc.
References flightMapPositionChanged(), flightMapZoomChanged(), and value.
| QGroundControlQmlGlobal::~QGroundControlQmlGlobal | ( | ) |
Definition at line 81 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 175 of file QGroundControlQmlGlobal.h.
| QString QGroundControlQmlGlobal::altitudeModeExtraUnits | ( | AltMode | altMode | ) |
String shown in the FactTextField.extraUnits ui.
Definition at line 260 of file QGroundControlQmlGlobal.cc.
References AltitudeModeAbsolute, AltitudeModeCalcAboveTerrain, AltitudeModeMixed, AltitudeModeNone, AltitudeModeRelative, and AltitudeModeTerrainFrame.
| QString QGroundControlQmlGlobal::altitudeModeShortDescription | ( | AltMode | altMode | ) |
String shown when a user needs to select an altitude mode.
Definition at line 283 of file QGroundControlQmlGlobal.cc.
References AltitudeModeAbsolute, AltitudeModeCalcAboveTerrain, AltitudeModeMixed, AltitudeModeNone, AltitudeModeRelative, and AltitudeModeTerrainFrame.
| bool QGroundControlQmlGlobal::apmFirmwareSupported | ( | ) |
Definition at line 214 of file QGroundControlQmlGlobal.cc.
References QGCMAVLink::FirmwareClassArduPilot, FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
|
static |
Definition at line 335 of file QGroundControlQmlGlobal.cc.
|
static |
Returns true if logging is turned on for the specified category.
Definition at line 365 of file QGroundControlQmlGlobal.cc.
References QGCLoggingCategoryManager::categoryLoggingOn().
|
static |
Definition at line 345 of file QGroundControlQmlGlobal.cc.
References QGCApplication::clearDeleteAllSettingsNextBoot().
| QString appName READ appName QGroundControlQmlGlobal::CONSTANT | ( | LinkManager *linkManager READ linkManager | CONSTANT | ) | const & |
< This palette will always return enabled colors
< Zoom level to use when either gcs or vehicle shows up for first time < z order for top most items, toolbar, main window sub view < z order value to widgets, for example: zoom controls, hud widgetss
|
inline |
Definition at line 170 of file QGroundControlQmlGlobal.h.
|
static |
Definition at line 340 of file QGroundControlQmlGlobal.cc.
References QGCApplication::deleteAllSettingsNextBoot().
|
static |
Definition at line 370 of file QGroundControlQmlGlobal.cc.
References QGCLoggingCategoryManager::disableAllCategories(), and QGCLoggingCategoryManager::instance().
| QString QGroundControlQmlGlobal::elevationProviderName | ( | ) |
Definition at line 315 of file QGroundControlQmlGlobal.cc.
References FlightMapSettings::elevationMapProvider().
| QString QGroundControlQmlGlobal::elevationProviderNotice | ( | ) |
Definition at line 320 of file QGroundControlQmlGlobal.cc.
References FlightMapSettings::elevationMapProvider().
|
static |
Returns the flat list of available logging category names.
Definition at line 355 of file QGroundControlQmlGlobal.cc.
References QGCLoggingCategoryManager::flatCategoryModel(), and QGCLoggingCategoryManager::instance().
|
inlinestatic |
Definition at line 177 of file QGroundControlQmlGlobal.h.
Referenced by setFlightMapPosition().
|
signal |
Referenced by QGroundControlQmlGlobal(), and setFlightMapPosition().
|
inlinestatic |
Definition at line 178 of file QGroundControlQmlGlobal.h.
Referenced by setFlightMapZoom().
|
signal |
Referenced by QGroundControlQmlGlobal(), and setFlightMapZoom().
|
inline |
Definition at line 173 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 191 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 197 of file QGroundControlQmlGlobal.h.
|
signal |
| bool QGroundControlQmlGlobal::linesIntersect | ( | QPointF | xLine1, |
| QPointF | yLine1, | ||
| QPointF | xLine2, | ||
| QPointF | yLine2 | ||
| ) |
Definition at line 219 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 164 of file QGroundControlQmlGlobal.h.
| bool QGroundControlQmlGlobal::loadBoolGlobalSetting | ( | const QString & | key, |
| bool | defaultValue | ||
| ) |
Definition at line 106 of file QGroundControlQmlGlobal.cc.
| QString QGroundControlQmlGlobal::loadGlobalSetting | ( | const QString & | key, |
| const QString & | defaultValue | ||
| ) |
Definition at line 92 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 166 of file QGroundControlQmlGlobal.h.
|
signal |
|
inline |
Definition at line 168 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 165 of file QGroundControlQmlGlobal.h.
| QString QGroundControlQmlGlobal::parameterFileExtension | ( | void | ) | const |
Definition at line 325 of file QGroundControlQmlGlobal.cc.
References AppSettings::parameterFileExtension.
| bool QGroundControlQmlGlobal::px4ProFirmwareSupported | ( | ) |
Definition at line 209 of file QGroundControlQmlGlobal.cc.
References QGCMAVLink::FirmwareClassPX4, FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
|
inlinestatic |
Definition at line 215 of file QGroundControlQmlGlobal.h.
References ObjectListModelBase::index().
|
inlinestatic |
Definition at line 219 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 167 of file QGroundControlQmlGlobal.h.
|
static |
Definition at line 246 of file QGroundControlQmlGlobal.cc.
| void QGroundControlQmlGlobal::saveBoolGlobalSetting | ( | const QString & | key, |
| bool | value | ||
| ) |
Definition at line 99 of file QGroundControlQmlGlobal.cc.
References value.
|
static |
Turns on/off logging for the specified category. State is saved in app settings.
Definition at line 360 of file QGroundControlQmlGlobal.cc.
References QGCLoggingCategoryManager::instance(), and QGCLoggingCategoryManager::setCategoryLoggingOn().
| void QGroundControlQmlGlobal::setFlightMapPosition | ( | QGeoCoordinate & | coordinate | ) |
Definition at line 229 of file QGroundControlQmlGlobal.cc.
References flightMapPosition(), and flightMapPositionChanged().
| void QGroundControlQmlGlobal::setFlightMapZoom | ( | double | zoom | ) |
Definition at line 238 of file QGroundControlQmlGlobal.cc.
References flightMapZoom(), and flightMapZoomChanged().
|
inline |
Definition at line 171 of file QGroundControlQmlGlobal.h.
| void QGroundControlQmlGlobal::showMessageDialog | ( | QObject * | owner, |
| const QString & | title, | ||
| const QString & | text, | ||
| int | buttons = kDefaultMessageDialogButtons, |
||
| QJSValue | acceptFunction = QJSValue(), |
||
| QJSValue | closeFunction = QJSValue() |
||
| ) |
Shows a simple message dialog. The dialog is parented to owner and will automatically close if the owner is destroyed, preventing orphaned dialogs that can cause crashes.
| owner | The QML item that owns this dialog. The dialog will be destroyed when this item is destroyed. Typically mainWindow should not be used as the owner, instead use a more specific item such as the one that triggered the dialog to ensure proper cleanup. |
| title | Dialog title |
| text | Dialog message text |
| buttons | Dialog button flags (e.g. Dialog.Ok, Dialog.Yes | Dialog.No) |
| acceptFunction | Optional callback invoked when the dialog is accepted |
| closeFunction | Optional callback invoked when the dialog is closed |
Definition at line 304 of file QGroundControlQmlGlobal.cc.
References showMessageDialogRequested().
|
signal |
Referenced by showMessageDialog().
| bool QGroundControlQmlGlobal::singleFirmwareSupport | ( | void | ) |
Definition at line 195 of file QGroundControlQmlGlobal.cc.
References FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
Referenced by singleVehicleSupport().
| bool QGroundControlQmlGlobal::singleVehicleSupport | ( | void | ) |
Definition at line 200 of file QGroundControlQmlGlobal.cc.
References FirmwarePluginManager::instance(), singleFirmwareSupport(), and FirmwarePluginManager::supportedVehicleClasses().
| void QGroundControlQmlGlobal::startAPMArduCopterMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 135 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduCopterMockLink().
| void QGroundControlQmlGlobal::startAPMArduPlaneMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 146 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduPlaneMockLink().
| void QGroundControlQmlGlobal::startAPMArduRoverMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 168 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduRoverMockLink().
| void QGroundControlQmlGlobal::startAPMArduSubMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 157 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduSubMockLink().
| void QGroundControlQmlGlobal::startGenericMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 124 of file QGroundControlQmlGlobal.cc.
References MockLink::startGenericMockLink().
| void QGroundControlQmlGlobal::startPX4MockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 113 of file QGroundControlQmlGlobal.cc.
References MockLink::startPX4MockLink().
| void QGroundControlQmlGlobal::stopOneMockLink | ( | void | ) |
Definition at line 179 of file QGroundControlQmlGlobal.cc.
References MockLink::disconnect().
| QString QGroundControlQmlGlobal::telemetryFileExtension | ( | void | ) | const |
Definition at line 330 of file QGroundControlQmlGlobal.cc.
References AppSettings::telemetryFileExtension.
|
static |
Returns the hierarchical list of available logging category names.
Definition at line 350 of file QGroundControlQmlGlobal.cc.
References QGCLoggingCategoryManager::instance(), and QGCLoggingCategoryManager::treeCategoryModel().
|
inline |
Definition at line 176 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 169 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 182 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 180 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 185 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 184 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 183 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 186 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 181 of file QGroundControlQmlGlobal.h.
|
staticconstexpr |
Definition at line 47 of file QGroundControlQmlGlobal.h.
Definition at line 108 of file QGroundControlQmlGlobal.h.
Referenced by QGroundControlQmlGlobal(), and saveBoolGlobalSetting().