klettres
KLettresView Class Reference
#include <klettresview.h>

Detailed Description
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.
KLettres View class
- Version:
- 1.80
Definition at line 42 of file klettresview.h.
Public Slots | |
| void | game () |
Public Member Functions | |
| KLettresView (KLettres *parent) | |
| virtual | ~KLettresView () |
| void | enterLetter (QString letter) |
| void | setTheme (KLTheme *theme) |
Public Attributes | |
| int | m_timer |
| int | randomInt |
| KLettres * | m_klettres |
| KLineEdit * | m_letterEdit |
Protected Slots | |
| void | slotPlayAgain () |
| void | slotProcess (const QString &inputLetter) |
| void | slotTimerDone () |
Protected Member Functions | |
| void | chooseSound () |
| void | paintEvent (QPaintEvent *) |
| void | paintBackground (QPainter &p, const QRect &rect) |
| void | paintLetter (QPainter &p, const QRect &rect) |
Protected Attributes | |
| int | m_cursorPos |
| int | m_random |
| int | m_length |
| QString | m_currentLetter |
| QString | m_upperLetter |
| KLTheme * | m_theme |
| QSvgRenderer * | m_renderer |
| QPixmap | m_backgroundCache |
Constructor & Destructor Documentation
| KLettresView::KLettresView | ( | KLettres * | parent | ) | [explicit] |
| KLettresView::~KLettresView | ( | ) | [virtual] |
Member Function Documentation
| void KLettresView::enterLetter | ( | QString | letter | ) | [inline] |
| void KLettresView::setTheme | ( | KLTheme * | theme | ) |
| void KLettresView::chooseSound | ( | ) | [protected] |
Choose a sound in random and ensure that it's not the same than the previous one.
Definition at line 61 of file klettresview.cpp.
| void KLettresView::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
Paint the letter/syllable in levels 1 and 3 and the background.
Reimplemented from QWidget.
Definition at line 110 of file klettresview.cpp.
Definition at line 118 of file klettresview.cpp.
| void KLettresView::game | ( | ) | [slot] |
Start playing displaying a new letter/syllable, playing the associated sound.
Definition at line 144 of file klettresview.cpp.
| void KLettresView::slotPlayAgain | ( | ) | [protected, slot] |
| void KLettresView::slotProcess | ( | const QString & | inputLetter | ) | [protected, slot] |
Definition at line 159 of file klettresview.cpp.
| void KLettresView::slotTimerDone | ( | ) | [protected, slot] |
Definition at line 189 of file klettresview.cpp.
Member Data Documentation
The timer value i.e. the time for displaying the letters/syllables.
Definition at line 59 of file klettresview.h.
| KLineEdit* KLettresView::m_letterEdit |
int KLettresView::m_cursorPos [protected] |
int KLettresView::m_random [protected] |
Random number that decides on the letter/syllable and sound.
Definition at line 73 of file klettresview.h.
int KLettresView::m_length [protected] |
QString KLettresView::m_currentLetter [protected] |
QString KLettresView::m_upperLetter [protected] |
Current letter entered uppercase i.e. m_inputLetter.upper().
Definition at line 81 of file klettresview.h.
KLTheme* KLettresView::m_theme [protected] |
QSvgRenderer* KLettresView::m_renderer [protected] |
Definition at line 92 of file klettresview.h.
QPixmap KLettresView::m_backgroundCache [protected] |
Definition at line 93 of file klettresview.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference