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
legendpropertiesdialog.h
Go to the documentation of this file.
1
22#ifndef OPENSWMMVIS_UI_DIALOGS_LEGENDPROPERTIESDIALOG_H
23#define OPENSWMMVIS_UI_DIALOGS_LEGENDPROPERTIESDIALOG_H
24
25#include <QDialog>
26#include <QJsonObject>
27#include <QPointer>
28
29class QTreeView;
30
31namespace OpenSWMM::Render { class LegendOverlayStyle; }
32
33namespace openswmmvis::ui {
34
35class LegendPropertiesDialog : public QDialog
36{
37 Q_OBJECT
38public:
43 QWidget *parent = nullptr);
44 ~LegendPropertiesDialog() override = default;
45
46protected:
47 // Cancel reverts edits to the snapshot taken at construction time.
48 void reject() override;
49
50private slots:
51 void onResetClicked();
52
53private:
54 QPointer<OpenSWMM::Render::LegendOverlayStyle> m_style;
55 QJsonObject m_snapshot; // captured at construction for Cancel.
56 QTreeView *m_tree = nullptr;
57};
58
59} // namespace openswmmvis::ui
60
61#endif // OPENSWMMVIS_UI_DIALOGS_LEGENDPROPERTIESDIALOG_H
Model object holding the on-canvas legend's chrome configuration.
Definition legendoverlaystyle.h:50
Definition legendpropertiesdialog.h:36
void reject() override
Definition legendpropertiesdialog.cpp:73
Definition gisrasterlayer.h:40
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176