1
/***************************************************************************
2
qgslayerprojectionselector.h
3
Set user layerprojectionselector and preferences
6
copyright : (C) 2004 by Gary E.Sherman
7
email : sherman at mrcc.com
8
***************************************************************************/
10
/***************************************************************************
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. *
17
***************************************************************************/
18
/* $Id: qgslayerprojectionselector.h 4937 2006-03-02 13:40:04Z morb_au $ */
19
#ifndef QGSLAYERPROJECTIONSELECTOR_H
20
#define QGSLAYERPROJECTIONSELECTOR_H
21
#include "ui_qgslayerprojectionselectorbase.h"
27
* \class QgsLayerProjectionSelector
28
* \brief Set Projection system for a layer
31
class QgsLayerProjectionSelector : public QDialog, private Ui::QgsLayerProjectionSelectorBase
38
QgsLayerProjectionSelector(QWidget *parent = 0,
39
Qt::WFlags fl = QgisGui::ModalDialogFlags);
42
~QgsLayerProjectionSelector();
45
QString getCurrentProj4String();
46
long getCurrentSRSID();
47
long getCurrentEpsg();
49
void setSelectedSRSName(QString theName);
50
void setSelectedSRSID(long theID);
53
* \brief filters this dialog by the given CRSs
55
* Sets this dialog to filter the available projections to those listed
56
* by the given Coordinate Reference Systems.
58
* \param crsFilter a list of OGC Coordinate Reference Systems to filter the
59
* list of projections by. This is useful in (e.g.) WMS situations
60
* where you just want to offer what the WMS server can support.
62
* \note This function only deals with EPSG labels only at this time.
64
* \warning This function's behaviour is undefined if it is called after the dialog is shown.
66
void setOgcWmsCrsFilter(QSet<QString> crsFilter);
71
#endif // #ifndef QGSLAYERPROJECTIONSELECTOR_H