KChart

KChartDatasetSelector.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KCHARTDATASETSELECTOR_H
10#define KCHARTDATASETSELECTOR_H
11
12#include <QFrame>
13
14#include "KChartDatasetProxyModel.h"
15
16
17/**
18 * \cond PRIVATE_API_DOCU
19 *
20 * ( This class is used internally by DatasetSelectorWidget. )
21 */
22QT_BEGIN_NAMESPACE
23namespace Ui {
24 class DatasetSelector;
25}
26QT_END_NAMESPACE
27/**
28 * \endcond
29 */
30
31namespace KChart {
32
33 class KCHART_EXPORT DatasetSelectorWidget : public QFrame
34 {
35 Q_OBJECT
36
37 public:
38 explicit DatasetSelectorWidget ( QWidget* parent = nullptr );
39 ~DatasetSelectorWidget() override;
40
41 public Q_SLOTS:
42 void setSourceRowCount ( const int& rowCount );
43 void setSourceColumnCount ( const int& columnCount );
44
45 Q_SIGNALS:
46 void configureDatasetProxyModel (
47 const KChart::DatasetDescriptionVector& rowConfig,
48 const KChart::DatasetDescriptionVector& columnConfig );
49
50 void mappingDisabled ();
51
52 private Q_SLOTS:
53 void updateState ( bool );
54 void calculateMapping();
55
56 private:
57 void resetDisplayValues ();
58
59 Ui::DatasetSelector* mUi;
60 int mSourceRowCount;
61 int mSourceColumnCount;
62 };
63
64}
65
66#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.