1
/** \brief The qgsrasterlayerproperties class is used to set up how raster layers are displayed.
3
/* **************************************************************************
4
qgsrasterlayerproperties.h - description
6
begin : Sun Aug 11 2002
7
copyright : (C) 2002 by Tim Sutton
8
email : tim@linfiniti.com
9
***************************************************************************/
11
/***************************************************************************
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. *
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"
28
/**Property sheet for a raster map layer
32
class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPropertiesBase
36
/** \brief Constructor
37
* @param ml Map layer for which properties will be displayed
39
QgsRasterLayerProperties(QgsMapLayer *lyr, QWidget *parent = 0, Qt::WFlags = QgisGui::ModalDialogFlags);
40
/** \brief Destructor */
41
~QgsRasterLayerProperties();
43
/** synchronize state with associated raster layer */
47
/** \brief Applies the settings made in the dialog without closing the box */
49
/** \bried Apply the settings made and close the dialog. */
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();
64
void on_buttonHelp_clicked();
67
/** \brief Pointer to the raster layer that this property dilog changes the behaviour of. */
68
QgsRasterLayer * rasterLayer;
70
/** \brief If the underlying raster layer is of GDAL type (i.e. non-provider)
72
This variable is used to determine if various parts of the Properties UI are
75
bool rasterLayerIsGdal;
77
/** \brief If the underlying raster layer is of WMS type (i.e. WMS data provider)
79
This variable is used to determine if various parts of the Properties UI are
82
bool rasterLayerIsWms;
84
/** Id for context help */
85
static const int context_id = 394441851;