klettres
klettres.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001-2007 by Anne-Marie Mahfouf * 00003 * annemarie.mahfouf@free.fr * 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_languages; 00056 QStringList m_languageNames; 00062 bool loadLayout(QDomDocument &layoutDocument); 00064 //uint selectedLanguage; 00066 KSelectAction *m_languageAction; 00068 void findLanguages(); 00069 00070 public slots: 00072 void slotChangeLanguage(int); 00073 00074 protected: 00076 KLettresView *m_view; 00078 KToggleAction *m_menubarAction; 00080 KSelectAction *m_levelAction; 00082 KSelectAction *m_themeAction; 00084 KToggleAction *m_kidAction; 00086 KToggleAction *m_grownupAction; 00088 QLabel *m_langLabel; 00090 QLabel *m_levLabel; 00092 QStringList m_levelsNames; 00094 QStringList m_themesNames; 00096 KToolBar *m_mainToolbar; 00098 KToolBar *specialCharToolbar; 00100 bool menuBool; 00102 void setupActions(); 00104 void setupStatusbar(); 00106 void setupToolbars(); 00110 QIcon charIcon(const QChar &c); 00115 void updateLevMenu(int id); 00117 KLNewStuff *mNewStuff; 00119 void loadLangToolBar(); 00121 QStringList allData; 00122 00123 protected slots: 00125 void slotDownloadNewStuff(); 00127 void slotMenubar(); 00129 void slotUpdateSettings(); 00131 void slotChangeLevel(int); 00133 void slotModeGrownup(); 00135 void slotModeKid(); 00137 void slotChangeTheme(int); 00139 void optionsPreferences(); 00141 void loadSettings(); 00143 void slotPasteChar(); 00144 }; 00145 00146 #endif // KLETTRES_H
KDE 4.0 API Reference