COPASI API
4.16.103
|
#include <CQReferenceDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQReferenceDM (CMIRIAMInfo *MIRIAMInfo, QObject *parent=0) | |
QVariant | data (const QModelIndex &index, int role) 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) |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
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 | |
CMIRIAMInfo * | mpMIRIAMInfo |
Additional Inherited Members | |
![]() | |
void | notifyGUI (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
Definition at line 31 of file CQReferenceDM.h.
CQReferenceDM::CQReferenceDM | ( | CMIRIAMInfo * | MIRIAMInfo, |
QObject * | parent = 0 |
||
) |
Definition at line 25 of file CQReferenceDM.cpp.
References mpMIRIAMInfo.
|
virtual |
|
virtual |
Implements CQBaseDataModel.
Definition at line 41 of file CQReferenceDM.cpp.
References COL_DESCRIPTION, COL_ID_REFERENCE, COL_RESOURCE_REFERENCE, COL_ROW_NUMBER, FROM_UTF8, CMIRIAMInfo::getReferences(), CQBaseDataModel::isDefaultRow(), mpMIRIAMInfo, and rowCount().
Referenced by removeRows().
|
virtual |
Implements CQBaseDataModel.
Definition at line 79 of file CQReferenceDM.cpp.
References COL_DESCRIPTION, COL_ID_REFERENCE, COL_RESOURCE_REFERENCE, and COL_ROW_NUMBER.
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 139 of file CQReferenceDM.cpp.
References ListViews::ADD, CMIRIAMInfo::createReference(), ListViews::MIRIAM, mpMIRIAMInfo, and CQBaseDataModel::notifyGUI().
bool CQReferenceDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 172 of file CQReferenceDM.cpp.
References C_INVALID_INDEX, COL_ID_REFERENCE, COL_RESOURCE_REFERENCE, data(), CMIRIAMInfo::getReferences(), CQBaseDataModel::isDefaultRow(), mpMIRIAMInfo, CQMessageBox::question(), and CQBaseDataModel::removeRow().
Referenced by CQMiriamWidget::deleteSelectedReferences().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 154 of file CQReferenceDM.cpp.
References ListViews::DELETE, ListViews::MIRIAM, mpMIRIAMInfo, CQBaseDataModel::notifyGUI(), and CMIRIAMInfo::removeReference().
|
virtual |
Definition at line 32 of file CQReferenceDM.cpp.
References CMIRIAMInfo::getReferences(), mpMIRIAMInfo, and CCopasiVector< T >::size().
Referenced by data().
|
virtual |
Implements CQBaseDataModel.
Definition at line 105 of file CQReferenceDM.cpp.
References ListViews::CHANGE, COL_DESCRIPTION, COL_ID_REFERENCE, COL_RESOURCE_REFERENCE, CMIRIAMInfo::getReferences(), CQBaseDataModel::insertRow(), CQBaseDataModel::isDefaultRow(), ListViews::MIRIAM, mpMIRIAMInfo, CQBaseDataModel::notifyGUI(), and TO_UTF8.
|
protected |
Definition at line 49 of file CQReferenceDM.h.
Referenced by CQReferenceDM(), data(), insertRows(), removeRows(), rowCount(), and setData().