QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
qgslayoutchartseriesdetailswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayoutchartseriesdetailswidget.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 QGSLAYOUTCHARTSERIESDETAILSWIDGET_H
19#define QGSLAYOUTCHARTSERIESDETAILSWIDGET_H
20
21// We don't want to expose this in the public API
22#define SIP_NO_FILE
23
24#include "ui_qgslayoutchartseriesdetailswidgetbase.h"
25
26#include "qgis_gui.h"
27#include "qgslayoutitemchart.h"
28#include "qgspanelwidget.h"
29
35class GUI_EXPORT QgsLayoutChartSeriesDetailsWidget : public QgsPanelWidget, private Ui::QgsLayoutChartSeriesDetailsWidgetBase
36{
37 Q_OBJECT
38
39 public:
40
48 QgsLayoutChartSeriesDetailsWidget( QgsVectorLayer *layer, int index, const QgsLayoutItemChart::SeriesDetails &seriesDetails, QWidget *parent = nullptr );
49
51 int index() const;
52
54 QString xExpression() const;
55
57 QString yExpression() const;
58
60 QString filterExpression() const;
61
62 private slots:
63 void mFilterButton_clicked();
64
65 private:
66 QPointer<QgsVectorLayer> mVectorLayer;
67 int mIndex = 0;
68};
69
70#endif // QGSLAYOUTCHARTSERIESDETAILSWIDGET_H
QString yExpression() const
Returns the Y-axis expression.
QString filterExpression() const
Returns the filter expression.
QString xExpression() const
Returns the X-axis expression.
QgsLayoutChartSeriesDetailsWidget(QgsVectorLayer *layer, int index, const QgsLayoutItemChart::SeriesDetails &seriesDetails, QWidget *parent=nullptr)
Constructor for QgsLayoutChartSeriesDetailsWidget.
Chart series details covering all supported series types.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Represents a vector layer which manages a vector based dataset.