QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
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_sip.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 
68 
74  void setMessage( const QString &message );
75 
82  void setShowNoProjection( bool show );
83 
90  bool showNoProjection() const;
91 
92  public slots:
93 
99  void setCrs( const QgsCoordinateReferenceSystem &crs );
100 
113  void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
114 
115  private slots:
116 
117  void showHelp();
118 };
119 
120 #endif // #ifndef QGSLAYERCRSSELECTOR_H
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53
const QgsCoordinateReferenceSystem & crs
A generic dialog to prompt the user for a Coordinate Reference System.
This class represents a coordinate reference system (CRS).