#include <importmappingmodel.h>
◆ Column
| Enumerator |
|---|
| TargetCol | |
| SourceCol | |
| DefaultCol | |
| ColCount | |
◆ ImportMappingModel()
| openswmmvis::import::ImportMappingModel::ImportMappingModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ applyBindings()
| void openswmmvis::import::ImportMappingModel::applyBindings |
( |
const QVector< AttributeBinding > & |
bindings, |
|
|
QStringList * |
droppedOut = nullptr |
|
) |
| |
Replace bindings wholesale (preset load). Field bindings whose source field is absent from the current layer are cleared and reported in droppedOut.
◆ attributes()
| const QVector< TargetAttribute > & openswmmvis::import::ImportMappingModel::attributes |
( |
| ) |
const |
|
inline |
◆ autoMatch()
| int openswmmvis::import::ImportMappingModel::autoMatch |
( |
| ) |
|
Case-insensitive auto-match of source fields to attribute keys / labels. Only fills rows that are currently unmapped. Returns the number of rows matched.
◆ columnCount()
| int openswmmvis::import::ImportMappingModel::columnCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
override |
◆ data()
| QVariant openswmmvis::import::ImportMappingModel::data |
( |
const QModelIndex & |
idx, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags openswmmvis::import::ImportMappingModel::flags |
( |
const QModelIndex & |
idx | ) |
const |
|
override |
◆ headerData()
| QVariant openswmmvis::import::ImportMappingModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
o, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ mapping()
| const ImportMapping & openswmmvis::import::ImportMappingModel::mapping |
( |
| ) |
const |
|
inline |
◆ mappingEdited
| void openswmmvis::import::ImportMappingModel::mappingEdited |
( |
| ) |
|
|
signal |
Emitted after any binding edit — the dialog revalidates.
◆ mappingRef()
| ImportMapping & openswmmvis::import::ImportMappingModel::mappingRef |
( |
| ) |
|
|
inline |
Mutable access for the dialog's option widgets (endpoint / conflict flags live on the same value object). Views of THIS model are unaffected by those fields, so no signals fire.
◆ reset()
| void openswmmvis::import::ImportMappingModel::reset |
( |
TargetKind |
kind, |
|
|
const QStringList & |
sourceFields |
|
) |
| |
Rebuild rows for kind, preserving bindings whose target keys survive the kind switch, and re-list sourceFields in the combo delegate.
◆ rowCount()
| int openswmmvis::import::ImportMappingModel::rowCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
override |
◆ setData()
| bool openswmmvis::import::ImportMappingModel::setData |
( |
const QModelIndex & |
idx, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
override |
◆ sourceFields()
| QStringList openswmmvis::import::ImportMappingModel::sourceFields |
( |
| ) |
const |
|
inline |
◆ validationError()
| QString openswmmvis::import::ImportMappingModel::validationError |
( |
| ) |
const |
Empty when every required row is satisfied; otherwise a human-readable reason (drives the dialog's inline error label + Preview/Import enablement).
The documentation for this class was generated from the following files: