|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <FactValueGrid.h>
Inheritance diagram for FactValueGrid:
Collaboration diagram for FactValueGrid: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 () | |
| QmlObjectListModel *columns MEMBER _columns NOTIFY | columnsChanged (int rowCount MEMBER _rowCount NOTIFY rowCountChanged) 1(QStringList iconNames READ iconNames CONSTANT) 1(FontSize fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) 1(QStringList fontSizeNames MEMBER _fontSizeNames CONSTANT) 1(QString settingsGroup MEMBER _settingsGroup NOTIFY settingsGroupChanged REQUIRED) 1(Vehicle *specificVehicleForCard MEMBER _specificVehicleForCard NOTIFY specificVehicleForCardChanged REQUIRED) 1 void resetToDefaults(void) |
| < null means track active vehicle, set to specific vehicle to track a single vehicle and share settings with other cards | |
| QmlObjectListModel * | appendColumn (void) |
| void | deleteLastColumn (void) |
| void | appendRow (void) |
| void | deleteLastRow (void) |
| QmlObjectListModel * | columns (void) const |
| QString | settingsGroup (void) const |
| FontSize | fontSize (void) const |
| QStringList | iconNames (void) const |
| QGCMAVLink::VehicleClass_t | vehicleClass (void) const |
| Vehicle * | currentVehicle (void) const |
| Vehicle * | specificVehicleForCard (void) const |
| void | setFontSize (FontSize fontSize) |
| void | componentComplete (void) final |
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 13 of file FactValueGrid.h.
| Enumerator | |
|---|---|
| DefaultFontSize | |
| SmallFontSize | |
| MediumFontSize | |
| LargeFontSize | |
Definition at line 22 of file FactValueGrid.h.
| FactValueGrid::FactValueGrid | ( | QQuickItem * | parent = nullptr | ) |
Definition at line 23 of file FactValueGrid.cc.
| FactValueGrid::~FactValueGrid | ( | ) |
Definition at line 88 of file FactValueGrid.cc.
| QmlObjectListModel * FactValueGrid::appendColumn | ( | void | ) |
Definition at line 217 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::append(), and rowCountChanged().
| void FactValueGrid::appendRow | ( | void | ) |
Definition at line 191 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::append(), QmlObjectListModel::count(), rowCountChanged(), and QmlObjectListModel::value().
|
inline |
Definition at line 46 of file FactValueGrid.h.
References _columns.
Referenced by SubtitleWriter::startCapturingTelemetry().
| QmlObjectListModel *columns MEMBER _columns NOTIFY FactValueGrid::columnsChanged | ( | int rowCount MEMBER _rowCount NOTIFY | rowCountChanged | ) |
< null means track active vehicle, set to specific vehicle to track a single vehicle and share settings with other cards
|
signal |
|
final |
Definition at line 33 of file FactValueGrid.cc.
References _activeVehicle, _specificVehicleForCard, MultiVehicleManager::activeVehicleChanged(), and fontSizeChanged().
Referenced by SubtitleWriter::startCapturingTelemetry().
|
inline |
Definition at line 51 of file FactValueGrid.h.
References _activeVehicle, and _specificVehicleForCard.
Referenced by vehicleClass().
| void FactValueGrid::deleteLastColumn | ( | void | ) |
Definition at line 238 of file FactValueGrid.cc.
References _columns, QmlObjectListModel::count(), and QmlObjectListModel::removeAt().
| void FactValueGrid::deleteLastRow | ( | void | ) |
Definition at line 203 of file FactValueGrid.cc.
References _columns, _rowCount, QmlObjectListModel::count(), QmlObjectListModel::removeAt(), rowCountChanged(), and QmlObjectListModel::value().
|
inline |
|
signal |
Referenced by componentComplete(), and setFontSize().
|
inline |
Definition at line 49 of file FactValueGrid.h.
Referenced by InstrumentValueData::addRangeValue().
|
signal |
Referenced by appendColumn(), appendRow(), and deleteLastRow().
| void FactValueGrid::setFontSize | ( | FontSize | fontSize | ) |
Definition at line 110 of file FactValueGrid.cc.
References _fontSize, fontSize(), and fontSizeChanged().
|
inline |
Definition at line 47 of file FactValueGrid.h.
References _settingsGroup.
|
signal |
|
inline |
Definition at line 52 of file FactValueGrid.h.
References _specificVehicleForCard.
|
signal |
| QGCMAVLink::VehicleClass_t FactValueGrid::vehicleClass | ( | void | ) | const |
Definition at line 93 of file FactValueGrid.cc.
References currentVehicle(), and QGCMAVLink::vehicleClass().
|
protected |
Definition at line 75 of file FactValueGrid.h.
Referenced by componentComplete(), and currentVehicle().
|
protected |
Definition at line 72 of file FactValueGrid.h.
Referenced by appendColumn(), appendRow(), columns(), deleteLastColumn(), and deleteLastRow().
|
protected |
Definition at line 70 of file FactValueGrid.h.
Referenced by fontSize(), and setFontSize().
|
protected |
Definition at line 71 of file FactValueGrid.h.
|
protected |
Definition at line 73 of file FactValueGrid.h.
Referenced by appendColumn(), appendRow(), and deleteLastRow().
|
protected |
Definition at line 69 of file FactValueGrid.h.
Referenced by settingsGroup().
|
protected |
Definition at line 74 of file FactValueGrid.h.
Referenced by componentComplete(), currentVehicle(), and specificVehicleForCard().