klettres
klettres.cpp
Go to the documentation of this file.
136 m_newAction->setWhatsThis(i18n("You can play a new sound by clicking this button or using the File menu, New Sound."));
149 m_playAgainAction->setWhatsThis(i18n("You can replay the same sound again by clicking this button or using the File menu, Replay Sound."));
157 m_levelAction->setWhatsThis(i18n("You can select the level: level 1 displays a letter and you hear it; level 2 does not display the letter, you only hear it; level 3 displays a syllable and you hear it; level 4 does not display the syllable, you only hear it."));
175 m_themeAction->setWhatsThis(i18n("Here you can change the theme for KLettres. A theme consists in the background picture and the font color for the letter displayed."));
182 m_kidAction->setWhatsThis(i18n("If you are in the Grown-up mode, clicking on this button will set up the Kid mode. The Kid mode has no menubar and the font is bigger in the statusbar."));
189 m_grownupAction->setWhatsThis(i18n("The Grownup mode is the normal mode where you can see the menubar."));
241 QString langString = LangUtils::getLanguagesNames(LangUtils::getLanguages())[LangUtils::getLanguages().indexOf(Prefs::language())];
247 m_levLabel->setText(i18nc("@info:status the current level chosen", "(Level %1)", Prefs::level()));
313 m_levLabel->setText(i18nc("@info:status the current level chosen", "(Level %1)", Prefs::level()));
390 if (LangUtils::hasSpecialChars(lang)) {//Dutch, English, French and Italian have no special characters
void setCodec(QTextCodec *codec)
void setText(const QString &text)
void clear()
void setupUi(QWidget *widget)
QIcon charIcon(const QChar &c)
generates icons for the special characters toolbar
Definition: klettres.cpp:447
void fill(const QColor &color)
void setColor(ColorGroup group, ColorRole role, const QColor &color)
static void setMenuBarBool(bool v)
Set Whether the menubar is shown or hidden.
Definition: prefs.h:71
void game()
Start playing displaying a new letter/syllable, playing the associated sound.
Definition: klettresview.cpp:148
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QVariant data() const
void setIcon(const QIcon &icon)
const T & at(int i) const
QString fileName() const
void setFileName(const QString &name)
void setWeight(int weight)
bool exists() const
QString & remove(int position, int n)
int m_timer
The timer value i.e. the time for displaying the letters/syllables.
Definition: klettresview.h:59
void setBold(bool enable)
void setPixelSize(int pixelSize)
void setFont(const QFont &font)
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
bool save(const QString &fileName, const char *format, int quality) const
int toInt(bool *ok) const
void setPen(const QColor &color)
void drawText(const QPointF &position, const QString &text)
void slotPasteChar()
When a button is clicked on the characters toolbar, the corresponding character is written in the lin...
Definition: klettres.cpp:430
void setText(const QString &)
This class manages the sounds to play in KLettres, reading the data about the sounds in the sounds...
Definition: soundfactory.h:47
ushort unicode() const
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: prefs.h:23
void change(const QString ¤tLanguage)
Change the language when the user changes the language in the Languages menu.
Definition: soundfactory.cpp:59
void setData(const QVariant &userData)
void setMask(const QBitmap &mask)
void setFont(const QFont &)
virtual void close()
void loadLangToolBar()
Set the correct buttons on the second toolbar according to the language.
Definition: klettres.cpp:384
KToolBar * specialCharToolbar
Second toolbar with buttons of special characters per language.
Definition: klettres.h:94
void setFamily(const QString &family)
QStringList allData
All the special characters from a language file, these characters will be as buttons on the Special C...
Definition: klettres.h:117
int indexOf(const QRegExp &rx, int from) const
Definition: prefs.h:23
QString readAll()
KToggleAction * m_menubarAction
Action that enables the ShowMenuBar item in the Settings menu.
Definition: klettres.h:74
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
static QStringList getLanguagesNames(QStringList languagesList)
All available languages translated names.
Definition: langutils.cpp:91
static bool hasSpecialChars(const QString &lang)
Definition: langutils.cpp:30
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.