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
objectdefaultspage.h
Go to the documentation of this file.
1#ifndef OBJECTDEFAULTSPAGE_H
2#define OBJECTDEFAULTSPAGE_H
3
18#include <QWidget>
19
21
22class QCheckBox;
23class QComboBox;
24class QDoubleSpinBox;
25class QSpinBox;
26
27class ObjectDefaultsPage : public QWidget
28{
29 Q_OBJECT
30
31public:
32 explicit ObjectDefaultsPage(QWidget *parent = nullptr);
33
37
40
42 void resetToSeeds();
43
44private:
46
47 void buildUi();
48 void populateWidgets(const OD &d);
49 void commitWidgets(OD &d) const;
50 void onUnitSystemSwitched(int comboIndex);
51
52 OD m_us;
53 OD m_si;
54 bool m_showingSi = false;
55
56 QComboBox *m_unitSystemCombo = nullptr;
57
58 // Nodes
59 QDoubleSpinBox *m_junctionMaxDepth = nullptr;
60 QDoubleSpinBox *m_junctionInitDepth = nullptr;
61 QDoubleSpinBox *m_junctionSurDepth = nullptr;
62 QDoubleSpinBox *m_junctionPondedArea = nullptr;
63 QComboBox *m_outfallType = nullptr;
64 QCheckBox *m_outfallFlapGate = nullptr;
65 QDoubleSpinBox *m_storageMaxDepth = nullptr;
66 QDoubleSpinBox *m_storageFuncCoeff = nullptr;
67 QDoubleSpinBox *m_storageFuncExponent = nullptr;
68 QDoubleSpinBox *m_storageFuncConstant = nullptr;
69 QDoubleSpinBox *m_storageSeepRate = nullptr;
70 QComboBox *m_dividerType = nullptr;
71
72 // Links
73 QComboBox *m_conduitShape = nullptr;
74 QDoubleSpinBox *m_conduitGeom1 = nullptr;
75 QDoubleSpinBox *m_conduitGeom2 = nullptr;
76 QDoubleSpinBox *m_conduitGeom3 = nullptr;
77 QDoubleSpinBox *m_conduitGeom4 = nullptr;
78 QDoubleSpinBox *m_conduitRoughness = nullptr;
79 QDoubleSpinBox *m_conduitLength = nullptr;
80 QSpinBox *m_conduitBarrels = nullptr;
81 QDoubleSpinBox *m_conduitLossInlet = nullptr;
82 QDoubleSpinBox *m_conduitLossOutlet = nullptr;
83 QCheckBox *m_conduitFlapGate = nullptr;
84 QCheckBox *m_pumpInitStateOn = nullptr;
85 QDoubleSpinBox *m_pumpStartupDepth = nullptr;
86 QDoubleSpinBox *m_pumpShutoffDepth = nullptr;
87 QComboBox *m_orificeType = nullptr;
88 QDoubleSpinBox *m_orificeGeom1 = nullptr;
89 QDoubleSpinBox *m_orificeCd = nullptr;
90 QCheckBox *m_orificeFlapGate = nullptr;
91 QDoubleSpinBox *m_orificeOpenCloseRate = nullptr;
92 QComboBox *m_weirType = nullptr;
93 QDoubleSpinBox *m_weirGeom1 = nullptr;
94 QDoubleSpinBox *m_weirGeom2 = nullptr;
95 QDoubleSpinBox *m_weirCd = nullptr;
96 QSpinBox *m_weirEndContractions = nullptr;
97 QCheckBox *m_weirFlapGate = nullptr;
98 QComboBox *m_outletRatingType = nullptr;
99 QDoubleSpinBox *m_outletCoeff = nullptr;
100 QDoubleSpinBox *m_outletExponent = nullptr;
101 QCheckBox *m_outletFlapGate = nullptr;
102
103 // Subcatchments
104 QDoubleSpinBox *m_subcatchArea = nullptr;
105 QDoubleSpinBox *m_subcatchWidth = nullptr;
106 QDoubleSpinBox *m_subcatchSlopePct = nullptr;
107 QDoubleSpinBox *m_subcatchImpervPct = nullptr;
108 QDoubleSpinBox *m_subcatchNImperv = nullptr;
109 QDoubleSpinBox *m_subcatchNPerv = nullptr;
110 QDoubleSpinBox *m_subcatchDsImperv = nullptr;
111 QDoubleSpinBox *m_subcatchDsPerv = nullptr;
112 QDoubleSpinBox *m_subcatchPctZeroImperv = nullptr;
113 QDoubleSpinBox *m_hortonMaxRate = nullptr;
114 QDoubleSpinBox *m_hortonMinRate = nullptr;
115 QDoubleSpinBox *m_hortonDecay = nullptr;
116 QDoubleSpinBox *m_hortonDryTime = nullptr;
117 QDoubleSpinBox *m_gaSuction = nullptr;
118 QDoubleSpinBox *m_gaKsat = nullptr;
119 QDoubleSpinBox *m_gaImd = nullptr;
120 QDoubleSpinBox *m_cnCurveNumber = nullptr;
121 QDoubleSpinBox *m_cnDryTime = nullptr;
122
123 // Rain gages
124 QComboBox *m_gageRainFormat = nullptr;
125 QSpinBox *m_gageIntervalMin = nullptr;
126 QDoubleSpinBox *m_gageSnowCatch = nullptr;
127};
128
129#endif // OBJECTDEFAULTSPAGE_H
Definition objectdefaultspage.h:28
void applyTo(PreferencesManager *p)
Commit the visible widgets, then write BOTH sets to the manager.
Definition objectdefaultspage.cpp:418
void resetToSeeds()
Restore both sets to the compiled-in seeds and refresh the widgets.
Definition objectdefaultspage.cpp:425
void loadFrom(PreferencesManager *p)
Definition objectdefaultspage.cpp:403
Definition preferencesmanager.h:34
ArrowPlacement p
Definition linesymbollayer.cpp:27
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Definition preferencesmanager.h:568