#include <FactValueGrid.h>
Classes | |
| struct | LayoutFact |
| A Fact a layout shows, named as InstrumentValueData names it. More... | |
Public Types | |
| enum | FontSize { DefaultFontSize =0 , SmallFontSize , MediumFontSize , LargeFontSize } |
Signals | |
| void | fontSizeChanged (FontSize fontSize) |
| void | columnsChanged (QmlObjectListModel *model) |
| void | rowCountChanged (int rowCount) |
| void | settingsGroupChanged (QString settingsGroup) |
| void | specificVehicleForCardChanged (Vehicle *vehicle) |
Public Member Functions | |
| FactValueGrid (QQuickItem *parent=nullptr) | |
| ~FactValueGrid () | |
| Q_INVOKABLE void | resetToDefaults (void) |
| < null means track active vehicle, set to specific vehicle to track a single vehicle and share settings with other cards | |
| Q_INVOKABLE QmlObjectListModel * | appendColumn (void) |
| Q_INVOKABLE void | deleteLastColumn (void) |
| Q_INVOKABLE void | appendRow (void) |
| Q_INVOKABLE void | deleteLastRow (void) |
| QmlObjectListModel * | columns (void) const |
| QString | settingsGroup (void) const |
| FontSize | fontSize (void) const |
| QStringList | iconNames (void) const |
| QGCMAVLinkTypes::VehicleClass_t | vehicleClass (void) const |
| Vehicle * | currentVehicle (void) const |
| Vehicle * | specificVehicleForCard (void) const |
| void | setFontSize (FontSize fontSize) |
| void | componentComplete (void) final |
Static Public Member Functions | |
| static QList< LayoutFact > | layoutFacts (const QString &settingsGroup) |
Protected Attributes | |
| QString | _settingsGroup |
| FontSize | _fontSize = DefaultFontSize |
| bool | _preventSaveSettings = false |
| QmlObjectListModel * | _columns = nullptr |
| int | _rowCount = 0 |
| Vehicle * | _specificVehicleForCard = nullptr |
| Vehicle * | _activeVehicle = nullptr |
Definition at line 27 of file FactValueGrid.h.
| Enumerator | |
|---|---|
| DefaultFontSize | |
| SmallFontSize | |
| MediumFontSize | |
| LargeFontSize | |
Definition at line 37 of file FactValueGrid.h.
| FactValueGrid::FactValueGrid | ( | QQuickItem * | parent = nullptr | ) |
Definition at line 23 of file FactValueGrid.cc.
References _columns.
Referenced by HorizontalFactValueGrid::HorizontalFactValueGrid(), layoutFacts(), and specificVehicleForCardChanged().
| FactValueGrid::~FactValueGrid | ( | ) |
Definition at line 124 of file FactValueGrid.cc.
| QmlObjectListModel * FactValueGrid::appendColumn | ( | void | ) |
Definition at line 253 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::append(), and rowCountChanged().
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
| void FactValueGrid::appendRow | ( | void | ) |
Definition at line 227 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::append(), and rowCountChanged().
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
|
inline |
Definition at line 61 of file FactValueGrid.h.
References _columns.
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
|
signal |
|
final |
Definition at line 39 of file FactValueGrid.cc.
References _activeVehicle, _specificVehicleForCard, MultiVehicleManager::activeVehicleChanged(), fontSizeChanged(), and MultiVehicleManager::instance().
|
inline |
Definition at line 66 of file FactValueGrid.h.
References _activeVehicle, and _specificVehicleForCard.
Referenced by vehicleClass().
| void FactValueGrid::deleteLastColumn | ( | void | ) |
Definition at line 274 of file FactValueGrid.cc.
References _columns.
| void FactValueGrid::deleteLastRow | ( | void | ) |
Definition at line 239 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::count(), QmlObjectListModel::removeAt(), and rowCountChanged().
|
inline |
Definition at line 63 of file FactValueGrid.h.
References _fontSize.
Referenced by fontSizeChanged(), and setFontSize().
|
signal |
References fontSize().
Referenced by componentComplete(), and setFontSize().
|
inline |
Definition at line 64 of file FactValueGrid.h.
|
static |
The Facts of the layout that grids of settings group settingsGroup show, saved or default, column by column, for the active vehicle (the offline editing vehicle without one): for code that reads a layout without showing a grid. Empty without a vehicle.
Definition at line 60 of file FactValueGrid.cc.
References _activeVehicle, _columns, _settingsGroup, MultiVehicleManager::activeVehicle(), QmlObjectListModel::count(), InstrumentValueData::fact(), InstrumentValueData::factGroupName(), InstrumentValueData::factName(), FactValueGrid(), MultiVehicleManager::instance(), MultiVehicleManager::offlineEditingVehicle(), settingsGroup(), and QmlObjectListModel::value().
Referenced by TelemetryBarValues::readLayout().
| void FactValueGrid::resetToDefaults | ( | void | ) |
< null means track active vehicle, set to specific vehicle to track a single vehicle and share settings with other cards
Definition at line 134 of file FactValueGrid.cc.
References _settingsGroup.
|
signal |
Referenced by appendColumn(), appendRow(), and deleteLastRow().
| void FactValueGrid::setFontSize | ( | FontSize | fontSize | ) |
Definition at line 146 of file FactValueGrid.cc.
References _fontSize, fontSize(), and fontSizeChanged().
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
|
inline |
Definition at line 62 of file FactValueGrid.h.
References _settingsGroup.
Referenced by layoutFacts(), and settingsGroupChanged().
|
signal |
References settingsGroup().
|
inline |
Definition at line 67 of file FactValueGrid.h.
References _specificVehicleForCard.
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
|
signal |
References FactValueGrid().
| QGCMAVLinkTypes::VehicleClass_t FactValueGrid::vehicleClass | ( | void | ) | const |
Definition at line 129 of file FactValueGrid.cc.
References currentVehicle(), and QGCMAVLink::vehicleClass().
Referenced by QGCCorePlugin::factValueGridCreateDefaultSettings().
|
protected |
Definition at line 102 of file FactValueGrid.h.
Referenced by componentComplete(), currentVehicle(), and layoutFacts().
|
protected |
Definition at line 99 of file FactValueGrid.h.
Referenced by appendColumn(), appendRow(), columns(), deleteLastColumn(), deleteLastRow(), FactValueGrid(), and layoutFacts().
|
protected |
Definition at line 97 of file FactValueGrid.h.
Referenced by fontSize(), and setFontSize().
|
protected |
Definition at line 98 of file FactValueGrid.h.
|
protected |
Definition at line 100 of file FactValueGrid.h.
Referenced by appendColumn(), appendRow(), and deleteLastRow().
|
protected |
Definition at line 96 of file FactValueGrid.h.
Referenced by layoutFacts(), resetToDefaults(), and settingsGroup().
|
protected |
Definition at line 101 of file FactValueGrid.h.
Referenced by componentComplete(), currentVehicle(), and specificVehicleForCard().