QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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 : denis.rouzaud@gmail.com
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 "qgis_sip.h"
21#include <QGroupBox>
22#include "qgis_gui.h"
23
24class QgsMapCanvas;
26
32class GUI_EXPORT QgsScaleVisibilityDialog : public QDialog
33{
34 Q_OBJECT
35 Q_PROPERTY( bool hasScaleVisibility READ hasScaleVisibility WRITE setScaleVisibility )
36 Q_PROPERTY( double minimumScale READ minimumScale WRITE setMinimumScale )
37 Q_PROPERTY( double maximumScale READ maximumScale WRITE setMaximumScale )
38
39 public:
40
46 explicit QgsScaleVisibilityDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &title = QString(), QgsMapCanvas *mapCanvas = nullptr );
47
51 bool hasScaleVisibility() const;
52
59 double minimumScale() const;
60
67 double maximumScale() const;
68
69 public slots:
70
76 Q_DECL_DEPRECATED void setScaleVisiblity( bool hasScaleVisibility ) SIP_DEPRECATED { setScaleVisibility( hasScaleVisibility ); } // spellok
77
83 void setScaleVisibility( bool hasScaleVisibility );
84
91 void setMinimumScale( double scale );
92
99 void setMaximumScale( double scale );
100
101
102 private:
103 QGroupBox *mGroupBox = nullptr;
104 QgsScaleRangeWidget *mScaleWidget = nullptr;
105
106};
107
108#endif // QGSSCALEVISIBILITYDIALOG_H
Map canvas is a class for displaying all GIS data types on a canvas.
A widget allowing entry of a range of map scales, e.g.
A dialog allowing users to enter a scale visibility range.
#define SIP_DEPRECATED
Definition qgis_sip.h:106
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53