18 #ifndef QGSDATUMTRANSFORMDIALOG_H 19 #define QGSDATUMTRANSFORMDIALOG_H 21 #include "ui_qgsdatumtransformdialogbase.h" 47 int sourceTransformId = -1;
53 int destinationTransformId = -1;
72 QWidget *parent =
nullptr );
81 bool allowCrsChanges =
false,
82 bool showMakeDefault =
true,
83 bool forceChoice =
true,
84 QPair<int, int> selectedDatumTransforms = qMakePair( -1, -1 ),
85 QWidget *parent =
nullptr,
86 Qt::WindowFlags f =
nullptr,
87 const QString &selectedProj = QString() );
90 void accept()
override;
91 void reject()
override;
101 void tableCurrentItemChanged( QTableWidgetItem *, QTableWidgetItem * );
109 TransformIdRole = Qt::UserRole + 1,
113 bool gridShiftTransformation(
const QString &itemText )
const;
115 bool testGridShiftFileAvailability( QTableWidgetItem *item )
const;
116 void load( QPair<int, int> selectedDatumTransforms = qMakePair( -1, -1 ),
const QString &selectedProj = QString() );
117 void setOKButtonEnabled();
124 bool shouldAskUserForSelection()
const;
138 void applyDefaultTransform();
140 #if PROJ_VERSION_MAJOR>=6 141 QList< QgsDatumTransform::TransformDetails > mDatumTransforms;
143 QList< QgsDatumTransform::TransformPair > mDatumTransforms;
147 std::unique_ptr< QgsTemporaryCursorRestoreOverride > mPreviousCursorOverride;
149 friend class TestQgsDatumTransformDialog;
152 #endif // QGSDATUMTRANSFORMDIALOG_H
This class represents a coordinate reference system (CRS).
Temporarily removes all cursor overrides for the QApplication for the lifetime of the object...