COPASI API  4.16.103
CQReferenceDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAMUI/CQReferenceDM.h,v $
3 // $Revision: 1.9 $
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 CQReferenceDM_H
20 #define CQReferenceDM_H
21 
22 #include "UI/CQBaseDataModel.h"
23 
24 class CMIRIAMInfo;
25 
26 #define COL_RESOURCE_REFERENCE 1
27 #define COL_ID_REFERENCE 2
28 #define COL_DESCRIPTION 3
29 #define TOTAL_COLS_REFERENCES 4
30 
32 {
33  Q_OBJECT
34 
35 public:
36  CQReferenceDM(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 //CQReferenceDM_H
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QVariant data(const QModelIndex &index, int role) const
CMIRIAMInfo * mpMIRIAMInfo
Definition: CQReferenceDM.h:49
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
CQReferenceDM(CMIRIAMInfo *MIRIAMInfo, QObject *parent=0)