COPASI API
4.16.103
|
#include <CQGlobalQuantityDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQGlobalQuantityDM (QObject *parent=0) | |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
const std::vector< unsigned C_INT32 > & | getItemToType () |
const QStringList & | getTypes () |
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()) |
Protected Attributes | |
std::vector< unsigned C_INT32 > | mItemToType |
QStringList | mTypes |
Additional Inherited Members | |
![]() | |
void | notifyGUI (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
Definition at line 34 of file CQGlobalQuantityDM.h.
CQGlobalQuantityDM::CQGlobalQuantityDM | ( | QObject * | parent = 0 | ) |
Definition at line 22 of file CQGlobalQuantityDM.cpp.
References CModelEntity::ASSIGNMENT, CModelEntity::FIXED, FROM_UTF8, mItemToType, mTypes, CModelEntity::ODE, and CModelEntity::StatusName.
|
virtual |
Definition at line 49 of file CQGlobalQuantityDM.cpp.
References TOTAL_COLS_GQ.
Referenced by CQGlobalQuantitiesWidget::keyPressEvent().
|
virtual |
Implements CQBaseDataModel.
Definition at line 72 of file CQGlobalQuantityDM.cpp.
References COL_EXPRESSION_GQ, COL_IEXPRESSION_GQ, COL_INITIAL_GQ, COL_NAME_GQ, COL_RATE_GQ, COL_ROW_NUMBER, COL_TRANSIENT_GQ, COL_TYPE_GQ, flags(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CExpression::getDisplayString(), CModelEntity::getExpressionPtr(), CModelEntity::getInitialExpression(), CModelEntity::getInitialExpressionPtr(), CModelEntity::getInitialValue(), CCopasiObject::getObjectName(), CModelEntity::getRate(), CModelEntity::getStatus(), CModelEntity::getValue(), CQBaseDataModel::isDefaultRow(), mItemToType, rowCount(), and CModelEntity::StatusName.
Referenced by flags(), and setData().
|
virtual |
Reimplemented from CQBaseDataModel.
Definition at line 54 of file CQGlobalQuantityDM.cpp.
References CModelEntity::ASSIGNMENT, COL_INITIAL_GQ, COL_NAME_GQ, COL_TYPE_GQ, data(), FROM_UTF8, and CModelEntity::StatusName.
Referenced by data().
const std::vector< unsigned C_INT32 > & CQGlobalQuantityDM::getItemToType | ( | ) |
Definition at line 40 of file CQGlobalQuantityDM.cpp.
References mItemToType.
const QStringList & CQGlobalQuantityDM::getTypes | ( | ) |
Definition at line 35 of file CQGlobalQuantityDM.cpp.
References mTypes.
Referenced by CQGlobalQuantitiesWidget::CQGlobalQuantitiesWidget().
|
virtual |
Implements CQBaseDataModel.
Definition at line 164 of file CQGlobalQuantityDM.cpp.
References COL_EXPRESSION_GQ, COL_IEXPRESSION_GQ, COL_INITIAL_GQ, COL_NAME_GQ, COL_RATE_GQ, COL_ROW_NUMBER, COL_TRANSIENT_GQ, and COL_TYPE_GQ.
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 248 of file CQGlobalQuantityDM.cpp.
References ListViews::ADD, COL_NAME_GQ, CQBaseDataModel::createNewName(), CCopasiRootContainer::getDatamodelList(), CModelEntity::getKey(), ListViews::MODELVALUE, CQBaseDataModel::notifyGUI(), and TO_UTF8.
bool CQGlobalQuantityDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 297 of file CQGlobalQuantityDM.cpp.
References C_INVALID_INDEX, CQMessageBox::confirmDelete(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CModelEntity::getDeletedObjects(), CCopasiDataModel::getModel(), CModel::getModelValues(), CCopasiObject::getObjectName(), CQBaseDataModel::isDefaultRow(), and CQBaseDataModel::removeRow().
Referenced by CQGlobalQuantitiesWidget::deleteSelectedGlobalQuantities().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 263 of file CQGlobalQuantityDM.cpp.
References CCopasiVector< T >::begin(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CModel::getModelValues(), ListViews::MODELVALUE, CQBaseDataModel::notifyGUI(), and CModel::removeModelValue().
|
virtual |
Definition at line 45 of file CQGlobalQuantityDM.cpp.
References CCopasiRootContainer::getDatamodelList().
Referenced by data(), and CQGlobalQuantitiesWidget::deleteSelectedGlobalQuantities().
|
virtual |
Implements CQBaseDataModel.
Definition at line 206 of file CQGlobalQuantityDM.cpp.
References ListViews::CHANGE, COL_INITIAL_GQ, COL_NAME_GQ, COL_TYPE_GQ, CQBaseDataModel::createNewName(), data(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CModelEntity::getKey(), CQBaseDataModel::insertRow(), CQBaseDataModel::isDefaultRow(), mItemToType, ListViews::MODELVALUE, CQBaseDataModel::notifyGUI(), CModelEntity::setInitialValue(), CCopasiObject::setObjectName(), CModelEntity::setStatus(), CModelEntity::StatusName, and TO_UTF8.
|
protected |
A vector mapping the item index to a model valu type
Definition at line 57 of file CQGlobalQuantityDM.h.
Referenced by CQGlobalQuantityDM(), data(), getItemToType(), and setData().
|
protected |
Definition at line 53 of file CQGlobalQuantityDM.h.
Referenced by CQGlobalQuantityDM(), and getTypes().