COPASI API
4.16.103
|
#include <CQReactionDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQReactionDM (QObject *parent=0) | |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
bool | removeRows (QModelIndexList rows, const QModelIndex &index=QModelIndex()) |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
![]() | |
virtual bool | clear () |
CQBaseDataModel (QObject *parent=0) | |
QString | createNewName (const QString name, const int nameCol) |
bool | insertRow () |
virtual bool | isDefaultRow (const QModelIndex &i) const |
bool | removeRow (int position) |
Protected Member Functions | |
bool | insertRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
bool | removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
Private Member Functions | |
void | setEquation (const CReaction *pRea, const QModelIndex &index, const QVariant &value) |
Private Attributes | |
QString | mNewEquation |
Additional Inherited Members | |
![]() | |
void | notifyGUI (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
Definition at line 32 of file CQReactionDM.h.
CQReactionDM::CQReactionDM | ( | QObject * | parent = 0 | ) |
Definition at line 24 of file CQReactionDM.cpp.
|
virtual |
Definition at line 33 of file CQReactionDM.cpp.
References TOTAL_COLS_REACTIONS.
Referenced by CQReactionsWidget::keyPressEvent().
|
virtual |
Implements CQBaseDataModel.
Definition at line 49 of file CQReactionDM.cpp.
References COL_EQUATION, COL_FLUX, COL_NAME_REACTIONS, COL_PARTICLE_FLUX, COL_RATE_LAW, COL_ROW_NUMBER, flags(), FROM_UTF8, CChemEqInterface::getChemEqString(), CCopasiRootContainer::getDatamodelList(), CReaction::getFlux(), CReaction::getFunction(), CCopasiObject::getObjectName(), CReaction::getParticleFlux(), CQBaseDataModel::isDefaultRow(), mNewEquation, and rowCount().
Referenced by setData(), and setEquation().
|
virtual |
Reimplemented from CQBaseDataModel.
Definition at line 38 of file CQReactionDM.cpp.
References COL_EQUATION, and COL_NAME_REACTIONS.
Referenced by data().
|
virtual |
Implements CQBaseDataModel.
Definition at line 118 of file CQReactionDM.cpp.
References COL_EQUATION, COL_FLUX, COL_NAME_REACTIONS, COL_PARTICLE_FLUX, COL_RATE_LAW, COL_ROW_NUMBER, FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CModel::getFrequencyUnitsDisplayString(), and CModel::getQuantityRateUnitsDisplayString().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 327 of file CQReactionDM.cpp.
References ListViews::ADD, COL_NAME_REACTIONS, CQBaseDataModel::createNewName(), CCopasiRootContainer::getDatamodelList(), CReaction::getKey(), CQBaseDataModel::notifyGUI(), ListViews::REACTION, and TO_UTF8.
bool CQReactionDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 376 of file CQReactionDM.cpp.
References C_INVALID_INDEX, CQMessageBox::confirmDelete(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CReaction::getDeletedObjects(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CModel::getReactions(), CQBaseDataModel::isDefaultRow(), and CQBaseDataModel::removeRow().
Referenced by CQReactionsWidget::deleteSelectedReactions().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 342 of file CQReactionDM.cpp.
References CCopasiVector< T >::begin(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CModel::getReactions(), CQBaseDataModel::notifyGUI(), ListViews::REACTION, and CModel::removeReaction().
|
virtual |
Definition at line 29 of file CQReactionDM.cpp.
References CCopasiRootContainer::getDatamodelList().
Referenced by data(), and CQReactionsWidget::deleteSelectedReactions().
|
virtual |
Implements CQBaseDataModel.
Definition at line 182 of file CQReactionDM.cpp.
References ListViews::CHANGE, COL_EQUATION, COL_NAME_REACTIONS, CQBaseDataModel::createNewName(), data(), CCopasiRootContainer::getDatamodelList(), CReaction::getKey(), CQBaseDataModel::insertRow(), CQBaseDataModel::isDefaultRow(), CQBaseDataModel::notifyGUI(), ListViews::REACTION, setEquation(), CCopasiObject::setObjectName(), and TO_UTF8.
|
private |
Definition at line 218 of file CQReactionDM.cpp.
References ListViews::ADD, ListViews::CHANGE, COL_NAME_REACTIONS, CQMessageBox::confirmDelete(), CReactionInterface::createMetabolites(), CReactionInterface::createOtherObjects(), data(), ListViews::DELETE, FROM_UTF8, CKeyFactory::get(), CReactionInterface::getChemEqString(), CCopasiRootContainer::getDatamodelList(), CReactionInterface::getDeletedParameters(), CReaction::getKey(), CCopasiRootContainer::getKeyFactory(), CCopasiDataModel::getModel(), CReactionInterface::initFromReaction(), CChemEqInterface::isValidEq(), ListViews::METABOLITE, mNewEquation, ListViews::MODEL, CQBaseDataModel::notifyGUI(), ListViews::REACTION, CModel::removeLocalReactionParameter(), CReactionInterface::setChemEqString(), CReactionInterface::setFunctionWithEmptyMapping(), TO_UTF8, and CReactionInterface::writeBackToReaction().
Referenced by setData().
|
private |
Definition at line 55 of file CQReactionDM.h.
Referenced by data(), and setEquation().