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
layerstylingdock.h
Go to the documentation of this file.
1
23#ifndef OPENSWMMVIS_UI_PANELS_LAYERSTYLINGDOCK_H
24#define OPENSWMMVIS_UI_PANELS_LAYERSTYLINGDOCK_H
25
26#include <QDockWidget>
27#include <QPointer>
28
30class QLabel;
31class QStackedWidget;
32
33namespace openswmmvis::ui {
34
35class RuleSymbologyTab;
36
37class LayerStylingDock : public QDockWidget
38{
39 Q_OBJECT
40public:
41 explicit LayerStylingDock(QWidget *parent = nullptr);
43
44public slots:
47 void setLayer(OpenSWMMVisLayer *layer);
48
49private:
50 void buildUi();
51
54 void rebuild();
55
57 [[nodiscard]] QString headerTextForCurrent() const;
58
59 QPointer<OpenSWMMVisLayer> m_layer;
60
61 QLabel *m_header = nullptr;
62 QStackedWidget *m_stack = nullptr;
63 QWidget *m_placeholder = nullptr;
64 RuleSymbologyTab *m_tab = nullptr; // recreated per layer
65};
66
67} // namespace openswmmvis::ui
68
69#endif // OPENSWMMVIS_UI_PANELS_LAYERSTYLINGDOCK_H
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
Definition layerstylingdock.h:38
void setLayer(OpenSWMMVisLayer *layer)
Definition layerstylingdock.cpp:95
Definition rulesymbologytab.h:57
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176