QGIS/python/gui/auto_generated/qgsprojectionselectiontreewidget.sip.in

184 lines
4.9 KiB
Plaintext
Raw Normal View History

2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProjectionSelectionTreeWidget : QWidget
{
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A widget for selecting a coordinate reference system from a tree.
2017-06-08 11:26:03 +02:00
2017-12-15 10:36:55 -04:00
This widget implements a tree view of projections, as seen in the
QgsProjectionSelectionDialog dialog. In most cases it is more
suitable to use the compact QgsProjectionSelectionWidget widget.
2017-06-08 11:26:03 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsProjectionSelectionDialog`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsProjectionSelectionWidget`
2017-12-15 10:36:55 -04:00
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
2017-06-08 11:26:03 +02:00
%TypeHeaderCode
#include "qgsprojectionselectiontreewidget.h"
%End
public:
2017-06-08 11:26:03 +02:00
QgsProjectionSelectionTreeWidget( QWidget *parent /TransferThis/ = 0 );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsProjectionSelectionTreeWidget.
2017-06-08 11:26:03 +02:00
%End
~QgsProjectionSelectionTreeWidget();
QgsCoordinateReferenceSystem crs() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the CRS currently selected in the widget.
.. seealso:: :py:func:`setCrs`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-06-08 11:26:03 +02:00
%End
void setShowNoProjection( bool show );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether a "no/invalid" projection option should be shown. If this
2017-12-19 11:43:52 -04:00
option is selected, calling crs() will return an invalid :py:class:`QgsCoordinateReferenceSystem`.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`showNoProjection`
2017-12-15 10:36:55 -04:00
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
void setShowBoundsMap( bool show );
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether to show the bounnds preview map.
.. seealso:: :py:func:`showBoundsMap`
2017-12-15 10:36:55 -04:00
.. versionadded:: 3.0
2017-06-08 11:26:03 +02:00
%End
bool showNoProjection() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns whether the "no/invalid" projection option is shown. If this
2017-12-19 11:43:52 -04:00
option is selected, calling crs() will return an invalid :py:class:`QgsCoordinateReferenceSystem`.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setShowNoProjection`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-06-08 11:26:03 +02:00
%End
bool showBoundsMap() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns whether the bounds preview map is shown.
.. seealso:: :py:func:`setShowBoundsMap`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
%End
bool hasValidSelection() const;
2017-06-08 11:26:03 +02:00
%Docstring
2019-02-26 19:54:09 +10:00
Returns ``True`` if the current selection in the widget is a valid choice. Valid
2017-12-15 10:36:55 -04:00
selections include any projection and also the "no/invalid projection" option
(if setShowNoProjection() was called). Invalid selections are the group
headers (such as "Geographic Coordinate Systems")
2017-06-08 11:26:03 +02:00
%End
public slots:
void setCrs( const QgsCoordinateReferenceSystem &crs );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the initial ``crs`` to show within the dialog.
.. seealso:: :py:func:`crs`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-06-08 11:26:03 +02:00
%End
void setPreviewRect( const QgsRectangle &rect );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the initial "preview" rectangle for the bounds overview map.
.. seealso:: :py:func:`previewRect`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
%End
2017-10-16 10:59:14 +10:00
QgsRectangle previewRect() const;
%Docstring
2017-12-15 10:36:55 -04:00
The initial "preview" rectangle for the bounds overview map.
.. seealso:: :py:func:`previewRect`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
%End
void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
2017-06-08 11:26:03 +02:00
%Docstring
filters this widget by the given CRSs
2017-06-08 11:26:03 +02:00
2017-12-15 10:36:55 -04:00
Sets this widget to filter the available projections to those listed
by the given Coordinate Reference Systems.
2017-06-08 11:26:03 +02:00
2017-12-15 10:36:55 -04:00
:param crsFilter: a list of OGC Coordinate Reference Systems to filter the
list of projections by. This is useful in (e.g.) WMS situations
where you just want to offer what the WMS server can support.
2017-06-08 11:26:03 +02:00
.. warning::
This function's behavior is undefined if it is called after the widget is shown.
2017-06-08 11:26:03 +02:00
%End
void pushProjectionToFront();
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Marks the current selected projection for push to front of recent projections list.
2017-06-08 11:26:03 +02:00
%End
signals:
void crsSelected();
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when a projection is selected in the widget.
2017-06-08 11:26:03 +02:00
%End
void initialized();
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Notifies others that the widget is now fully initialized, including deferred selection of projection.
2017-06-08 11:26:03 +02:00
.. versionadded:: 2.4
%End
void projectionDoubleClicked();
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when a projection is double clicked in the list.
2017-06-08 11:26:03 +02:00
.. versionadded:: 2.14
%End
protected:
2017-06-08 11:26:03 +02:00
virtual void showEvent( QShowEvent *event );
virtual void resizeEvent( QResizeEvent *event );
};
2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/