KD Chart API Documentation  3.1
KDChartDatasetSelector.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Chart library.
4 **
5 ** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDCHARTDATASETSELECTOR_H
12 #define KDCHARTDATASETSELECTOR_H
13 
14 #include <QFrame>
15 
17 
23 QT_BEGIN_NAMESPACE
24 namespace Ui {
25 class DatasetSelector;
26 }
27 QT_END_NAMESPACE
32 namespace KDChart {
33 
34 class KDCHART_EXPORT DatasetSelectorWidget : public QFrame
35 {
36  Q_OBJECT
37 
38 public:
39  explicit DatasetSelectorWidget(QWidget *parent = nullptr);
40  ~DatasetSelectorWidget() override;
41 
42 public Q_SLOTS:
43  void setSourceRowCount(const int &rowCount);
44  void setSourceColumnCount(const int &columnCount);
45 
46 Q_SIGNALS:
48  const DatasetDescriptionVector &rowConfig,
49  const DatasetDescriptionVector &columnConfig);
50 
52 
53 private Q_SLOTS:
54  void on_sbStartColumn_valueChanged(int);
55  void on_sbStartRow_valueChanged(int);
56  void on_sbColumnCount_valueChanged(int);
57  void on_sbRowCount_valueChanged(int);
58  void on_cbReverseRows_stateChanged(int);
59  void on_cbReverseColumns_stateChanged(int);
60  void on_groupBox_toggled(bool);
61 
62 private:
63  void resetDisplayValues();
64  void calculateMapping();
65 
66  Ui::DatasetSelector *mUi;
67  int mSourceRowCount = 0;
68  int mSourceColumnCount = 0;
69 };
70 }
71 
72 #endif
void configureDatasetProxyModel(const DatasetDescriptionVector &rowConfig, const DatasetDescriptionVector &columnConfig)
QVector< int > DatasetDescriptionVector

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1