COPASI API  4.16.103
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CQTSSAResultWidget Class Reference

#include <CQTSSAResultWidget.h>

Inheritance diagram for CQTSSAResultWidget:
Inheritance graph
[legend]
Collaboration diagram for CQTSSAResultWidget:
Collaboration graph
[legend]

Public Member Functions

 CQTSSAResultWidget (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
 
CQTSSAResultSubWidgetgetSubWidget ()
 
virtual bool leave ()
 
bool loadFromBackend ()
 
bool saveToBackend ()
 
virtual bool update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
 
 ~CQTSSAResultWidget ()
 
- Public Member Functions inherited from CopasiWidget
 CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
 
bool enter (const std::string &key)
 
CCopasiDataModelgetDataModel ()
 
bool getIgnoreUpdates ()
 
virtual void setFramework (int framework)
 
void setIgnoreUpdates (bool v)
 

Protected Member Functions

virtual bool enterProtected ()
 

Protected Attributes

CQTSSAResultSubWidgetmCentralWidget
 
QGridLayout * mWidgetLayout
 
- Protected Attributes inherited from CopasiWidget
int mFramework
 
bool mIgnoreUpdates
 
std::string mKey
 
CCopasiDataModelmpDataModel
 
ListViewsmpListView
 
CCopasiObjectmpObject
 

Additional Inherited Members

- Protected Slots inherited from CopasiWidget
virtual bool protectedNotify (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="")
 

Detailed Description

Definition at line 23 of file CQTSSAResultWidget.h.

Constructor & Destructor Documentation

CQTSSAResultWidget::CQTSSAResultWidget ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  fl = 0 
)

Definition at line 38 of file CQTSSAResultWidget.cpp.

References mCentralWidget, and mWidgetLayout.

39  : CopasiWidget(parent, name, fl)
40 {
41  if (!name)
42  setObjectName("CQTSSAResultWidget");
43 
44  setWindowTitle(trUtf8("CQTSSAResultWidget"));
45 
46  mWidgetLayout = new QGridLayout(this);
47  mWidgetLayout->setObjectName("Layout");
48 
50  mCentralWidget->setObjectName("CQTSSAResultSubWidget");
51  mWidgetLayout->addWidget(mCentralWidget, 0, 0);
52 
53  /*commitChanges = new QPushButton(this, "commitChanges");
54  commitChanges->setText(trUtf8("Commit"));
55  Layout5->addWidget(commitChanges);
56 
57  cancelChanges = new QPushButton(this, "cancelChanges");
58  cancelChanges->setText(trUtf8("Revert"));
59  Layout5->addWidget(cancelChanges);*/
60 
61  // signals and slots connections
62  //connect(commitChanges, SIGNAL(clicked()), this, SLOT(slotBtnOKClicked()));
63  //connect(cancelChanges, SIGNAL(clicked()), this, SLOT(slotBtnCancelClicked()));
64 }
QGridLayout * mWidgetLayout
CopasiWidget(QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
CQTSSAResultSubWidget * mCentralWidget
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
CQTSSAResultWidget::~CQTSSAResultWidget ( )

Definition at line 69 of file CQTSSAResultWidget.cpp.

70 {}

Member Function Documentation

bool CQTSSAResultWidget::enterProtected ( )
protectedvirtual

Reimplemented from CopasiWidget.

Definition at line 121 of file CQTSSAResultWidget.cpp.

References CQTSSAResultSubWidget::discardOldResults(), CTSSAMethod::getCurrentStep(), CCopasiRootContainer::getDatamodelList(), CCopasiTask::getMethod(), loadFromBackend(), and mCentralWidget.

122 {
123  pTask =
124  dynamic_cast<CTSSATask *>((*(*CCopasiRootContainer::getDatamodelList())[0]->getTaskList())["Time Scale Separation Analysis"]);
125  pTSSILDM = dynamic_cast<CTSSAMethod*>(pTask->getMethod());
126 
127  if (!pTSSILDM->getCurrentStep())
128  {
129 #if 0
130  mCentralWidget->setStepSelectionDisabled(true);
131 #endif
133  }
134 
135 #if 0
136  else
137  mCentralWidget->setStepSelectionDisabled(false);
138 
139 #endif
140 
141  return loadFromBackend();
142  /*objKey = key;
143  CCompartment* comp = dynamic_cast< CCompartment * >(CCopasiRootContainer::getKeyFactory()->get(key));
144 
145  if (comp) return loadFromCompartment(comp);
146  else return false;*/
147 }
CTSSAMethod * pTSSILDM
const int & getCurrentStep() const
CTSSATask * pTask
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
CQTSSAResultSubWidget * mCentralWidget
CCopasiMethod * getMethod()
CQTSSAResultSubWidget* CQTSSAResultWidget::getSubWidget ( )
inline

Definition at line 33 of file CQTSSAResultWidget.h.

References mCentralWidget.

Referenced by CQTSSAWidget::taskFinishedEvent().

33 {return mCentralWidget;};
CQTSSAResultSubWidget * mCentralWidget
bool CQTSSAResultWidget::leave ( )
virtual

Reimplemented from CopasiWidget.

Definition at line 115 of file CQTSSAResultWidget.cpp.

116 {
117  //return saveToCompartment();
118  return true;
119 }
bool CQTSSAResultWidget::loadFromBackend ( )

Definition at line 72 of file CQTSSAResultWidget.cpp.

References CCopasiRootContainer::getDatamodelList(), and mCentralWidget.

Referenced by enterProtected(), and CQTSSAWidget::taskFinishedEvent().

73 {
74 
75 #if 0
76  mCentralWidget->displayOptimizationTab(false);
77  assert(CCopasiRootContainer::getDatamodelList()->size() > 0);
78  mCentralWidget->table()->setTimeSeries(dynamic_cast<CTSSATask *>((*(*CCopasiRootContainer::getDatamodelList())[0]->getTaskList())["Time Scale Separation Analysis"])->getTimeSeries());
79 #endif
80 
81  return true;
82 }
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
CQTSSAResultSubWidget * mCentralWidget
bool CQTSSAResultWidget::saveToBackend ( )

Definition at line 84 of file CQTSSAResultWidget.cpp.

85 {
86  return true;
87 }
bool CQTSSAResultWidget::update ( ListViews::ObjectType  objectType,
ListViews::Action  action,
const std::string &  key 
)
virtual

Reimplemented from CopasiWidget.

Definition at line 99 of file CQTSSAResultWidget.cpp.

References ListViews::ADD, mCentralWidget, and ListViews::MODEL.

102 {
103 
104 #if 0
105 
106  if (objectType == ListViews::MODEL &&
107  action == ListViews::ADD)
108  mCentralWidget->table()->setTimeSeries(CTimeSeries());
109 
110 #endif
111 
112  return true;
113 }
objectType
CQTSSAResultSubWidget * mCentralWidget

Member Data Documentation

CQTSSAResultSubWidget* CQTSSAResultWidget::mCentralWidget
protected
QGridLayout* CQTSSAResultWidget::mWidgetLayout
protected

Definition at line 45 of file CQTSSAResultWidget.h.

Referenced by CQTSSAResultWidget().


The documentation for this class was generated from the following files: