4
* Copyright (c) 1998 Matthias Hoelzer <hoelzer@physik.uni-wuerzburg.de>
5
* Copyright (c) 1999-2003 Hans Petter Bieker <bieker@kde.org>
7
* Requires the Qt widget libraries, available at no cost at
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32
class KLanguageButton;
40
#include <qstringlist.h>
42
class KLocaleConfig : public QWidget
47
KLocaleConfig( KLocale *_locale,
48
QWidget *parent = 0, const char *name = 0);
49
virtual ~KLocaleConfig( );
55
* Loads all settings from the current locale into the current widget.
57
void slotLocaleChanged();
59
* Retranslate all objects owned by this object using the current locale.
65
void languageChanged();
68
void loadLanguageList();
69
void loadCountryList();
71
void changedCountry(const QString & code);
72
void readLocale(const QString &path, QString &name,
73
const QString &sub) const;
75
void slotAddLanguage(const QString & id);
76
void slotRemoveLanguage();
77
void slotLanguageUp();
78
void slotLanguageDown();
79
void slotCheckButtons();
82
QStringList languageList() const;
86
KLanguageButton *m_comboCountry;
91
QListBox * m_languages;
92
KLanguageButton * m_addLanguage;
93
QPushButton * m_removeLanguage;
94
QPushButton * m_upButton;
95
QPushButton * m_downButton;