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
swmmelementsymboleditor.h
Go to the documentation of this file.
1
12#ifndef OPENSWMMVIS_UI_DIALOGS_EDITORS_SWMMELEMENTSYMBOLEDITOR_H
13#define OPENSWMMVIS_UI_DIALOGS_EDITORS_SWMMELEMENTSYMBOLEDITOR_H
14
16
17class QCheckBox;
18class QDoubleSpinBox;
19class QFontComboBox;
20class QLineEdit;
21
23
24namespace openswmmvis::ui {
25
26class ColorButton;
27class StylePreviewSwatch;
28
30{
31 Q_OBJECT
32public:
34 QWidget *parent = nullptr);
35
36 void refreshFromModel() override;
37
38private:
39 void updatePreview();
40
41 SwmmElementSymbolAdapter *m_adapter = nullptr;
42
43 // Fill / outline / size
44 ColorButton *m_fillBtn = nullptr;
45 ColorButton *m_outlineBtn = nullptr;
46 QDoubleSpinBox *m_outlineWSpin = nullptr;
47 QDoubleSpinBox *m_sizeSpin = nullptr;
48
49 // Labels
50 QCheckBox *m_showLabelBox = nullptr;
51 QFontComboBox *m_labelFontCombo = nullptr;
52 ColorButton *m_labelColorBtn = nullptr;
53
54 // Flow arrows
55 QCheckBox *m_showArrowsBox = nullptr;
56 QDoubleSpinBox *m_arrowSizeSpin = nullptr;
57 QDoubleSpinBox *m_arrowWidSpin = nullptr;
58 ColorButton *m_arrowColorBtn = nullptr;
59 QCheckBox *m_arrowsFlowPosBox = nullptr;
60
61 StylePreviewSwatch *m_preview = nullptr;
62};
63
64} // namespace openswmmvis::ui
65
66#endif // OPENSWMMVIS_UI_DIALOGS_EDITORS_SWMMELEMENTSYMBOLEDITOR_H
Definition swmmelementsymboladapter.h:30
Definition colorbutton.h:21
Custom editor widget for one style subject.
Definition istyleeditorwidget.h:44
Definition stylepreviewswatch.h:24
Definition swmmelementsymboleditor.h:30
void refreshFromModel() override
Definition swmmelementsymboleditor.cpp:148
MVC-style editor widget for a single styleable subject.
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176