COPASI API  4.16.103
CQReportDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQReportDM.h,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:37:47 $
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 CQReportDM_H
20 #define CQReportDM_H
21 
22 #include "model/CModel.h"
23 #include "CQBaseDataModel.h"
24 
25 #define COL_NAME_REPORTS 1
26 #define TOTAL_COLS_REPORTS 2
27 
29 {
30  Q_OBJECT
31 
32 public:
33  CQReportDM(QObject *parent = 0);
34  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
35  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
36  Qt::ItemFlags flags(const QModelIndex &index) 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());
47 };
48 
49 #endif //CQReportDM_H
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: CQReportDM.cpp:38
CQReportDM(QObject *parent=0)
Definition: CQReportDM.cpp:23
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: CQReportDM.cpp:114
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: CQReportDM.cpp:29
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: CQReportDM.cpp:33
QVariant data(const QModelIndex &index, int role) const
Definition: CQReportDM.cpp:49
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: CQReportDM.cpp:92
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
Definition: CQReportDM.cpp:144
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
Definition: CQReportDM.cpp:210