|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <InstrumentValueData.h>
Inheritance diagram for InstrumentValueData:
Collaboration diagram for InstrumentValueData:Public Types | |
| enum | RangeType { NoRangeInfo = 0 , ColorRange , OpacityRange , IconSelectRange } |
Signals | |
| void | factChanged (Fact *fact) |
| void | factNameChanged (const QString &factName) |
| void | factGroupNameChanged (const QString &factGroup) |
| void | textChanged (QString text) |
| void | showUnitsChanged (bool showUnits) |
| void | iconChanged (const QString &icon) |
| void | factGroupNamesChanged (void) |
| void | factValueNamesChanged (void) |
| void | rangeTypeChanged (RangeType rangeType) |
| void | rangeValuesChanged (const QVariantList &rangeValues) |
| void | rangeColorsChanged (const QVariantList &rangeColors) |
| void | rangeIconsChanged (const QVariantList &rangeIcons) |
| void | rangeOpacitiesChanged (const QVariantList &rangeOpacities) |
| void | currentColorChanged (const QColor ¤tColor) |
| void | currentOpacityChanged (double currentOpacity) |
| void | currentIconChanged (const QString ¤tIcon) |
Public Member Functions | |
| InstrumentValueData (FactValueGrid *factValueGrid, QObject *parent) | |
| FactValueGrid *factValueGrid MEMBER _factValueGrid | CONSTANT (QStringList factGroupNames READ factGroupNames NOTIFY factGroupNamesChanged) 1(QStringList factValueNames READ factValueNames NOTIFY factValueNamesChanged) 1(QString factGroupName READ factGroupName NOTIFY factGroupNameChanged) 1(QString factName READ factName NOTIFY factNameChanged) 1(Fact *fact READ fact NOTIFY factChanged) 1(QString text READ text WRITE setText NOTIFY textChanged) 1(QString icon READ icon WRITE setIcon NOTIFY iconChanged) 1(bool showUnits READ showUnits WRITE setShowUnits NOTIFY showUnitsChanged) 1(QStringList rangeTypeNames MEMBER _rangeTypeNames CONSTANT) 1(RangeType rangeType READ rangeType WRITE setRangeType NOTIFY rangeTypeChanged) 1(QVariantList rangeValues READ rangeValues WRITE setRangeValues NOTIFY rangeValuesChanged) 1(QVariantList rangeColors READ rangeColors WRITE setRangeColors NOTIFY rangeColorsChanged) 1(QVariantList rangeIcons READ rangeIcons WRITE setRangeIcons NOTIFY rangeIconsChanged) 1(QVariantList rangeOpacities READ rangeOpacities WRITE setRangeOpacities NOTIFY rangeOpacitiesChanged) 1(QColor currentColor MEMBER _currentColor NOTIFY currentColorChanged) 1(double currentOpacity MEMBER _currentOpacity NOTIFY currentOpacityChanged) 1(QString currentIcon MEMBER _currentIcon NOTIFY currentIconChanged) 1 void setFact(const QString &factGroupName |
| < If !isEmpty icon will be show instead of label | |
| void | clearFact (void) |
| bool | isValidColor (const QColor &color) |
| QColor | invalidColor (void) |
| void | addRangeValue (void) |
| void | removeRangeValue (int index) |
| QStringList | factGroupNames (void) const |
| QStringList | factValueNames (void) const |
| QString | factGroupName (void) const |
| QString | factName (void) const |
| Fact * | fact (void) const |
| QString | text (void) const |
| bool | showUnits (void) const |
| QString | icon (void) const |
| RangeType | rangeType (void) const |
| QVariantList | rangeValues (void) const |
| QVariantList | rangeColors (void) const |
| QVariantList | rangeIcons (void) const |
| QVariantList | rangeOpacities (void) const |
| void | setText (const QString &text) |
| void | setShowUnits (bool showUnits) |
| void | setIcon (const QString &icon) |
| void | setRangeType (RangeType rangeType) |
| void | setRangeValues (const QVariantList &rangeValues) |
| void | setRangeColors (const QVariantList &rangeColors) |
| void | setRangeIcons (const QVariantList &rangeIcons) |
| void | setRangeOpacities (const QVariantList &rangeOpacities) |
Public Attributes | |
| FactValueGrid *factValueGrid MEMBER _factValueGrid const QString & | factName |
Static Public Attributes | |
| static constexpr const char * | vehicleFactGroupName = "Vehicle" |
Definition at line 12 of file InstrumentValueData.h.
| Enumerator | |
|---|---|
| NoRangeInfo | |
| ColorRange | |
| OpacityRange | |
| IconSelectRange | |
Definition at line 18 of file InstrumentValueData.h.
|
explicit |
Definition at line 17 of file InstrumentValueData.cc.
References FactGroup::factGroupNamesChanged(), factGroupNamesChanged(), rangeColorsChanged(), rangeIconsChanged(), rangeOpacitiesChanged(), rangeTypeChanged(), and rangeValuesChanged().
| void InstrumentValueData::addRangeValue | ( | void | ) |
Definition at line 196 of file InstrumentValueData.cc.
References ColorRange, FactValueGrid::iconNames(), IconSelectRange, NoRangeInfo, OpacityRange, rangeColorsChanged(), rangeIconsChanged(), rangeOpacitiesChanged(), and rangeValuesChanged().
| void InstrumentValueData::clearFact | ( | void | ) |
Definition at line 47 of file InstrumentValueData.cc.
References factChanged(), factGroupNameChanged(), factNameChanged(), factValueNamesChanged(), iconChanged(), showUnitsChanged(), and textChanged().
| FactValueGrid *factValueGrid MEMBER _factValueGrid InstrumentValueData::CONSTANT | ( | QStringList factGroupNames READ factGroupNames NOTIFY | factGroupNamesChanged | ) | const & |
< If !isEmpty icon will be show instead of label
|
signal |
|
signal |
|
signal |
|
inline |
Definition at line 58 of file InstrumentValueData.h.
Referenced by SubtitleWriter::startCapturingTelemetry().
|
signal |
Referenced by clearFact().
|
inline |
Definition at line 56 of file InstrumentValueData.h.
|
signal |
Referenced by clearFact().
| QStringList InstrumentValueData::factGroupNames | ( | void | ) | const |
Definition at line 325 of file InstrumentValueData.cc.
References vehicleFactGroupName.
|
signal |
Referenced by InstrumentValueData().
|
inline |
Definition at line 57 of file InstrumentValueData.h.
|
signal |
Referenced by clearFact().
| QStringList InstrumentValueData::factValueNames | ( | void | ) | const |
Definition at line 337 of file InstrumentValueData.cc.
References vehicleFactGroupName.
|
signal |
Referenced by clearFact().
|
inline |
Definition at line 61 of file InstrumentValueData.h.
Referenced by setIcon().
|
signal |
Referenced by clearFact(), and setIcon().
|
inline |
Definition at line 50 of file InstrumentValueData.h.
|
inline |
Definition at line 49 of file InstrumentValueData.h.
|
inline |
Definition at line 64 of file InstrumentValueData.h.
Referenced by setRangeColors().
|
signal |
Referenced by addRangeValue(), InstrumentValueData(), removeRangeValue(), and setRangeColors().
|
inline |
Definition at line 65 of file InstrumentValueData.h.
Referenced by setRangeIcons().
|
signal |
Referenced by addRangeValue(), InstrumentValueData(), removeRangeValue(), and setRangeIcons().
|
inline |
Definition at line 66 of file InstrumentValueData.h.
Referenced by setRangeOpacities().
|
signal |
Referenced by addRangeValue(), InstrumentValueData(), removeRangeValue(), and setRangeOpacities().
|
inline |
Definition at line 62 of file InstrumentValueData.h.
Referenced by setRangeType().
|
signal |
Referenced by InstrumentValueData(), and setRangeType().
|
inline |
Definition at line 63 of file InstrumentValueData.h.
Referenced by setRangeValues().
|
signal |
Referenced by addRangeValue(), InstrumentValueData(), removeRangeValue(), and setRangeValues().
| void InstrumentValueData::removeRangeValue | ( | int | index | ) |
Definition at line 220 of file InstrumentValueData.cc.
References ColorRange, IconSelectRange, NoRangeInfo, OpacityRange, rangeColorsChanged(), rangeIconsChanged(), rangeOpacitiesChanged(), and rangeValuesChanged().
| void InstrumentValueData::setIcon | ( | const QString & | icon | ) |
Definition at line 124 of file InstrumentValueData.cc.
References icon(), and iconChanged().
| void InstrumentValueData::setRangeColors | ( | const QVariantList & | rangeColors | ) |
Definition at line 146 of file InstrumentValueData.cc.
References rangeColors(), and rangeColorsChanged().
| void InstrumentValueData::setRangeIcons | ( | const QVariantList & | rangeIcons | ) |
Definition at line 152 of file InstrumentValueData.cc.
References rangeIcons(), and rangeIconsChanged().
| void InstrumentValueData::setRangeOpacities | ( | const QVariantList & | rangeOpacities | ) |
Definition at line 158 of file InstrumentValueData.cc.
References rangeOpacities(), and rangeOpacitiesChanged().
| void InstrumentValueData::setRangeType | ( | RangeType | rangeType | ) |
Definition at line 132 of file InstrumentValueData.cc.
References rangeType(), and rangeTypeChanged().
| void InstrumentValueData::setRangeValues | ( | const QVariantList & | rangeValues | ) |
Definition at line 140 of file InstrumentValueData.cc.
References rangeValues(), and rangeValuesChanged().
| void InstrumentValueData::setShowUnits | ( | bool | showUnits | ) |
Definition at line 116 of file InstrumentValueData.cc.
References showUnits(), and showUnitsChanged().
| void InstrumentValueData::setText | ( | const QString & | text | ) |
Definition at line 108 of file InstrumentValueData.cc.
References text(), and textChanged().
|
inline |
Definition at line 60 of file InstrumentValueData.h.
Referenced by setShowUnits().
|
signal |
Referenced by clearFact(), and setShowUnits().
|
inline |
Definition at line 59 of file InstrumentValueData.h.
Referenced by setText().
|
signal |
Referenced by clearFact(), and setText().
| FactValueGrid *factValueGrid MEMBER _factValueGrid const QString& InstrumentValueData::factName |
Definition at line 47 of file InstrumentValueData.h.
|
staticconstexpr |
Definition at line 76 of file InstrumentValueData.h.
Referenced by factGroupNames(), and factValueNames().