1/*
2 * Copyright (C) 2004 Bart Vanhauwaert <bvh-cplusplus@irule.be>
3 * Copyright (C) 2005-2008 Stephan Kulow <coolo@kde.org>
4 * Copyright (C) 2008-2009 Parker Coates <coates@kde.org>
5 *
6 * License of original code:
7 * -------------------------------------------------------------------------
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted,
10 * provided that the above copyright notice appear in all copies and that
11 * both that copyright notice and this permission notice appear in
12 * supporting documentation.
13 *
14 * This file is provided AS IS with no warranties of any kind. The author
15 * shall have no liability with respect to the infringement of copyrights,
16 * trade secrets or any patents by this file or any part thereof. In no
17 * event will the author be liable for any lost revenue or profits or
18 * other special, indirect and consequential damages.
19 * -------------------------------------------------------------------------
20 *
21 * License of modifications/additions made after 2009-01-01:
22 * -------------------------------------------------------------------------
23 * This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License as
25 * published by the Free Software Foundation; either version 2 of
26 * the License, or (at your option) any later version.
27 *
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
32 *
33 * You should have received a copy of the GNU General Public License
34 * along with this program. If not, see <http://www.gnu.org/licenses/>.
35 * -------------------------------------------------------------------------
36 */
37
38#ifndef STATISTICSDIALOG_H
39#define STATISTICSDIALOG_H
40
41#include "ui_statisticsdialog.h"
42
43#include <KDialog>
44
45#include <QtCore/QMap>
46
47
48class StatisticsDialog : public KDialog
49{
50 Q_OBJECT
51
52 public:
53 explicit StatisticsDialog(QWidget* aParent);
54 ~StatisticsDialog();
55 void showGameType(int gameIndex);
56 public slots:
57 void setGameType(int gameIndex);
58 void resetStats();
59
60 private slots:
61 void selectionChanged(int comboIndex);
62
63 private:
64 Ui::GameStats * ui;
65 QMap<int,int> indexToIdMap;
66};
67
68#endif
69
70// kate: replace-tabs off; replace-tabs-save off
71