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 MAINWINDOW_H
21 #define MAINWINDOW_H
22 
23 #include "ui_mainwindow.h"
24 #include <QStandardItemModel>
25 
26 namespace KChart {
27     class Chart;
28     class DatasetProxyModel;
29     class LineDiagram;
30     class BarDiagram;
31     class LineAttributes;
32     class CartesianAxis;
33     class CartesianCoordinatePlane;
34 }
35 
36 class MainWindow : public QWidget, private Ui::MainWindow
37 {
38     Q_OBJECT
39 
40 public:
41     MainWindow( QWidget* parent = nullptr );
42 
43 private:
44     KChart::Chart* m_chart;
45     QStandardItemModel m_model;
46     QStandardItemModel m_model2;
47     KChart::DatasetProxyModel* m_datasetProxy;
48     KChart::LineDiagram* m_lines;
49     KChart::BarDiagram* m_bars;
50     KChart::CartesianCoordinatePlane* plane;
51     // mutable KChart::CartesianAxis xAxis;
52     //mutable KChart::CartesianAxis yAxis;
53 
54 };
55 
56 
57 #endif /* MAINWINDOW_H */
58 
59