COPASI API  4.16.103
CQParameterSetsDM.h
Go to the documentation of this file.
1 // Copyright (C) 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef COPASI_CQParameterSetsDM
7 #define COPASI_CQParameterSetsDM
8 
9 #include "CQBaseDataModel.h"
10 
11 #define COL_ROW_NUMBER 0
12 #define COL_NAME 1
13 #define TOTAL_COLS 2
14 
15 class CModelParameterSet;
16 template <class CType> class CCopasiVectorN;
17 
19 {
20  Q_OBJECT
21 
22 public:
23  CQParameterSetsDM(QObject *parent = 0);
24  virtual ~CQParameterSetsDM();
25 
26  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
27  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
28  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
29  virtual QVariant data(const QModelIndex &index, int role) const;
30  virtual QVariant headerData(int section, Qt::Orientation orientation,
31  int role = Qt::DisplayRole) const;
32  virtual bool setData(const QModelIndex &index, const QVariant &value,
33  int role = Qt::EditRole);
34  virtual bool isDefaultRow(const QModelIndex& i) const;
35  bool removeRows(QModelIndexList rows, const QModelIndex &index = QModelIndex());
36  void setListOfModelParameterSets(CCopasiVectorN< CModelParameterSet > * pListOfModelParameterSets);
37 
38  virtual bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
39 
40  virtual bool clear();
41 
42 protected:
43  virtual bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
44 
45 private:
47 };
48 
49 #endif // COPASI_CQParameterSetsDM
virtual QVariant data(const QModelIndex &index, int role) const
virtual bool isDefaultRow(const QModelIndex &i) const
void setListOfModelParameterSets(CCopasiVectorN< CModelParameterSet > *pListOfModelParameterSets)
CCopasiVectorN< CModelParameterSet > * mpListOfParameterSets
virtual Qt::ItemFlags flags(const QModelIndex &index) const
virtual bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
virtual bool clear()
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
CQParameterSetsDM(QObject *parent=0)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const