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::LayerStyleSubject Class Reference

#include <ilayerstylesubject.h>

Inheritance diagram for openswmmvis::ui::LayerStyleSubject:
Collaboration diagram for openswmmvis::ui::LayerStyleSubject:

Public Member Functions

 LayerStyleSubject (QString title, QObject *propertyObject, QString routingId={}, QString section={})
 
QString title () const override
 
QString section () const override
 
QString routingId () const override
 
QObject * propertyObject () 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

Trivial concrete subject — title + propertyObject + optional routingId. Most layers can use this directly without writing a derived class.

Constructor & Destructor Documentation

◆ LayerStyleSubject()

openswmmvis::ui::LayerStyleSubject::LayerStyleSubject ( QString  title,
QObject *  propertyObject,
QString  routingId = {},
QString  section = {} 
)
inline

Member Function Documentation

◆ propertyObject()

QObject * openswmmvis::ui::LayerStyleSubject::propertyObject ( ) const
inlineoverridevirtual

The QObject whose Q_PROPERTYs drive the editor.

Implements openswmmvis::ui::ILayerStyleSubject.

◆ routingId()

QString openswmmvis::ui::LayerStyleSubject::routingId ( ) const
inlineoverridevirtual

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::LayerStyleSubject::section ( ) const
inlineoverridevirtual

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::LayerStyleSubject::title ( ) const
inlineoverridevirtual

Tab title displayed in the dialog.

Implements openswmmvis::ui::ILayerStyleSubject.


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