COPASI API  4.16.103
CQCreatorDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAMUI/CQCreatorDM.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 CQCreatorDM_H
20 #define CQCreatorDM_H
21 
22 #include "UI/CQBaseDataModel.h"
23 
24 class CMIRIAMInfo;
25 
26 #define COL_FAMILY_NAME 1
27 #define COL_GIVEN_NAME 2
28 #define COL_EMAIL 3
29 #define COL_ORG 4
30 #define TOTAL_COLS_CREATORS 5
31 
33 {
34  Q_OBJECT
35 
36 public:
37  CQCreatorDM(CMIRIAMInfo* MIRIAMInfo, QObject *parent = 0);
38  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
39  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
40  QVariant data(const QModelIndex &index, int role) const;
41  QVariant headerData(int section, Qt::Orientation orientation,
42  int role = Qt::DisplayRole) const;
43  bool setData(const QModelIndex &index, const QVariant &value,
44  int role = Qt::EditRole);
45  bool removeRows(QModelIndexList rows, const QModelIndex &index = QModelIndex());
46 
47 protected:
48  bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
49  bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
51 };
52 
53 #endif //CQCreatorDM_H
CQCreatorDM(CMIRIAMInfo *MIRIAMInfo, QObject *parent=0)
Definition: CQCreatorDM.cpp:25
CMIRIAMInfo * mpMIRIAMInfo
Definition: CQCreatorDM.h:50
QVariant data(const QModelIndex &index, int role) const
Definition: CQCreatorDM.cpp:41
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: CQCreatorDM.cpp:79
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: CQCreatorDM.cpp:32
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: CQCreatorDM.cpp:36
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())