File indexing completed on 2024-06-16 04:46:39

0001 /*
0002     SPDX-FileCopyrightText: 2007-2011 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KBALANCECHARTDLG_H
0008 #define KBALANCECHARTDLG_H
0009 
0010 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 #include <QDialog>
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 namespace reports {
0021 class KReportChartView;
0022 }
0023 class MyMoneyAccount;
0024 
0025 /**
0026  * @author Thomas Baumgart <ipwizard@users.sourceforge.net>
0027  *  This dialog displays a chart with the account balance for the last 90 days.
0028  *  It also draws the account limit if the account has any.
0029  */
0030 class KBalanceChartDlg : public QDialog
0031 {
0032     Q_OBJECT
0033 public:
0034     explicit KBalanceChartDlg(const MyMoneyAccount& account, QWidget* parent = nullptr);
0035     ~KBalanceChartDlg();
0036 
0037 protected:
0038     /**
0039       * Draw the chart and calculate and draw the account limits if any
0040       */
0041     reports::KReportChartView* drawChart(const MyMoneyAccount& account);
0042 
0043 };
0044 
0045 #endif