QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
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 
62  ~QgsProjectionSelectionDialog() override;
63 
70 
76  void setMessage( const QString &message );
77 
84  void showNoCrsForLayerMessage();
85 
92  void setShowNoProjection( bool show );
93 
100  bool showNoProjection() const;
101 
107  void setNotSetText( const QString &text );
108 
109  public slots:
110 
116  void setCrs( const QgsCoordinateReferenceSystem &crs );
117 
130  void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
131 
132  private slots:
133 
134  void showHelp();
135 };
136 
137 #endif // #ifndef QGSLAYERCRSSELECTOR_H
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:51
QgsProjectionSelectionDialog
A generic dialog to prompt the user for a Coordinate Reference System.
Definition: qgsprojectionselectiondialog.h:52
qgis_sip.h
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition: qgscoordinatereferencesystem.h:206
qgsguiutils.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53
qgscoordinatereferencesystem.h