klettres
klettres.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright 2001-2008 by Anne-Marie Mahfouf * 00003 * annma@kde.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00019 ***************************************************************************/ 00020 00021 00022 #ifndef KLETTRES_H 00023 #define KLETTRES_H 00024 00025 #include <KXmlGuiWindow> 00026 00027 #include "klettresview.h" 00028 #include "soundfactory.h" 00029 00030 class QLabel; 00031 class KToggleAction; 00032 class KSelectAction; 00033 class KToolBar; 00034 class KLNewStuff; 00035 00041 class KLettres : public KXmlGuiWindow 00042 { 00043 Q_OBJECT 00044 public: 00045 00047 KLettres(); 00049 virtual ~KLettres(); 00050 00052 SoundFactory *soundFactory; 00054 QStringList m_languageNames; 00060 bool loadLayout(QDomDocument &layoutDocument); 00062 //uint selectedLanguage; 00064 KSelectAction *m_languageAction; 00065 00066 public slots: 00068 void slotChangeLanguage(int); 00069 00070 protected: 00072 KLettresView *m_view; 00074 KToggleAction *m_menubarAction; 00076 KSelectAction *m_levelAction; 00078 KSelectAction *m_themeAction; 00080 KToggleAction *m_kidAction; 00082 KToggleAction *m_grownupAction; 00084 QLabel *m_langLabel; 00086 QLabel *m_levLabel; 00088 QStringList m_levelsNames; 00090 QStringList m_themesNames; 00092 KToolBar *m_mainToolbar; 00094 KToolBar *specialCharToolbar; 00096 bool menuBool; 00098 void setupActions(); 00100 void setupStatusbar(); 00102 void setupToolbars(); 00106 QIcon charIcon(const QChar &c); 00111 void updateLevMenu(int id); 00113 KLNewStuff *mNewStuff; 00115 void loadLangToolBar(); 00117 QStringList allData; 00118 00119 protected slots: 00121 void slotDownloadNewStuff(); 00123 void slotMenubar(); 00125 void slotUpdateSettings(); 00127 void slotChangeLevel(int); 00129 void slotModeGrownup(); 00131 void slotModeKid(); 00133 void slotChangeTheme(int); 00135 void optionsPreferences(); 00137 void loadSettings(); 00139 void slotPasteChar(); 00140 }; 00141 00142 #endif // KLETTRES_H
KDE 4.2 API Reference