COPASI API  4.16.103
CQUpdatesWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 #ifndef CQUPDATESWIDGET_H
12 #define CQUPDATESWIDGET_H
13 
14 //Added by qt3to4:
15 #include <QtGui/QGridLayout>
16 #include <QtGui/QLabel>
17 
18 #include <map>
19 #include <vector>
20 
21 #include "copasi/UI/copasiWidget.h"
22 
23 class QLabel;
24 class QTabWidget;
25 class QTableWidget;
26 
27 class CModel;
28 
29 /**
30  * This widget displays tables representing the refresh lists. It will probably only
31  * be activated in debug builds
32  */
34 {
35  Q_OBJECT
36 
37 public:
38  CQUpdatesWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
40 
41  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
42  virtual bool leave();
43 
44 protected slots:
45 
46 protected:
47  virtual bool enterProtected();
48  void loadWidget();
49  void clearArrays();
50 
51  void loadOneTable(QTableWidget * pTable, const std::vector< Refresh * > & list);
52  void loadObjectsTable(CModel* pModel);
53 
54  std::map<const Refresh*, const CCopasiObject*> mRefreshsMap;
55 
57 
58  QGridLayout* mWidgetLayout;
59 
60  QLabel* mLabelTitle;
61 
62  QTabWidget* mpMainTab;
63  QTabWidget* mpTab;
64  QTabWidget* mpTab2;
65 
66  QTableWidget * mpTable0;
67  QTableWidget * mpTable1;
68  QTableWidget * mpTable2;
69  QTableWidget * mpTable3;
70 
71  QTableWidget * mpTableObj;
72  QTableWidget * mpTableState;
73 };
74 
75 #endif
objectType
QGridLayout * mWidgetLayout
QTableWidget * mpTableState
QTableWidget * mpTable3
CQUpdatesWidget(QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
void loadOneTable(QTableWidget *pTable, const std::vector< Refresh * > &list)
QTabWidget * mpTab2
void fillRefreshsMapRecursively(const CCopasiObject *obj)
QTabWidget * mpMainTab
virtual bool leave()
void loadObjectsTable(CModel *pModel)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
Definition: CModel.h:50
QTabWidget * mpTab
QLabel * mLabelTitle
QTableWidget * mpTableObj
std::map< const Refresh *, const CCopasiObject * > mRefreshsMap
virtual bool enterProtected()
QTableWidget * mpTable1
QTableWidget * mpTable0
QTableWidget * mpTable2