QGIS API Documentation  3.0.2-Girona (307d082)
qgsprojectionselectiondialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsgenericprojectionselector.h
3  Set user defined projection using projection selector widget
4  -------------------
5  begin : May 28, 2004
6  copyright : (C) 2004 by Gary E.Sherman
7  email : sherman at mrcc.com
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef QGSGENERICPROJECTIONSELECTOR_H
19 #define QGSGENERICPROJECTIONSELECTOR_H
20 #include "ui_qgsgenericprojectionselectorbase.h"
21 #include "qgis.h"
22 #include "qgsguiutils.h"
23 
24 #include <QSet>
25 
26 #include "qgis_gui.h"
28 
51 class GUI_EXPORT QgsProjectionSelectionDialog : public QDialog, private Ui::QgsGenericProjectionSelectorBase
52 {
53  Q_OBJECT
54  public:
55 
59  QgsProjectionSelectionDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr,
60  Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
61 
62 
63  ~QgsProjectionSelectionDialog() override;
64 
70  QgsCoordinateReferenceSystem crs() const;
71 
77  void setMessage( const QString &message );
78 
85  void setShowNoProjection( bool show );
86 
93  bool showNoProjection() const;
94 
95  public slots:
96 
102  void setCrs( const QgsCoordinateReferenceSystem &crs );
103 
116  void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
117 
118  private slots:
119 
120  void showHelp();
121 };
122 
123 #endif // #ifndef QGSLAYERCRSSELECTOR_H
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
A generic dialog to prompt the user for a Coordinate Reference System.
This class represents a coordinate reference system (CRS).