File indexing completed on 2024-05-12 04:04:51

0001 /*
0002  * Copyright (C) 2004 Bart Vanhauwaert <bvh-cplusplus@irule.be>
0003  * Copyright (C) 2005-2008 Stephan Kulow <coolo@kde.org>
0004  * Copyright (C) 2008-2009 Parker Coates <coates@kde.org>
0005  *
0006  * License of original code:
0007  * -------------------------------------------------------------------------
0008  *   Permission to use, copy, modify, and distribute this software and its
0009  *   documentation for any purpose and without fee is hereby granted,
0010  *   provided that the above copyright notice appear in all copies and that
0011  *   both that copyright notice and this permission notice appear in
0012  *   supporting documentation.
0013  *
0014  *   This file is provided AS IS with no warranties of any kind.  The author
0015  *   shall have no liability with respect to the infringement of copyrights,
0016  *   trade secrets or any patents by this file or any part thereof.  In no
0017  *   event will the author be liable for any lost revenue or profits or
0018  *   other special, indirect and consequential damages.
0019  * -------------------------------------------------------------------------
0020  *
0021  * License of modifications/additions made after 2009-01-01:
0022  * -------------------------------------------------------------------------
0023  *   This program is free software; you can redistribute it and/or
0024  *   modify it under the terms of the GNU General Public License as
0025  *   published by the Free Software Foundation; either version 2 of
0026  *   the License, or (at your option) any later version.
0027  *
0028  *   This program is distributed in the hope that it will be useful,
0029  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
0030  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0031  *   GNU General Public License for more details.
0032  *
0033  *   You should have received a copy of the GNU General Public License
0034  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
0035  * -------------------------------------------------------------------------
0036  */
0037 
0038 #ifndef STATISTICSDIALOG_H
0039 #define STATISTICSDIALOG_H
0040 
0041 #include "ui_statisticsdialog.h"
0042 // Qt
0043 #include <QDialog>
0044 #include <QMap>
0045 
0046 class StatisticsDialog : public QDialog
0047 {
0048     Q_OBJECT
0049 
0050 public:
0051     explicit StatisticsDialog(QWidget *aParent);
0052     ~StatisticsDialog();
0053     void showGameType(int gameIndex);
0054 public Q_SLOTS:
0055     void setGameType(int gameIndex);
0056     void resetStats();
0057 
0058 private Q_SLOTS:
0059     void selectionChanged(int comboIndex);
0060 
0061 private:
0062     Ui::GameStats *ui;
0063     QMap<int, int> indexToIdMap;
0064 };
0065 
0066 #endif
0067 
0068 // kate: replace-tabs off; replace-tabs-save off