19 #ifndef CQReactionDM_H
20 #define CQReactionDM_H
25 #define COL_NAME_REACTIONS 1
26 #define COL_EQUATION 2
27 #define COL_RATE_LAW 3
29 #define COL_PARTICLE_FLUX 5
30 #define TOTAL_COLS_REACTIONS 6
38 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
39 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
40 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
41 QVariant
data(
const QModelIndex &index,
int role)
const;
42 QVariant
headerData(
int section, Qt::Orientation orientation,
43 int role = Qt::DisplayRole)
const;
44 bool setData(
const QModelIndex &index,
const QVariant &value,
45 int role = Qt::EditRole);
46 bool removeRows(QModelIndexList rows,
const QModelIndex &index = QModelIndex());
49 bool insertRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
50 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
58 #endif //CQReactionDM_H
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
void setEquation(const CReaction *pRea, const QModelIndex &index, const QVariant &value)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant data(const QModelIndex &index, int role) const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
CQReactionDM(QObject *parent=0)
Qt::ItemFlags flags(const QModelIndex &index) const