1 /***************************************************************************
2 * ktouchstatistics.cpp *
3 * -------------------- *
4 * Copyright (C) 2000 by Håvard Frøiland, 2003 by Andreas Nicolai *
5 * haavard@users.sourceforge.net *
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"
23 /// Implementation of the statistics widget
24 class KTouchStatistics
: public KTouchStatisticsLayout
{
27 /// Constructor, takes a pointer to the trainer object.
28 KTouchStatistics(QWidget
*parent
, KTouchTrainer
* trainer
);
33 /// Updates the tab pages.
34 void showEvent(QShowEvent
*);
37 /// Asks for confirmation and clears the history.
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();
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