![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Wraps a Rule as one ILayerStyleSubject for the legacy dialog. More...
#include <rulestylesubject.h>
Public Member Functions | |
| RuleStyleSubject (OpenSWMM::Render::Rule *rule, QString routingId, QString section=QStringLiteral("Rules")) | |
| QString | title () const override |
| QString | section () const override |
| QObject * | propertyObject () const override |
| QString | routingId () const override |
Public Member Functions inherited from openswmmvis::ui::ILayerStyleSubject | |
| virtual | ~ILayerStyleSubject ()=default |
| virtual QJsonObject | snapshot () const |
| virtual void | restore (const QJsonObject &snapshot) |
Wraps a Rule as one ILayerStyleSubject for the legacy dialog.
The Rule must outlive this subject. The subject does not take ownership of the Rule; ownership remains with the layer's RuleList.
| openswmmvis::ui::RuleStyleSubject::RuleStyleSubject | ( | OpenSWMM::Render::Rule * | rule, |
| QString | routingId, | ||
| QString | section = QStringLiteral("Rules") |
||
| ) |
| rule | Non-null. Outlives this subject. |
| routingId | Stable id for right-click → "focus this tab" routing. Typically "rule.0", "rule.1", etc. |
| section | Optional section grouping; defaults to "Rules". |
|
overridevirtual |
The QObject whose Q_PROPERTYs drive the editor.
Implements openswmmvis::ui::ILayerStyleSubject.
|
overridevirtual |
Stable id for routing (right-click → "focus this tab"). For sublayer subjects this should match the sublayer id; for layer- level subjects, use a fixed slug like "general" / "rendering".
Reimplemented from openswmmvis::ui::ILayerStyleSubject.
|
overridevirtual |
Optional sub-section. When non-empty, subjects sharing a section get grouped into a single outer tab with sub-tabs inside.
Reimplemented from openswmmvis::ui::ILayerStyleSubject.
|
overridevirtual |
Tab title displayed in the dialog.
Implements openswmmvis::ui::ILayerStyleSubject.