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
Go to the documentation of this file.
1
22#ifndef OPENSWMMVIS_UI_WIDGETS_SERIESSTYLEEDITOR_H
23#define OPENSWMMVIS_UI_WIDGETS_SERIESSTYLEEDITOR_H
24
25#include "plot/seriesstyle.h"
26
27#include <QWidget>
28
29class QTreeView;
30class QPropertyModel;
31
32namespace openswmmvis::plot { class SeriesStyleObject; }
33
34namespace openswmmvis::ui {
35
36class SeriesStyleEditor : public QWidget
37{
38 Q_OBJECT
39public:
40 explicit SeriesStyleEditor(QWidget *parent = nullptr);
42
45
47 [[nodiscard]] openswmmvis::plot::SeriesStyle style() const;
48
50 void setLegendOverride(const QString& override);
51
53 [[nodiscard]] QString legendOverride() const;
54
57
58signals:
61
63 void legendOverrideChanged(const QString& override);
64
65private:
66 void buildUi();
67
69 QPropertyModel *m_model = nullptr;
70 QTreeView *m_tree = nullptr;
71};
72
73} // namespace openswmmvis::ui
74
75#endif // OPENSWMMVIS_UI_WIDGETS_SERIESSTYLEEDITOR_H
Definition seriesstyleobject.h:38
Definition seriesstyleeditor.h:37
openswmmvis::plot::SeriesStyle style() const
Current style as edited by the user.
Definition seriesstyleeditor.cpp:70
QString legendOverride() const
Current legend override as edited by the user.
Definition seriesstyleeditor.cpp:82
void legendOverrideChanged(const QString &override)
Emitted when the spec-level legend override is edited.
openswmmvis::plot::SeriesStyleObject * styleObject() const
Underlying QObject — exposed for tests / advanced wiring.
Definition seriesstyleeditor.h:56
void setStyle(const openswmmvis::plot::SeriesStyle &style)
Replace the displayed style. Refreshes the property tree.
Definition seriesstyleeditor.cpp:63
void setLegendOverride(const QString &override)
Seed the spec-level legend override field. Empty = auto.
Definition seriesstyleeditor.cpp:75
void styleChanged(const openswmmvis::plot::SeriesStyle &style)
Emitted whenever any style field changes (live preview hook).
Definition chartproperties.h:34
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Per-series rendering style for chart plots (comprehensive schema).
Aggregated rendering parameters for one chart series.
Definition seriesstyle.h:48