|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGroundControlQmlGlobal.h>
Inheritance diagram for QGroundControlQmlGlobal:
Collaboration diagram for QGroundControlQmlGlobal:Public Types | |
| enum | AltitudeFrame { AltitudeFrameMixed , AltitudeFrameRelative , AltitudeFrameAbsolute , AltitudeFrameCalcAboveTerrain , AltitudeFrameTerrain , AltitudeFrameNone } |
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) |
Public Member Functions | |
| QGroundControlQmlGlobal (QObject *parent=nullptr) | |
| ~QGroundControlQmlGlobal () | |
| Q_INVOKABLE void | saveGlobalSetting (const QString &key, const QString &value) |
| Q_INVOKABLE QString | loadGlobalSetting (const QString &key, const QString &defaultValue) |
| Q_INVOKABLE void | saveBoolGlobalSetting (const QString &key, bool value) |
| Q_INVOKABLE bool | loadBoolGlobalSetting (const QString &key, bool defaultValue) |
| Q_INVOKABLE void | startPX4MockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | startGenericMockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | startAPMArduCopterMockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | startAPMArduPlaneMockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | startAPMArduSubMockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | startAPMArduRoverMockLink (bool sendStatusText, bool enableCamera, bool enableGimbal) |
| Q_INVOKABLE void | stopOneMockLink (void) |
| Q_INVOKABLE bool | linesIntersect (QPointF xLine1, QPointF yLine1, QPointF xLine2, QPointF yLine2) |
| Q_INVOKABLE QString | altitudeFrameExtraUnits (AltitudeFrame altFrame) |
| String shown in the FactTextField.extraUnits ui. | |
| Q_INVOKABLE QString | altitudeFrameShortDescription (AltitudeFrame altFrame) |
| String shown when a user needs to select an altitude frame. | |
| Q_INVOKABLE void | showMessageDialog (QObject *owner, const QString &title, const QString &text, int buttons=kDefaultMessageDialogButtons, QJSValue acceptFunction=QJSValue(), QJSValue closeFunction=QJSValue()) |
| Q_INVOKABLE void | testAudioOutput () |
| LinkManager * | linkManager () |
| MultiVehicleManager * | multiVehicleManager () |
| QGCMapEngineManager * | mapEngineManager () |
| QGCPositionManager * | qgcPositionManger () |
| MissionCommandTree * | missionCommandTree () |
| MAVLinkSigningKeys * | mavlinkSigningKeys () |
| VideoManager * | videoManager () |
| QGCCorePlugin * | corePlugin () |
| SettingsManager * | settingsManager () |
| FactGroup * | gpsRtkFactGroup () |
| ADSBVehicleManager * | adsbVehicleManager () |
| NTRIPManager * | ntripManager () |
| QmlUnitsConversion * | unitsConversion () |
| qreal | zOrderTopMost () |
| qreal | zOrderWidgets () |
| qreal | zOrderMapItems () |
| qreal | zOrderWaypointIndicators () |
| qreal | zOrderVehicles () |
| qreal | zOrderTrajectoryLines () |
| qreal | zOrderWaypointLines () |
| bool | hasAPMSupport () |
| QString | elevationProviderName () |
| QString | elevationProviderNotice () |
| bool | singleFirmwareSupport () |
| bool | singleVehicleSupport () |
| bool | px4ProFirmwareSupported () |
| bool | apmFirmwareSupported () |
| void | setFlightMapPosition (QGeoCoordinate &coordinate) |
| void | setFlightMapZoom (double zoom) |
| QString | parameterFileExtension (void) const |
| QString | telemetryFileExtension (void) const |
Static Public Member Functions | |
| static Q_INVOKABLE void | copyToClipboard (const QString &text) |
| Copy text to the system clipboard. | |
| static QString | appName () |
| static QGeoCoordinate | flightMapPosition () |
| static double | flightMapZoom () |
| static QString | qgcVersion () |
| static QString | qgcAppDate () |
| static bool | qgcDailyBuild () |
Static Public Attributes | |
| static constexpr int | kDefaultMessageDialogButtons = 0x00000400 |
Definition at line 41 of file QGroundControlQmlGlobal.h.
| Enumerator | |
|---|---|
| AltitudeFrameMixed | |
| AltitudeFrameRelative | |
| AltitudeFrameAbsolute | |
| AltitudeFrameCalcAboveTerrain | |
| AltitudeFrameTerrain | |
| AltitudeFrameNone | |
Definition at line 53 of file QGroundControlQmlGlobal.h.
|
explicit |
Definition at line 40 of file QGroundControlQmlGlobal.cc.
References flightMapPositionChanged(), and flightMapZoomChanged().
| QGroundControlQmlGlobal::~QGroundControlQmlGlobal | ( | ) |
Definition at line 89 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 169 of file QGroundControlQmlGlobal.h.
| QString QGroundControlQmlGlobal::altitudeFrameExtraUnits | ( | AltitudeFrame | altFrame | ) |
String shown in the FactTextField.extraUnits ui.
Definition at line 268 of file QGroundControlQmlGlobal.cc.
References AltitudeFrameAbsolute, AltitudeFrameCalcAboveTerrain, AltitudeFrameMixed, AltitudeFrameNone, AltitudeFrameRelative, and AltitudeFrameTerrain.
Referenced by altitudeFrameShortDescription().
| QString QGroundControlQmlGlobal::altitudeFrameShortDescription | ( | AltitudeFrame | altFrame | ) |
String shown when a user needs to select an altitude frame.
Definition at line 289 of file QGroundControlQmlGlobal.cc.
References AltitudeFrameAbsolute, AltitudeFrameCalcAboveTerrain, altitudeFrameExtraUnits(), AltitudeFrameMixed, AltitudeFrameNone, AltitudeFrameRelative, and AltitudeFrameTerrain.
| bool QGroundControlQmlGlobal::apmFirmwareSupported | ( | ) |
Definition at line 222 of file QGroundControlQmlGlobal.cc.
References QGCMAVLink::FirmwareClassArduPilot, FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
|
static |
Definition at line 351 of file QGroundControlQmlGlobal.cc.
|
static |
Copy text to the system clipboard.
Definition at line 326 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 164 of file QGroundControlQmlGlobal.h.
| QString QGroundControlQmlGlobal::elevationProviderName | ( | ) |
Definition at line 331 of file QGroundControlQmlGlobal.cc.
References SettingsManager::flightMapSettings().
| QString QGroundControlQmlGlobal::elevationProviderNotice | ( | ) |
Definition at line 336 of file QGroundControlQmlGlobal.cc.
References SettingsManager::flightMapSettings().
|
inlinestatic |
Definition at line 172 of file QGroundControlQmlGlobal.h.
Referenced by setFlightMapPosition().
|
signal |
Referenced by QGroundControlQmlGlobal(), and setFlightMapPosition().
|
inlinestatic |
Definition at line 173 of file QGroundControlQmlGlobal.h.
Referenced by setFlightMapZoom().
|
signal |
Referenced by QGroundControlQmlGlobal(), and setFlightMapZoom().
|
inline |
Definition at line 167 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 186 of file QGroundControlQmlGlobal.h.
|
signal |
| bool QGroundControlQmlGlobal::linesIntersect | ( | QPointF | xLine1, |
| QPointF | yLine1, | ||
| QPointF | xLine2, | ||
| QPointF | yLine2 | ||
| ) |
Definition at line 227 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 157 of file QGroundControlQmlGlobal.h.
| bool QGroundControlQmlGlobal::loadBoolGlobalSetting | ( | const QString & | key, |
| bool | defaultValue | ||
| ) |
Definition at line 114 of file QGroundControlQmlGlobal.cc.
| QString QGroundControlQmlGlobal::loadGlobalSetting | ( | const QString & | key, |
| const QString & | defaultValue | ||
| ) |
Definition at line 100 of file QGroundControlQmlGlobal.cc.
|
inline |
Definition at line 159 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 162 of file QGroundControlQmlGlobal.h.
|
signal |
|
inline |
Definition at line 161 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 158 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 170 of file QGroundControlQmlGlobal.h.
| QString QGroundControlQmlGlobal::parameterFileExtension | ( | void | ) | const |
Definition at line 341 of file QGroundControlQmlGlobal.cc.
References AppSettings::parameterFileExtension.
| bool QGroundControlQmlGlobal::px4ProFirmwareSupported | ( | ) |
Definition at line 217 of file QGroundControlQmlGlobal.cc.
References QGCMAVLink::FirmwareClassPX4, FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
|
inlinestatic |
Definition at line 204 of file QGroundControlQmlGlobal.h.
References ObjectListModelBase::index().
|
inlinestatic |
Definition at line 208 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 160 of file QGroundControlQmlGlobal.h.
|
static |
Definition at line 254 of file QGroundControlQmlGlobal.cc.
| void QGroundControlQmlGlobal::saveBoolGlobalSetting | ( | const QString & | key, |
| bool | value | ||
| ) |
Definition at line 107 of file QGroundControlQmlGlobal.cc.
| void QGroundControlQmlGlobal::saveGlobalSetting | ( | const QString & | key, |
| const QString & | value | ||
| ) |
Definition at line 93 of file QGroundControlQmlGlobal.cc.
| void QGroundControlQmlGlobal::setFlightMapPosition | ( | QGeoCoordinate & | coordinate | ) |
Definition at line 237 of file QGroundControlQmlGlobal.cc.
References flightMapPosition(), and flightMapPositionChanged().
| void QGroundControlQmlGlobal::setFlightMapZoom | ( | double | zoom | ) |
Definition at line 246 of file QGroundControlQmlGlobal.cc.
References flightMapZoom(), and flightMapZoomChanged().
|
inline |
Definition at line 165 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 310 of file QGroundControlQmlGlobal.cc.
References showMessageDialogRequested().
|
signal |
Referenced by showMessageDialog().
| bool QGroundControlQmlGlobal::singleFirmwareSupport | ( | void | ) |
Definition at line 203 of file QGroundControlQmlGlobal.cc.
References FirmwarePluginManager::instance(), and FirmwarePluginManager::supportedFirmwareClasses().
Referenced by singleVehicleSupport().
| bool QGroundControlQmlGlobal::singleVehicleSupport | ( | void | ) |
Definition at line 208 of file QGroundControlQmlGlobal.cc.
References FirmwarePluginManager::instance(), singleFirmwareSupport(), and FirmwarePluginManager::supportedVehicleClasses().
| void QGroundControlQmlGlobal::startAPMArduCopterMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 143 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduCopterMockLink().
| void QGroundControlQmlGlobal::startAPMArduPlaneMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 154 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduPlaneMockLink().
| void QGroundControlQmlGlobal::startAPMArduRoverMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 176 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduRoverMockLink().
| void QGroundControlQmlGlobal::startAPMArduSubMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 165 of file QGroundControlQmlGlobal.cc.
References MockLink::startAPMArduSubMockLink().
| void QGroundControlQmlGlobal::startGenericMockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 132 of file QGroundControlQmlGlobal.cc.
References MockLink::startGenericMockLink().
| void QGroundControlQmlGlobal::startPX4MockLink | ( | bool | sendStatusText, |
| bool | enableCamera, | ||
| bool | enableGimbal | ||
| ) |
Definition at line 121 of file QGroundControlQmlGlobal.cc.
References MockLink::startPX4MockLink().
| void QGroundControlQmlGlobal::stopOneMockLink | ( | void | ) |
Definition at line 187 of file QGroundControlQmlGlobal.cc.
References MockLink::disconnect(), LinkManager::instance(), and LinkManager::links().
| QString QGroundControlQmlGlobal::telemetryFileExtension | ( | void | ) | const |
Definition at line 346 of file QGroundControlQmlGlobal.cc.
References AppSettings::telemetryFileExtension.
| void QGroundControlQmlGlobal::testAudioOutput | ( | ) |
Definition at line 321 of file QGroundControlQmlGlobal.cc.
References AudioOutput::instance(), and AudioOutput::testAudioOutput().
|
inline |
Definition at line 171 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 163 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 177 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 175 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 180 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 179 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 178 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 181 of file QGroundControlQmlGlobal.h.
|
inline |
Definition at line 176 of file QGroundControlQmlGlobal.h.
|
staticconstexpr |
Definition at line 48 of file QGroundControlQmlGlobal.h.