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
symbolstyleeditors.h
Go to the documentation of this file.
1
16#ifndef OPENSWMMVIS_UI_DIALOGS_EDITORS_SYMBOLSTYLEEDITORS_H
17#define OPENSWMMVIS_UI_DIALOGS_EDITORS_SYMBOLSTYLEEDITORS_H
18
20
21namespace OpenSWMM::Render {
22class PointSymbolStyleAdapter;
23class LineSymbolStyleAdapter;
24class PolygonSymbolStyleAdapter;
25}
26
27class QDoubleSpinBox;
28
29namespace openswmmvis::ui {
30
31class ColorButton;
32class MarkerShapeCombo;
33class DashStyleCombo;
34
35// ---------------------------------------------------------------------------
36// SE.1 — Point archetype (junctions, outfalls, storage, dividers, rain gages)
37// ---------------------------------------------------------------------------
39{
40 Q_OBJECT
41public:
43 QWidget *parent = nullptr);
44 void refreshFromModel() override;
45
46private:
48 MarkerShapeCombo *m_shape = nullptr;
49 QDoubleSpinBox *m_size = nullptr;
50 ColorButton *m_fill = nullptr;
51 ColorButton *m_outline = nullptr;
52 QDoubleSpinBox *m_outlineW = nullptr;
53 QDoubleSpinBox *m_opacity = nullptr;
54};
55
56// ---------------------------------------------------------------------------
57// SE.2 — Line archetype (conduits, pumps, orifices, weirs, outlets)
58// ---------------------------------------------------------------------------
60{
61 Q_OBJECT
62public:
64 QWidget *parent = nullptr);
65 void refreshFromModel() override;
66
67private:
69 ColorButton *m_color = nullptr;
70 QDoubleSpinBox *m_width = nullptr;
71 DashStyleCombo *m_dash = nullptr;
72 QDoubleSpinBox *m_opacity = nullptr;
73};
74
75// ---------------------------------------------------------------------------
76// SE.3 — Polygon archetype (subcatchments)
77// ---------------------------------------------------------------------------
79{
80 Q_OBJECT
81public:
83 QWidget *parent = nullptr);
84 void refreshFromModel() override;
85
86private:
88 ColorButton *m_fill = nullptr;
89 ColorButton *m_outline = nullptr;
90 QDoubleSpinBox *m_outlineW = nullptr;
91 QDoubleSpinBox *m_opacity = nullptr;
92};
93
94} // namespace openswmmvis::ui
95
96#endif // OPENSWMMVIS_UI_DIALOGS_EDITORS_SYMBOLSTYLEEDITORS_H
Single-Symbol panel surface for line archetypes — Conduits / Pumps / Orifices / Weirs / Outlets on th...
Definition symbolstyleadapter.h:241
Single-Symbol panel surface for point (marker) archetypes — Junctions / Outfalls / Storage / Dividers...
Definition symbolstyleadapter.h:174
Single-Symbol panel surface for polygon archetypes — Subcatchments on the SWMM model layer and the po...
Definition symbolstyleadapter.h:748
Definition colorbutton.h:21
Definition dashstylecombo.h:18
Custom editor widget for one style subject.
Definition istyleeditorwidget.h:44
Definition symbolstyleeditors.h:60
void refreshFromModel() override
Definition symbolstyleeditors.cpp:169
Definition markershapecombo.h:21
Definition symbolstyleeditors.h:39
void refreshFromModel() override
Definition symbolstyleeditors.cpp:107
Definition symbolstyleeditors.h:79
void refreshFromModel() override
Definition symbolstyleeditors.cpp:229
MVC-style editor widget for a single styleable subject.
Definition gisrasterlayer.h:40
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176