add more spacing
[personal-kdebase.git] / runtime / kcontrol / locale / toplevel.h
blob6309189976e9782279829b66ed86f973999d9baf
1 /*
2 toplevel.h - A KControl Application
4 written 1998 by Matthias Hoelzer
6 Copyright 1998 Matthias Hoelzer.
7 Copyright 1999-2003 Hans Petter Bieker <bieker@kde.org>.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #ifndef __TOPLEVEL_H__
26 #define __TOPLEVEL_H__
28 #include <kcmodule.h>
29 #include <klocale.h>
30 #include <kconfig.h>
32 class QGroupBox;
33 class QTabWidget;
35 class KControlLocale;
36 class KLocaleConfig;
37 class KLocaleConfigMoney;
38 class KLocaleConfigNumber;
39 class KLocaleConfigTime;
40 class KLocaleConfigOther;
41 class KLocaleSample;
43 class KLocaleApplication : public KCModule
45 Q_OBJECT
47 public:
48 KLocaleApplication(QWidget *parent, const QVariantList &);
49 virtual ~KLocaleApplication();
51 virtual void load();
52 virtual void save();
53 virtual void defaults();
54 virtual QString quickHelp() const;
56 Q_SIGNALS:
57 void languageChanged();
58 void localeChanged();
60 public Q_SLOTS:
61 /**
62 * Retranslates the current widget.
64 void slotTranslate();
65 void slotChanged();
67 private:
68 KControlLocale *m_locale;
70 QTabWidget *m_tab;
71 KLocaleConfig *m_localemain;
72 KLocaleConfigNumber *m_localenum;
73 KLocaleConfigMoney *m_localemon;
74 KLocaleConfigTime *m_localetime;
75 KLocaleConfigOther *m_localeother;
77 QGroupBox *m_gbox;
78 KLocaleSample *m_sample;
80 KSharedConfigPtr m_globalConfig;
81 KSharedConfigPtr m_nullConfig;
85 #endif