SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
classificationschemecelleditor.h File Reference

Slice D1-a (MESH_SUBLAYER_CLASSIFICATION_UI_PLAN) — property-grid cell editor for a ClassificationScheme-typed Q_PROPERTY. More...

#include "render/classificationscheme.h"
#include <QWidget>
Include dependency graph for classificationschemecelleditor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::ClassificationSchemeCellEditor
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Slice D1-a (MESH_SUBLAYER_CLASSIFICATION_UI_PLAN) — property-grid cell editor for a ClassificationScheme-typed Q_PROPERTY.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.