COPASI API  4.16.103
ReactionsWidget1.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) 2002 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 /****************************************************************************
16  ** $ CopasiUI/ReactionsWidget1.h
17  ** $ Author : Mudita Singhal
18  **
19  ** This is the header file for the Reactions Widget, i.e the second level
20  ** of Reactions.
21  **
22  *****************************************************************************/
23 
24 #ifndef REACTIONS_WIDGET1_H
25 #define REACTIONS_WIDGET1_H
26 
27 #include "copasi/UI/ui_ReactionsWidget1.h"
28 
29 #include "copasi/UI/copasiWidget.h"
31 
32 class ParameterTable;
33 class MyLineEdit;
34 
35 class ReactionsWidget1 : public CopasiWidget, public Ui::ReactionsWidget1
36 {
37  Q_OBJECT
38 
39 public:
40  ReactionsWidget1(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
42 
43  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
44  virtual bool leave();
45  virtual void setFramework(int framework);
46  void copy();
47 
48 protected slots:
49  virtual void slotBtnNew();
50  virtual void slotBtnCopy() {}; //dummy, to bypass warnings from TabWidget connections
51  virtual void slotBtnDelete();
52  virtual void slotCheckBoxClicked();
53  virtual void slotComboBoxSelectionChanged(const QString &);
54  virtual void slotLineEditChanged();
55  virtual void slotGotoFunction();
56  virtual void slotNewFunction();
57 
58  // public slots:
59  virtual void slotTableChanged(int index, int sub, QString newValue);
60  virtual void slotParameterStatusChanged(int index, bool local);
61 
62 protected:
63  virtual bool enterProtected();
64  bool loadFromReaction(const CReaction* reaction);
65  bool saveToReaction();
66  void FillWidgetFromRI();
67 
69 };
70 
71 #endif // REACTIONSWIDGET1_H
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual void slotBtnNew()
objectType
virtual void slotTableChanged(int index, int sub, QString newValue)
virtual void slotNewFunction()
virtual void slotParameterStatusChanged(int index, bool local)
virtual bool enterProtected()
virtual void slotComboBoxSelectionChanged(const QString &)
bool loadFromReaction(const CReaction *reaction)
virtual bool leave()
virtual void slotBtnDelete()
virtual void slotCheckBoxClicked()
virtual void setFramework(int framework)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
virtual void slotBtnCopy()
ReactionsWidget1(QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
virtual void slotLineEditChanged()
CReactionInterface * mpRi
virtual void slotGotoFunction()