COPASI API
4.16.103
|
#include <CQPlotDM.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
CQPlotDM (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 30 of file CQPlotDM.h.
CQPlotDM::CQPlotDM | ( | QObject * | parent = 0 | ) |
Definition at line 22 of file CQPlotDM.cpp.
|
virtual |
Definition at line 32 of file CQPlotDM.cpp.
References TOTAL_COLS_PLOTS.
Referenced by CQPlotsWidget::keyPressEvent().
|
virtual |
Implements CQBaseDataModel.
Definition at line 50 of file CQPlotDM.cpp.
References COL_ACTIVE_PLOTS, COL_CURVES_PLOTS, COL_NAME_PLOTS, COL_ROW_NUMBER, flags(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CPlotSpecification::getItems(), CCopasiObject::getObjectName(), CPlotSpecification::isActive(), CQBaseDataModel::isDefaultRow(), rowCount(), and CCopasiVector< T >::size().
Referenced by setData().
|
virtual |
Reimplemented from CQBaseDataModel.
Definition at line 37 of file CQPlotDM.cpp.
References COL_ACTIVE_PLOTS, and COL_NAME_PLOTS.
Referenced by data().
|
virtual |
Implements CQBaseDataModel.
Definition at line 112 of file CQPlotDM.cpp.
References COL_ACTIVE_PLOTS, COL_CURVES_PLOTS, COL_NAME_PLOTS, and COL_ROW_NUMBER.
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 206 of file CQPlotDM.cpp.
References ListViews::ADD, COL_NAME_PLOTS, CQBaseDataModel::createNewName(), CCopasiRootContainer::getDatamodelList(), CQBaseDataModel::notifyGUI(), ListViews::PLOT, CPlotItem::plot2d, and TO_UTF8.
bool CQPlotDM::removeRows | ( | QModelIndexList | rows, |
const QModelIndex & | index = QModelIndex() |
||
) |
Definition at line 242 of file CQPlotDM.cpp.
References CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getModel(), CCopasiDataModel::getPlotDefinitionList(), CQBaseDataModel::isDefaultRow(), and CQBaseDataModel::removeRow().
Referenced by CQPlotsWidget::deleteSelectedPlots().
|
protectedvirtual |
Implements CQBaseDataModel.
Definition at line 221 of file CQPlotDM.cpp.
References ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CQBaseDataModel::notifyGUI(), and ListViews::PLOT.
|
virtual |
Definition at line 28 of file CQPlotDM.cpp.
References CCopasiRootContainer::getDatamodelList().
Referenced by data(), and CQPlotsWidget::deleteSelectedPlots().
|
virtual |
Implements CQBaseDataModel.
Definition at line 138 of file CQPlotDM.cpp.
References ListViews::CHANGE, COL_ACTIVE_PLOTS, COL_NAME_PLOTS, CQBaseDataModel::createNewName(), data(), CCopasiRootContainer::getDatamodelList(), CCopasiObject::getObjectName(), CQBaseDataModel::insertRow(), CPlotSpecification::isActive(), CQBaseDataModel::isDefaultRow(), CQBaseDataModel::notifyGUI(), ListViews::PLOT, CPlotSpecification::setActive(), CCopasiObject::setObjectName(), and TO_UTF8.