blob: c4b9b42c6dc34d4ccf6f7c1ff2cc9cb2bc0dc383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/***************************************************************************
kpercentage.h - description
-------------------
begin : Fre Nov 16 14:52:33 CET 2001
copyright : (C) 2001 by Matthias Messmer &
Carsten Niehaus &
Robert Gogolok
email : bmlmessmer@web.de &
cniehaus@gmx.de &
mail@robert-gogolok.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KPERCENTAGE_H
#define KPERCENTAGE_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// Qt includes
#include <tqspinbox.h>
// KDE includes
#include <kapplication.h>
#include <kcombobox.h>
// local includes
#include "kpercentmain.h"
#define SEL_PERCENTAGE 0
#define SEL_BASEVALUE 1
#define SEL_PERCENTVALUE 2
#define SEL_RANDOM 3
#define KPERCENTAGE_VERSION "1.2"
/**
* KPercentage is the base class of the project.
*/
class KPercentage : public KDialog
{
Q_OBJECT
public:
/** construtor */
KPercentage( const char *name=0 );
/** The exercise dialog */
KPercentMain * percent_main;
public slots: // Public slots
/** connected to PushButtonRandom */
void selRandom();
/** connected to PushButtonPercentvalue */
void selPercentvalue();
/** connected to PushButtonBasevalue */
void selBasevalue();
/** connected to PushButtonPercentage */
void selPercentage();
/** invokes the HelpCenter. doc must be installed */
void needHelp();
protected:
/** closes the application */
void closeEvent(TQCloseEvent *);
private:
/** Choose the level: easy, medium, crazy */
KComboBox *combo_box_level;
/** Choose the number of exercises. */
TQSpinBox *spin_box_number;
/** common preparing the exercise */
void startExercise();
};
#endif
|