QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FactValueGrid Class Reference

#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 ()
 
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 QmlObjectListModelappendColumn (void)
 
Q_INVOKABLE void deleteLastColumn (void)
 
Q_INVOKABLE void appendRow (void)
 
Q_INVOKABLE void deleteLastRow (void)
 
QmlObjectListModelcolumns (void) const
 
QString settingsGroup (void) const
 
FontSize fontSize (void) const
 
QStringList iconNames (void) const
 
QGCMAVLinkTypes::VehicleClass_t vehicleClass (void) const
 
VehiclecurrentVehicle (void) const
 
VehiclespecificVehicleForCard (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
 

Detailed Description

Definition at line 13 of file FactValueGrid.h.

Member Enumeration Documentation

◆ FontSize

Enumerator
DefaultFontSize 
SmallFontSize 
MediumFontSize 
LargeFontSize 

Definition at line 23 of file FactValueGrid.h.

Constructor & Destructor Documentation

◆ FactValueGrid()

FactValueGrid::FactValueGrid ( QQuickItem *  parent = nullptr)

Definition at line 17 of file FactValueGrid.cc.

◆ ~FactValueGrid()

FactValueGrid::~FactValueGrid ( )

Definition at line 88 of file FactValueGrid.cc.

Member Function Documentation

◆ appendColumn()

QmlObjectListModel * FactValueGrid::appendColumn ( void  )

◆ appendRow()

◆ columns()

QmlObjectListModel * FactValueGrid::columns ( void  ) const
inline

◆ columnsChanged

void FactValueGrid::columnsChanged ( QmlObjectListModel model)
signal

◆ componentComplete()

void FactValueGrid::componentComplete ( void  )
final

◆ currentVehicle()

Vehicle * FactValueGrid::currentVehicle ( void  ) const
inline

Definition at line 52 of file FactValueGrid.h.

References _activeVehicle, and _specificVehicleForCard.

Referenced by vehicleClass().

◆ deleteLastColumn()

void FactValueGrid::deleteLastColumn ( void  )

◆ deleteLastRow()

void FactValueGrid::deleteLastRow ( void  )

◆ fontSize()

FontSize FactValueGrid::fontSize ( void  ) const
inline

Definition at line 49 of file FactValueGrid.h.

References _fontSize.

Referenced by setFontSize().

◆ fontSizeChanged

void FactValueGrid::fontSizeChanged ( FontSize  fontSize)
signal

Referenced by componentComplete(), and setFontSize().

◆ iconNames()

QStringList FactValueGrid::iconNames ( void  ) const
inline

Definition at line 50 of file FactValueGrid.h.

Referenced by InstrumentValueData::addRangeValue().

◆ resetToDefaults()

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 98 of file FactValueGrid.cc.

References _settingsGroup.

◆ rowCountChanged

void FactValueGrid::rowCountChanged ( int  rowCount)
signal

◆ setFontSize()

void FactValueGrid::setFontSize ( FontSize  fontSize)

◆ settingsGroup()

QString FactValueGrid::settingsGroup ( void  ) const
inline

Definition at line 48 of file FactValueGrid.h.

References _settingsGroup.

◆ settingsGroupChanged

void FactValueGrid::settingsGroupChanged ( QString  settingsGroup)
signal

◆ specificVehicleForCard()

Vehicle * FactValueGrid::specificVehicleForCard ( void  ) const
inline

◆ specificVehicleForCardChanged

void FactValueGrid::specificVehicleForCardChanged ( Vehicle vehicle)
signal

◆ vehicleClass()

QGCMAVLinkTypes::VehicleClass_t FactValueGrid::vehicleClass ( void  ) const

Member Data Documentation

◆ _activeVehicle

Vehicle* FactValueGrid::_activeVehicle = nullptr
protected

Definition at line 76 of file FactValueGrid.h.

Referenced by componentComplete(), and currentVehicle().

◆ _columns

QmlObjectListModel* FactValueGrid::_columns = nullptr
protected

Definition at line 73 of file FactValueGrid.h.

Referenced by appendColumn(), appendRow(), columns(), deleteLastColumn(), and deleteLastRow().

◆ _fontSize

FontSize FactValueGrid::_fontSize = DefaultFontSize
protected

Definition at line 71 of file FactValueGrid.h.

Referenced by fontSize(), and setFontSize().

◆ _preventSaveSettings

bool FactValueGrid::_preventSaveSettings = false
protected

Definition at line 72 of file FactValueGrid.h.

◆ _rowCount

int FactValueGrid::_rowCount = 0
protected

Definition at line 74 of file FactValueGrid.h.

Referenced by appendColumn(), appendRow(), and deleteLastRow().

◆ _settingsGroup

QString FactValueGrid::_settingsGroup
protected

Definition at line 70 of file FactValueGrid.h.

Referenced by resetToDefaults(), and settingsGroup().

◆ _specificVehicleForCard

Vehicle* FactValueGrid::_specificVehicleForCard = nullptr
protected

Definition at line 75 of file FactValueGrid.h.

Referenced by componentComplete(), currentVehicle(), and specificVehicleForCard().


The documentation for this class was generated from the following files: