QGIS API Documentation 3.41.0-Master (cea29feecf2)
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
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:
45 explicit QgsScaleVisibilityDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &title = QString(), QgsMapCanvas *mapCanvas = nullptr );
46
50 bool hasScaleVisibility() const;
51
58 double minimumScale() const;
59
66 double maximumScale() const;
67
68 public slots:
69
75 Q_DECL_DEPRECATED void setScaleVisiblity( bool hasScaleVisibility ) SIP_DEPRECATED { setScaleVisibility( hasScaleVisibility ); } // spellok
76
82 void setScaleVisibility( bool hasScaleVisibility );
83
90 void setMinimumScale( double scale );
91
98 void setMaximumScale( double scale );
99
100
101 private:
102 QGroupBox *mGroupBox = nullptr;
103 QgsScaleRangeWidget *mScaleWidget = nullptr;
104};
105
106#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