mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
The current names for QgsProjectionSelector and QgsGenericProjectionSelector are confusing
40 lines
1.2 KiB
Plaintext
40 lines
1.2 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 );
|
|
|
|
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 );
|
|
};
|