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
crschangedialog.h
Go to the documentation of this file.
1
11#ifndef CRSCHANGEDIALOG_H
12#define CRSCHANGEDIALOG_H
13
14#include <QDialog>
15#include <QString>
16
17class QRadioButton;
18class QLabel;
19class QDialogButtonBox;
20
28class CRSChangeDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
33 enum Choice {
34 Cancel = 0,
37 };
38
45 explicit CRSChangeDialog(const QString &oldAuth,
46 const QString &newAuth,
47 bool sourceIsLocal = false,
48 QWidget *parent = nullptr);
49
50 Choice choice() const { return m_choice; }
51
52private slots:
53 void onAccept();
54
55private:
56 Choice m_choice = Cancel;
57 QRadioButton *m_radioReproject = nullptr;
58 QRadioButton *m_radioRenderOnly = nullptr;
59 QDialogButtonBox *m_buttonBox = nullptr;
60};
61
62#endif // CRSCHANGEDIALOG_H
Three-choice CRS change confirmation.
Definition crschangedialog.h:29
Choice choice() const
Definition crschangedialog.h:50
Choice
Definition crschangedialog.h:33
@ RenderOnly
Keep stored coordinates; only the canvas display CRS changes.
Definition crschangedialog.h:36
@ Cancel
Definition crschangedialog.h:34
@ Reproject
Permanently rewrite stored coordinates via OGR transform.
Definition crschangedialog.h:35
QVector< int > parent
union-find
Definition pslgminsize.cpp:176