COPASI API  4.16.103
CQTimeSeriesDM.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQTimeSeriesDM.h,v $
3 // $Revision: 1.1 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/23 18:39:00 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #ifndef COPASI_CQTimeSeriesDM
15 #define COPASI_CQTimeSeriesDM
16 
18 
19 class CTimeSeries;
20 
22 {
23  Q_OBJECT
24 
25 public:
26  CQTimeSeriesDM(QObject *parent = 0);
27  virtual ~CQTimeSeriesDM();
28 
29  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
30  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
31  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
32 
33  virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
34 
35  virtual QVariant headerData(int section, Qt::Orientation orientation,
36  int role = Qt::DisplayRole) const;
37 
38  virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
39 
40  virtual bool isDefaultRow(const QModelIndex& i) const;
41 
42  void setTimeSeries(const CTimeSeries * pTimeSeries);
43 
44  void setFramework(int framework);
45 
46 protected:
47  virtual bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
48  virtual bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
49 
50 
51 private:
54 };
55 
56 #endif // COPASI_CQTimeSeriesDM
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
CQTimeSeriesDM(QObject *parent=0)
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void setFramework(int framework)
virtual bool isDefaultRow(const QModelIndex &i) const
void setTimeSeries(const CTimeSeries *pTimeSeries)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual bool removeRows(int position, int rows, const QModelIndex &index=QModelIndex())
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual ~CQTimeSeriesDM()
virtual bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
virtual Qt::ItemFlags flags(const QModelIndex &index) const
const CTimeSeries * mpTimeSeries
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const