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
spatialpage.h
Go to the documentation of this file.
1
14#ifndef SPATIALPAGE_H
15#define SPATIALPAGE_H
16
18
19class QLabel;
20class QToolButton;
21
22namespace openswmmvis::ui
23{
24
26{
27 Q_OBJECT
28
29public:
30 explicit SpatialPage(SimOptionsContext &ctx, QWidget *parent = nullptr);
31
32 [[nodiscard]] QString title() const override;
33 void read() override;
34 int write() override;
35
36signals:
43 void crsChanged();
44
45private slots:
46 void onPickCRS();
47 void onDetectCRS();
48
49private:
50 void buildUi();
51 void refreshSummary();
52
53 QLabel *m_crsLabel = nullptr;
54 QLabel *m_extentLabel = nullptr;
55 QToolButton *m_crsChangeButton = nullptr;
56 QToolButton *m_crsDetectButton = nullptr;
57};
58
59} // namespace openswmmvis::ui
60
61#endif // SPATIALPAGE_H
Definition simoptionscontext.h:31
Definition simoptionspage.h:25
Definition spatialpage.h:26
int write() override
widgets → engine via ctx_.writeIfChanged; returns the sum.
Definition spatialpage.cpp:98
void crsChanged()
Emitted when the CRS pick wrote to the engine.
void read() override
engine → widgets. Block signals while setting.
Definition spatialpage.cpp:93
QString title() const override
Sidebar row text, already tr()'d.
Definition spatialpage.cpp:30
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176