COPASI API
4.16.103
|
#include <CQEventDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQEventDM (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()) |
Additional Inherited Members | |
![]() | |
void | notifyGUI (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
Definition at line 33 of file CQEventDM.h.
CQEventDM::CQEventDM | ( | QObject * | parent = 0 | ) |
Definition at line 21 of file CQEventDM.cpp.
|
virtual |
Definition at line 31 of file CQEventDM.cpp.
References TOTAL_COLS_EVENTS.
Referenced by CQEventsWidget::keyPressEvent().
|
virtual |
Implements CQBaseDataModel.
Definition at line 47 of file CQEventDM.cpp.
References CCopasiVector< T >::begin(), COL_ASSIGNEXPRESSION_EVENTS, COL_ASSIGNTARGET_EVENTS, COL_DELAY_EXPRESSION_EVENTS, COL_DELAYED_EVENTS, COL_NAME_EVENTS, COL_ROW_NUMBER, COL_TRIGGER_EVENTS, CCopasiVector< T >::end(), flags(), FROM_UTF8, CKeyFactory::get(), CEvent::getAssignments(), CCopasiRootContainer::getDatamodelList(), CEvent::getDelayAssignment(), CEvent::getDelayExpression(), CEvent::getDelayExpressionPtr(), CExpression::getDisplayString(), CCopasiRootContainer::getKeyFactory(), CCopasiObject::getObjectDisplayName(), CCopasiObject::getObjectName(), CEvent::getTriggerExpression(), CEvent::getTriggerExpressionPtr(), CQBaseDataModel::isDefaultRow(), and rowCount().
Referenced by setData().
|
virtual |
Reimplemented from CQBaseDataModel.
Definition at line 36 of file CQEventDM.cpp.
References COL_NAME_EVENTS.
Referenced by data().
|
virtual |
Implements CQBaseDataModel.
Definition at line 158 of file CQEventDM.cpp.
References COL_ASSIGNEXPRESSION_EVENTS, COL_ASSIGNTARGET_EVENTS, COL_DELAY_EXPRESSION_EVENTS, COL_DELAYED_EVENTS, COL_NAME_EVENTS, COL_ROW_NUMBER, and COL_TRIGGER_EVENTS.
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 228 of file CQEventDM.cpp.
References ListViews::ADD, COL_NAME_EVENTS, CQBaseDataModel::createNewName(), ListViews::EVENT, CCopasiRootContainer::getDatamodelList(), CEvent::getKey(), CQBaseDataModel::notifyGUI(), and TO_UTF8.
bool CQEventDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 277 of file CQEventDM.cpp.
References C_INVALID_INDEX, CQMessageBox::confirmDelete(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CModel::getEvents(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CQBaseDataModel::isDefaultRow(), and CQBaseDataModel::removeRow().
Referenced by CQEventsWidget::deleteSelectedEvents().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 244 of file CQEventDM.cpp.
References CCopasiVector< T >::begin(), ListViews::DELETE, ListViews::EVENT, CCopasiRootContainer::getDatamodelList(), CModel::getEvents(), and CQBaseDataModel::notifyGUI().
|
virtual |
Definition at line 27 of file CQEventDM.cpp.
References CCopasiRootContainer::getDatamodelList().
Referenced by data(), and CQEventsWidget::deleteSelectedEvents().
|
virtual |
Implements CQBaseDataModel.
Definition at line 197 of file CQEventDM.cpp.
References ListViews::CHANGE, COL_NAME_EVENTS, CQBaseDataModel::createNewName(), data(), ListViews::EVENT, CCopasiRootContainer::getDatamodelList(), CEvent::getKey(), CQBaseDataModel::insertRow(), CQBaseDataModel::isDefaultRow(), CQBaseDataModel::notifyGUI(), CCopasiObject::setObjectName(), and TO_UTF8.