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

klettres

Public Slots | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KLettres Class Reference

#include <klettres.h>

Inheritance diagram for KLettres:
Inheritance graph
[legend]

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

Application Main Window.

Author
Anne-Marie Mahfouf annma.nosp@m.@kde.nosp@m..org
Version
2.1

Definition at line 41 of file klettres.h.

Constructor & Destructor Documentation

KLettres::KLettres ( )

Constructor.

Definition at line 73 of file klettres.cpp.

KLettres::~KLettres ( )
virtual

Destructor.

Definition at line 96 of file klettres.cpp.

Member Function Documentation

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

generates icons for the special characters toolbar

Parameters
cthe 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.

void KLettres::loadLangToolBar ( )
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
layoutDocumentthe xml file
Returns
bool true if the xml document is found and well formed, false otherwise

Definition at line 100 of file klettres.cpp.

void KLettres::loadSettings ( )
protectedslot

Load the configuration settings and apply them.

Definition at line 236 of file klettres.cpp.

void KLettres::optionsPreferences ( )
protectedslot

Display the Configure KLettres dialog.

Definition at line 218 of file klettres.cpp.

void KLettres::setupActions ( )
protected

Build the main window menus.

Definition at line 128 of file klettres.cpp.

void KLettres::setupStatusbar ( )
protected

Create and setup statusbar.

Definition at line 200 of file klettres.cpp.

void KLettres::setupToolbars ( )
protected

Create main and second toolbars.

Definition at line 211 of file klettres.cpp.

void KLettres::slotChangeLanguage ( int  newIndex)
slot

Set the new language.

Definition at line 316 of file klettres.cpp.

void KLettres::slotChangeLevel ( int  newLevel)
slot

Set the new level.

Definition at line 295 of file klettres.cpp.

void KLettres::slotChangeTheme ( int  index)
protectedslot

Change Look from menu Look.

Definition at line 338 of file klettres.cpp.

void KLettres::slotDownloadNewStuff ( )
protectedslot

Call the Get New Stuff dialog.

Definition at line 261 of file klettres.cpp.

void KLettres::slotMenubar ( )
protectedslot

Hide/Show the menubar.

Definition at line 280 of file klettres.cpp.

void KLettres::slotModeGrownup ( )
protectedslot

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

Definition at line 345 of file klettres.cpp.

void KLettres::slotModeKid ( )
protectedslot

Switch to the kid look, menubar is hidden.

Definition at line 364 of file klettres.cpp.

void KLettres::slotPasteChar ( )
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.

void KLettres::slotUpdateSettings ( )
protectedslot

Set the new font and the new timers.

Definition at line 287 of file klettres.cpp.

void KLettres::updateLevMenu ( int  id)
protected

Update the level menu and level combobox.

Parameters
idThe id of the new level

Definition at line 309 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 allowing the Grownup mode.

Definition at line 82 of file klettres.h.

KToggleAction* KLettres::m_kidAction
protected

Action allowing 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

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.

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
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

KDE's Doxygen guidelines are available online.

klettres

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal