QGIS API Documentation  2.99.0-Master (75367e4)
qgsgenericprojectionselector.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 <qgisgui.h>
22 
23 #include <QSet>
24 
25 #include "qgscontexthelp.h"
26 #include "qgis_gui.h"
27 
48 class GUI_EXPORT QgsGenericProjectionSelector : public QDialog, private Ui::QgsGenericProjectionSelectorBase
49 {
50  Q_OBJECT
51  public:
52 
56  QgsGenericProjectionSelector( QWidget *parent = nullptr,
57  Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
58 
59 
61 
62  public slots:
63 
67  void setMessage( QString theMessage = QStringLiteral( "" ) );
68  long selectedCrsId();
69  QString selectedAuthId();
70 
71  void setSelectedCrsName( const QString& theName );
72  void setSelectedCrsId( long theID );
73  void setSelectedAuthId( const QString& authId );
74 
75  void on_mButtonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
76 
89  void setOgcWmsCrsFilter( const QSet<QString>& crsFilter );
90 };
91 
92 #endif // #ifndef QGSLAYERCRSSELECTOR_H
static const Qt::WindowFlags ModalDialogFlags
Definition: qgisgui.h:51
A generic dialog to prompt the user for a Coordinate Reference System.
static void run(const QString &context)