19 #ifndef CQCompartmentDM_H
20 #define CQCompartmentDM_H
26 #define COL_NAME_COMPARTMENTS 1
27 #define COL_TYPE_COMPARTMENTS 2
30 #define COL_RATE_COMPARTMENTS 5
31 #define COL_IEXPRESSION_COMPARTMENTS 6
32 #define COL_EXPRESSION_COMPARTMENTS 7
33 #define TOTAL_COLS_COMPARTMENTS 8
43 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
44 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
45 virtual Qt::ItemFlags
flags(
const QModelIndex &index)
const;
46 virtual QVariant
data(
const QModelIndex &index,
int role)
const;
47 virtual QVariant
headerData(
int section, Qt::Orientation orientation,
48 int role = Qt::DisplayRole)
const;
49 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
50 int role = Qt::EditRole);
51 bool removeRows(QModelIndexList rows,
const QModelIndex &index = QModelIndex());
59 bool insertRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
60 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
63 #endif //CQCompartmentDM_H
virtual Qt::ItemFlags flags(const QModelIndex &index) const
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
std::vector< unsigned C_INT32 > mItemToType
virtual QVariant data(const QModelIndex &index, int role) const
const std::vector< unsigned C_INT32 > & getItemToType()
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
const QStringList & getTypes()
CQCompartmentDM(QObject *parent=0)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const