17#include <vlpi/simulationAddress.h>
19#include <QAbstractTableModel>
49 std::string myEntityUUID;
52 std::string myMarkingText;
55 std::string myStationName;
64 QStringList myStationNameList;
82 virtual int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
88 virtual int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
96 virtual QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
105 virtual bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
113 virtual QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
120 virtual Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
147 virtual unsigned long id(
int row)
const;
virtual bool tableIsDirty() const
Checks if any rows in the table have unsaved changes.
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const override
Gets the number of columns in the model.
virtual unsigned long id(int row) const
Gets the ID of a VREngage application by row.
DtVreTableModel(QObject *parent)
Constructor.
virtual Qt::ItemFlags flags(const QModelIndex &index) const override
Gets flags for an item in the table.
virtual void updateEntry(unsigned long id, const VreRecord &vreRecord)
Updates an existing VREngage application entry.
std::vector< VreRecord > VreTable
Type definition for the table data container.
Definition vreTableModel.h:180
virtual ~DtVreTableModel() override
Destructor.
virtual bool isDirty(int row) const
Checks if a row has unsaved changes.
struct VreRecord { unsigned long myId; std::string myName; std::string myEntityUUID; std::string myMarkingText; std::string myStationName; bool mySpectator; bool myDirty; QStringList myStationNameList; } VreRecord
Structure containing VREngage application status information.
Definition vreTableModel.h:40
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Gets header data for the table.
virtual void addEntry(const VreRecord &vreRecord)
Adds a new VREngage application entry to the table.
virtual void setDirty(int row, bool flag)
Sets the dirty flag for a row.
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Sets data for a cell in the table.
virtual std::string entityUUID(int row) const
Gets the entity UUID for a row.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const override
Gets the number of rows in the model.
virtual void removeEntry(unsigned long id)
Removes a VREngage application entry from the table.
VreTable myData
The table data.
Definition vreTableModel.h:186
virtual void clearDirtyFlags()
Clears all dirty flags in the table.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Gets data for a cell in the table.
Export macros for the VREngage Manager library.
#define VREMANAGER_DLL
Platform-specific export/import macro for VREngage Manager library.
Definition export.h:28
Definition appLauncherComponent.h:28