COPASI API  4.16.103
CQCompartment.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 // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CQCOMPARTMENT_H
16 #define CQCOMPARTMENT_H
17 
18 #include <QtCore/QVariant>
19 
20 #include "copasi/UI/ui_CQCompartment.h"
21 
22 #include <vector>
23 
24 class CCompartment;
25 
26 class CQCompartment : public CopasiWidget, public Ui::CQCompartment
27 {
28  Q_OBJECT
29 
30 public:
31  CQCompartment(QWidget* parent = 0, const char* name = 0);
33 
34  virtual bool leave();
35  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
36  void copy();
37 
38 protected:
39  virtual bool enterProtected();
40 
41 protected slots:
42 
43 private:
44  std::vector< int > mItemToType;
46  bool mChanged;
49 
50  void init();
51  void load();
52  void save();
53  void destroy();
54  void loadMetaboliteTable();
55 
56 private slots:
57  void slotBtnNew();
58  void slotBtnCopy(){}; //dummy, to bypass warnings from TabWidget connections
59  void slotBtnDelete();
60  void slotTypeChanged(int type);
61  void slotInitialTypeChanged(bool useInitialAssignment);
62  void slotExpressionValid(bool valid);
63  void slotInitialExpressionValid(bool valid);
64  void slotMetaboliteTableCurrentChanged(int row, int col);
65 };
66 
67 #endif // CQCOMPARTMENT_H
objectType
void slotBtnCopy()
Definition: CQCompartment.h:58
void slotInitialExpressionValid(bool valid)
virtual bool leave()
virtual bool enterProtected()
void slotTypeChanged(int type)
void slotInitialTypeChanged(bool useInitialAssignment)
void loadMetaboliteTable()
bool mExpressionValid
Definition: CQCompartment.h:47
CCompartment * mpCompartment
Definition: CQCompartment.h:45
bool mInitialExpressionValid
Definition: CQCompartment.h:48
std::vector< int > mItemToType
Definition: CQCompartment.h:44
void slotMetaboliteTableCurrentChanged(int row, int col)
CQCompartment(QWidget *parent=0, const char *name=0)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
void slotExpressionValid(bool valid)