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
ilayerstylesubject.h File Reference

One styleable subject for the unified LayerStyleDialog. More...

#include <QJsonObject>
#include <QObject>
#include <QString>
Include dependency graph for ilayerstylesubject.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

One styleable subject for the unified LayerStyleDialog.

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
    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).