• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

klettres

KLettres Class Reference

#include <klettres.h>

Inheritance diagram for KLettres:

Inheritance graph
[legend]

List of all members.


Detailed Description

Application Main Window.

Author:
Anne-Marie Mahfouf <annemarie.mahfouf@free.fr>
Version:
1.80

Definition at line 41 of file klettres.h.


Public Slots

void slotChangeLanguage (int)

Public Member Functions

 KLettres ()
virtual ~KLettres ()
bool loadLayout (QDomDocument &layoutDocument)
void findLanguages ()

Public Attributes

SoundFactory * soundFactory
QStringList m_languages
QStringList m_languageNames
KSelectAction * m_languageAction

Protected Slots

void slotDownloadNewStuff ()
void slotMenubar ()
void slotUpdateSettings ()
void slotChangeLevel (int)
void slotModeGrownup ()
void slotModeKid ()
void slotChangeTheme (int)
void optionsPreferences ()
void loadSettings ()
void slotPasteChar ()

Protected Member Functions

void setupActions ()
void setupStatusbar ()
void setupToolbars ()
QIcon charIcon (const QChar &c)
void updateLevMenu (int id)
void loadLangToolBar ()

Protected Attributes

KLettresView * m_view
KToggleAction * m_menubarAction
KSelectAction * m_levelAction
KSelectAction * m_themeAction
KToggleAction * m_kidAction
KToggleAction * m_grownupAction
QLabel * m_langLabel
QLabel * m_levLabel
QStringList m_levelsNames
QStringList m_themesNames
KToolBar * m_mainToolbar
KToolBar * specialCharToolbar
bool menuBool
KLNewStuff * mNewStuff
QStringList allData

Constructor & Destructor Documentation

KLettres::KLettres (  ) 

Constructor.

Definition at line 71 of file klettres.cpp.

KLettres::~KLettres (  )  [virtual]

Destructor.

Definition at line 96 of file klettres.cpp.


Member Function Documentation

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 142 of file klettres.cpp.

void KLettres::findLanguages (  ) 

Look for all languages available.

Definition at line 100 of file klettres.cpp.

void KLettres::slotChangeLanguage ( int  newLanguage  )  [slot]

Set the new language.

Definition at line 370 of file klettres.cpp.

void KLettres::setupActions (  )  [protected]

Build the main window menus.

Definition at line 168 of file klettres.cpp.

void KLettres::setupStatusbar (  )  [protected]

Create and setup statusbar.

Definition at line 248 of file klettres.cpp.

void KLettres::setupToolbars (  )  [protected]

Create main and second toolbars.

Definition at line 259 of file klettres.cpp.

QIcon KLettres::charIcon ( const QChar &  c  )  [protected]

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 497 of file klettres.cpp.

void KLettres::updateLevMenu ( int  id  )  [protected]

Update the level menu and level combobox.

Parameters:
id The id of the new level

Definition at line 363 of file klettres.cpp.

void KLettres::loadLangToolBar (  )  [protected]

Set the correct buttons on the second toolbar according to the language.

Definition at line 438 of file klettres.cpp.

void KLettres::slotDownloadNewStuff (  )  [protected, slot]

Call the Get New Stuff dialog.

Definition at line 305 of file klettres.cpp.

void KLettres::slotMenubar (  )  [protected, slot]

Hide/Show the menubar.

Definition at line 321 of file klettres.cpp.

void KLettres::slotUpdateSettings (  )  [protected, slot]

Set the new font and the new timers.

Definition at line 341 of file klettres.cpp.

void KLettres::slotChangeLevel ( int  newLevel  )  [protected, slot]

Set the new level.

Definition at line 349 of file klettres.cpp.

void KLettres::slotModeGrownup (  )  [protected, slot]

Switch to the grown-up look, menubar is shown.

Definition at line 395 of file klettres.cpp.

void KLettres::slotModeKid (  )  [protected, slot]

Switch to the kid look, menubar is hidden.

Definition at line 416 of file klettres.cpp.

void KLettres::slotChangeTheme ( int  index  )  [protected, slot]

Change Look from menu Look.

Definition at line 388 of file klettres.cpp.

void KLettres::optionsPreferences (  )  [protected, slot]

Display the Configure KLettres dialog.

Definition at line 266 of file klettres.cpp.

void KLettres::loadSettings (  )  [protected, slot]

Load the configuration settings and apply them.

Definition at line 285 of file klettres.cpp.

void KLettres::slotPasteChar (  )  [protected, slot]

When a button is clicked on the characters toolbar, the corresponding character is written in the lineedit.

Definition at line 483 of file klettres.cpp.


Member Data Documentation

SoundFactory* KLettres::soundFactory

Sound class.

Definition at line 52 of file klettres.h.

QStringList KLettres::m_languages

All available language codes.

Definition at line 54 of file klettres.h.

QStringList KLettres::m_languageNames

All available language names.

Definition at line 56 of file klettres.h.

KSelectAction* KLettres::m_languageAction

Number corresponding to the selected language: 0 is Czech, 1 is Danish, 2 is English (default), 3 is French, 4 is Dutch, 5 is Slovak.

Action that sets up the Language menu

Definition at line 66 of file klettres.h.

KLettresView* KLettres::m_view [protected]

Call an instance of the KLettresView widget.

Definition at line 76 of file klettres.h.

KToggleAction* KLettres::m_menubarAction [protected]

Action that enables the ShowMenuBar item in the Settings menu.

Definition at line 78 of file klettres.h.

KSelectAction* KLettres::m_levelAction [protected]

Action that sets up the Level menu.

Definition at line 80 of file klettres.h.

KSelectAction* KLettres::m_themeAction [protected]

Action that sets up the Look menu.

Definition at line 82 of file klettres.h.

KToggleAction* KLettres::m_kidAction [protected]

Action allow the Kid mode.

Definition at line 84 of file klettres.h.

KToggleAction* KLettres::m_grownupAction [protected]

Action allow the Grownup mode.

Definition at line 86 of file klettres.h.

QLabel* KLettres::m_langLabel [protected]

Label stating the language in the statusbar.

Definition at line 88 of file klettres.h.

QLabel* KLettres::m_levLabel [protected]

Label stating the level in the statusbar.

Definition at line 90 of file klettres.h.

QStringList KLettres::m_levelsNames [protected]

Holds the levels.

Definition at line 92 of file klettres.h.

QStringList KLettres::m_themesNames [protected]

Holds the looks.

Definition at line 94 of file klettres.h.

KToolBar* KLettres::m_mainToolbar [protected]

Create an instance of a KToolBar.

Definition at line 96 of file klettres.h.

KToolBar* KLettres::specialCharToolbar [protected]

Second toolbar with buttons of special characters per language.

Definition at line 98 of file klettres.h.

bool KLettres::menuBool [protected]

is false when menubar button is not shown

Definition at line 100 of file klettres.h.

KLNewStuff* KLettres::mNewStuff [protected]

Create a KNewStuff instance.

Definition at line 117 of file klettres.h.

QStringList KLettres::allData [protected]

All the special characters from a language file, these characters will be as buttons on the Special Characters Toolbar.

Definition at line 121 of file klettres.h.


The documentation for this class was generated from the following files:
  • klettres.h
  • klettres.cpp

klettres

Skip menu "klettres"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal