KD Chart 2  [rev.2.7]
KDChartDatasetSelector.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (C) 2001-2020 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Chart library.
5 **
6 ** Licensees holding valid commercial KD Chart licenses may use this file in
7 ** accordance with the KD Chart Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU General Public License version 2 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.GPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef KDCHARTDATASETSELECTOR_H
24 #define KDCHARTDATASETSELECTOR_H
25 
26 #include <QFrame>
27 
29 
30 
36 QT_BEGIN_NAMESPACE
37 namespace Ui {
38  class DatasetSelector;
39 }
40 QT_END_NAMESPACE
45 namespace KDChart {
46 
47  class KDCHART_EXPORT DatasetSelectorWidget : public QFrame
48  {
49  Q_OBJECT
50 
51  public:
52  explicit DatasetSelectorWidget ( QWidget* parent = 0 );
53  ~DatasetSelectorWidget() override;
54 
55  public Q_SLOTS:
56  void setSourceRowCount ( const int& rowCount );
57  void setSourceColumnCount ( const int& columnCount );
58 
59  Q_SIGNALS:
60  void configureDatasetProxyModel (
61  const DatasetDescriptionVector& rowConfig,
62  const DatasetDescriptionVector& columnConfig );
63 
64  void mappingDisabled ();
65 
66  private Q_SLOTS:
67  void on_sbStartColumn_valueChanged ( int );
68  void on_sbStartRow_valueChanged ( int );
69  void on_sbColumnCount_valueChanged( int );
70  void on_sbRowCount_valueChanged( int );
71  void on_cbReverseRows_stateChanged ( int );
72  void on_cbReverseColumns_stateChanged ( int );
73  void on_groupBox_toggled ( bool );
74 
75 
76  private:
77  void resetDisplayValues ();
78  void calculateMapping();
79 
80  Ui::DatasetSelector* mUi;
81  int mSourceRowCount;
82  int mSourceColumnCount;
83  };
84 
85 }
86 
87 #endif
Class only listed here to document inheritance of some KDChart classes.
Class only listed here to document inheritance of some KDChart classes.

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/