![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BB Phase 8.6.11 / 8.6.16 — dockable legend / per-class style editor panel. More...
Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::LegendDock |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Slice BB Phase 8.6.11 / 8.6.16 — dockable legend / per-class style editor panel.
LegendDock hosts a QTreeView over LegendLayerTreeModel showing every visible layer's legend rows in a Layer → Item hierarchy. The Color column is click-to-edit via LegendColorDelegate; each edit pushes a SetRendererClassColorCommand onto the canvas's MapUndoStack so Ctrl+Z reverses uniformly across the dock, the on-canvas legend overlay, and the canvas itself.
The dock binds to a MapCanvas via setCanvas(); pass nullptr to unbind. It survives MDI tab switches the same way LegendOverlay::setCanvas does.