COPASI API  4.16.103
CQExpandModelData.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQExpandModelData.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:39:42 $
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 CQEXPANDMODELDATA_H
20 #define CQEXPANDMODELDATA_H
21 
22 #include <QtCore/QVariant>
23 #include <string>
24 #include <vector>
25 
26 class QTreeWidgetItem;
27 
28 #include "model/CModel.h"
29 
30 #include "ui_CQExpandModelData.h"
31 
32 class CQExpandModelData : public QDialog, public Ui::CQExpandModelData
33 {
34  Q_OBJECT
35 
36 public:
37  CQExpandModelData(QWidget* parent = 0, Qt::WindowFlags fl = 0);
39 
40 protected:
41 
42  std::map<QTreeWidgetItem*, const CCompartment*> mItemCompartmentMap;
43  std::map<QTreeWidgetItem*, const CMetab*> mItemMetabMap;
45 
46 protected slots:
47 
48  /// handles activation or deactivation of a compartment
49  void slotCompartmentActivated(QTreeWidgetItem* pItem, int col);
50 
51  /// handles change of linear/rectangular mode
52  void slotMode();
53 
54 private:
55 
56  void load();
57 
58 private slots:
59 
60  void slotOK();
61  void slotCancel();
62 };
63 
64 #endif // CQEXPANDMODELDATA_H
void slotMode()
handles change of linear/rectangular mode
void slotCompartmentActivated(QTreeWidgetItem *pItem, int col)
handles activation or deactivation of a compartment
std::map< QTreeWidgetItem *, const CMetab * > mItemMetabMap
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
std::map< QTreeWidgetItem *, const CCompartment * > mItemCompartmentMap
Definition: CModel.h:50
CQExpandModelData(QWidget *parent=0, Qt::WindowFlags fl=0)