3#include <QtCore/QObject>
4#include <QtCore/QVariant>
5#include <QtQmlIntegration/QtQmlIntegration>
21 Q_PROPERTY(QVariantList airframeTypes MEMBER _airframeTypes CONSTANT)
23 Q_PROPERTY(QString currentAirframeType MEMBER _currentAirframeType CONSTANT)
24 Q_PROPERTY(QString currentVehicleName MEMBER _currentVehicleName CONSTANT)
25 Q_PROPERTY(
int currentVehicleIndex MEMBER _currentVehicleIndex CONSTANT)
29 Q_INVOKABLE
void changeAutostart(
void);
39 void _waitParamWriteSignal(QVariant value);
40 void _rebootAfterStackUnwind(
void);
43 static bool _typesRegistered;
45 QVariantList _airframeTypes;
46 QString _currentAirframeType;
47 QString _currentVehicleName;
48 int _currentVehicleIndex;
50 bool _showCustomConfigPanel;
51 int _waitParamWriteSignalCount;
61 Airframe(
const QString& name,
int autostartId, QObject* parent =
nullptr);
64 Q_PROPERTY(QString text MEMBER _name CONSTANT)
79 AirframeType(
const QString& name,
const QString& imageResource, QObject* parent =
nullptr);
83 Q_PROPERTY(QString imageResource MEMBER _imageResource
CONSTANT)
84 Q_PROPERTY(QVariantList airframes MEMBER _airframes
CONSTANT)
90 QString _imageResource;
91 QVariantList _airframes;
MVC Controller for AirframeComponent.qml.
void showCustomConfigPanelChanged(bool show)
bool showCustomConfigPanel MEMBER _showCustomConfigPanel NOTIFY showCustomConfigPanelChanged(QVariantList airframeTypes MEMBER _airframeTypes CONSTANT) 1(QString currentAirframeType MEMBER _currentAirframeType CONSTANT) 1(QString currentVehicleName MEMBER _currentVehicleName CONSTANT) 1(int currentVehicleIndex MEMBER _currentVehicleIndex CONSTANT) 1(int autostartId MEMBER _autostartId NOTIFY autostartIdChanged) 1 void changeAutostart(void)
AirframeComponentController(void)
void autostartIdChanged(int newAutostartId)
int currentAirframeIndex(void)
~AirframeComponentController()
void setCurrentAirframeIndex(int newIndex)
QString name MEMBER _name CONSTANT(QString imageResource MEMBER _imageResource CONSTANT) 1(QVariantList airframes MEMBER _airframes CONSTANT) void addAirframe(const QString &name
QString name MEMBER _name int autostartId
QString text MEMBER _name CONSTANT(int autostartId MEMBER _autostartId CONSTANT) private int _autostartId
Used for handling missing Facts from C++ code.