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

klettres

  • sources
  • kde-4.14
  • kdeedu
  • klettres
  • src
klettres.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2001-2008 by Anne-Marie Mahfouf *
3  * annma@kde.org *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 
22 #ifndef KLETTRES_H
23 #define KLETTRES_H
24 
25 #include <KXmlGuiWindow>
26 
27 #include "klettresview.h"
28 #include "soundfactory.h"
29 
30 class QLabel;
31 class KToggleAction;
32 class KSelectAction;
33 class KToolBar;
34 class KLNewStuff;
35 
41 class KLettres : public KXmlGuiWindow
42 {
43  Q_OBJECT
44 public:
45 
47  KLettres();
49  virtual ~KLettres();
50 
52  SoundFactory *soundFactory;
54  QStringList m_languageNames;
60  bool loadLayout(QDomDocument &layoutDocument);
62  KSelectAction *m_languageAction;
63 
64  public slots:
66  void slotChangeLanguage(int);
68  void slotChangeLevel(int);
69 
70 protected:
72  KLettresView *m_view;
74  KToggleAction *m_menubarAction;
76  KSelectAction *m_levelAction;
78  KSelectAction *m_themeAction;
80  KToggleAction *m_kidAction;
82  KToggleAction *m_grownupAction;
84  QLabel *m_langLabel;
86  QLabel *m_levLabel;
88  QStringList m_levelsNames;
90  QStringList m_themesNames;
92  KToolBar *m_mainToolbar;
94  KToolBar *specialCharToolbar;
96  bool menuBool;
98  void setupActions();
100  void setupStatusbar();
102  void setupToolbars();
106  QIcon charIcon(const QChar &c);
111  void updateLevMenu(int id);
113  KLNewStuff *mNewStuff;
115  void loadLangToolBar();
117  QStringList allData;
118 
119  protected slots:
121  void slotDownloadNewStuff();
123  void slotMenubar();
125  void slotUpdateSettings();
127  void slotModeGrownup();
129  void slotModeKid();
131  void slotChangeTheme(int);
133  void optionsPreferences();
135  void loadSettings();
137  void slotPasteChar();
138 };
139 
140 #endif // KLETTRES_H
KLettres::slotChangeLanguage
void slotChangeLanguage(int)
Set the new language.
Definition: klettres.cpp:316
KLettres::setupToolbars
void setupToolbars()
Create main and second toolbars.
Definition: klettres.cpp:211
KLettres::charIcon
QIcon charIcon(const QChar &c)
generates icons for the special characters toolbar
Definition: klettres.cpp:447
KLettres::m_languageNames
QStringList m_languageNames
All available language names.
Definition: klettres.h:54
KLettres::slotMenubar
void slotMenubar()
Hide/Show the menubar.
Definition: klettres.cpp:280
KLettres::m_mainToolbar
KToolBar * m_mainToolbar
Create an instance of a KToolBar.
Definition: klettres.h:92
QChar
KLettres::setupActions
void setupActions()
Build the main window menus.
Definition: klettres.cpp:128
KLettres::m_langLabel
QLabel * m_langLabel
Label stating the language in the statusbar.
Definition: klettres.h:84
KLettres::slotModeGrownup
void slotModeGrownup()
Switch to the grown-up look, menubar is shown.
Definition: klettres.cpp:345
KLettresView
This class serves as the view for KLettres.
Definition: klettresview.h:42
KLettres::updateLevMenu
void updateLevMenu(int id)
Update the level menu and level combobox.
Definition: klettres.cpp:309
KLettres::loadLayout
bool loadLayout(QDomDocument &layoutDocument)
Load the xml file.
Definition: klettres.cpp:100
KLettres::slotUpdateSettings
void slotUpdateSettings()
Set the new font and the new timers.
Definition: klettres.cpp:287
KLettres
Application Main Window.
Definition: klettres.h:41
KLettres::KLettres
KLettres()
Constructor.
Definition: klettres.cpp:73
KXmlGuiWindow
KLettres::slotChangeLevel
void slotChangeLevel(int)
Set the new level.
Definition: klettres.cpp:295
KLettres::m_languageAction
KSelectAction * m_languageAction
Action that sets up the Language menu.
Definition: klettres.h:62
klettresview.h
KLettres::m_levLabel
QLabel * m_levLabel
Label stating the level in the statusbar.
Definition: klettres.h:86
KLettres::mNewStuff
KLNewStuff * mNewStuff
Create a KNewStuff instance.
Definition: klettres.h:113
KLettres::slotPasteChar
void slotPasteChar()
When a button is clicked on the characters toolbar, the corresponding character is written in the lin...
Definition: klettres.cpp:430
SoundFactory
This class manages the sounds to play in KLettres, reading the data about the sounds in the sounds...
Definition: soundfactory.h:47
QStringList
KLettres::soundFactory
SoundFactory * soundFactory
Sound class.
Definition: klettres.h:52
KLettres::m_themeAction
KSelectAction * m_themeAction
Action that sets up the Look menu.
Definition: klettres.h:78
QDomDocument
KLettres::menuBool
bool menuBool
is false when menubar button is not shown
Definition: klettres.h:96
KLettres::m_levelsNames
QStringList m_levelsNames
Holds the levels.
Definition: klettres.h:88
KLettres::slotModeKid
void slotModeKid()
Switch to the kid look, menubar is hidden.
Definition: klettres.cpp:364
KLettres::loadLangToolBar
void loadLangToolBar()
Set the correct buttons on the second toolbar according to the language.
Definition: klettres.cpp:384
KLettres::m_levelAction
KSelectAction * m_levelAction
Action that sets up the Level menu.
Definition: klettres.h:76
KLettres::specialCharToolbar
KToolBar * specialCharToolbar
Second toolbar with buttons of special characters per language.
Definition: klettres.h:94
KLettres::loadSettings
void loadSettings()
Load the configuration settings and apply them.
Definition: klettres.cpp:236
KLettres::slotChangeTheme
void slotChangeTheme(int)
Change Look from menu Look.
Definition: klettres.cpp:338
KLettres::m_themesNames
QStringList m_themesNames
Holds the looks.
Definition: klettres.h:90
KLettres::m_view
KLettresView * m_view
Call an instance of the KLettresView widget.
Definition: klettres.h:72
KLettres::allData
QStringList allData
All the special characters from a language file, these characters will be as buttons on the Special C...
Definition: klettres.h:117
KLettres::optionsPreferences
void optionsPreferences()
Display the Configure KLettres dialog.
Definition: klettres.cpp:218
KLettres::m_kidAction
KToggleAction * m_kidAction
Action allowing the Kid mode.
Definition: klettres.h:80
soundfactory.h
KLettres::~KLettres
virtual ~KLettres()
Destructor.
Definition: klettres.cpp:96
KLettres::setupStatusbar
void setupStatusbar()
Create and setup statusbar.
Definition: klettres.cpp:200
QLabel
KLettres::m_menubarAction
KToggleAction * m_menubarAction
Action that enables the ShowMenuBar item in the Settings menu.
Definition: klettres.h:74
KLettres::m_grownupAction
KToggleAction * m_grownupAction
Action allowing the Grownup mode.
Definition: klettres.h:82
QIcon
KLettres::slotDownloadNewStuff
void slotDownloadNewStuff()
Call the Get New Stuff dialog.
Definition: klettres.cpp:261
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