File indexing completed on 2024-05-26 04:23:42

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 #include <TableModel.h>
0014 
0015 namespace KChart {
0016     class Chart;
0017     class LineDiagram;
0018 }
0019 
0020 QT_BEGIN_NAMESPACE
0021 class QPainterPath;
0022 QT_END_NAMESPACE
0023 
0024 class MainWindow : public QWidget, private Ui::MainWindow
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     MainWindow( QWidget* parent = nullptr );
0030     ~MainWindow() override;
0031 
0032 private Q_SLOTS:
0033 
0034     void on_lineTypeCB_currentIndexChanged( const QString & text );
0035     void on_paintValuesCB_toggled( bool checked );
0036     void on_paintMarkersCB_toggled( bool checked );
0037     void on_paintLinesCB_toggled( bool checked );
0038     void on_markersStyleCB_currentIndexChanged( const QString & text );
0039     void on_markersWidthSB_valueChanged( int i );
0040     void on_markersHeightSB_valueChanged( int i);
0041    
0042 private:
0043     KChart::Chart* m_chart;
0044     KChart::LineDiagram* m_lines;
0045     TableModel m_model;
0046     QPainterPath* path;
0047 };
0048 
0049 
0050 #endif /* MAINWINDOW_H */
0051