1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscoordinateoperationwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCoordinateOperationWidget : QWidget
{
%Docstring(signature="appended")
A widget for selecting the coordinate operation to use when transforming between
a source and destination coordinate reference system.
.. versionadded:: 3.12
%End
%TypeHeaderCode
#include "qgscoordinateoperationwidget.h"
%End
public:
struct OperationDetails
{
int sourceTransformId;
int destinationTransformId;
QString proj;
bool isAvailable;
bool allowFallback;
};
QgsCoordinateOperationWidget( QWidget *parent = 0 );
%Docstring
Constructor for QgsCoordinateOperationWidget.
%End
~QgsCoordinateOperationWidget();
QgsCoordinateReferenceSystem sourceCrs() const;
%Docstring
Returns the source CRS for the operations shown in the widget.
.. seealso:: :py:func:`setSourceCrs`
.. seealso:: :py:func:`destinationCrs`
%End
QgsCoordinateReferenceSystem destinationCrs() const;
%Docstring
Returns the destination CRS for the operations shown in the widget.
.. seealso:: :py:func:`setDestinationCrs`
.. seealso:: :py:func:`sourceCrs`
%End
void setSourceCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the source ``crs`` for the operations shown in the widget.
.. seealso:: :py:func:`sourceCrs`
.. seealso:: :py:func:`setDestinationCrs`
%End
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the destination ``crs`` for the operations shown in the widget.
.. seealso:: :py:func:`destinationCrs`
.. seealso:: :py:func:`setSourceCrs`
%End
void setMapCanvas( QgsMapCanvas *canvas );
%Docstring
Sets a map ``canvas`` to link to the widget, which allows the widget's choices to reflect
the current canvas state.
%End
void setShowMakeDefault( bool show );
%Docstring
Sets whether the "make default" checkbox should be shown.
%End
bool makeDefaultSelected() const;
%Docstring
Returns ``True`` if the "make default" option is selected.
%End
bool hasSelection() const;
%Docstring
Returns ``True`` if there is a valid selection in the widget.
%End
QList< QgsCoordinateOperationWidget::OperationDetails > availableOperations() const;
%Docstring
Returns a list of the available operations shown in the widget.
%End
QgsCoordinateOperationWidget::OperationDetails defaultOperation() const;
%Docstring
Returns the details of the default operation suggested by the widget.
%End
QgsCoordinateOperationWidget::OperationDetails selectedOperation() const;
%Docstring
Returns the details of the operation currently selected within the widget.
.. seealso:: :py:func:`setSelectedOperation`
%End
void setSelectedOperation( const QgsCoordinateOperationWidget::OperationDetails &operation );
%Docstring
Sets the details of the ``operation`` currently selected within the widget.
.. seealso:: :py:func:`selectedOperation`
%End
void setSelectedOperationUsingContext( const QgsCoordinateTransformContext &context );
%Docstring
Automatically sets the selected operation using the settings encapsulated in a transform ``context``.
If no matching operations are found within the context then the :py:func:`~QgsCoordinateOperationWidget.defaultOperation` will be
selected.
%End
void setShowFallbackOption( bool visible );
%Docstring
Sets whether the "allow fallback" operations option is visible.
.. versionadded:: 3.12
%End
signals:
void operationChanged();
%Docstring
Emitted when the operation selected in the dialog is changed.
%End
void operationDoubleClicked();
%Docstring
Emitted when an operation is double-clicked in the widget.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscoordinateoperationwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
|