18 #ifndef QGSDATUMTRANSFORMDIALOG_H
19 #define QGSDATUMTRANSFORMDIALOG_H
21 #include "ui_qgsdatumtransformdialogbase.h"
46 int sourceTransformId = -1;
52 int destinationTransformId = -1;
58 bool allowFallback =
true;
77 QWidget *parent =
nullptr,
79 const QString &windowTitle = QString() );
88 bool allowCrsChanges =
false,
89 bool showMakeDefault =
true,
90 bool forceChoice =
true,
91 QPair<int, int> selectedDatumTransforms = qMakePair( -1, -1 ),
92 QWidget *parent =
nullptr,
93 Qt::WindowFlags f = Qt::WindowFlags(),
94 const QString &selectedProj = QString(),
96 bool allowFallback =
true );
98 void accept()
override;
99 void reject()
override;
109 void operationChanged();
117 TransformIdRole = Qt::UserRole + 1,
123 bool gridShiftTransformation(
const QString &itemText )
const;
125 void setOKButtonEnabled();
132 bool shouldAskUserForSelection()
const;
141 TransformInfo defaultDatumTransform()
const;
146 void applyDefaultTransform();
148 std::unique_ptr< QgsTemporaryCursorRestoreOverride > mPreviousCursorOverride;
150 friend class TestQgsDatumTransformDialog;
This class represents a coordinate reference system (CRS).
Map canvas is a class for displaying all GIS data types on a canvas.