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
labelstab.h
Go to the documentation of this file.
1
20#ifndef OPENSWMMVIS_UI_DIALOGS_LABELSTAB_H
21#define OPENSWMMVIS_UI_DIALOGS_LABELSTAB_H
22
23#include "render/labelconfig.h"
24
25#include <QWidget>
26
28class QCheckBox;
29class QComboBox;
30class QDoubleSpinBox;
31class QFontComboBox;
32class QLineEdit;
33class QToolButton;
34
35namespace openswmmvis::ui {
36
37class ColorButton;
38
39class LabelsTab : public QWidget
40{
41 Q_OBJECT
42public:
43 explicit LabelsTab(OpenSWMMVisLayer *layer, QWidget *parent = nullptr);
44
45private slots:
50 void refreshFromModel();
51
54 void pushToModel();
55
56private:
57 OpenSWMMVisLayer *m_layer = nullptr;
58
59 // Master
60 QCheckBox *m_enabledChk = nullptr;
61 QLineEdit *m_fieldEdit = nullptr;
62 QComboBox *m_fieldCombo = nullptr; // vector layers: pre-populated
63
64 // Font
65 QFontComboBox *m_fontCombo = nullptr;
66 QDoubleSpinBox *m_fontSizeSpin = nullptr;
67 QToolButton *m_boldBtn = nullptr;
68 QToolButton *m_italicBtn = nullptr;
69 ColorButton *m_colorBtn = nullptr;
70
71 // Halo
72 QCheckBox *m_haloChk = nullptr;
73 ColorButton *m_haloColorBtn = nullptr;
74 QDoubleSpinBox *m_haloRadiusSpin = nullptr;
75
76 // Placement
77 QComboBox *m_placementCombo = nullptr;
78
79 // Scale window
80 QDoubleSpinBox *m_minScaleSpin = nullptr;
81 QDoubleSpinBox *m_maxScaleSpin = nullptr;
82
83 // Slice X.24 — background frame + priority
84 QCheckBox *m_bgChk = nullptr;
85 ColorButton *m_bgColorBtn = nullptr;
86 QDoubleSpinBox *m_bgPaddingSpin = nullptr;
87 QDoubleSpinBox *m_bgRadiusSpin = nullptr;
88 QLineEdit *m_priorityEdit = nullptr;
89
90 bool m_suppress = false;
91};
92
93} // namespace openswmmvis::ui
94
95#endif // OPENSWMMVIS_UI_DIALOGS_LABELSTAB_H
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
Definition colorbutton.h:21
Definition labelstab.h:40
Shared label-configuration value-type used by every layer that paints text labels.
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176