COPASI API
4.16.103
|
#include <CQReportDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQReportDM (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 28 of file CQReportDM.h.
CQReportDM::CQReportDM | ( | QObject * | parent = 0 | ) |
Definition at line 23 of file CQReportDM.cpp.
|
virtual |
Definition at line 33 of file CQReportDM.cpp.
References TOTAL_COLS_REPORTS.
Referenced by CQReportsWidget::keyPressEvent().
|
virtual |
Implements CQBaseDataModel.
Definition at line 49 of file CQReportDM.cpp.
References COL_NAME_REPORTS, COL_ROW_NUMBER, flags(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CCopasiObject::getObjectName(), CQBaseDataModel::isDefaultRow(), and rowCount().
Referenced by setData().
|
virtual |
Reimplemented from CQBaseDataModel.
Definition at line 38 of file CQReportDM.cpp.
References COL_NAME_REPORTS.
Referenced by data().
|
virtual |
Implements CQBaseDataModel.
Definition at line 92 of file CQReportDM.cpp.
References COL_NAME_REPORTS, and COL_ROW_NUMBER.
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 144 of file CQReportDM.cpp.
References ListViews::ADD, COL_NAME_REPORTS, CQBaseDataModel::createNewName(), CCopasiRootContainer::getDatamodelList(), CReportDefinition::getKey(), CQBaseDataModel::notifyGUI(), ListViews::REPORT, and TO_UTF8.
bool CQReportDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 210 of file CQReportDM.cpp.
References C_INVALID_INDEX, CQMessageBox::confirmDelete(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CCopasiVector< T >::getIndex(), CCopasiObject::getObjectName(), CCopasiDataModel::getReportDefinitionList(), CQBaseDataModel::isDefaultRow(), and CQBaseDataModel::removeRow().
Referenced by CQReportsWidget::deleteSelectedReports().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 160 of file CQReportDM.cpp.
References CCopasiDataModel::appendDependentTasks(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CReportDefinition::getKey(), CCopasiDataModel::getReportDefinitionList(), CQBaseDataModel::notifyGUI(), pTask, CCopasiVector< T >::remove(), and ListViews::REPORT.
|
virtual |
Definition at line 29 of file CQReportDM.cpp.
References CCopasiRootContainer::getDatamodelList().
Referenced by data(), and CQReportsWidget::deleteSelectedReports().
|
virtual |
Implements CQBaseDataModel.
Definition at line 114 of file CQReportDM.cpp.
References ListViews::CHANGE, COL_NAME_REPORTS, CQBaseDataModel::createNewName(), data(), CCopasiRootContainer::getDatamodelList(), CReportDefinition::getKey(), CQBaseDataModel::insertRow(), CQBaseDataModel::isDefaultRow(), CQBaseDataModel::notifyGUI(), ListViews::REPORT, CCopasiObject::setObjectName(), and TO_UTF8.