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

#include <CLNAResultWidget.h>

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

Public Member Functions

 CLNAResultWidget (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)
 
 ~CLNAResultWidget ()
 
- 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

CLNAResultSubwidgetmCentralWidget
 
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 14 of file CLNAResultWidget.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file CLNAResultWidget.cpp.

References mCentralWidget, and mWidgetLayout.

23  : CopasiWidget(parent, name, fl)
24 {
25  if (!name)
26  setObjectName("CLNAResultWidget");
27 
28  setWindowTitle(trUtf8("CLNAResultWidget"));
29 
30  mWidgetLayout = new QGridLayout(this);
31  mWidgetLayout->setObjectName("Layout");
32 
33  mCentralWidget = new CLNAResultSubwidget(this, "CLNAResultSubwidget");
34  mWidgetLayout->addWidget(mCentralWidget, 0, 0);
35 }
CopasiWidget(QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
CLNAResultSubwidget * mCentralWidget
QGridLayout * mWidgetLayout
CLNAResultWidget::~CLNAResultWidget ( )

Definition at line 40 of file CLNAResultWidget.cpp.

41 {}

Member Function Documentation

bool CLNAResultWidget::enterProtected ( )
protectedvirtual

Reimplemented from CopasiWidget.

Definition at line 77 of file CLNAResultWidget.cpp.

78 {
79  return true;
80 }
bool CLNAResultWidget::leave ( )
virtual

Reimplemented from CopasiWidget.

Definition at line 72 of file CLNAResultWidget.cpp.

73 {
74  return true;
75 }
bool CLNAResultWidget::loadFromBackend ( )

Definition at line 45 of file CLNAResultWidget.cpp.

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

Referenced by CQLNAWidget::taskFinishedEvent().

46 {
47  assert(CCopasiRootContainer::getDatamodelList()->size() > 0);
48  CLNATask * pTask =
49  dynamic_cast<CLNATask *>((*(*CCopasiRootContainer::getDatamodelList())[0]->getTaskList())["Linear Noise Approximation"]);
50 
51  if (!pTask) return false;
52 
53  mCentralWidget->loadAll(dynamic_cast<CLNAMethod*>(pTask->getMethod()));
54  return true;
55 }
virtual void loadAll(const CLNAMethod *lnaMethod)
CTSSATask * pTask
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
CCopasiMethod * getMethod()
CLNAResultSubwidget * mCentralWidget
bool CLNAResultWidget::saveToBackend ( )
protected

Definition at line 57 of file CLNAResultWidget.cpp.

58 {
59  return true;
60 }
bool CLNAResultWidget::update ( ListViews::ObjectType  objectType,
ListViews::Action  action,
const std::string &  key 
)
virtual

Reimplemented from CopasiWidget.

Definition at line 62 of file CLNAResultWidget.cpp.

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

65 {
66  if (objectType == ListViews::MODEL && action == ListViews::ADD)
67  mCentralWidget->loadAll(NULL);
68 
69  return true;
70 }
objectType
virtual void loadAll(const CLNAMethod *lnaMethod)
CLNAResultSubwidget * mCentralWidget

Member Data Documentation

CLNAResultSubwidget* CLNAResultWidget::mCentralWidget
protected

Definition at line 34 of file CLNAResultWidget.h.

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

QGridLayout* CLNAResultWidget::mWidgetLayout
protected

Definition at line 32 of file CLNAResultWidget.h.

Referenced by CLNAResultWidget().


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