COPASI API
4.16.103
|
#include <CQModelValue.h>
Public Member Functions | |
CQModelValue (QWidget *parent=0, const char *name=0) | |
virtual bool | leave () |
virtual bool | update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key) |
~CQModelValue () | |
![]() | |
CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
bool | enter (const std::string &key) |
CCopasiDataModel * | getDataModel () |
bool | getIgnoreUpdates () |
virtual void | setFramework (int framework) |
void | setIgnoreUpdates (bool v) |
Protected Member Functions | |
virtual bool | enterProtected () |
Private Slots | |
void | slotBtnCopy () |
void | slotBtnDelete () |
void | slotBtnNew () |
Slot to create a new quantity; activated whenever the New button is clicked. More... | |
void | slotExpressionValid (bool valid) |
void | slotInitialExpressionValid (bool valid) |
void | slotInitialTypeChanged (bool useInitialAssignment) |
void | slotTypeChanged (int type) |
Private Member Functions | |
void | destroy () |
void | init () |
void | load () |
void | save () |
Private Attributes | |
bool | mChanged |
bool | mExpressionValid |
bool | mInitialExpressionValid |
std::vector< int > | mItemToType |
std::string | mKeyToCopy |
CModelValue * | mpModelValue |
Additional Inherited Members | |
![]() | |
virtual bool | protectedNotify (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
![]() | |
int | mFramework |
bool | mIgnoreUpdates |
std::string | mKey |
CCopasiDataModel * | mpDataModel |
ListViews * | mpListView |
CCopasiObject * | mpObject |
Definition at line 28 of file CQModelValue.h.
CQModelValue::CQModelValue | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 32 of file CQModelValue.cpp.
References init().
CQModelValue::~CQModelValue | ( | ) |
|
private |
|
protectedvirtual |
Reimplemented from CopasiWidget.
Definition at line 267 of file CQModelValue.cpp.
References CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), load(), mKeyToCopy, CopasiWidget::mpListView, mpModelValue, CopasiWidget::mpObject, and ListViews::switchToOtherWidget().
|
private |
Definition at line 184 of file CQModelValue.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, FROM_UTF8, CQExpressionWidget::InitialExpression, mExpressionValid, mInitialExpressionValid, mItemToType, CModelEntity::ODE, CModelEntity::StatusName, and CQExpressionWidget::TransientExpression.
Referenced by CQModelValue().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 248 of file CQModelValue.cpp.
References CModelEntity::FIXED, mItemToType, and save().
Referenced by slotBtnNew().
|
private |
Load any saved values to the screen
Definition at line 297 of file CQModelValue.cpp.
References CModelEntity::ASSIGNMENT, FROM_UTF8, CModelEntity::getExpression(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CModelEntity::getRate(), CModelEntity::getStatus(), CModelEntity::getValue(), mChanged, mpModelValue, slotTypeChanged(), and CModelEntity::StatusName.
Referenced by enterProtected(), and update().
|
private |
Save any inputs and set them as initial setting values
Definition at line 347 of file CQModelValue.cpp.
References CModelEntity::ASSIGNMENT, ListViews::CHANGE, CCopasiRootContainer::getDatamodelList(), CModelEntity::getExpression(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CModelEntity::getStatus(), mChanged, mItemToType, CopasiWidget::mKey, ListViews::MODELVALUE, mpModelValue, CopasiWidget::protectedNotify(), CModelEntity::setExpression(), CModelEntity::setInitialExpression(), CModelEntity::setInitialValue(), and CModelEntity::setStatus().
Referenced by leave().
|
privateslot |
|
privateslot |
Definition at line 81 of file CQModelValue.cpp.
References CQMessageBox::confirmDelete(), ListViews::DELETE, FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CModelEntity::getDeletedObjects(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CopasiWidget::mKey, ListViews::MODELVALUE, mpModelValue, CopasiWidget::protectedNotify(), and CModel::removeModelValue().
|
privateslot |
Slot to create a new quantity; activated whenever the New button is clicked.
Definition at line 51 of file CQModelValue.cpp.
References ListViews::ADD, C_INVALID_INDEX, CCopasiRootContainer::getDatamodelList(), CModelEntity::getKey(), leave(), ListViews::MODELVALUE, CopasiWidget::mpListView, mpModelValue, CopasiWidget::protectedNotify(), ListViews::switchToOtherWidget(), and TO_UTF8.
|
privateslot |
This function is used in case of not FIXED type
Definition at line 174 of file CQModelValue.cpp.
References mExpressionValid.
|
privateslot |
|
privateslot |
If the initial expression is chosen to be used by checking the mpBoxUseInitialExpression check box being represented by the boolean parameter useInitialAssignment (true if checked; false otherwise), COPASI will show the Initial Expression Widget with its correct push buttons. Otherwise, the widget and its buttons will be hidden.
Definition at line 406 of file CQModelValue.cpp.
References CModelEntity::ASSIGNMENT, and mItemToType.
Referenced by slotTypeChanged().
|
privateslot |
If the simulation type is changed then COPASI will automatically adjust its appearance, especially correlating to the Expression Widget and its buttons.
Definition at line 121 of file CQModelValue.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, mItemToType, CModelEntity::ODE, and slotInitialTypeChanged().
Referenced by load().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 204 of file CQModelValue.cpp.
References ListViews::ADD, ListViews::DELETE, load(), CopasiWidget::mIgnoreUpdates, CopasiWidget::mKey, ListViews::MODEL, ListViews::MODELVALUE, mpModelValue, CopasiWidget::mpObject, and ListViews::STATE.
|
private |
Definition at line 47 of file CQModelValue.h.
|
private |
Definition at line 48 of file CQModelValue.h.
Referenced by init(), and slotExpressionValid().
|
private |
Definition at line 49 of file CQModelValue.h.
Referenced by init(), and slotInitialExpressionValid().
|
private |
Definition at line 45 of file CQModelValue.h.
Referenced by init(), leave(), save(), slotInitialTypeChanged(), and slotTypeChanged().
|
private |
Definition at line 55 of file CQModelValue.h.
Referenced by enterProtected(), and slotBtnCopy().
|
private |
Definition at line 46 of file CQModelValue.h.
Referenced by enterProtected(), load(), save(), slotBtnDelete(), slotBtnNew(), and update().