COPASI API
4.16.103
|
#include <CQSpeciesDetail.h>
Public Member Functions | |
void | copy () |
CQSpeciesDetail (QWidget *parent=0, const char *name=0) | |
virtual bool | leave () |
virtual void | setFramework (int framework) |
virtual bool | update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key) |
virtual | ~CQSpeciesDetail () |
![]() | |
CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
bool | enter (const std::string &key) |
CCopasiDataModel * | getDataModel () |
bool | getIgnoreUpdates () |
void | setIgnoreUpdates (bool v) |
Protected Member Functions | |
virtual bool | enterProtected () |
Private Slots | |
void | slotBtnCopy () |
void | slotBtnDelete () |
void | slotBtnNew () |
void | slotCompartmentChanged (int compartment) |
void | slotExpressionValid (bool valid) |
void | slotInitialExpressionValid (bool valid) |
void | slotInitialTypeChanged (bool useInitialExpression) |
void | slotInitialValueLostFocus () |
void | slotNameLostFocus () |
void | slotSwitchToReaction (int row, int column) |
void | slotTypeChanged (int type) |
Private Member Functions | |
void | load () |
void | loadReactionTable () |
void | save () |
Private Attributes | |
bool | mChanged |
bool | mExpressionValid |
double | mInitialConcentration |
bool | mInitialExpressionValid |
double | mInitialNumber |
std::vector< int > | mItemToType |
const CCompartment * | mpCurrentCompartment |
CMetab * | mpMetab |
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 21 of file CQSpeciesDetail.h.
CQSpeciesDetail::CQSpeciesDetail | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 25 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, FROM_UTF8, CQExpressionWidget::InitialExpression, mItemToType, CModelEntity::ODE, CModelEntity::REACTIONS, CModelEntity::StatusName, and CQExpressionWidget::TransientExpression.
|
virtual |
Definition at line 66 of file CQSpeciesDetail.cpp.
void CQSpeciesDetail::copy | ( | ) |
Definition at line 505 of file CQSpeciesDetail.cpp.
References CModelExpansion::ElementsMap::add(), CModelExpansion::SetOfModelElements::addCompartment(), CModelExpansion::SetOfModelElements::addMetab(), CCopasiVector< T >::begin(), C_INVALID_INDEX, ListViews::COMPARTMENT, ListViews::DELETE, CModelExpansion::duplicateMetab(), CCopasiVector< T >::end(), FROM_UTF8, CMetab::getCompartment(), CModel::getCompartments(), CModelExpansion::ElementsMap::getDuplicateKey(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), ListViews::METABOLITE, CopasiWidget::mKey, mpCurrentCompartment, CopasiWidget::mpDataModel, CopasiWidget::mpListView, mpMetab, pdelete, CopasiWidget::protectedNotify(), ListViews::REACTION, CQNameSelectionDialog::setSelectionList(), and ListViews::switchToOtherWidget().
Referenced by CQTabWidget::slotBtnCopy().
|
protectedvirtual |
Reimplemented from CopasiWidget.
Definition at line 235 of file CQSpeciesDetail.cpp.
References load(), CopasiWidget::mpListView, mpMetab, CopasiWidget::mpObject, and ListViews::switchToOtherWidget().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 70 of file CQSpeciesDetail.cpp.
References CModelEntity::FIXED, mItemToType, CModelEntity::REACTIONS, and save().
Referenced by slotBtnNew().
|
private |
Definition at line 251 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, FROM_UTF8, CMetab::getCompartment(), CModel::getCompartments(), CModelEntity::getExpression(), CMetab::getInitialConcentration(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CMetab::getModel(), CCopasiObject::getObjectName(), CModelEntity::getStatus(), CModel::getTimeUnitsDisplayString(), CMetab::getTransitionTime(), loadReactionTable(), mChanged, CopasiWidget::mFramework, mInitialConcentration, mInitialNumber, mpCurrentCompartment, mpMetab, setFramework(), CCopasiVector< T >::size(), slotTypeChanged(), and CModelEntity::StatusName.
Referenced by enterProtected(), and update().
|
private |
Definition at line 440 of file CQSpeciesDetail.cpp.
References CModel::appendDependentReactions(), FROM_UTF8, CChemEqInterface::getChemEqString(), CMetab::getDeletedObjects(), CMetab::getModel(), CCopasiObject::getObjectName(), and mpMetab.
Referenced by load().
|
private |
Definition at line 333 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, ListViews::CHANGE, CCopasiDataModel::changed(), ListViews::COMPARTMENT, FROM_UTF8, CMetab::getCompartment(), CModel::getCompartments(), CModelEntity::getExpression(), CMetab::getInitialConcentration(), CModelEntity::getInitialExpression(), CModelEntity::getInitialValue(), CMetab::getModel(), CCopasiObject::getObjectName(), CModelEntity::getStatus(), CQMessageBox::information(), CModel::initializeMetabolites(), mChanged, ListViews::METABOLITE, CopasiWidget::mFramework, mInitialConcentration, mInitialNumber, mItemToType, CopasiWidget::mKey, mpCurrentCompartment, CopasiWidget::mpDataModel, mpMetab, CopasiWidget::protectedNotify(), CCopasiVectorN< CType >::remove(), CModel::setCompileFlag(), CModelEntity::setExpression(), CMetab::setInitialConcentration(), CModelEntity::setInitialExpression(), CModelEntity::setInitialValue(), CMetab::setStatus(), slotCompartmentChanged(), and TO_UTF8.
Referenced by leave().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 135 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, FROM_UTF8, CMetab::getConcentration(), CMetab::getConcentrationRate(), CModel::getConcentrationRateUnitsDisplayString(), CModel::getConcentrationUnitsDisplayString(), CModel::getFrequencyUnitsDisplayString(), CMetab::getModel(), CModelEntity::getRate(), CModelEntity::getStatus(), CModelEntity::getValue(), CMetab::isInitialConcentrationChangeAllowed(), CopasiWidget::mFramework, mInitialConcentration, mInitialNumber, mItemToType, mpMetab, and CopasiWidget::setFramework().
Referenced by load(), and slotTypeChanged().
|
inlineprivateslot |
Definition at line 56 of file CQSpeciesDetail.h.
|
privateslot |
Definition at line 474 of file CQSpeciesDetail.cpp.
References CQMessageBox::confirmDelete(), ListViews::DELETE, FROM_UTF8, CMetab::getDeletedObjects(), CMetab::getModel(), CCopasiObject::getObjectName(), ListViews::METABOLITE, CopasiWidget::mKey, mpMetab, CopasiWidget::protectedNotify(), and CModel::removeMetabolite().
|
privateslot |
Definition at line 573 of file CQSpeciesDetail.cpp.
References ListViews::ADD, C_INVALID_INDEX, CModel::createCompartment(), CModel::createMetabolite(), CModel::getCompartments(), CCopasiRootContainer::getDatamodelList(), CModelEntity::getKey(), CCopasiDataModel::getModel(), leave(), ListViews::METABOLITE, CopasiWidget::mFramework, CopasiWidget::mpListView, mpMetab, CopasiWidget::protectedNotify(), CModelEntity::REACTIONS, CMetab::setInitialConcentration(), CModelEntity::setInitialValue(), CCopasiVector< T >::size(), ListViews::switchToOtherWidget(), and TO_UTF8.
|
privateslot |
Definition at line 615 of file CQSpeciesDetail.cpp.
References CModel::getCompartments(), CModelEntity::getInitialValue(), CMetab::getModel(), CopasiWidget::mFramework, mInitialNumber, mpCurrentCompartment, mpMetab, and TO_UTF8.
Referenced by save().
|
privateslot |
|
privateslot |
Definition at line 644 of file CQSpeciesDetail.cpp.
References mInitialExpressionValid.
|
privateslot |
Definition at line 649 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, and mItemToType.
Referenced by slotTypeChanged().
|
privateslot |
Definition at line 668 of file CQSpeciesDetail.cpp.
References CMetab::convertToConcentration(), CMetab::convertToNumber(), CMetab::getModel(), CopasiWidget::mFramework, mInitialConcentration, mInitialNumber, mpCurrentCompartment, and mpMetab.
|
privateslot |
Definition at line 703 of file CQSpeciesDetail.cpp.
|
privateslot |
Definition at line 706 of file CQSpeciesDetail.cpp.
References CModel::appendDependentReactions(), C_INT32, C_INVALID_INDEX, CMetab::getDeletedObjects(), CReaction::getKey(), CMetab::getModel(), CCopasiObject::getObjectName(), CopasiWidget::mpListView, mpMetab, ListViews::switchToOtherWidget(), and TO_UTF8.
|
privateslot |
Definition at line 736 of file CQSpeciesDetail.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, CopasiWidget::mFramework, mItemToType, CModelEntity::ODE, CModelEntity::REACTIONS, setFramework(), and slotInitialTypeChanged().
Referenced by load().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 90 of file CQSpeciesDetail.cpp.
References ListViews::ADD, ListViews::COMPARTMENT, ListViews::DELETE, load(), ListViews::METABOLITE, CopasiWidget::mIgnoreUpdates, CopasiWidget::mKey, ListViews::MODEL, mpMetab, CopasiWidget::mpObject, and ListViews::STATE.
|
private |
Definition at line 41 of file CQSpeciesDetail.h.
|
private |
Definition at line 47 of file CQSpeciesDetail.h.
Referenced by slotExpressionValid().
|
private |
Definition at line 46 of file CQSpeciesDetail.h.
Referenced by load(), save(), setFramework(), and slotInitialValueLostFocus().
|
private |
Definition at line 48 of file CQSpeciesDetail.h.
Referenced by slotInitialExpressionValid().
|
private |
Definition at line 45 of file CQSpeciesDetail.h.
Referenced by load(), save(), setFramework(), slotCompartmentChanged(), and slotInitialValueLostFocus().
|
private |
Definition at line 44 of file CQSpeciesDetail.h.
Referenced by CQSpeciesDetail(), leave(), save(), setFramework(), slotInitialTypeChanged(), and slotTypeChanged().
|
private |
Definition at line 43 of file CQSpeciesDetail.h.
Referenced by copy(), load(), save(), slotCompartmentChanged(), and slotInitialValueLostFocus().
|
private |
Definition at line 42 of file CQSpeciesDetail.h.
Referenced by copy(), enterProtected(), load(), loadReactionTable(), save(), setFramework(), slotBtnDelete(), slotBtnNew(), slotCompartmentChanged(), slotInitialValueLostFocus(), slotSwitchToReaction(), and update().