4 #include <QAbstractTableModel>
56 SensorModel(QIODevice* device, QObject *parent = 0);
66 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
76 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
88 inline QVariant
data(
int row,
int column,
int role = Qt::DisplayRole)
const;
99 virtual QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
131 inline const QMap<QString, qint32>&
getNameIdMap()
const;
163 void mapChannelInfo(
const QList<XMEASLIB::RealTimeSampleArrayChInfo>& chInfoList);
201 void createSelection();
209 bool read(QIODevice* device);
211 qint32 m_iCurrentLayoutId;
212 QList<SensorLayout> m_qListSensorLayouts;
213 QList<SensorGroup> m_qListSensorGroups;
215 QMap<qint32, bool> m_qMapSelection;
216 QMap<QString, qint32> m_qMapNameId;
227 return data(index(row, column), role);
235 return m_qListSensorLayouts;
243 return m_qListSensorLayouts.size();
251 return m_qListSensorGroups;
259 return m_iCurrentLayoutId;
272 #endif // SENSORMODEL_H
qint32 getCurrentLayout() const
void applySensorGroup(int id)
QVariant data(int row, int column, int role=Qt::DisplayRole) const
void newSelection(QList< qint32 > selection)
const QList< SensorGroup > & getSensorGroups() const
The SensorModel class implements a table model which holds the sensor model properties.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
const QList< SensorLayout > & getSensorLayouts() const
Declaration of the SensorGroup Class.
const QMap< QString, qint32 > & getNameIdMap() const
Contains the declaration of the RealTimeSampleArrayChInfo class.
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
void mapChannelInfo(const QList< XMEASLIB::RealTimeSampleArrayChInfo > &chInfoList)
void silentUpdateSelection(const QList< qint32 > &selection)
Declaration of the SensorLayout Class.
void setCurrentLayout(int id)
SensorModel(QObject *parent=0)
qint32 getNumLayouts() const
The SensorItem class represents a channel item, plottet at the graphics scene.
void updateChannelState(SensorItem *item)