QGIS API Documentation
3.99.0-Master (2fe06baccd8)
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_gui.h"
23
#include "
qgis_sip.h
"
24
25
#include <QWidget>
26
27
class
QLabel;
28
class
QComboBox;
29
35
class
GUI_EXPORT
QgsScaleMethodWidget
:
public
QWidget
36
{
37
Q_OBJECT
38
public
:
39
Q_PROPERTY(
Qgis::ScaleCalculationMethod
scaleMethod
READ
scaleMethod
WRITE
setScaleMethod
NOTIFY
methodChanged
)
40
41
42
QgsScaleMethodWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
43
49
Qgis::ScaleCalculationMethod
scaleMethod
()
const
;
50
56
void
setScaleMethod
(
Qgis::ScaleCalculationMethod
method );
57
58
signals:
59
63
void
methodChanged
();
64
65
private
:
66
QComboBox *mCombo =
nullptr
;
67
QWidget *mWarningLabelContainer =
nullptr
;
68
QLabel *mWarningLabel =
nullptr
;
69
70
private
slots:
71
void
updateWarning();
72
};
73
74
#endif
// QGSSCALEMETHODWIDGET_H
Qgis::ScaleCalculationMethod
ScaleCalculationMethod
Scale calculation logic.
Definition
qgis.h:5285
QgsScaleMethodWidget::QgsScaleMethodWidget
QgsScaleMethodWidget(QWidget *parent=nullptr)
Constructor for QgsScaleMethodWidget, with the specified parent widget.
Definition
qgsscalemethodwidget.cpp:28
QgsScaleMethodWidget::setScaleMethod
void setScaleMethod(Qgis::ScaleCalculationMethod method)
Sets the selected blend mode.
Definition
qgsscalemethodwidget.cpp:75
QgsScaleMethodWidget::methodChanged
void methodChanged()
Emitted when the selected method is changed.
QgsScaleMethodWidget::scaleMethod
Qgis::ScaleCalculationMethod scaleMethod
Definition
qgsscalemethodwidget.h:39
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on
for QGIS API Documentation by
1.15.0