COPASI API  4.16.103
SensitivitiesWidget.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) 2005 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef SENSWIDGET_H
16 #define SENSWIDGET_H
17 
18 #include "copasi.h"
19 
20 #include "ui_SensitivitiesWidget.h"
21 
22 //#include <QtCore/QVariant>
23 //#include <QtGui/QWidget>
24 #include "UI/TaskWidget.h"
26 
27 #include "UI/SensWidgetComboBox.h"
28 
29 #include <QtGui/QComboBox>
30 
31 class SensitivitiesWidget : public TaskWidget, public Ui::SensitivitiesWidget
32 {
33  Q_OBJECT
34 
35 public:
36 
37  explicit SensitivitiesWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
39 
40  virtual bool runTask();
41 
42 protected:
43  virtual bool loadTask();
44  virtual bool saveTask();
45  virtual bool taskFinishedEvent();
46  virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType & type);
47 
48 private:
49 
50  void init();
51 
52  void initCombos();
53  //void initCombos(CSensProblem *);
54  //bool initCombos(CSensItem *, SensitivitiesWidget::ChoiceType);
55 
56  /**
57  * This checks if the combo box is set to "single object" and only then enables
58  * the two given widgets.
59  */
60  void updateLineeditEnable(const SensWidgetComboBox* box, QWidget* w1, QWidget* w2);
61 
62  /**
63  * This calls updateLineeditEnable() for all three combo boxes
64  */
66 
67  /**
68  * updates the variable and target function boxes
69  */
71 
75 
76 private slots:
77 
78  /*
79  void on_SubTaskChooser_activated(int);
80  void on_FunctionChooser_activated(int);
81  void on_VariableChooser_activated(int);
82  void on_Variable2Chooser_activated(int);
83 
84  void on_SingleFunctionChooser_clicked();
85  void on_SingleVariableChooser_clicked();
86  void on_SingleVariable2Chooser_clicked();
87  */
88  void slotChooseSubTask(int);
89  void slotChooseFunction(int);
90  void slotChooseVariable(int);
91  void slotChooseVariable2(int);
92 
96 
97 protected slots:
98 };
99 
100 #endif // SENSWIDGET_H
virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType &type)
SensitivitiesWidget(QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
void updateLineeditEnable(const SensWidgetComboBox *box, QWidget *w1, QWidget *w2)
void updateComboBoxes(CSensProblem::SubTaskType type)
const CCopasiObject * mpSingleFunction
virtual bool taskFinishedEvent()
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
const CCopasiObject * mpSingleVariable
const CCopasiObject * mpSingleVariable2