2017-02-27 16:58:04 +10:00
|
|
|
class QgsProjectionSelectionDialog : QDialog //, private Ui::QgsGenericProjectionSelectorBase
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsprojectionselectiondialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
|
|
|
QgsProjectionSelectionDialog( QWidget *parent /TransferThis/ = 0,
|
2017-05-07 20:58:28 +10:00
|
|
|
const Qt::WindowFlags &fl = QgsGuiUtils::ModalDialogFlags );
|
2017-02-27 16:58:04 +10:00
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
~QgsProjectionSelectionDialog();
|
|
|
|
|
|
|
|
QgsCoordinateReferenceSystem crs() const;
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setMessage( const QString &message );
|
2017-02-27 16:58:04 +10:00
|
|
|
|
2017-03-01 10:14:37 +10:00
|
|
|
void setShowNoProjection( bool show );
|
|
|
|
|
|
|
|
bool showNoProjection() const;
|
|
|
|
|
2017-02-27 16:58:04 +10:00
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setCrs( const QgsCoordinateReferenceSystem &crs );
|
2017-02-27 16:58:04 +10:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \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.
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
|
2017-02-27 16:58:04 +10:00
|
|
|
};
|