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
gisvectorsymboleditor.h
Go to the documentation of this file.
1
14#ifndef OPENSWMMVIS_UI_DIALOGS_EDITORS_GISVECTORSYMBOLEDITOR_H
15#define OPENSWMMVIS_UI_DIALOGS_EDITORS_GISVECTORSYMBOLEDITOR_H
16
18
20
21class QCheckBox;
22class QDoubleSpinBox;
23class QFontComboBox;
24class QLineEdit;
25
26namespace openswmmvis::ui {
27
28class ColorButton;
29class DashStyleCombo;
30class MarkerShapeCombo;
31class StylePreviewSwatch;
32
34{
35 Q_OBJECT
36public:
38 QWidget *parent = nullptr);
39
40 void refreshFromModel() override;
41
42private:
43 void updatePreview();
44
45 GisVectorSymbolAdapter *m_adapter = nullptr;
46
47 // Marker
48 MarkerShapeCombo *m_shapeCombo = nullptr;
49 QDoubleSpinBox *m_markerSize = nullptr;
50 ColorButton *m_markerFill = nullptr;
51 ColorButton *m_markerStroke= nullptr;
52 QDoubleSpinBox *m_markerStrokeW = nullptr;
53
54 // Line
55 ColorButton *m_lineColor = nullptr;
56 QDoubleSpinBox *m_lineWidth = nullptr;
57 DashStyleCombo *m_lineDash = nullptr;
58
59 // Polygon
60 ColorButton *m_polyFill = nullptr;
61 ColorButton *m_polyOutline = nullptr;
62 QDoubleSpinBox *m_polyOutlineW = nullptr;
63
64 // Labels
65 QCheckBox *m_showLabels = nullptr;
66 QLineEdit *m_labelField = nullptr;
67 QFontComboBox *m_labelFont = nullptr;
68 ColorButton *m_labelColor = nullptr;
69
70 StylePreviewSwatch *m_pointPreview = nullptr;
71 StylePreviewSwatch *m_linePreview = nullptr;
72 StylePreviewSwatch *m_polygonPreview = nullptr;
73};
74
75} // namespace openswmmvis::ui
76
77#endif // OPENSWMMVIS_UI_DIALOGS_EDITORS_GISVECTORSYMBOLEDITOR_H
Definition gisvectorsymboladapter.h:26
Definition colorbutton.h:21
Definition dashstylecombo.h:18
Definition gisvectorsymboleditor.h:34
void refreshFromModel() override
Definition gisvectorsymboleditor.cpp:204
Custom editor widget for one style subject.
Definition istyleeditorwidget.h:44
Definition markershapecombo.h:21
Definition stylepreviewswatch.h:24
MVC-style editor widget for a single styleable subject.
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176