COPASI API  4.16.103
CQEFMSpeciesDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQEFMSpeciesDM.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/23 18:39:01 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 #ifndef CQEFMSpeciesDM_H
20 #define CQEFMSpeciesDM_H
21 
23 
24 #include <vector>
25 
26 class CFluxMode;
27 class CEFMTask;
28 class CMetab;
29 class CModel;
30 
32 {
33  Q_OBJECT
34 
35 public:
36  CQEFMSpeciesDM(QObject *parent = 0);
37 
38  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
39  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
40  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
41 
42  virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
43 
44  virtual QVariant headerData(int section, Qt::Orientation orientation,
45  int role = Qt::DisplayRole) const;
46 
47  virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
48 
49  virtual bool isDefaultRow(const QModelIndex& i) const;
50 
51  void setTask(const CEFMTask * pTask);
52 
53 protected:
54  virtual bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
55  virtual bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
56 
57 private:
58  const CEFMTask * mpTask;
59 
60  std::vector< CFluxMode >::const_iterator mBeginModes;
61  size_t mModesSize;
62 
63  const CModel * mpModel;
64  std::vector< CMetab * >::const_iterator mBeginSpecies;
65  size_t mSpeciesSize;
66 };
67 
68 #endif //CQEFMSpeciesDM_H
virtual bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
void setTask(const CEFMTask *pTask)
std::vector< CFluxMode >::const_iterator mBeginModes
std::vector< CMetab * >::const_iterator mBeginSpecies
Definition: CMetab.h:178
CTSSATask * pTask
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
const CEFMTask * mpTask
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
virtual bool isDefaultRow(const QModelIndex &i) const
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: CModel.h:50
const CModel * mpModel
virtual Qt::ItemFlags flags(const QModelIndex &index) const
virtual bool removeRows(int position, int rows, const QModelIndex &index=QModelIndex())
CQEFMSpeciesDM(QObject *parent=0)