KissCount

KissCount Git Source Tree

Root/src/view/CostRepartitionBanner.hpp

1/*
2 Copyright 2010-2013 Grégory Soutadé
3
4 This file is part of KissCount.
5
6 KissCount is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 KissCount 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 KissCount. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef COSTREPARTITIONBANNER_H
21#define COSTREPARTITIONBANNER_H
22
23#include <QtGui>
24#include <KDChartWidget>
25
26#include "view.hpp"
27#include <model/model.hpp>
28
29class CostRepartitionBanner: public QFrame
30{
31 Q_OBJECT;
32
33public:
34 CostRepartitionBanner(KissCount* kiss, QFrame* parent, QString* categories);
35
36 void Reset();
37 void UpdateCosts(int *categoriesValues, int totalDebit);
38
39private:
40 KissCount* _kiss;
41 QString* _categories;
42 QTableWidget* _statsGrid;
43 KDChart::Widget* _pie;
44 QStandardItemModel* _dataset;
45};
46
47#endif

Archive Download this file