COPASI API  4.16.103
CQModelValue.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) 2006 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CQMODELVALUE_H
16 #define CQMODELVALUE_H
17 
18 class CQExpressionWidget;
19 class CModelValue;
20 class CExpression;
21 
22 #include "ui_CQModelValue.h"
23 
24 #include <string>
25 
26 #include "copasiWidget.h"
27 
28 class CQModelValue : public CopasiWidget, public Ui::CQModelValue
29 {
30  Q_OBJECT
31 
32 public:
33  CQModelValue(QWidget* parent = 0, const char* name = 0);
34  ~CQModelValue();
35 
36  virtual bool leave();
37  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
38 
39 protected:
40  virtual bool enterProtected();
41 
42 protected slots:
43 
44 private:
45  std::vector< int > mItemToType;
47  bool mChanged;
50 
51  void init();
52  void destroy();
53  void load();
54  void save();
55  std::string mKeyToCopy;
56 
57 private slots:
58  void slotBtnNew();
59  void slotBtnCopy();
60  void slotBtnDelete();
61  void slotTypeChanged(int type);
62  void slotExpressionValid(bool valid);
63  void slotInitialExpressionValid(bool valid);
64  void slotInitialTypeChanged(bool useInitialAssignment);
65 };
66 
67 #endif // CQMODELVALUE_H
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
objectType
void slotBtnDelete()
std::vector< int > mItemToType
Definition: CQModelValue.h:45
void slotBtnCopy()
void slotInitialExpressionValid(bool valid)
std::string mKeyToCopy
Definition: CQModelValue.h:55
void slotTypeChanged(int type)
void slotBtnNew()
Slot to create a new quantity; activated whenever the New button is clicked.
CModelValue * mpModelValue
Definition: CQModelValue.h:46
void slotInitialTypeChanged(bool useInitialAssignment)
CQModelValue(QWidget *parent=0, const char *name=0)
virtual bool leave()
bool mInitialExpressionValid
Definition: CQModelValue.h:49
virtual bool enterProtected()
void slotExpressionValid(bool valid)
bool mExpressionValid
Definition: CQModelValue.h:48