#include <klettresview.h>
Public Slots | |
| void | slotGrownup () |
| Set the Grown-up background, show menubar, show the Kid button. | |
| void | slotKid () |
| Set the Kid background pic, hide the menubar, show the Grownup button. | |
| void | game () |
| Start the prog. | |
| void | treat1 (const QString &) |
| void | timer1 () |
| void | slotLet2 (const QString &) |
| void | timerDone () |
| void | chooseSound () |
| Choose a sound in random and ensure that it's not the same than the previous one. | |
Public Methods | |
| KLettresView (KLettres *parent) | |
| virtual | ~KLettresView () |
Public Attributes | |
| QLabel * | button1 |
| The button that display the letter or syllable. | |
| QLineEdit * | line1 |
| The line where the user enters his/her input. | |
| QPixmap | pm_k |
| The pixmap for the kid background. | |
| QPixmap | pm_a |
| The pixmap for the grown-up background. | |
| QPalette | pal |
| Palette changes wether it's kid or grown-up. | |
| QColorGroup | cg |
| int | niveau |
| Current level. | |
| int | n |
| Random number that decides on the letter/syllable and sound. | |
| int | temp |
| Temporary number to store the previous random and check that it's not twice the same. | |
| int | length |
| Length of the syllables. | |
| uint | selectedLanguage |
| Number corresponding to the selected language: 0 is Czech, 1 is Danish, 2 is French (default), 3 is Dutch. | |
| QString | style |
| Current style (kid or grownup). | |
| QString | st |
| Current letter or syllable stored. | |
| QString | sj |
| Current input in line1. | |
| QString | t1 |
| User input in upper case. | |
| QString | a1 |
| User input. | |
| int | input |
| Cursor position in the line edit. | |
This class serves as the view for KLettres. It holds the GUI for the kid and grown-up looks and has the code to display the letter/syllable and play the sound.
Definition at line 40 of file klettresview.h.
|
|
Default constructor Definition at line 33 of file klettresview.cpp. References button1, cg, line1, n, pal, pm_a, pm_k, and temp. |
|
|
Destructor Definition at line 64 of file klettresview.cpp. |
|
|
Choose a sound in random and ensure that it's not the same than the previous one.
Definition at line 266 of file klettresview.cpp. References button1, input, length, n, SoundFactory::namesList, SoundFactory::playSound(), KLettres::soundFactory, SoundFactory::sounds, st, and temp. |
|
|
Start the prog. This begin the game or begin a new level: set button and lineedit sizes set connections Definition at line 97 of file klettresview.cpp. References button1, chooseSound(), input, length, line1, niveau, slotLet2(), and treat1(). Referenced by KLettres::changeLanguage(), KLettres::KLettres(), and timerDone(). |
|
|
Set the Grown-up background, show menubar, show the Kid button.
Definition at line 69 of file klettresview.cpp. |
|
|
Set the Kid background pic, hide the menubar, show the Grownup button.
Definition at line 83 of file klettresview.cpp. |
|
|
Definition at line 209 of file klettresview.cpp. References a1, input, line1, sj, st, t1, and timerDone(). Referenced by game(), timerDone(), and treat1(). |
|
|
Definition at line 187 of file klettresview.cpp. References button1, chooseSound(), line1, n, niveau, SoundFactory::playSound(), KLettres::soundFactory, t1, and treat1(). Referenced by treat1(). |
|
|
Definition at line 229 of file klettresview.cpp. References button1, game(), input, line1, n, niveau, SoundFactory::playSound(), sj, slotLet2(), KLettres::soundFactory, st, and t1. Referenced by slotLet2(). |
|
|
Definition at line 161 of file klettresview.cpp. References a1, button1, line1, niveau, slotLet2(), t1, and timer1(). |
|
|
User input.
Definition at line 84 of file klettresview.h. Referenced by slotLet2(), and treat1(). |
|
|
The button that display the letter or syllable.
Definition at line 55 of file klettresview.h. Referenced by chooseSound(), game(), KLettresView(), slotGrownup(), slotKid(), timer1(), timerDone(), and treat1(). |
|
|
Definition at line 64 of file klettresview.h. Referenced by KLettresView(), slotGrownup(), and slotKid(). |
|
|
Cursor position in the line edit.
Definition at line 86 of file klettresview.h. Referenced by chooseSound(), game(), slotLet2(), and timerDone(). |
|
|
Length of the syllables.
Definition at line 72 of file klettresview.h. Referenced by chooseSound(), and game(). |
|
|
The line where the user enters his/her input.
Definition at line 57 of file klettresview.h. Referenced by game(), KLettresView(), slotLet2(), timer1(), timerDone(), and treat1(). |
|
|
Random number that decides on the letter/syllable and sound.
Definition at line 68 of file klettresview.h. Referenced by chooseSound(), KLettresView(), timer1(), and timerDone(). |
|
|
Current level.
Definition at line 66 of file klettresview.h. Referenced by game(), KLettres::KLettres(), SoundFactory::loadLanguage(), timer1(), timerDone(), and treat1(). |
|
|
Palette changes wether it's kid or grown-up.
Definition at line 63 of file klettresview.h. Referenced by KLettresView(), slotGrownup(), and slotKid(). |
|
|
The pixmap for the grown-up background.
Definition at line 61 of file klettresview.h. Referenced by KLettresView(), and slotGrownup(). |
|
|
The pixmap for the kid background.
Definition at line 59 of file klettresview.h. Referenced by KLettresView(), and slotKid(). |
|
|
Number corresponding to the selected language: 0 is Czech, 1 is Danish, 2 is French (default), 3 is Dutch.
Definition at line 74 of file klettresview.h. Referenced by KLettres::KLettres(). |
|
|
Current input in line1.
Definition at line 80 of file klettresview.h. Referenced by slotLet2(), and timerDone(). |
|
|
Current letter or syllable stored.
Definition at line 78 of file klettresview.h. Referenced by chooseSound(), slotLet2(), and timerDone(). |
|
|
Current style (kid or grownup).
Definition at line 76 of file klettresview.h. Referenced by slotGrownup(), and slotKid(). |
|
|
User input in upper case.
Definition at line 82 of file klettresview.h. Referenced by slotLet2(), timer1(), timerDone(), and treat1(). |
|
|
Temporary number to store the previous random and check that it's not twice the same.
Definition at line 70 of file klettresview.h. Referenced by chooseSound(), and KLettresView(). |
1.2.18