COPASI API  4.16.103
CQOptimizationWidget.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 CQOPTIMIZATIONWIDGET_H
16 #define CQOPTIMIZATIONWIDGET_H
17 
18 #include <QtCore/QVariant>
19 #include "TaskWidget.h"
20 
21 #include "ui_CQOptimizationWidget.h"
22 
24 
25 #include <QtGui/QVBoxLayout>
26 #include <QtGui/QHBoxLayout>
27 
28 class CQOptimizationWidget : public TaskWidget, public Ui::CQOptimizationWidget
29 {
30  Q_OBJECT
31 
32 public:
33  CQOptimizationWidget(QWidget* parent = 0, const char* name = 0);
35 
36  virtual bool runTask();
37  bool isSteadyState();
38 
39 public slots:
40  void slotParameterNumberChanged(int number);
41  void slotConstraintNumberChanged(int number);
42  virtual void slotEditExpression();
43 
44 protected:
46  QColor mChangedColor;
47  QColor mSavedColor;
49 
50  std::map< std::string, C_INT32 > mSubtaskMap;
51 
52  virtual bool saveTask();
53  virtual bool loadTask();
54  virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType & type);
55 
56 protected slots:
57 
58  void slotPageChange(QWidget * currentPage);
59  void slotExpressionValid(bool valid);
60  void slotSubtaskChanged(const QString & subtask);
61 
62 private:
63  void init();
64  void destroy();
65 };
66 
67 #endif // CQOPTIMIZATIONWIDGET_H
void slotPageChange(QWidget *currentPage)
void slotConstraintNumberChanged(int number)
virtual CCopasiMethod * createMethod(const CCopasiMethod::SubType &type)
void slotExpressionValid(bool valid)
std::map< std::string, C_INT32 > mSubtaskMap
CQOptimizationWidget(QWidget *parent=0, const char *name=0)
void slotSubtaskChanged(const QString &subtask)
CQFittingItemWidget * mpCurrentList
void slotParameterNumberChanged(int number)