Skip to content

Commit

Permalink
Added a small useage example to generic projection selector dialog docs
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9194 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 27, 2008
1 parent 94ac3a8 commit 4ea563b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/gui/qgsgenericprojectionselector.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@

#include <QSet>

/**
* \class QgsGenericProjectionSelector
* \brief A generic dialog to prompt the user for a Coordinate Reference System
/**
* \ingroup gui
* A generic dialog to prompt the user for a Coordinate Reference System.
*
* Typically you will use this when you want to prompt the user for
* a coordinate system identifier e.g. from a plugin you might do this
* to get an epsg code:
* \code
* QgsGenericProjectionSelector mySelector( mQGisIface->getMainWindow() );
* mySelector.setSelectedEpsg( mEpsgId );
* if ( mySelector.exec() )
* {
* mEpsgId = mySelector.getSelectedEpsg();
* }
* \endcode
*/

class GUI_EXPORT QgsGenericProjectionSelector : public QDialog, private Ui::QgsGenericProjectionSelectorBase
Expand Down

0 comments on commit 4ea563b

Please sign in to comment.