QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsscalevisibilitydialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsscalevisibilitydialog.cpp
3  --------------------------------------
4  Date : 20.05.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 QGSSCALEVISIBILITYDIALOG_H
17 #define QGSSCALEVISIBILITYDIALOG_H
18 
19 #include <QDialog>
20 #include <QGroupBox>
21 
22 #include "qgsscalerangewidget.h"
23 
27 class GUI_EXPORT QgsScaleVisibilityDialog : public QDialog
28 {
29  Q_OBJECT
30 
31  public:
32  explicit QgsScaleVisibilityDialog( QWidget *parent = nullptr, const QString& title = QString(), QgsMapCanvas* mapCanvas = nullptr );
33 
35  bool hasScaleVisibility();
36 
38  double minimumScale();
39 
41  double maximumScale();
42 
43 
44  public slots:
46  void setScaleVisiblity( bool hasScaleVisibility );
47 
49  void setMinimumScale( double minScale );
50 
52  void setMaximumScale( double maxScale );
53 
54 
55  private:
56  QGroupBox* mGroupBox;
57  QgsScaleRangeWidget* mScaleWidget;
58 
59 };
60 
61 #endif // QGSSCALEVISIBILITYDIALOG_H
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:109