![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
QPropertyModel-backed per-series style editor. More...
Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::SeriesStyleEditor |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::plot |
| namespace | openswmmvis::ui |
QPropertyModel-backed per-series style editor.
Replaces the original hand-rolled form widget with a QTreeView driven by QPropertyModel over a SeriesStyleObject. Editors for every visual attribute (colour pickers, font dialogs, enum combos for dash/cap/join, etc.) come from the QPropertyModel item-delegate machinery — no per-control wiring is needed here.
Public API is unchanged from the prior version:
setStyle(const SeriesStyle&) replaces the displayed stylestyle() const returns the current edited stylestyleChanged(SeriesStyle) fires on every edit (live preview)Hosts pair this with a small modal dialog (Ok/Cancel) or dock it permanently into a multi-series dialog as a side panel.