File indexing completed on 2024-11-24 03:57:51

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 "ui_mainwindow.h"
0013 
0014 QT_BEGIN_NAMESPACE
0015 class QAbstractItemModel;
0016 QT_END_NAMESPACE
0017 
0018 namespace KChart {
0019     class Chart;
0020     class LineDiagram;
0021 }
0022 
0023 class MainWindow : public QWidget, private Ui::MainWindow
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     MainWindow( QWidget* parent = nullptr );
0029 
0030 private Q_SLOTS:
0031     void on_showDataset1CB_toggled( bool checked );
0032     void on_showDataset2CB_toggled( bool checked );
0033     void on_showDataset3CB_toggled( bool checked );
0034     void setHidden( int dataset, bool hidden );
0035     void openFile(const QString &path);
0036 
0037 private:
0038     KChart::Chart             * m_chart;
0039     KChart::LineDiagram       * m_lines;
0040     QAbstractItemModel         * m_model;
0041 };
0042 
0043 
0044 #endif /* MAINWINDOW_H */
0045