~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/gui/qgslayerprojectionselector.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          qgslayerprojectionselector.h
3
 
                        Set user layerprojectionselector and preferences
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
 
/* $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"
22
 
#include "qgisgui.h"
23
 
 
24
 
#include <QSet>
25
 
 
26
 
/**
27
 
 * \class QgsLayerProjectionSelector
28
 
 * \brief Set Projection system for a layer
29
 
 */
30
 
 
31
 
class QgsLayerProjectionSelector : public QDialog, private Ui::QgsLayerProjectionSelectorBase
32
 
{
33
 
  Q_OBJECT;
34
 
  public:
35
 
    /**
36
 
     * Constructor
37
 
     */
38
 
    QgsLayerProjectionSelector(QWidget *parent = 0, 
39
 
                               Qt::WFlags fl = QgisGui::ModalDialogFlags);
40
 
 
41
 
    //! Destructor
42
 
    ~QgsLayerProjectionSelector();
43
 
 
44
 
 public slots:
45
 
      QString getCurrentProj4String();
46
 
      long getCurrentSRSID();
47
 
      long getCurrentEpsg();
48
 
 
49
 
      void setSelectedSRSName(QString theName);
50
 
      void setSelectedSRSID(long theID);
51
 
 
52
 
      /**
53
 
       * \brief filters this dialog by the given CRSs
54
 
       *
55
 
       * Sets this dialog to filter the available projections to those listed
56
 
       * by the given Coordinate Reference Systems.
57
 
       *
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.
61
 
       *
62
 
       * \note This function only deals with EPSG labels only at this time.
63
 
       *
64
 
       * \warning This function's behaviour is undefined if it is called after the dialog is shown.
65
 
       */
66
 
      void setOgcWmsCrsFilter(QSet<QString> crsFilter);
67
 
 
68
 
 
69
 
};
70
 
 
71
 
#endif // #ifndef QGSLAYERPROJECTIONSELECTOR_H