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

« back to all changes in this revision

Viewing changes to src/gui/qgsrasterlayerproperties.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
 
/** \brief The qgsrasterlayerproperties class is used to set up how raster layers are displayed.
2
 
 */
3
 
/* **************************************************************************
4
 
                          qgsrasterlayerproperties.h  -  description
5
 
                             -------------------
6
 
    begin                : Sun Aug 11 2002
7
 
    copyright            : (C) 2002 by Tim Sutton
8
 
    email                : tim@linfiniti.com
9
 
 ***************************************************************************/
10
 
 
11
 
/***************************************************************************
12
 
 *                                                                         *
13
 
 *   This program is free software; you can redistribute it and/or modify  *
14
 
 *   it under the terms of the GNU General Public License as published by  *
15
 
 *   the Free Software Foundation; either version 2 of the License, or     *
16
 
 *   (at your option) any later version.                                   *
17
 
 *                                                                         *
18
 
 ***************************************************************************/
19
 
/* $Id: qgsrasterlayerproperties.h 6130 2006-11-27 04:39:49Z gsherman $ */
20
 
#ifndef QGSRASTERLAYERPROPERTIES_H
21
 
#define QGSRASTERLAYERPROPERTIES_H
22
 
#include "ui_qgsrasterlayerpropertiesbase.h"
23
 
#include "qgisgui.h"
24
 
class QgsMapLayer;
25
 
class QgsRasterLayer;
26
 
 
27
 
 
28
 
/**Property sheet for a raster map layer
29
 
  *@author Tim Sutton
30
 
  */
31
 
 
32
 
class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPropertiesBase  
33
 
{
34
 
  Q_OBJECT
35
 
    public:
36
 
        /** \brief Constructor
37
 
         * @param ml Map layer for which properties will be displayed
38
 
         */
39
 
        QgsRasterLayerProperties(QgsMapLayer *lyr, QWidget *parent = 0, Qt::WFlags = QgisGui::ModalDialogFlags);
40
 
        /** \brief Destructor */
41
 
        ~QgsRasterLayerProperties();
42
 
 
43
 
        /** synchronize state with associated raster layer */
44
 
        void sync();
45
 
 
46
 
    public slots:
47
 
        /** \brief Applies the settings made in the dialog without closing the box */
48
 
        void apply();
49
 
        /** \bried Apply the settings made and close the dialog. */
50
 
        void accept();
51
 
        /** \brief slot executed when the transparency level changes. */ 
52
 
        void sliderTransparency_valueChanged( int );
53
 
        /** \brief slot executed when the max red level changes. */
54
 
        void on_rbtnSingleBand_toggled( bool );
55
 
        /** \brief slot executed when the three band radio button is pressed. */
56
 
        void on_rbtnThreeBand_toggled( bool );
57
 
        /** \brief this slot asks the rasterlayer to construct pyramids */
58
 
        void on_buttonBuildPyramids_clicked();
59
 
        /** \brief slot executed when user wishes to refresh raster histogram */
60
 
        void on_pbnHistRefresh_clicked();
61
 
        /** Override the SRS specified when the layer was loaded */
62
 
        void on_pbnChangeSpatialRefSys_clicked();
63
 
        /** Help button */
64
 
        void on_buttonHelp_clicked();
65
 
        
66
 
    private:
67
 
        /** \brief Pointer to the raster layer that this property dilog changes the behaviour of. */
68
 
        QgsRasterLayer * rasterLayer;
69
 
 
70
 
        /** \brief If the underlying raster layer is of GDAL type (i.e. non-provider)
71
 
 
72
 
            This variable is used to determine if various parts of the Properties UI are
73
 
            included or not
74
 
         */
75
 
        bool rasterLayerIsGdal;
76
 
 
77
 
        /** \brief If the underlying raster layer is of WMS type (i.e. WMS data provider)
78
 
 
79
 
            This variable is used to determine if various parts of the Properties UI are
80
 
            included or not
81
 
         */
82
 
        bool rasterLayerIsWms;
83
 
 
84
 
        /** Id for context help */
85
 
        static const int context_id = 394441851;
86
 
};
87
 
 
88
 
#endif