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

Shared model for the on-canvas legend's chrome (font / frame / background / anchor / opacity). More...

#include <QColor>
#include <QFont>
#include <QHash>
#include <QJsonObject>
#include <QObject>
#include <QPoint>
#include <QString>
#include <Qt>
Include dependency graph for legendoverlaystyle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMM::Render::LegendOverlayStyle
 Model object holding the on-canvas legend's chrome configuration. More...
 
struct  OpenSWMM::Render::LegendOverlayStyle::ItemOverride
 Per-(layer, class) overrides for a legend row's visibility + label. Slice BB Phase 8.6.10 / 8.6.16 — the renderer remains the source of truth for swatch colour / size; ItemOverride only carries legend-only presentation overrides. More...
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

Shared model for the on-canvas legend's chrome (font / frame / background / anchor / opacity).

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 BB Phase 8.6.16 — interim wiring on the QWidget-based LegendOverlay; same object is carried to the QGraphicsItem OnCanvasLegendOverlay in Phase 8.6.12 without re-implementation.

Source-of-truth rule (GUI_IMPLEMENTATION_PLAN.md §L.BB Phase 8.6.16, MVC layering): the legend chrome is editable from multiple surfaces (right-click context menu, LegendPropertiesDialog, and eventually the LegendDock). All of them subscribe to this object's changed() signal; none of them keep a shadow copy. Per-class theming (colors / sizes / symbols) lives on the layer's IFeatureRenderer, not here.