#include <processcomponentsmodel.h>
|
| static QList< KnownId > | knownIds () |
| | The engine's built-in catalogue (static for the process).
|
| |
◆ Column
| Enumerator |
|---|
| ColId | |
| ColConfig | |
| ColStatus | |
| ColCount | |
◆ ProcessComponentsModel()
| ProcessComponentsModel::ProcessComponentsModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ appendRow()
| int ProcessComponentsModel::appendRow |
( |
const QString & |
id, |
|
|
const QString & |
config |
|
) |
| |
◆ columnCount()
| int ProcessComponentsModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ commit()
| int ProcessComponentsModel::commit |
( |
SWMM_Engine |
engine | ) |
|
Apply staged edits to the engine. Returns the number of engine writes.
◆ configAt()
| QString ProcessComponentsModel::configAt |
( |
int |
row | ) |
const |
◆ data()
| QVariant ProcessComponentsModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags ProcessComponentsModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
| QVariant ProcessComponentsModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ idAt()
| QString ProcessComponentsModel::idAt |
( |
int |
row | ) |
const |
◆ isDirty()
| bool ProcessComponentsModel::isDirty |
( |
| ) |
const |
True when the rows differ from what load() read.
◆ knownIds()
The engine's built-in catalogue (static for the process).
◆ load()
| void ProcessComponentsModel::load |
( |
SWMM_Engine |
engine, |
|
|
const QString & |
modelDir |
|
) |
| |
Replace the rows with the engine's registrations. modelDir resolves relative config paths for the Status column.
◆ removeRows()
| bool ProcessComponentsModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
| int ProcessComponentsModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
| bool ProcessComponentsModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: