![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
One styleable subject for the unified LayerStyleDialog. More...
#include <QJsonObject>#include <QObject>#include <QString>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::ILayerStyleSubject |
| One styleable thing the dialog can edit. More... | |
| class | openswmmvis::ui::LayerStyleSubject |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
One styleable subject for the unified LayerStyleDialog.
Slice U-2. A layer can present one or more ILayerStyleSubjects to
the dialog, each becoming a tab (or tab-group) of property
editors. The Q_PROPERTYs on subject->propertyObject() drive the
editor UI through the existing QPropertyModel framework, so
adding a new styleable thing is just a matter of writing a
QObject with Q_PROPERTY declarations and exposing it via a
subject.
Cancel rollback uses a JSON snapshot. The default helper
JsonPropertySnapshot walks every Q_PROPERTY of the propertyObject
(or, when the object is a SublayerStyle subclass, defers to its
toJson()/fromJson() overrides which already exist for .oswp
persistence).