QGIS/python/gui/qgsprojectionselectionwidget.sip
Denis Rouzaud 7c4f3f9640 remove lineEdit method from projection selection widget
this will allow to change the widget design without breaking the API
2015-01-09 11:01:39 +01:00

45 lines
1.1 KiB
Plaintext

/**
* \class QgsProjectionSelectionWidget
* \ingroup gui
* \brief A widget for selecting a projection.
* \note added in QGIS 2.7
*/
class QgsProjectionSelectionWidget : QWidget
{
%TypeHeaderCode
#include <qgsprojectionselectionwidget.h>
%End
public:
explicit QgsProjectionSelectionWidget( QWidget *parent /TransferThis/ = 0 );
/* Returns a pointer to the projection selector dialog used by the widget. Can be used
* to modify how the projection selector dialog behaves.
* @returns projection selector dialog
*/
QgsGenericProjectionSelector* dialog();
/* Returns the currently selected CRS for the widget
* @returns current CRS
*/
QgsCoordinateReferenceSystem crs() const;
signals:
/* Emitted when the selected CRS is changed
*/
void crsChanged( QgsCoordinateReferenceSystem );
public slots:
/* Sets the current CRS for the widget
* @param crs new CRS
*/
void setCrs( QgsCoordinateReferenceSystem crs );
/* Opens the dialog for selecting a new CRS
*/
void selectCrs();
};