QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | List of all members
QgsProjectionSelectionWidget Class Reference

A widget for selecting a projection. More...

#include <qgsprojectionselectionwidget.h>

Public Types

enum  CrsOption {
  LayerCrs, ProjectCrs, CurrentCrs, DefaultCrs,
  RecentCrs
}
 Predefined CRS options shown in widget. More...

Public Slots

void selectCrs ()
void setCrs (const QgsCoordinateReferenceSystem &crs)
void setLayerCrs (const QgsCoordinateReferenceSystem &crs)

Signals

void crsChanged (QgsCoordinateReferenceSystem)

Public Member Functions

 QgsProjectionSelectionWidget (QWidget *parent=0)
QgsCoordinateReferenceSystem crs () const
QgsGenericProjectionSelectordialog ()
void setOptionVisible (const CrsOption option, const bool visible)

Detailed Description

A widget for selecting a projection.

Note
added in QGIS 2.7

Definition at line 35 of file qgsprojectionselectionwidget.h.

Member Enumeration Documentation

Predefined CRS options shown in widget.

Enumerator:
LayerCrs 
ProjectCrs 
CurrentCrs 
DefaultCrs 
RecentCrs 

Definition at line 42 of file qgsprojectionselectionwidget.h.

Constructor & Destructor Documentation

QgsProjectionSelectionWidget::QgsProjectionSelectionWidget ( QWidget *  parent = 0)
explicit

Definition at line 25 of file qgsprojectionselectionwidget.cpp.

Member Function Documentation

QgsCoordinateReferenceSystem QgsProjectionSelectionWidget::crs ( ) const

Definition at line 74 of file qgsprojectionselectionwidget.cpp.

void QgsProjectionSelectionWidget::crsChanged ( QgsCoordinateReferenceSystem  )
signal
QgsGenericProjectionSelector* QgsProjectionSelectionWidget::dialog ( )
inline

Definition at line 57 of file qgsprojectionselectionwidget.h.

void QgsProjectionSelectionWidget::selectCrs ( )
slot

Definition at line 134 of file qgsprojectionselectionwidget.cpp.

void QgsProjectionSelectionWidget::setCrs ( const QgsCoordinateReferenceSystem crs)
slot

Definition at line 185 of file qgsprojectionselectionwidget.cpp.

void QgsProjectionSelectionWidget::setLayerCrs ( const QgsCoordinateReferenceSystem crs)
slot

Definition at line 203 of file qgsprojectionselectionwidget.cpp.

void QgsProjectionSelectionWidget::setOptionVisible ( const CrsOption  option,
const bool  visible 
)

Definition at line 97 of file qgsprojectionselectionwidget.cpp.


The documentation for this class was generated from the following files: