1 /* 2 * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 3 * 4 * This file is part of the KD Chart library. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __KCHARTWIDGET_P_H__ 21 #define __KCHARTWIDGET_P_H__ 22 23 // 24 // W A R N I N G 25 // ------------- 26 // 27 // This file is not part of the KD Chart API. It exists purely as an 28 // implementation detail. This header file may change from version to 29 // version without notice, or even be removed. 30 // 31 // We mean it. 32 // 33 34 #include <KChartWidget.h> 35 #include <KChartChart.h> 36 #include <KChartCartesianCoordinatePlane.h> 37 #include <KChartPolarCoordinatePlane.h> 38 #include "KChartMath_p.h" 39 40 #include <QGridLayout> 41 #include <QStandardItemModel> 42 43 /** 44 * \internal 45 */ 46 class Q_DECL_HIDDEN KChart::Widget::Private 47 { 48 friend class ::KChart::Widget; 49 Widget * const q; 50 public: 51 explicit Private( Widget * qq ); 52 ~Private(); // non-virtual, since nothing inherits this 53 54 protected: 55 QGridLayout layout; 56 QStandardItemModel m_model; 57 Chart m_chart; 58 CartesianCoordinatePlane m_cartPlane; 59 PolarCoordinatePlane m_polPlane; 60 61 int usedDatasetWidth; 62 }; 63 64 65 #endif // KChartWidget_p_H 66