dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
FlightDataModel Class Reference

#include <flightdatamodel.h>

Inheritance diagram for FlightDataModel:

Public Types

enum  PathPlanDataEnum {
  LATPOSITION, LNGPOSITION, ALTITUDE, NED_NORTH,
  NED_EAST, NED_DOWN, VELOCITY, MODE,
  MODE_PARAMS, LOCKED, WPDESCRIPTION, LASTCOLUMN
}
 The column names. More...
 

Public Member Functions

 FlightDataModel (QObject *parent)
 Initialize an empty flight plan. More...
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Return the number of waypoints. More...
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 Return the number of fields in the model. More...
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 FlightDataModel::data Fetch the data from the model. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 FlightDataModel::headerData Get the names of the columns. More...
 
void fixupValidationErrors ()
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 FlightDataModel::setData Set the data at a given location. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const
 FlightDataModel::flags Tell QT MVC which flags are supported for items. More...
 
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 FlightDataModel::insertRows Create a new waypoint. More...
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 FlightDataModel::removeRows Remove waypoints from the model. More...
 
bool writeToFile (QString filename)
 FlightDataModel::writeToFile Write the waypoints to an xml file. More...
 
void readFromFile (QString fileName)
 FlightDataModel::readFromFile Read into the model from a flight plan xml file. More...
 
bool replaceData (FlightDataModel *newModel)
 Replace a model data with another model. More...
 
void pauseValidation (bool pausing)
 Prevent validation/correction of data. More...
 

Static Public Attributes

static QMap< int, QString > modeNames = QMap<int, QString>()
 

Detailed Description

Definition at line 49 of file flightdatamodel.h.


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