COPASI API  4.16.103
CQSpeciesDetail.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) 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 CQSpeciesDetail_h
12 #define CQSpeciesDetail_h
13 
14 #include <QtCore/QVariant>
15 
16 #include "ui_CQSpeciesDetail.h"
17 
18 class CMetab;
19 class CCompartment;
20 
21 class CQSpeciesDetail : public CopasiWidget, public Ui::CQSpeciesDetail
22 {
23  Q_OBJECT
24 
25 public:
26  CQSpeciesDetail(QWidget* parent = 0, const char* name = 0);
27  virtual ~CQSpeciesDetail();
28 
29  virtual bool leave();
30  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
31  virtual void setFramework(int framework);
32 
33  void copy();
34 
35 protected:
36  virtual bool enterProtected();
37 
38 protected slots:
39 
40 private:
41  bool mChanged;
44  std::vector< int > mItemToType;
49 
50  void load();
51  void save();
52  void loadReactionTable();
53 
54 private slots:
55  void slotBtnNew();
56  void slotBtnCopy(){};
57  void slotBtnDelete();
58  void slotCompartmentChanged(int compartment);
59  void slotTypeChanged(int type);
60  void slotInitialTypeChanged(bool useInitialExpression);
61  void slotNameLostFocus();
62  void slotExpressionValid(bool valid);
63  void slotInitialExpressionValid(bool valid);
64  void slotSwitchToReaction(int row, int column);
66 };
67 
68 #endif // CQSpeciesDetail_h
const CCompartment * mpCurrentCompartment
void slotSwitchToReaction(int row, int column)
virtual void setFramework(int framework)
objectType
void slotCompartmentChanged(int compartment)
double mInitialConcentration
void slotInitialTypeChanged(bool useInitialExpression)
Definition: CMetab.h:178
virtual ~CQSpeciesDetail()
CQSpeciesDetail(QWidget *parent=0, const char *name=0)
void slotInitialExpressionValid(bool valid)
virtual bool enterProtected()
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual bool leave()
bool mInitialExpressionValid
std::vector< int > mItemToType
void slotInitialValueLostFocus()
void slotExpressionValid(bool valid)
void slotTypeChanged(int type)