klettres
#include <klettres.h>
Public Slots | |
void | slotChangeLanguage (int) |
void | slotChangeLevel (int) |
Public Member Functions | |
KLettres () | |
virtual | ~KLettres () |
bool | loadLayout (QDomDocument &layoutDocument) |
Public Attributes | |
KSelectAction * | m_languageAction |
QStringList | m_languageNames |
SoundFactory * | soundFactory |
Protected Slots | |
void | loadSettings () |
void | optionsPreferences () |
void | slotChangeTheme (int) |
void | slotDownloadNewStuff () |
void | slotMenubar () |
void | slotModeGrownup () |
void | slotModeKid () |
void | slotPasteChar () |
void | slotUpdateSettings () |
Protected Member Functions | |
QIcon | charIcon (const QChar &c) |
void | loadLangToolBar () |
void | setupActions () |
void | setupStatusbar () |
void | setupToolbars () |
void | updateLevMenu (int id) |
Protected Attributes | |
QStringList | allData |
KToggleAction * | m_grownupAction |
KToggleAction * | m_kidAction |
QLabel * | m_langLabel |
KSelectAction * | m_levelAction |
QStringList | m_levelsNames |
QLabel * | m_levLabel |
KToolBar * | m_mainToolbar |
KToggleAction * | m_menubarAction |
KSelectAction * | m_themeAction |
QStringList | m_themesNames |
KLettresView * | m_view |
bool | menuBool |
KLNewStuff * | mNewStuff |
KToolBar * | specialCharToolbar |
Detailed Description
Constructor & Destructor Documentation
KLettres::KLettres | ( | ) |
Constructor.
Definition at line 73 of file klettres.cpp.
|
virtual |
Destructor.
Definition at line 96 of file klettres.cpp.
Member Function Documentation
generates icons for the special characters toolbar
- Parameters
-
c the character that will be painted on the icon
Create a name and path for the icon
A font to draw the character with
Create the pixmap
Create transparency mask
Mask the pixmap
Save the icon to disk
Definition at line 447 of file klettres.cpp.
|
protected |
Set the correct buttons on the second toolbar according to the language.
Definition at line 384 of file klettres.cpp.
bool KLettres::loadLayout | ( | QDomDocument & | layoutDocument | ) |
Load the xml file.
- Parameters
-
layoutDocument the xml file
- Returns
- bool true if the xml document is found and well formed, false otherwise
Definition at line 100 of file klettres.cpp.
|
protectedslot |
Load the configuration settings and apply them.
Definition at line 236 of file klettres.cpp.
|
protectedslot |
Display the Configure KLettres dialog.
Definition at line 218 of file klettres.cpp.
|
protected |
Build the main window menus.
Definition at line 128 of file klettres.cpp.
|
protected |
Create and setup statusbar.
Definition at line 200 of file klettres.cpp.
|
protected |
Create main and second toolbars.
Definition at line 211 of file klettres.cpp.
|
slot |
Set the new language.
Definition at line 316 of file klettres.cpp.
|
slot |
Set the new level.
Definition at line 295 of file klettres.cpp.
|
protectedslot |
Change Look from menu Look.
Definition at line 338 of file klettres.cpp.
|
protectedslot |
Call the Get New Stuff dialog.
Definition at line 261 of file klettres.cpp.
|
protectedslot |
Hide/Show the menubar.
Definition at line 280 of file klettres.cpp.
|
protectedslot |
Switch to the grown-up look, menubar is shown.
Definition at line 345 of file klettres.cpp.
|
protectedslot |
Switch to the kid look, menubar is hidden.
Definition at line 364 of file klettres.cpp.
|
protectedslot |
When a button is clicked on the characters toolbar, the corresponding character is written in the lineedit.
Definition at line 430 of file klettres.cpp.
|
protectedslot |
Set the new font and the new timers.
Definition at line 287 of file klettres.cpp.
|
protected |
Update the level menu and level combobox.
- Parameters
-
id The id of the new level
Definition at line 309 of file klettres.cpp.
Member Data Documentation
|
protected |
All the special characters from a language file, these characters will be as buttons on the Special Characters Toolbar.
Definition at line 117 of file klettres.h.
|
protected |
Action allowing the Grownup mode.
Definition at line 82 of file klettres.h.
|
protected |
Action allowing the Kid mode.
Definition at line 80 of file klettres.h.
|
protected |
Label stating the language in the statusbar.
Definition at line 84 of file klettres.h.
KSelectAction* KLettres::m_languageAction |
Action that sets up the Language menu.
Definition at line 62 of file klettres.h.
QStringList KLettres::m_languageNames |
All available language names.
Definition at line 54 of file klettres.h.
|
protected |
Action that sets up the Level menu.
Definition at line 76 of file klettres.h.
|
protected |
Holds the levels.
Definition at line 88 of file klettres.h.
|
protected |
Label stating the level in the statusbar.
Definition at line 86 of file klettres.h.
|
protected |
Create an instance of a KToolBar.
Definition at line 92 of file klettres.h.
|
protected |
Action that enables the ShowMenuBar item in the Settings menu.
Definition at line 74 of file klettres.h.
|
protected |
Action that sets up the Look menu.
Definition at line 78 of file klettres.h.
|
protected |
Holds the looks.
Definition at line 90 of file klettres.h.
|
protected |
Call an instance of the KLettresView widget.
Definition at line 72 of file klettres.h.
|
protected |
is false when menubar button is not shown
Definition at line 96 of file klettres.h.
|
protected |
Create a KNewStuff instance.
Definition at line 113 of file klettres.h.
SoundFactory* KLettres::soundFactory |
Sound class.
Definition at line 52 of file klettres.h.
|
protected |
Second toolbar with buttons of special characters per language.
Definition at line 94 of file klettres.h.
The documentation for this class was generated from the following files:
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.