klettres
klettresview.cpp
Go to the documentation of this file.
94 QString svgpath = KStandardDirs::locate("data", QString("klettres/pics/%1/%2").arg(theme->name(), theme->svgFileName()));
108 m_letterEdit->setStyleSheet(QString("border-style: solid; background-color: rgb(%1, %2, %3); color: rgb(%4, %5, %6) ; border-color: rgb(%4, %5, %6); border-bottom-right-radius:10; border-radius: 15px; border-width: 3px").arg(r1).arg(g1).arg(b1).arg(r2).arg(g2).arg(b2));
154 QObject::disconnect(m_letterEdit, SIGNAL(textChanged(QString)),this,SLOT(slotProcess(QString)));
168 QObject::disconnect(m_letterEdit, SIGNAL(textChanged(QString)), this, SLOT(slotProcess(QString)));
181 if ((!LangUtils::isIndian(lang) && (input_character.isLetter())) || (LangUtils::isIndian(lang)))
196 QObject::connect(m_letterEdit, SIGNAL(textChanged(const QString&)),this,SLOT(slotProcess(const QString&)) );
231 //TODO wait for the previous sound to be payed before playing again as it won't play if the previous one was not finished
static bool isIndian(const QString &lang)
Indian languages cannot have isLetter()
Definition: langutils.cpp:45
int m_random
Random number that decides on the letter/syllable and sound.
Definition: klettresview.h:76
virtual QColor letterInputColor() const =0
returns the color for the letter in the LineEdit box
virtual QRect inputRect(const QSize &windowsize) const =0
void slotProcess(const QString &inputLetter)
Definition: klettresview.cpp:165
QString m_upperLetter
Current letter entered uppercase i.e. m_inputLetter.upper()
Definition: klettresview.h:84
void game()
Start playing displaying a new letter/syllable, playing the associated sound.
Definition: klettresview.cpp:149
int m_timer
The timer value i.e. the time for displaying the letters/syllables.
Definition: klettresview.h:59
void paintLetter(QPainter &p, const QRect &rect)
Paint the letter/syllable in levels 1 and 3.
Definition: klettresview.cpp:134
virtual QString name() const =0
void chooseSound()
Choose a sound in random and ensure that it's not the same than the previous one. ...
Definition: klettresview.cpp:63
virtual QColor backgroundInputColor() const =0
returns the color for the background of the LineEdit box
virtual QColor letterColor() const =0
returns the color for displaying the letter/syllable
uint sounds
Number of sounds corresponding to the current language and level (alphabet or syllables) ...
Definition: soundfactory.h:63
void paintBackground(QPainter &p, const QRect &rect)
Paint the background picture.
Definition: klettresview.cpp:123
virtual QRect wordRect(const QSize &windowsize) const =0
void paintEvent(QPaintEvent *)
Paint the letter/syllable in levels 1 and 3 and the background.
Definition: klettresview.cpp:115
Definition: kltheme.h:26
virtual QString svgFileName() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.