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
groundwaterexchangedialog.h
Go to the documentation of this file.
1
21#ifndef GROUNDWATEREXCHANGEDIALOG_H
22#define GROUNDWATEREXCHANGEDIALOG_H
23
24#include <QDialog>
25
27
28class QComboBox;
29class QDialogButtonBox;
30class QDoubleSpinBox;
31class QLabel;
32class QPushButton;
33class QWidget;
34
35namespace openswmmvis::ui { class GwfExpressionEdit; }
36
37class GroundwaterExchangeDialog : public QDialog
38{
39 Q_OBJECT
40public:
44 QWidget *parent = nullptr);
45
48 [[nodiscard]] QString updatedSummary() const;
49
51 [[nodiscard]] bool canApply() const;
52
53signals:
56 void applied();
57
58private:
59 void buildUi_();
60 void loadFromEngine_();
61 void apply_();
62 void updateApplyState_();
63 void bindExpression_(openswmmvis::ui::GwfExpressionEdit *edit,
64 QLabel *status, bool *okFlag);
65
66 [[nodiscard]] int subIdx() const; // swmm_subcatch_index, or -1
67
69
70 QLabel *m_header = nullptr;
71 QLabel *m_hint = nullptr;
72 QWidget *m_form = nullptr;
73
74 QComboBox *m_node = nullptr;
75 QDoubleSpinBox *m_surfEl = nullptr;
76 QDoubleSpinBox *m_a1 = nullptr;
77 QDoubleSpinBox *m_b1 = nullptr;
78 QDoubleSpinBox *m_a2 = nullptr;
79 QDoubleSpinBox *m_b2 = nullptr;
80 QDoubleSpinBox *m_a3 = nullptr;
81 QDoubleSpinBox *m_tw = nullptr;
82 QDoubleSpinBox *m_hstar = nullptr;
83
84 openswmmvis::ui::GwfExpressionEdit *m_lateral = nullptr;
85 openswmmvis::ui::GwfExpressionEdit *m_deep = nullptr;
86 QLabel *m_lateralStatus = nullptr;
87 QLabel *m_deepStatus = nullptr;
88 bool m_lateralOk = true;
89 bool m_deepOk = true;
90 bool m_hasAquifer = false;
91
92 QDialogButtonBox *m_buttons = nullptr;
93 QPushButton *m_applyBtn = nullptr;
94};
95
96#endif // GROUNDWATEREXCHANGEDIALOG_H
Definition groundwaterexchangedialog.h:38
QString updatedSummary() const
Definition groundwaterexchangedialog.cpp:59
bool canApply() const
Definition groundwaterexchangedialog.cpp:64
Definition gwfexpressionedit.h:64
Definition openswmmvislayer.h:43
EdgeRef ref
Definition pslgminsize.cpp:377
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Definition subcatchcompoundeditref.h:26