1 /***************************************************************************
4 * Copyright (C) 2000 by H�ard Friland, 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 KTOUCHSTATUS_H
14 #define KTOUCHSTATUS_H
16 #include "ktouchstatuslayout.h"
18 /** This is the implementation of the status widget (at the top of the main view).
19 * It simply displays the status but does not have a functionality of its own.
20 * Everythings is calculated in the trainer (see KTouchTrainer)and then displayed
21 * using the updateStatus() member function.
22 * The "new characters" string is set using the member function setNewChars().
24 class KTouchStatus
: public KTouchStatusLayout
{
28 KTouchStatus(QWidget
*parent
);
29 /// Sets the new characters text.
30 void setNewChars(const QString
& newChars
);
31 /// Updates the level LCD and the correctness progress bar
32 void updateStatus(unsigned int level
, double correctness
);
35 #endif // KTOUCHSTATUS_H