Skip to content

Commit 4ea563b

Browse files
author
timlinux
committed
Added a small useage example to generic projection selector dialog docs
git-svn-id: http://svn.osgeo.org/qgis/trunk@9194 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 94ac3a8 commit 4ea563b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/gui/qgsgenericprojectionselector.h

+15-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,21 @@
2323

2424
#include <QSet>
2525

26-
/**
27-
* \class QgsGenericProjectionSelector
28-
* \brief A generic dialog to prompt the user for a Coordinate Reference System
26+
/**
27+
* \ingroup gui
28+
* A generic dialog to prompt the user for a Coordinate Reference System.
29+
*
30+
* Typically you will use this when you want to prompt the user for
31+
* a coordinate system identifier e.g. from a plugin you might do this
32+
* to get an epsg code:
33+
* \code
34+
* QgsGenericProjectionSelector mySelector( mQGisIface->getMainWindow() );
35+
* mySelector.setSelectedEpsg( mEpsgId );
36+
* if ( mySelector.exec() )
37+
* {
38+
* mEpsgId = mySelector.getSelectedEpsg();
39+
* }
40+
* \endcode
2941
*/
3042

3143
class GUI_EXPORT QgsGenericProjectionSelector : public QDialog, private Ui::QgsGenericProjectionSelectorBase

0 commit comments

Comments
 (0)