QGIS/python/gui/qgsgenericprojectionselector.sip
Nyall Dawson c11319b859 Fix button box in options dialog not working (fix #11960)
QgsOptionsDialogBase was incorrectly finding the projection
selector's buttonBox widget and attaching the connections
to that widget, rather than the dialog's widget.

Rename projection selector's button box to avoid this conflict.
2015-01-08 06:48:55 +11:00

50 lines
1.5 KiB
Plaintext

/**
* \class QgsGenericProjectionSelector
* \brief A generic dialog to prompt the user for a Coordinate Reference System
*/
class QgsGenericProjectionSelector : QDialog //, private Ui::QgsGenericProjectionSelectorBase
{
%TypeHeaderCode
#include <qgsgenericprojectionselector.h>
%End
public:
/**
* Constructor
*/
QgsGenericProjectionSelector( QWidget *parent = 0,
Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
//! Destructor
~QgsGenericProjectionSelector();
public slots:
/** If no parameter is passed, the message will be a generic
* 'define the CRS for this layer'.
*/
void setMessage( QString theMessage = "" );
long selectedCrsId();
QString selectedAuthId();
void setSelectedCrsName( QString theName );
void setSelectedCrsId( long theID );
void setSelectedAuthId( QString authId );
void on_mButtonBox_helpRequested();
/**
* \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 behaviour is undefined if it is called after the dialog is shown.
*/
void setOgcWmsCrsFilter( QSet<QString> crsFilter );
};