QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
raster
qgsrasterlabelsettingswidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterlabelsettingswidget.h
3
-------------------------
4
begin : December 2024
5
copyright : (C) 2024 by Nyall Dawson
6
email : nyall dot dawson at gmail dot 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
#ifndef QGSRASTERLABELSETTINGSWIDGET_H
16
#define QGSRASTERLABELSETTINGSWIDGET_H
17
18
#include "qgis_gui.h"
19
#include "
qgslabelinggui.h
"
20
21
#define SIP_NO_FILE
22
23
class
QgsRasterLayer
;
24
class
QgsAbstractRasterLayerLabeling
;
25
class
QgsRasterBandComboBox
;
26
class
QgsNumericFormat
;
27
28
// We don't want to expose this in the public API
29
37
class
GUI_EXPORT
QgsRasterLabelSettingsWidget
:
public
QgsLabelingGui
38
{
39
Q_OBJECT
40
public
:
44
QgsRasterLabelSettingsWidget
(
QgsRasterLayer
*layer,
QgsMapCanvas
*mapCanvas, QWidget *parent =
nullptr
);
45
~QgsRasterLabelSettingsWidget
()
override
;
46
50
void
setLabeling
(
QgsAbstractRasterLayerLabeling
*labeling );
51
55
void
updateLabeling
(
QgsAbstractRasterLayerLabeling
*labeling );
56
57
void
setLayer
(
QgsMapLayer
*layer )
final
;
58
59
private
slots:
60
void
changeNumberFormat();
61
62
private
:
63
QgsRasterBandComboBox
*mBandCombo =
nullptr
;
64
std::unique_ptr<QgsNumericFormat> mNumberFormat;
65
int
mBlockChangesSignal = 0;
66
67
QgsSpinBox
*mResampleOverSpin =
nullptr
;
68
QComboBox *mResampleMethodComboBox =
nullptr
;
69
};
70
71
#endif
// QGSRASTERLABELSETTINGSWIDGET_H
QgsAbstractRasterLayerLabeling
Abstract base class for labeling settings for raster layers.
Definition
qgsrasterlabeling.h:166
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsNumericFormat
Abstract base class for numeric formatters, which allow for formatting a numeric value for display.
Definition
qgsnumericformat.h:232
QgsRasterBandComboBox
A combobox widget which displays the bands present in a raster layer.
Definition
qgsrasterbandcombobox.h:35
QgsRasterLabelSettingsWidget::setLayer
void setLayer(QgsMapLayer *layer) final
Definition
qgsrasterlabelsettingswidget.cpp:221
QgsRasterLabelSettingsWidget::~QgsRasterLabelSettingsWidget
~QgsRasterLabelSettingsWidget() override
QgsRasterLabelSettingsWidget::QgsRasterLabelSettingsWidget
QgsRasterLabelSettingsWidget(QgsRasterLayer *layer, QgsMapCanvas *mapCanvas, QWidget *parent=nullptr)
Constructor for QgsRasterLabelSettingsWidget, for configuring a raster layer labeling.
Definition
qgsrasterlabelsettingswidget.cpp:27
QgsRasterLabelSettingsWidget::updateLabeling
void updateLabeling(QgsAbstractRasterLayerLabeling *labeling)
Updates labeling by setting properties to match the current state of the widget.
Definition
qgsrasterlabelsettingswidget.cpp:197
QgsRasterLabelSettingsWidget::setLabeling
void setLabeling(QgsAbstractRasterLayerLabeling *labeling)
Sets the labeling settings to show in the widget.
Definition
qgsrasterlabelsettingswidget.cpp:169
QgsRasterLayer
Represents a raster layer.
Definition
qgsrasterlayer.h:82
QgsSpinBox
A spin box with a clear button that will set the value to the defined clear value.
Definition
qgsspinbox.h:45
qgslabelinggui.h
Generated on
for QGIS API Documentation by
1.17.0