QGIS/python/gui/qgsprojectionselectiondialog.sip
Nyall Dawson 3c7c65e6d5 Allow a "no projection" option in projection selection widget/dialog
This option allows users to select "no projection", when
there's no suitable projection to select...
2017-03-01 10:14:37 +10:00

44 lines
1.3 KiB
Plaintext

class QgsProjectionSelectionDialog : QDialog //, private Ui::QgsGenericProjectionSelectorBase
{
%TypeHeaderCode
#include <qgsprojectionselectiondialog.h>
%End
public:
/**
* Constructor
*/
QgsProjectionSelectionDialog( QWidget *parent /TransferThis/ = 0,
const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
//! Destructor
~QgsProjectionSelectionDialog();
QgsCoordinateReferenceSystem crs() const;
void setMessage( const QString& message );
void setShowNoProjection( bool show );
bool showNoProjection() const;
public slots:
void setCrs( const QgsCoordinateReferenceSystem& crs );
/**
* \brief filters this dialog by the given CRSs
*
* Sets this dialog to filter the available projections to those listed
* by the given Coordinate Reference Systems.
*
* \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.
*
* \warning This function's behavior is undefined if it is called after the dialog is shown.
*/
void setOgcWmsCrsFilter( const QSet<QString>& crsFilter );
};