QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
qgslayoutchartwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutchartwidget.h
3
--------------------------
4
begin : August 2025
5
copyright : (C) 2025 by Mathieu
6
email : mathieu at opengis dot ch
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 QGSLAYOUTCHARTWIDGET_H
19
#define QGSLAYOUTCHARTWIDGET_H
20
21
// We don't want to expose this in the public API
22
23
#include "ui_qgslayoutchartwidgetbase.h"
24
25
#include "qgis_gui.h"
26
#include "
qgslayoutitemwidget.h
"
27
28
#define SIP_NO_FILE
29
30
class
QgsLayoutItemChart
;
31
39
class
GUI_EXPORT
QgsLayoutChartWidget
:
public
QgsLayoutItemBaseWidget
,
private
Ui::QgsLayoutChartWidgetBase
40
{
41
Q_OBJECT
42
43
public
:
45
explicit
QgsLayoutChartWidget
(
QgsLayoutItemChart
*chartItem );
46
void
setMasterLayout
(
QgsMasterLayoutInterface
*masterLayout )
override
;
47
48
protected
:
49
bool
setNewItem
(
QgsLayoutItem
*item )
override
;
50
51
private
slots:
52
void
changeLayer(
QgsMapLayer
*layer );
53
void
changeSortExpression(
const
QString &expression,
bool
valid );
54
55
void
mChartTypeComboBox_currentIndexChanged(
int
index );
56
void
mChartPropertiesButton_clicked();
57
void
mFlipAxesCheckBox_stateChanged(
int
state );
58
59
void
mSortCheckBox_stateChanged(
int
state );
60
void
mSortDirectionButton_clicked();
61
62
void
mGenerateCategoriesFromRendererCheckBox_stateChanged(
int
state );
63
void
mApplyRendererStyleCheckBox_stateChanged(
int
state );
64
65
void
mSeriesListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
66
void
mSeriesListWidget_itemChanged( QListWidgetItem *item );
67
void
mAddSeriesPushButton_clicked();
68
void
mRemoveSeriesPushButton_clicked();
69
void
mSeriesPropertiesButton_clicked();
70
71
void
mLinkedMapComboBox_itemChanged(
QgsLayoutItem
*item );
72
void
mFilterOnlyVisibleFeaturesCheckBox_stateChanged(
int
state );
73
void
mIntersectAtlasCheckBox_stateChanged(
int
state );
74
75
void
layoutAtlasToggled(
bool
atlasEnabled );
76
77
private
:
79
void
setGuiElementValues();
80
82
void
updateButtonsState();
83
85
QListWidgetItem *addSeriesListItem(
const
QString &name );
86
87
QPointer<QgsLayoutItemChart> mChartItem;
88
QgsLayoutItemPropertiesWidget
*mItemPropertiesWidget =
nullptr
;
89
};
90
91
#endif
// QGSLAYOUTCHARTWIDGET_H
QgsLayoutChartWidget::QgsLayoutChartWidget
QgsLayoutChartWidget(QgsLayoutItemChart *chartItem)
constructor
Definition
qgslayoutchartwidget.cpp:31
QgsLayoutItemBaseWidget::setNewItem
virtual bool setNewItem(QgsLayoutItem *item)
Attempts to update the widget to show the properties for the specified item.
Definition
qgslayoutitemwidget.cpp:270
QgsLayoutItemBaseWidget::setMasterLayout
virtual void setMasterLayout(QgsMasterLayoutInterface *masterLayout)
Sets the master layout associated with the item.
Definition
qgslayoutitemwidget.cpp:252
QgsLayoutItemBaseWidget::QgsLayoutItemBaseWidget
QgsLayoutItemBaseWidget(QWidget *parent SIP_TRANSFERTHIS, QgsLayoutObject *layoutObject)
Constructor for QgsLayoutItemBaseWidget, linked with the specified layoutObject.
Definition
qgslayoutitemwidget.cpp:202
QgsLayoutItemChart
A layout item subclass that renders chart plots.
Definition
qgslayoutitemchart.h:35
QgsLayoutItemPropertiesWidget
A widget for controlling the common properties of layout items (e.g.
Definition
qgslayoutitemwidget.h:214
QgsLayoutItem
Base class for graphical items within a QgsLayout.
Definition
qgslayoutitem.h:106
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition
qgsmasterlayoutinterface.h:45
qgslayoutitemwidget.h
Generated on
for QGIS API Documentation by
1.17.0