![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice D1-a (MESH_SUBLAYER_CLASSIFICATION_UI_PLAN) — property-grid cell editor for a ClassificationScheme-typed Q_PROPERTY. More...
Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::ClassificationSchemeCellEditor |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Slice D1-a (MESH_SUBLAYER_CLASSIFICATION_UI_PLAN) — property-grid cell editor for a ClassificationScheme-typed Q_PROPERTY.
A style bag that exposes Q_PROPERTY(OpenSWMM::Render::ClassificationScheme classification …) gets a grid row whose editor is a read-only summary label plus an "Edit…" button that opens the shared ClassificationEditor in a modal dialog. Registered on the QPropertyItemDelegate via makeStyleDelegate() so any future scheme property reuses it for free — no per-layer UI code.
The USER Q_PROPERTY (classificationScheme) is how QPropertyItemDelegate reads/writes the value through QStandardItemEditorCreator; schemeChanged() fires on every accepted edit so commitData round-trips the new scheme back to the model.