• Skip to content
  • Skip to link menu
KDE 4.1 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 <annma@kde.org>
Version:
2.1

Definition at line 41 of file klettres.h.


Public Slots

void slotChangeLanguage (int)

Public Member Functions

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

Public Attributes

KSelectAction * m_languageAction
QStringList m_languageNames
SoundFactory * soundFactory

Protected Slots

void loadSettings ()
void optionsPreferences ()
void slotChangeLevel (int)
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

Constructor & Destructor Documentation

KLettres::KLettres (  ) 

Constructor.

Definition at line 71 of file klettres.cpp.

KLettres::~KLettres (  )  [virtual]

Destructor.

Definition at line 94 of file klettres.cpp.


Member Function Documentation

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

void KLettres::loadLangToolBar (  )  [protected]

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

Definition at line 398 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 98 of file klettres.cpp.

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

Load the configuration settings and apply them.

Definition at line 240 of file klettres.cpp.

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

Display the Configure KLettres dialog.

Definition at line 221 of file klettres.cpp.

void KLettres::setupActions (  )  [protected]

Build the main window menus.

Definition at line 124 of file klettres.cpp.

void KLettres::setupStatusbar (  )  [protected]

Create and setup statusbar.

Definition at line 203 of file klettres.cpp.

void KLettres::setupToolbars (  )  [protected]

Create main and second toolbars.

Definition at line 214 of file klettres.cpp.

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

Set the new language.

Definition at line 329 of file klettres.cpp.

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

Set the new level.

Definition at line 308 of file klettres.cpp.

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

Change Look from menu Look.

Definition at line 348 of file klettres.cpp.

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

Call the Get New Stuff dialog.

Definition at line 264 of file klettres.cpp.

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

Hide/Show the menubar.

Definition at line 280 of file klettres.cpp.

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

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

Definition at line 355 of file klettres.cpp.

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

Switch to the kid look, menubar is hidden.

Definition at line 376 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 444 of file klettres.cpp.

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

Set the new font and the new timers.

Definition at line 300 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 322 of file klettres.cpp.


Member Data Documentation

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 117 of file klettres.h.

KToggleAction* KLettres::m_grownupAction [protected]

Action allow the Grownup mode.

Definition at line 82 of file klettres.h.

KToggleAction* KLettres::m_kidAction [protected]

Action allow the Kid mode.

Definition at line 80 of file klettres.h.

QLabel* KLettres::m_langLabel [protected]

Label stating the language in the statusbar.

Definition at line 84 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 64 of file klettres.h.

QStringList KLettres::m_languageNames

All available language names.

Definition at line 54 of file klettres.h.

KSelectAction* KLettres::m_levelAction [protected]

Action that sets up the Level menu.

Definition at line 76 of file klettres.h.

QStringList KLettres::m_levelsNames [protected]

Holds the levels.

Definition at line 88 of file klettres.h.

QLabel* KLettres::m_levLabel [protected]

Label stating the level in the statusbar.

Definition at line 86 of file klettres.h.

KToolBar* KLettres::m_mainToolbar [protected]

Create an instance of a KToolBar.

Definition at line 92 of file klettres.h.

KToggleAction* KLettres::m_menubarAction [protected]

Action that enables the ShowMenuBar item in the Settings menu.

Definition at line 74 of file klettres.h.

KSelectAction* KLettres::m_themeAction [protected]

Action that sets up the Look menu.

Definition at line 78 of file klettres.h.

QStringList KLettres::m_themesNames [protected]

Holds the looks.

Definition at line 90 of file klettres.h.

KLettresView* KLettres::m_view [protected]

Call an instance of the KLettresView widget.

Definition at line 72 of file klettres.h.

bool KLettres::menuBool [protected]

is false when menubar button is not shown

Definition at line 96 of file klettres.h.

KLNewStuff* KLettres::mNewStuff [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.

KToolBar* KLettres::specialCharToolbar [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:
  • 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
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
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