File indexing completed on 2025-01-26 04:02:44

0001 /**
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef MAINWINDOW_H
0010 #define MAINWINDOW_H
0011 
0012 #include <QDialog>
0013 #include <QStandardItemModel>
0014 
0015 #include "ui_mainwindow.h"
0016 
0017 namespace KChart {
0018 
0019     class Chart;
0020     class TernaryLineDiagram;
0021     class TernaryPointDiagram;
0022     class TernaryCoordinatePlane;
0023 
0024 }
0025 
0026 class MainWindow : public QDialog,
0027                    private Ui::MainWindow
0028 {
0029     Q_OBJECT
0030 
0031 public:
0032     explicit MainWindow( QWidget* parent = nullptr );
0033 
0034 private Q_SLOTS:
0035     void indexClicked( const QModelIndex& index );
0036 
0037 private:
0038     void setupModel();
0039 
0040     KChart::Chart* m_chart;
0041     KChart::TernaryPointDiagram* m_diagram;
0042     KChart::TernaryCoordinatePlane* m_ternaryPlane;
0043 
0044     QStandardItemModel m_model;
0045 };
0046 
0047 #endif