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
openswmmvis::ui::RuleStyleSubject Class Reference

Wraps a Rule as one ILayerStyleSubject for the legacy dialog. More...

#include <rulestylesubject.h>

Inheritance diagram for openswmmvis::ui::RuleStyleSubject:
Collaboration diagram for openswmmvis::ui::RuleStyleSubject:

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RuleStyleSubject()

openswmmvis::ui::RuleStyleSubject::RuleStyleSubject ( OpenSWMM::Render::Rule rule,
QString  routingId,
QString  section = QStringLiteral("Rules") 
)
Parameters
ruleNon-null. Outlives this subject.
routingIdStable id for right-click → "focus this tab" routing. Typically "rule.0", "rule.1", etc.
sectionOptional section grouping; defaults to "Rules".

Member Function Documentation

◆ propertyObject()

QObject * openswmmvis::ui::RuleStyleSubject::propertyObject ( ) const
overridevirtual

The QObject whose Q_PROPERTYs drive the editor.

Implements openswmmvis::ui::ILayerStyleSubject.

◆ routingId()

QString openswmmvis::ui::RuleStyleSubject::routingId ( ) const
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.

◆ section()

QString openswmmvis::ui::RuleStyleSubject::section ( ) const
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.

◆ title()

QString openswmmvis::ui::RuleStyleSubject::title ( ) const
overridevirtual

Tab title displayed in the dialog.

Implements openswmmvis::ui::ILayerStyleSubject.


The documentation for this class was generated from the following files: