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