QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
gui
qgsscalerangewidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsscalerangewidget.h
3
--------------------------------------
4
Date : 25.04.2014
5
Copyright : (C) 2014 Denis Rouzaud
6
Email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSSCALERANGEWIDGET_H
17
#define QGSSCALERANGEWIDGET_H
18
19
#include <QGridLayout>
20
#include <QLabel>
21
22
#include "
qgscollapsiblegroupbox.h
"
23
#include "
qgsmaplayer.h
"
24
#include "
qgsmapcanvas.h
"
25
#include "
qgsscalewidget.h
"
26
27
28
class
GUI_EXPORT
QgsScaleRangeWidget
:
public
QWidget
29
{
30
Q_OBJECT
31
32
public
:
33
explicit
QgsScaleRangeWidget
( QWidget *parent = 0 );
34
~
QgsScaleRangeWidget
();
35
37
41
void
setMapCanvas(
QgsMapCanvas
* mapCanvas );
42
44
double
minimumScale();
45
47
double
maximumScale();
48
50
double
minimumScaleDenom();
51
53
double
maximumScaleDenom();
54
56
void
reloadProjectScales();
57
58
public
slots:
59
void
setMinimumScale(
double
scale );
60
61
void
setMaximumScale(
double
scale );
62
63
void
setScaleRange(
double
min
,
double
max
);
64
65
private
:
67
QgsMapCanvas
* mCanvas;
68
69
// ui
70
QGridLayout* mLayout;
71
QLabel* mMaximumScaleIconLabel;
72
QLabel* mMinimumScaleIconLabel;
73
QgsScaleWidget
* mMaximumScaleWidget;
74
QgsScaleWidget
* mMinimumScaleWidget;
75
};
76
77
#endif // QGSSCALERANGEWIDGET_H
Generated on Sun May 10 2015 16:33:26 for QGIS API Documentation by
1.8.1.2