add more spacing
[personal-kdebase.git] / runtime / kcontrol / locale / localenum.h
blob3f1983e73c7590a017fd44eb17aab9feadf6775b
1 /*
2 * localenum.h
4 * Copyright (c) 1999-2003 Hans Petter Bieker <bieker@kde.org>
6 * Requires the Qt widget libraries, available at no cost at
7 * http://www.troll.no/
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 LOCALENUM_H
26 #define LOCALENUM_H
28 #include <QWidget>
30 class QLineEdit;
32 class KLocale;
34 class KLocaleConfigNumber : public QWidget
36 Q_OBJECT
38 public:
39 explicit KLocaleConfigNumber( KLocale *_locale, QWidget *parent=0);
40 virtual ~KLocaleConfigNumber( );
42 void save();
44 public Q_SLOTS:
45 /**
46 * Loads all settings from the current locale into the current widget.
48 void slotLocaleChanged();
49 /**
50 * Retranslate all objects owned by this object using the current locale.
52 void slotTranslate();
54 Q_SIGNALS:
55 void localeChanged();
57 private Q_SLOTS:
58 // Numbers
59 void slotMonPosSignChanged(const QString &t);
60 void slotMonNegSignChanged(const QString &t);
61 void slotDecSymChanged(const QString &t);
62 void slotThoSepChanged(const QString &t);
64 private:
65 KLocale *m_locale;
67 // Numbers
68 QLabel *m_labDecSym;
69 QLineEdit *m_edDecSym;
70 QLabel *m_labThoSep;
71 QLineEdit *m_edThoSep;
72 QLabel *m_labMonPosSign;
73 QLineEdit *m_edMonPosSign;
74 QLabel *m_labMonNegSign;
75 QLineEdit *m_edMonNegSign;
78 #endif // LOCALENUM_H