COPASI API  4.16.103
CQCrossSectionTaskWidget.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 /*
7  * Created by Paul on 5/21/10.
8  */
9 
10 #ifndef CQCROSSSECTIONTASKWIDGET_H
11 #define CQCROSSSECTIONTASKWIDGET_H
12 
13 //#include <QtCore/QVariant>
14 
15 #include "ui_CQCrossSectionTaskWidget.h"
16 
17 #include "UI/TaskWidget.h"
18 
20 class CQValidatorInt;
21 class CQValidatorDouble;
22 
23 class CQCrossSectionTaskWidget : public TaskWidget, public Ui::CQCrossSectionTaskWidget
24 {
25  Q_OBJECT
26 
27 public:
28  CQCrossSectionTaskWidget(QWidget* parent = 0, const char* name = 0);
29  virtual ~CQCrossSectionTaskWidget();
30 
31  virtual bool runTask();
32  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
33 
34 protected:
35  void commitInput();
36  virtual bool saveTask();
37  virtual bool loadTask();
38  virtual bool taskFinishedEvent();
39  virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType & type);
40 
41 protected slots:
42 
43 private:
44  void init();
45  void destroy();
46  void showUnits();
47 
48  void updateValues();
49 
50  void setSingleObject(const CCopasiObject * pSingleVariable);
51 
54 
62 
63 private slots:
64 
65  void slotChooseVariable();
66  void slotValueRate();
67  void slotUpdateCrossings(bool);
68  void slotUpdateConvergence(bool);
69 
70  void slotOutputDelay(bool);
71  void slotOutputCrossings(bool);
72  void slotOutputConvergence(bool);
73 
74  void slotUpdateTime();
77 
80  void slotOutputDelayTime();
81 };
82 
83 #endif
objectType
virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType &type)
void setSingleObject(const CCopasiObject *pSingleVariable)
CQValidatorDouble * mpValidatorTime
CQCrossSectionTaskWidget(QWidget *parent=0, const char *name=0)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
CQValidatorDouble * mpValidatorOutTolerance
CQValidatorDouble * mpValidatorCrossing
CQValidatorDouble * mpValidatorOutTime
CCrossSectionProblem * mpCrossSectionProblem
CQValidatorDouble * mpValidatorTolerance
const CCopasiObject * mpSingleVariable