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
subcatchcompoundeditdialog.h
Go to the documentation of this file.
1
14#ifndef SUBCATCHCOMPOUNDEDITDIALOG_H
15#define SUBCATCHCOMPOUNDEDITDIALOG_H
16
17#include <QDialog>
18
20
21class QStackedWidget;
22class QTableWidget;
23class QLabel;
24class QComboBox;
25class QDoubleSpinBox;
26class QSpinBox;
27class QDialogButtonBox;
28class QPushButton;
29
30class SubcatchCompoundEditDialog : public QDialog
31{
32 Q_OBJECT
33public:
35 QWidget *parent = nullptr);
36
37 [[nodiscard]] QString updatedSummary() const { return m_ref.summary; }
38
39private:
40 void buildLandUsePage();
41 void buildLidUsagePage();
42 void buildLoadingsPage();
43 void refreshActivePage();
44
47 [[nodiscard]] static int pageIndexFor(SubcatchCompoundEditRef::Kind kind);
48
49 [[nodiscard]] int subIdx() const; // swmm_subcatch_index, or -1
50
52
53 // Land-use page — iteration 4: editable full matrix (one row per
54 // defined land use, editable percent column, live sum footer).
55 QLabel *m_luSummary = nullptr;
56 QTableWidget *m_luTable = nullptr;
57 bool m_luRefreshing = false;
58
59 // Loadings page (iteration 4) — [LOADINGS] initial buildup per pollutant.
60 QLabel *m_loadSummary = nullptr;
61 QTableWidget *m_loadTable = nullptr;
62 bool m_loadRefreshing = false;
63
64 // LID usage page
65 QLabel *m_lidSummary = nullptr;
66 QTableWidget *m_lidTable = nullptr;
67 QPushButton *m_lidRemoveBtn = nullptr;
68 QComboBox *m_lidCombo = nullptr;
69 QSpinBox *m_lidNumber = nullptr;
70 QDoubleSpinBox *m_lidArea = nullptr;
71 QDoubleSpinBox *m_lidWidth = nullptr;
72 QDoubleSpinBox *m_lidInitSat = nullptr;
73 QDoubleSpinBox *m_lidFromImp = nullptr;
74
75 QStackedWidget *m_stack = nullptr;
76 QDialogButtonBox *m_buttons = nullptr;
77};
78
79#endif // SUBCATCHCOMPOUNDEDITDIALOG_H
Definition subcatchcompoundeditdialog.h:31
QString updatedSummary() const
Definition subcatchcompoundeditdialog.h:37
EdgeRef ref
Definition pslgminsize.cpp:377
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
TokenKind kind
Definition queryparser.cpp:34
Definition subcatchcompoundeditref.h:26
QString summary
Short text shown in the cell.
Definition subcatchcompoundeditref.h:37
Kind
Definition subcatchcompoundeditref.h:27