18 #ifndef QGSDATUMTRANSFORMDIALOG_H 19 #define QGSDATUMTRANSFORMDIALOG_H 21 #include "ui_qgsdatumtransformdialogbase.h" 47 int sourceTransformId = -1;
53 int destinationTransformId = -1;
75 QWidget *parent =
nullptr,
77 const QString &windowTitle = QString() );
86 bool allowCrsChanges =
false,
87 bool showMakeDefault =
true,
88 bool forceChoice =
true,
89 QPair<int, int> selectedDatumTransforms = qMakePair( -1, -1 ),
90 QWidget *parent =
nullptr,
91 Qt::WindowFlags f =
nullptr,
92 const QString &selectedProj = QString(),
96 void accept()
override;
97 void reject()
override;
107 void tableCurrentItemChanged( QTableWidgetItem *, QTableWidgetItem * );
110 void showSupersededToggled(
bool toggled );
116 TransformIdRole = Qt::UserRole + 1,
122 bool gridShiftTransformation(
const QString &itemText )
const;
124 bool testGridShiftFileAvailability( QTableWidgetItem *item )
const;
125 void load( QPair<int, int> selectedDatumTransforms = qMakePair( -1, -1 ),
const QString &selectedProj = QString() );
126 void setOKButtonEnabled();
133 bool shouldAskUserForSelection()
const;
147 void applyDefaultTransform();
152 QString formatScope(
const QString &scope );
154 #if PROJ_VERSION_MAJOR>=6 155 QList< QgsDatumTransform::TransformDetails > mDatumTransforms;
157 QList< QgsDatumTransform::TransformPair > mDatumTransforms;
161 std::unique_ptr< QgsTemporaryCursorRestoreOverride > mPreviousCursorOverride;
163 friend class TestQgsDatumTransformDialog;
166 #endif // QGSDATUMTRANSFORMDIALOG_H
Map canvas is a class for displaying all GIS data types on a canvas.
This class represents a coordinate reference system (CRS).
Temporarily removes all cursor overrides for the QApplication for the lifetime of the object...