QGIS API Documentation  3.21.0-Master (56b4176581)
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 
115  void setRequireValidSelection();
116 
117  public slots:
118 
124  void setCrs( const QgsCoordinateReferenceSystem &crs );
125 
138  void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
139 
140  private slots:
141 
142  void showHelp();
143 };
144 
145 #endif // #ifndef QGSLAYERCRSSELECTOR_H
This class represents a coordinate reference system (CRS).
A generic dialog to prompt the user for a Coordinate Reference System.
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53
const QgsCoordinateReferenceSystem & crs