COPASI API  4.16.103
CQTaskMethodWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2011 - 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 #ifndef COPASI_CQTaskMethodWidget
7 #define COPASI_CQTaskMethodWidget
8 
9 #include <QtCore/QVariant>
10 
11 #include "copasi/UI/ui_CQTaskMethodWidget.h"
13 
14 class CCopasiTask;
15 
16 class CQTaskMethodWidget: public QWidget, public Ui::CQTaskMethodWidget
17 {
18  Q_OBJECT
19 
20 public:
21  CQTaskMethodWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
22 
23  virtual ~CQTaskMethodWidget();
24 
25  void setTask(CCopasiTask * pTask);
26 
27  void setValidMethods(const unsigned int * validMethods);
28 
29  void showMethodParameters(const bool & show);
30 
31  bool loadMethod();
32 
33  bool saveMethod();
34 
35  void clearHistory();
36 
37 protected slots:
38 
39  void changeMethod(int);
40 
41 protected:
42  void addToHistory(CCopasiMethod * pMethod);
43  void removeFromHistory(CCopasiMethod * pMethod);
45  void setActiveMethod(const CCopasiMethod::SubType & Type);
46 
47 protected:
51  std::map< CCopasiMethod::SubType, CCopasiMethod * > mMethodHistory;
54 };
55 
56 #endif // COPASI_CQTaskMethodWidget
CCopasiMethod * mpActiveMethod
void setActiveMethod(const CCopasiMethod::SubType &Type)
void addToHistory(CCopasiMethod *pMethod)
CCopasiMethod * mpMethod
CTSSATask * pTask
void removeFromHistory(CCopasiMethod *pMethod)
void setTask(CCopasiTask *pTask)
void showMethodParameters(const bool &show)
CQTaskMethodWidget(QWidget *parent=0, Qt::WindowFlags f=0)
CCopasiMethod * getFromHistory(const CCopasiMethod::SubType &Type) const
void setValidMethods(const unsigned int *validMethods)
std::map< CCopasiMethod::SubType, CCopasiMethod * > mMethodHistory