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

#include <CMCAResultWidget.h>

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

Public Member Functions

 CMCAResultWidget (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
 
virtual bool leave ()
 
bool loadFromBackend ()
 
virtual bool update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
 
 ~CMCAResultWidget ()
 
- 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 ()
 
bool saveToBackend ()
 

Protected Attributes

CMCAResultSubwidgetmCentralWidget
 
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 24 of file CMCAResultWidget.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file CMCAResultWidget.cpp.

References mCentralWidget, and mWidgetLayout.

33  : CopasiWidget(parent, name, fl)
34 {
35  if (!name)
36  setObjectName("CMCAResultWidget");
37 
38  setWindowTitle(trUtf8("CMCAResultWidget"));
39 
40  mWidgetLayout = new QGridLayout(this);
41  mWidgetLayout->setObjectName("Layout");
42 
43  mCentralWidget = new CMCAResultSubwidget(this, "CMCAResultSubwidget");
44  mWidgetLayout->addWidget(mCentralWidget, 0, 0);
45 }
CMCAResultSubwidget * mCentralWidget
CopasiWidget(QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
QGridLayout * mWidgetLayout
CMCAResultWidget::~CMCAResultWidget ( )

Definition at line 50 of file CMCAResultWidget.cpp.

51 {}

Member Function Documentation

bool CMCAResultWidget::enterProtected ( )
protectedvirtual

Reimplemented from CopasiWidget.

Definition at line 87 of file CMCAResultWidget.cpp.

88 {
89  return true;
90 }
bool CMCAResultWidget::leave ( )
virtual

Reimplemented from CopasiWidget.

Definition at line 82 of file CMCAResultWidget.cpp.

83 {
84  return true;
85 }
bool CMCAResultWidget::loadFromBackend ( )

Definition at line 55 of file CMCAResultWidget.cpp.

References CCopasiRootContainer::getDatamodelList(), CCopasiTask::getMethod(), CMCAResultSubwidget::loadAll(), mCentralWidget, and pTask.

Referenced by CQMCAWidget::taskFinishedEvent().

56 {
57  assert(CCopasiRootContainer::getDatamodelList()->size() > 0);
58  CMCATask * pTask =
59  dynamic_cast<CMCATask *>((*(*CCopasiRootContainer::getDatamodelList())[0]->getTaskList())["Metabolic Control Analysis"]);
60 
61  if (!pTask) return false;
62 
63  mCentralWidget->loadAll(dynamic_cast<CMCAMethod*>(pTask->getMethod()));
64  return true;
65 }
virtual void loadAll(const CMCAMethod *mcaMethod)
CMCAResultSubwidget * mCentralWidget
CTSSATask * pTask
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
CCopasiMethod * getMethod()
bool CMCAResultWidget::saveToBackend ( )
protected

Definition at line 67 of file CMCAResultWidget.cpp.

68 {
69  return true;
70 }
bool CMCAResultWidget::update ( ListViews::ObjectType  objectType,
ListViews::Action  action,
const std::string &  key 
)
virtual

Reimplemented from CopasiWidget.

Definition at line 72 of file CMCAResultWidget.cpp.

References ListViews::ADD, CMCAResultSubwidget::loadAll(), mCentralWidget, and ListViews::MODEL.

75 {
76  if (objectType == ListViews::MODEL && action == ListViews::ADD)
77  mCentralWidget->loadAll(NULL);
78 
79  return true;
80 }
objectType
virtual void loadAll(const CMCAMethod *mcaMethod)
CMCAResultSubwidget * mCentralWidget

Member Data Documentation

CMCAResultSubwidget* CMCAResultWidget::mCentralWidget
protected

Definition at line 44 of file CMCAResultWidget.h.

Referenced by CMCAResultWidget(), loadFromBackend(), and update().

QGridLayout* CMCAResultWidget::mWidgetLayout
protected

Definition at line 42 of file CMCAResultWidget.h.

Referenced by CMCAResultWidget().


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