QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
vector
qgsdiagramwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdiagramwidget.h
3
Container widget for diagram layers
4
-------------------
5
begin : September 2024
6
copyright : (C) Germán Carrillo
7
email : german at opengis dot ch
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 QGSDIAGRAMWIDGET_H
19
#define QGSDIAGRAMWIDGET_H
20
21
// We don't want to expose this in the public API
22
23
#include "ui_qgsdiagramwidget.h"
24
25
#include "
qgsmaplayerconfigwidget.h
"
26
27
#include <QWidget>
28
29
#define SIP_NO_FILE
30
37
class
GUI_EXPORT
QgsDiagramWidget
:
public
QgsMapLayerConfigWidget
,
private
Ui::QgsDiagramWidget
38
{
39
Q_OBJECT
40
41
public
:
43
QgsDiagramWidget
(
QgsVectorLayer
*
layer
,
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
);
44
48
void
syncToOwnLayer
();
49
50
public
slots:
52
void
apply
()
override
;
53
54
signals:
56
void
auxiliaryFieldCreated
();
57
58
private
slots:
59
void
mDiagramTypeComboBox_currentIndexChanged(
int
index );
60
void
showEngineConfigDialog();
61
62
private
:
63
enum
Mode
64
{
65
ModeNone,
66
ModePie,
67
ModeText,
68
ModeHistogram,
69
ModeStackedBar,
70
ModeStacked
71
};
72
73
QgsVectorLayer
*mLayer =
nullptr
;
74
QgsMapCanvas
*mCanvas =
nullptr
;
75
76
QWidget *mWidget =
nullptr
;
77
};
78
79
#endif
// QGSDIAGRAMWIDGET_H
QgsDiagramWidget::syncToOwnLayer
void syncToOwnLayer()
Updates the widget to reflect the layer's current diagram settings.
Definition
qgsdiagramwidget.cpp:101
QgsDiagramWidget::QgsDiagramWidget
QgsDiagramWidget(QgsVectorLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
constructor
Definition
qgsdiagramwidget.cpp:38
QgsDiagramWidget::auxiliaryFieldCreated
void auxiliaryFieldCreated()
Emitted when an auxiliary field is created.
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
Definition
qgsmaplayerconfigwidget.cpp:40
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget::layer
QgsMapLayer * layer()
Returns the layer the widget is associated with.
Definition
qgsmaplayerconfigwidget.cpp:46
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgsmaplayerconfigwidget.h
Generated on
for QGIS API Documentation by
1.17.0