COPASI API
4.16.103
|
#include <CQCompartment.h>
Public Member Functions | |
void | copy () |
CQCompartment (QWidget *parent=0, const char *name=0) | |
virtual bool | leave () |
virtual bool | update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key) |
~CQCompartment () | |
![]() | |
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 () |
void | slotExpressionValid (bool valid) |
void | slotInitialExpressionValid (bool valid) |
void | slotInitialTypeChanged (bool useInitialAssignment) |
void | slotMetaboliteTableCurrentChanged (int row, int col) |
void | slotTypeChanged (int type) |
Private Member Functions | |
void | destroy () |
void | init () |
void | load () |
void | loadMetaboliteTable () |
void | save () |
Private Attributes | |
bool | mChanged |
bool | mExpressionValid |
bool | mInitialExpressionValid |
std::vector< int > | mItemToType |
CCompartment * | mpCompartment |
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 26 of file CQCompartment.h.
CQCompartment::CQCompartment | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 38 of file CQCompartment.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, FROM_UTF8, CQExpressionWidget::InitialExpression, mExpressionValid, mInitialExpressionValid, mItemToType, CModelEntity::ODE, CModelEntity::StatusName, and CQExpressionWidget::TransientExpression.
CQCompartment::~CQCompartment | ( | ) |
Definition at line 76 of file CQCompartment.cpp.
void CQCompartment::copy | ( | ) |
Definition at line 103 of file CQCompartment.cpp.
References CModelExpansion::SetOfModelElements::addMetab(), CModelExpansion::SetOfModelElements::addObject(), CModelExpansion::SetOfModelElements::addReaction(), CQCompartmentCopyOptions::ALLREAC, CCopasiVector< T >::begin(), C_INVALID_INDEX, CQCompartmentCopyOptions::COMP, ListViews::COMPARTMENT, ListViews::DELETE, CModelExpansion::duplicate(), CCopasiVector< T >::end(), CModelExpansion::SetOfModelElements::fillDependencies(), CReactionInterface::getChemEqInterface(), CChemEqInterface::getCompartment(), CModelExpansion::ElementsMap::getDuplicateKey(), CModelEntity::getKey(), CCompartment::getMetabolites(), CCopasiDataModel::getModel(), CModel::getReactions(), CReactionInterface::initFromReaction(), CQCompartmentCopyOptions::INTREAC, CReactionInterface::isMulticompartment(), ListViews::METABOLITE, CopasiWidget::mKey, mpCompartment, CopasiWidget::mpDataModel, CopasiWidget::mpListView, CopasiWidget::mpObject, pdelete, CopasiWidget::protectedNotify(), ListViews::REACTION, CQCompartmentCopyOptions::SPECIES, and ListViews::switchToOtherWidget().
Referenced by CQTabWidget::slotBtnCopy().
|
private |
Definition at line 521 of file CQCompartment.cpp.
|
protectedvirtual |
Reimplemented from CopasiWidget.
Definition at line 330 of file CQCompartment.cpp.
References load(), mpCompartment, and CopasiWidget::mpObject.
|
private |
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 339 of file CQCompartment.cpp.
References CModelEntity::FIXED, mItemToType, and save().
Referenced by slotBtnNew().
|
private |
Definition at line 380 of file CQCompartment.cpp.
References CModelEntity::ASSIGNMENT, FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CCompartment::getDimensionality(), CModelEntity::getExpression(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CCopasiObject::getObjectAncestor(), CModelEntity::getRate(), CModelEntity::getStatus(), CModelEntity::getValue(), CModel::getVolumeRateUnitsDisplayString(), CModel::getVolumeUnitsDisplayString(), loadMetaboliteTable(), mChanged, mpCompartment, slotTypeChanged(), and CModelEntity::StatusName.
Referenced by enterProtected(), and update().
|
private |
Definition at line 548 of file CQCompartment.cpp.
References FROM_UTF8, CCompartment::getMetabolites(), CCopasiContainer::getObjects(), mpCompartment, and CCopasiVector< T >::size().
Referenced by load().
|
private |
Definition at line 457 of file CQCompartment.cpp.
References CModelEntity::ASSIGNMENT, C_INT32, ListViews::CHANGE, ListViews::COMPARTMENT, CCopasiRootContainer::getDatamodelList(), CCompartment::getDimensionality(), CModelEntity::getExpression(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CModelEntity::getStatus(), mChanged, mItemToType, CopasiWidget::mKey, mpCompartment, CopasiWidget::protectedNotify(), CCompartment::setDimensionality(), CModelEntity::setExpression(), CModelEntity::setInitialExpression(), CModelEntity::setInitialValue(), and CModelEntity::setStatus().
Referenced by leave().
|
inlineprivateslot |
Definition at line 58 of file CQCompartment.h.
|
privateslot |
Definition at line 196 of file CQCompartment.cpp.
References ListViews::COMPARTMENT, CQMessageBox::confirmDelete(), ListViews::DELETE, FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CCompartment::getDeletedObjects(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CopasiWidget::mKey, mpCompartment, CopasiWidget::protectedNotify(), and CModel::removeCompartment().
|
privateslot |
Definition at line 81 of file CQCompartment.cpp.
References ListViews::ADD, C_INVALID_INDEX, ListViews::COMPARTMENT, CCopasiRootContainer::getDatamodelList(), CModelEntity::getKey(), leave(), mpCompartment, CopasiWidget::mpListView, CopasiWidget::protectedNotify(), ListViews::switchToOtherWidget(), and TO_UTF8.
|
privateslot |
|
privateslot |
|
privateslot |
This function is used in case of not FIXED type
Definition at line 298 of file CQCompartment.cpp.
References CModelEntity::ASSIGNMENT, and mItemToType.
Referenced by slotTypeChanged().
|
privateslot |
Definition at line 524 of file CQCompartment.cpp.
References C_INVALID_INDEX, CCompartment::getMetabolites(), CCopasiContainer::getObjects(), mpCompartment, CopasiWidget::mpListView, ListViews::switchToOtherWidget(), and TO_UTF8.
|
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 232 of file CQCompartment.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, FROM_UTF8, CCopasiObject::getObjectAncestor(), CModel::getVolumeRateUnitsDisplayString(), CModel::getVolumeUnitsDisplayString(), mItemToType, mpCompartment, CModelEntity::ODE, and slotInitialTypeChanged().
Referenced by load().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 358 of file CQCompartment.cpp.
References ListViews::COMPARTMENT, load(), ListViews::METABOLITE, CopasiWidget::mIgnoreUpdates, ListViews::MODEL, and ListViews::STATE.
|
private |
Definition at line 46 of file CQCompartment.h.
|
private |
Definition at line 47 of file CQCompartment.h.
Referenced by CQCompartment(), and slotExpressionValid().
|
private |
Definition at line 48 of file CQCompartment.h.
Referenced by CQCompartment(), and slotInitialExpressionValid().
|
private |
Definition at line 44 of file CQCompartment.h.
Referenced by CQCompartment(), leave(), save(), slotInitialTypeChanged(), and slotTypeChanged().
|
private |
Definition at line 45 of file CQCompartment.h.
Referenced by copy(), enterProtected(), load(), loadMetaboliteTable(), save(), slotBtnDelete(), slotBtnNew(), slotMetaboliteTableCurrentChanged(), and slotTypeChanged().