QGIS API Documentation
3.99.0-Master (f78f5286a64)
Loading...
Searching...
No Matches
src
gui
qgsscalemethodwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsscalemethodwidget.h
3
------------------------
4
begin : March 2025
5
copyright : (C) 2025 by Nyall Dawson
6
email :
[email protected]
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSSCALEMETHODWIDGET_H
19
#define QGSSCALEMETHODWIDGET_H
20
21
#include "
qgis.h
"
22
#include "
qgis_sip.h
"
23
#include "qgis_gui.h"
24
#include <QWidget>
25
26
class
QLabel;
27
class
QComboBox;
28
34
class
GUI_EXPORT
QgsScaleMethodWidget
:
public
QWidget
35
{
36
Q_OBJECT
37
public
:
38
Q_PROPERTY(
Qgis::ScaleCalculationMethod
scaleMethod READ scaleMethod WRITE setScaleMethod NOTIFY methodChanged )
39
40
41
QgsScaleMethodWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
42
48
Qgis::ScaleCalculationMethod
scaleMethod()
const
;
49
55
void
setScaleMethod(
Qgis::ScaleCalculationMethod
method );
56
57
signals:
58
62
void
methodChanged
();
63
64
private
:
65
QComboBox *mCombo =
nullptr
;
66
QWidget *mWarningLabelContainer =
nullptr
;
67
QLabel *mWarningLabel =
nullptr
;
68
69
private
slots:
70
void
updateWarning();
71
};
72
73
#endif
// QGSSCALEMETHODWIDGET_H
Qgis::ScaleCalculationMethod
ScaleCalculationMethod
Scale calculation logic.
Definition
qgis.h:5166
QgsScaleMethodWidget
A widget which lets the user select from scale calculation methods.
Definition
qgsscalemethodwidget.h:35
QgsScaleMethodWidget::methodChanged
void methodChanged()
Emitted when the selected method is changed.
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Fri Jul 18 2025 14:01:06 for QGIS API Documentation by
1.9.8