#include <QGroundControlQmlGlobal.h>
|
| | 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 | startMockLink (const QVariantMap &properties) |
| | Starts a MockLink whose MockConfiguration properties are set from the map (e.g. { name: "PX4", firmware: 12 })
|
| |
| 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 () |
| |
| QObject * | serialPortManager () const |
| |
| LinkManager * | linkManager () |
| |
| MultiVehicleManager * | multiVehicleManager () |
| |
| QGCMapEngineManager * | mapEngineManager () |
| |
| PositionManager * | positionManager () const |
| |
| MissionCommandTree * | missionCommandTree () |
| |
| MAVLinkSigningKeys * | mavlinkSigningKeys () |
| |
| VideoManager * | videoManager () |
| |
| QGCCorePlugin * | corePlugin () |
| |
| SettingsManager * | settingsManager () |
| |
| GPSManager * | gpsManager () const |
| |
| ADSBVehicleManager * | adsbVehicleManager () |
| |
| QmlUnitsConversion * | unitsConversion () |
| |
| qreal | zOrderTopMost () |
| |
| qreal | zOrderWidgets () |
| |
| qreal | zOrderMapItems () |
| |
| qreal | zOrderWaypointIndicators () |
| |
| qreal | zOrderVehicles () |
| |
| qreal | zOrderTrajectoryLines () |
| |
| qreal | zOrderWaypointLines () |
| |
| 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 |
| |
Definition at line 39 of file QGroundControlQmlGlobal.h.
◆ AltitudeFrame
| Enumerator |
|---|
| AltitudeFrameMixed | |
| AltitudeFrameRelative | |
| AltitudeFrameAbsolute | |
| AltitudeFrameCalcAboveTerrain | |
| AltitudeFrameTerrain | |
| AltitudeFrameNone | |
Definition at line 51 of file QGroundControlQmlGlobal.h.
◆ QGroundControlQmlGlobal()
| QGroundControlQmlGlobal::QGroundControlQmlGlobal |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~QGroundControlQmlGlobal()
| QGroundControlQmlGlobal::~QGroundControlQmlGlobal |
( |
| ) |
|
◆ adsbVehicleManager()
◆ altitudeFrameExtraUnits()
| QString QGroundControlQmlGlobal::altitudeFrameExtraUnits |
( |
AltitudeFrame |
altFrame | ) |
|
◆ altitudeFrameShortDescription()
| QString QGroundControlQmlGlobal::altitudeFrameShortDescription |
( |
AltitudeFrame |
altFrame | ) |
|
◆ apmFirmwareSupported()
| bool QGroundControlQmlGlobal::apmFirmwareSupported |
( |
| ) |
|
◆ appName()
| QString QGroundControlQmlGlobal::appName |
( |
| ) |
|
|
static |
◆ bigSizeToString()
| QString QGroundControlQmlGlobal::bigSizeToString |
( |
quint64 |
size | ) |
|
|
static |
◆ copyToClipboard()
| void QGroundControlQmlGlobal::copyToClipboard |
( |
const QString & |
text | ) |
|
|
static |
◆ corePlugin()
◆ elevationProviderName()
| QString QGroundControlQmlGlobal::elevationProviderName |
( |
| ) |
|
◆ elevationProviderNotice()
| QString QGroundControlQmlGlobal::elevationProviderNotice |
( |
| ) |
|
◆ flightMapPosition()
| static QGeoCoordinate QGroundControlQmlGlobal::flightMapPosition |
( |
| ) |
|
|
inlinestatic |
◆ flightMapPositionChanged
| void QGroundControlQmlGlobal::flightMapPositionChanged |
( |
QGeoCoordinate |
flightMapPosition | ) |
|
|
signal |
◆ flightMapZoom()
| static double QGroundControlQmlGlobal::flightMapZoom |
( |
| ) |
|
|
inlinestatic |
◆ flightMapZoomChanged
| void QGroundControlQmlGlobal::flightMapZoomChanged |
( |
double |
flightMapZoom | ) |
|
|
signal |
◆ gpsManager()
| GPSManager * QGroundControlQmlGlobal::gpsManager |
( |
| ) |
const |
◆ isMultiplexingEnabledChanged
| void QGroundControlQmlGlobal::isMultiplexingEnabledChanged |
( |
bool |
enabled | ) |
|
|
signal |
◆ linesIntersect()
| bool QGroundControlQmlGlobal::linesIntersect |
( |
QPointF |
xLine1, |
|
|
QPointF |
yLine1, |
|
|
QPointF |
xLine2, |
|
|
QPointF |
yLine2 |
|
) |
| |
◆ linkManager()
◆ loadBoolGlobalSetting()
| bool QGroundControlQmlGlobal::loadBoolGlobalSetting |
( |
const QString & |
key, |
|
|
bool |
defaultValue |
|
) |
| |
◆ loadGlobalSetting()
| QString QGroundControlQmlGlobal::loadGlobalSetting |
( |
const QString & |
key, |
|
|
const QString & |
defaultValue |
|
) |
| |
◆ mapEngineManager()
◆ mavlinkSigningKeys()
◆ mavlinkSystemIDChanged
| void QGroundControlQmlGlobal::mavlinkSystemIDChanged |
( |
int |
id | ) |
|
|
signal |
◆ missionCommandTree()
◆ multiVehicleManager()
◆ newStableVersion()
| QString QGroundControlQmlGlobal::newStableVersion |
( |
| ) |
|
|
static |
◆ newStableVersionChanged
| void QGroundControlQmlGlobal::newStableVersionChanged |
( |
| ) |
|
|
signal |
◆ parameterFileExtension()
| QString QGroundControlQmlGlobal::parameterFileExtension |
( |
void |
| ) |
const |
◆ positionManager()
◆ px4ProFirmwareSupported()
| bool QGroundControlQmlGlobal::px4ProFirmwareSupported |
( |
| ) |
|
◆ qgcAppDate()
| QString QGroundControlQmlGlobal::qgcAppDate |
( |
| ) |
|
|
static |
◆ qgcDailyBuild()
| static bool QGroundControlQmlGlobal::qgcDailyBuild |
( |
| ) |
|
|
inlinestatic |
◆ qgcVersion()
| QString QGroundControlQmlGlobal::qgcVersion |
( |
void |
| ) |
|
|
static |
◆ saveBoolGlobalSetting()
| void QGroundControlQmlGlobal::saveBoolGlobalSetting |
( |
const QString & |
key, |
|
|
bool |
value |
|
) |
| |
◆ saveGlobalSetting()
| void QGroundControlQmlGlobal::saveGlobalSetting |
( |
const QString & |
key, |
|
|
const QString & |
value |
|
) |
| |
◆ serialPortManager()
| QObject * QGroundControlQmlGlobal::serialPortManager |
( |
| ) |
const |
◆ setFlightMapPosition()
| void QGroundControlQmlGlobal::setFlightMapPosition |
( |
QGeoCoordinate & |
coordinate | ) |
|
◆ setFlightMapZoom()
| void QGroundControlQmlGlobal::setFlightMapZoom |
( |
double |
zoom | ) |
|
◆ settingsManager()
◆ showMessageDialog()
| 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.
- Parameters
-
| 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 284 of file QGroundControlQmlGlobal.cc.
References showMessageDialogRequested().
◆ showMessageDialogRequested
| void QGroundControlQmlGlobal::showMessageDialogRequested |
( |
QObject * |
owner, |
|
|
QString |
title, |
|
|
QString |
text, |
|
|
int |
buttons, |
|
|
QJSValue |
acceptFunction, |
|
|
QJSValue |
closeFunction |
|
) |
| |
|
signal |
◆ singleFirmwareSupport()
| bool QGroundControlQmlGlobal::singleFirmwareSupport |
( |
void |
| ) |
|
◆ singleVehicleSupport()
| bool QGroundControlQmlGlobal::singleVehicleSupport |
( |
void |
| ) |
|
◆ startMockLink()
| void QGroundControlQmlGlobal::startMockLink |
( |
const QVariantMap & |
properties | ) |
|
◆ stopOneMockLink()
| void QGroundControlQmlGlobal::stopOneMockLink |
( |
void |
| ) |
|
◆ telemetryFileExtension()
| QString QGroundControlQmlGlobal::telemetryFileExtension |
( |
void |
| ) |
const |
◆ testAudioOutput()
| void QGroundControlQmlGlobal::testAudioOutput |
( |
| ) |
|
◆ unitsConversion()
◆ videoManager()
◆ zOrderMapItems()
| qreal QGroundControlQmlGlobal::zOrderMapItems |
( |
| ) |
|
|
inline |
◆ zOrderTopMost()
| qreal QGroundControlQmlGlobal::zOrderTopMost |
( |
| ) |
|
|
inline |
◆ zOrderTrajectoryLines()
| qreal QGroundControlQmlGlobal::zOrderTrajectoryLines |
( |
| ) |
|
|
inline |
◆ zOrderVehicles()
| qreal QGroundControlQmlGlobal::zOrderVehicles |
( |
| ) |
|
|
inline |
◆ zOrderWaypointIndicators()
| qreal QGroundControlQmlGlobal::zOrderWaypointIndicators |
( |
| ) |
|
|
inline |
◆ zOrderWaypointLines()
| qreal QGroundControlQmlGlobal::zOrderWaypointLines |
( |
| ) |
|
|
inline |
◆ zOrderWidgets()
| qreal QGroundControlQmlGlobal::zOrderWidgets |
( |
| ) |
|
|
inline |
◆ kDefaultMessageDialogButtons
| constexpr int QGroundControlQmlGlobal::kDefaultMessageDialogButtons = 0x00000400 |
|
staticconstexpr |
The documentation for this class was generated from the following files: