![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
MVC-style editor widget for a single styleable subject. More...
#include <QWidget>#include <QString>#include <functional>#include <memory>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::IStyleEditorWidget |
| Custom editor widget for one style subject. More... | |
| class | openswmmvis::ui::StyleEditorRegistry |
| Maps a property-object class name to an editor-widget factory. More... | |
| class | openswmmvis::ui::StyleEditorRegistrar |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Macros | |
| #define | REGISTER_STYLE_EDITOR(CLASSNAME, FACTORY_BODY) |
MVC-style editor widget for a single styleable subject.
Slice U-V1. The unified LayerStyleDialog consults a registry to
find a custom editor widget for each ILayerStyleSubject. When a
registered editor exists (e.g. FeatureStyleEditor for a
FeatureSublayerStyle) the dialog embeds it. Otherwise the dialog
falls back to the QPropertyModel-driven generic tree editor.
Custom editors give us QGIS / ArcGIS-style affordances — color
buttons with swatches, marker shape grids, dash style combos,
live preview panels — that QPropertyModel's generic tree can't
match. They bind directly to the propertyObject's Q_PROPERTYs
and listen for the bag's NOTIFY signal so external mutations
(e.g. cancel rollback, .oswp load) refresh the UI.
| #define REGISTER_STYLE_EDITOR | ( | CLASSNAME, | |
| FACTORY_BODY | |||
| ) |