COPASI API  4.16.103
CQBiologicalDescriptionDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAMUI/CQBiologicalDescriptionDM.h,v $
3 // $Revision: 1.6 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:30:17 $
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 CQBiologicalDescriptionDM_H
20 #define CQBiologicalDescriptionDM_H
21 
22 #include "UI/CQBaseDataModel.h"
23 
24 class CMIRIAMInfo;
25 
26 #define COL_RELATIONSHIP 1
27 #define COL_RESOURCE_BD 2
28 #define COL_ID_BD 3
29 #define TOTAL_COLS_BIOLOGICAL_DESCRIPTIONS 4
30 
32 {
33  Q_OBJECT
34 
35 public:
36  CQBiologicalDescriptionDM(CMIRIAMInfo* MIRIAMInfo, QObject *parent = 0);
37  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
38  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
39  QVariant data(const QModelIndex &index, int role) const;
40  QVariant headerData(int section, Qt::Orientation orientation,
41  int role = Qt::DisplayRole) const;
42  bool setData(const QModelIndex &index, const QVariant &value,
43  int role = Qt::EditRole);
44  bool removeRows(QModelIndexList rows, const QModelIndex &index = QModelIndex());
45 
46 protected:
47  bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
48  bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
50 };
51 
52 #endif //CQBiologicalDescriptionDM_H
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
CQBiologicalDescriptionDM(CMIRIAMInfo *MIRIAMInfo, QObject *parent=0)
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const