QGIS API Documentation  2.99.0-Master (b8fd1fd)
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 #include "qgis_gui.h"
22 
23 class QgsMapCanvas;
25 
29 class GUI_EXPORT QgsScaleVisibilityDialog : public QDialog
30 {
31  Q_OBJECT
32 
33  public:
34  explicit QgsScaleVisibilityDialog( QWidget *parent = nullptr, const QString &title = QString(), QgsMapCanvas *mapCanvas = nullptr );
35 
37  bool hasScaleVisibility();
38 
40  double minimumScale();
41 
43  double maximumScale();
44 
45 
46  public slots:
48  void setScaleVisiblity( bool hasScaleVisibility );
49 
51  void setMinimumScale( double minScale );
52 
54  void setMaximumScale( double maxScale );
55 
56 
57  private:
58  QGroupBox *mGroupBox = nullptr;
59  QgsScaleRangeWidget *mScaleWidget = nullptr;
60 
61 };
62 
63 #endif // QGSSCALEVISIBILITYDIALOG_H
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:72