moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / ktouch / src / ktouchstatistics.h
blob1855edf2223b594cd3ef008fcf9e484970211163
1 /***************************************************************************
2 * ktouchstatistics.cpp *
3 * -------------------- *
4 * Copyright (C) 2000 by Håvard Frøiland, 2003 by Andreas Nicolai *
5 * haavard@users.sourceforge.net *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 ***************************************************************************/
13 #ifndef KTOUCHSTATISTICS_H
14 #define KTOUCHSTATISTICS_H
16 #include "ktouchstatisticslayout.h"
18 class QShowEvent;
19 class QResizeEvent;
20 class QPixmap;
21 class KTouchTrainer;
23 /// Implementation of the statistics widget
24 class KTouchStatistics : public KTouchStatisticsLayout {
25 Q_OBJECT
26 public:
27 /// Constructor, takes a pointer to the trainer object.
28 KTouchStatistics(QWidget *parent, KTouchTrainer* trainer);
29 /// Destructor
30 ~KTouchStatistics();
32 protected:
33 /// Updates the tab pages.
34 void showEvent(QShowEvent*);
36 private slots:
37 /// Asks for confirmation and clears the history.
38 void clearHistory();
39 /// Updates the "averaged session statistics" (when session cound slider changes).
40 void updateAverageTab();
41 /// Updates content of "charts" page (actually sets the chart type so that the widget can draw itself again).
42 void updateChartTab();
44 private:
45 /// Updates content of "current session statistics" page.
46 void updateCurrentTab();
48 KTouchTrainer *m_trainer; ///< Pointer to the trainer object of KTouch.
51 #endif // KTOUCHSTATISTICS_H