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

QPropertyModel-backed per-series style editor. More...

#include "plot/seriesstyle.h"
#include <QWidget>
Include dependency graph for seriesstyleeditor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::SeriesStyleEditor
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 
namespace  openswmmvis::ui
 

Detailed Description

QPropertyModel-backed per-series style editor.

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

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 style
  • style() const returns the current edited style
  • styleChanged(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.