#include <InstrumentValueData.h>
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) | |
| If !isEmpty icon will be show instead of label. | |
| Q_INVOKABLE void | setFact (const QString &factGroupName, const QString &factName) |
| Q_INVOKABLE void | clearFact (void) |
| Q_INVOKABLE bool | isValidColor (const QColor &color) |
| Q_INVOKABLE QColor | invalidColor (void) |
| Q_INVOKABLE void | addRangeValue (void) |
| Q_INVOKABLE 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) |
Static Public Attributes | |
| static constexpr const char * | vehicleFactGroupName = "Vehicle" |
Definition at line 15 of file InstrumentValueData.h.
| Enumerator | |
|---|---|
| NoRangeInfo | |
| ColorRange | |
| OpacityRange | |
| IconSelectRange | |
Definition at line 23 of file InstrumentValueData.h.
|
explicit |
If !isEmpty icon will be show instead of label.
Definition at line 11 of file InstrumentValueData.cc.
| void InstrumentValueData::addRangeValue | ( | void | ) |
Definition at line 196 of file InstrumentValueData.cc.
References ColorRange, 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().
|
signal |
|
signal |
References NoRangeInfo.
|
signal |
|
inline |
Definition at line 63 of file InstrumentValueData.h.
Referenced by factChanged(), and FactValueGrid::layoutFacts().
|
signal |
References fact().
Referenced by clearFact().
|
inline |
Definition at line 61 of file InstrumentValueData.h.
Referenced by FactValueGrid::layoutFacts(), and setFact().
|
signal |
Referenced by clearFact().
| QStringList InstrumentValueData::factGroupNames | ( | void | ) | const |
Definition at line 325 of file InstrumentValueData.cc.
References vehicleFactGroupName.
|
signal |
|
inline |
Definition at line 62 of file InstrumentValueData.h.
Referenced by factNameChanged(), FactValueGrid::layoutFacts(), and setFact().
|
signal |
References factName().
Referenced by clearFact().
| QStringList InstrumentValueData::factValueNames | ( | void | ) | const |
Definition at line 337 of file InstrumentValueData.cc.
References FactGroup::factNames(), FactGroup::getFactGroup(), and vehicleFactGroupName.
|
signal |
Referenced by clearFact().
|
inline |
Definition at line 66 of file InstrumentValueData.h.
Referenced by iconChanged(), and setIcon().
|
signal |
References icon().
Referenced by clearFact(), and setIcon().
|
inline |
Definition at line 55 of file InstrumentValueData.h.
|
inline |
Definition at line 54 of file InstrumentValueData.h.
|
inline |
Definition at line 69 of file InstrumentValueData.h.
Referenced by rangeColorsChanged(), and setRangeColors().
|
signal |
References rangeColors().
Referenced by addRangeValue(), removeRangeValue(), and setRangeColors().
|
inline |
Definition at line 70 of file InstrumentValueData.h.
Referenced by rangeIconsChanged(), and setRangeIcons().
|
signal |
References rangeIcons().
Referenced by addRangeValue(), removeRangeValue(), and setRangeIcons().
|
inline |
Definition at line 71 of file InstrumentValueData.h.
Referenced by rangeOpacitiesChanged(), and setRangeOpacities().
|
signal |
References rangeOpacities().
Referenced by addRangeValue(), removeRangeValue(), and setRangeOpacities().
|
inline |
Definition at line 67 of file InstrumentValueData.h.
Referenced by rangeTypeChanged(), and setRangeType().
|
signal |
References rangeType().
Referenced by setRangeType().
|
inline |
Definition at line 68 of file InstrumentValueData.h.
Referenced by rangeValuesChanged(), and setRangeValues().
|
signal |
References rangeValues().
Referenced by addRangeValue(), 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::setFact | ( | const QString & | factGroupName, |
| const QString & | factName ) |
Definition at line 100 of file InstrumentValueData.cc.
References factGroupName(), and factName().
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
| 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 65 of file InstrumentValueData.h.
Referenced by setShowUnits(), and showUnitsChanged().
|
signal |
References showUnits().
Referenced by clearFact(), and setShowUnits().
|
inline |
Definition at line 64 of file InstrumentValueData.h.
Referenced by setText(), and textChanged().
|
signal |
References text().
Referenced by clearFact(), and setText().
|
staticconstexpr |
Definition at line 81 of file InstrumentValueData.h.
Referenced by factGroupNames(), factValueNames(), and TelemetryBarValues::read().