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
stylemanagerdialog.h
Go to the documentation of this file.
1
26#ifndef OPENSWMMVIS_UI_DIALOGS_STYLEMANAGERDIALOG_H
27#define OPENSWMMVIS_UI_DIALOGS_STYLEMANAGERDIALOG_H
28
29#include <QDialog>
30#include <QString>
31
33class QDialogButtonBox;
34class QLabel;
35class QListWidget;
36class QPlainTextEdit;
37class QPushButton;
38
39namespace openswmmvis::ui {
40
41class StyleManagerDialog : public QDialog
42{
43 Q_OBJECT
44public:
49 explicit StyleManagerDialog(OpenSWMMVisLayer *activeLayer,
50 QWidget *parent = nullptr);
52
53private slots:
54 void onSelectionChanged();
55 void onApply();
56 void onSaveCurrent();
57 void onImport();
58 void onExport();
59 void onDelete();
60 void onOpenLibraryFolder();
61
62private:
65 [[nodiscard]] QString resolveLibraryDir() const;
66
69 void refreshLibrary();
70
72 void refreshPreview();
73
76 [[nodiscard]] QString currentFilePath() const;
77
78 OpenSWMMVisLayer *m_layer = nullptr;
79 QString m_libraryDir;
80
81 // Left pane — library list + folder shortcut.
82 QListWidget *m_list = nullptr;
83 QLabel *m_libDirLabel = nullptr;
84 QPushButton *m_openDirBtn = nullptr;
85
86 // Right pane — preview + action buttons.
87 QPlainTextEdit *m_preview = nullptr;
88 QPushButton *m_applyBtn = nullptr;
89 QPushButton *m_saveBtn = nullptr;
90 QPushButton *m_importBtn = nullptr;
91 QPushButton *m_exportBtn = nullptr;
92 QPushButton *m_deleteBtn = nullptr;
93
94 QDialogButtonBox *m_btns = nullptr;
95};
96
97} // namespace openswmmvis::ui
98
99#endif // OPENSWMMVIS_UI_DIALOGS_STYLEMANAGERDIALOG_H
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
Definition stylemanagerdialog.h:42
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176