QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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
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
27class QLabel;
28class QComboBox;
29
35class GUI_EXPORT QgsScaleMethodWidget : public QWidget
36{
37 Q_OBJECT
38 public:
40
41
42 QgsScaleMethodWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
43
50
57
58 signals:
59
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
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:5285
QgsScaleMethodWidget(QWidget *parent=nullptr)
Constructor for QgsScaleMethodWidget, with the specified parent widget.
void setScaleMethod(Qgis::ScaleCalculationMethod method)
Sets the selected blend mode.
void methodChanged()
Emitted when the selected method is changed.
Qgis::ScaleCalculationMethod scaleMethod
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53