author | simon <simon> | 2003-01-05 20:04:53 (UTC) |
---|---|---|
committer | simon <simon> | 2003-01-05 20:04:53 (UTC) |
commit | 13c9d1da75f4caa252f0cffca032ce3bc884a75b (patch) (unidiff) | |
tree | 6e8491a306f57205e0cab549bf4f9bf8525d710a /noncore/settings/language/language.cpp | |
parent | f887403341dd82d46d26695acc308cc8801cd6aa (diff) | |
download | opie-13c9d1da75f4caa252f0cffca032ce3bc884a75b.zip opie-13c9d1da75f4caa252f0cffca032ce3bc884a75b.tar.gz opie-13c9d1da75f4caa252f0cffca032ce3bc884a75b.tar.bz2 |
- removing unnecessary inclusions
Diffstat (limited to 'noncore/settings/language/language.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/language/language.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/noncore/settings/language/language.cpp b/noncore/settings/language/language.cpp index 5c4284b..8985fd5 100644 --- a/noncore/settings/language/language.cpp +++ b/noncore/settings/language/language.cpp | |||
@@ -26,56 +26,48 @@ | |||
26 | #include <qpe/applnk.h> | 26 | #include <qpe/applnk.h> |
27 | #include <qpe/qpedialog.h> | 27 | #include <qpe/qpedialog.h> |
28 | #include <qpe/qpeapplication.h> | 28 | #include <qpe/qpeapplication.h> |
29 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 29 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
30 | #include <qpe/qcopenvelope_qws.h> | 30 | #include <qpe/qcopenvelope_qws.h> |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #include <qlabel.h> | 33 | #include <qlabel.h> |
34 | #include <qcheckbox.h> | 34 | #include <qcheckbox.h> |
35 | #include <qradiobutton.h> | 35 | #include <qradiobutton.h> |
36 | #include <qtabwidget.h> | 36 | #include <qtabwidget.h> |
37 | #include <qslider.h> | 37 | #include <qslider.h> |
38 | #include <qfile.h> | 38 | #include <qfile.h> |
39 | #include <qtextstream.h> | 39 | #include <qtextstream.h> |
40 | #include <qdatastream.h> | 40 | #include <qdatastream.h> |
41 | #include <qmessagebox.h> | 41 | #include <qmessagebox.h> |
42 | #include <qcombobox.h> | 42 | #include <qcombobox.h> |
43 | #include <qspinbox.h> | 43 | #include <qspinbox.h> |
44 | #include <qlistbox.h> | 44 | #include <qlistbox.h> |
45 | #include <qdir.h> | 45 | #include <qdir.h> |
46 | #if QT_VERSION >= 300 | 46 | #if QT_VERSION >= 300 |
47 | #include <qstylefactory.h> | 47 | #include <qstylefactory.h> |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | ||
51 | #include <unistd.h> | ||
52 | #include <linux/fb.h> | ||
53 | #include <sys/types.h> | ||
54 | #include <sys/stat.h> | ||
55 | #include <fcntl.h> | ||
56 | #include <sys/ioctl.h> | ||
57 | #endif | ||
58 | #include <stdlib.h> | 50 | #include <stdlib.h> |
59 | 51 | ||
60 | 52 | ||
61 | LanguageSettings::LanguageSettings( QWidget* parent, const char* name, WFlags fl ) | 53 | LanguageSettings::LanguageSettings( QWidget* parent, const char* name, WFlags fl ) |
62 | : LanguageSettingsBase( parent, name, TRUE, fl ) | 54 | : LanguageSettingsBase( parent, name, TRUE, fl ) |
63 | { | 55 | { |
64 | if ( FontManager::hasUnicodeFont() ) | 56 | if ( FontManager::hasUnicodeFont() ) |
65 | languages->setFont(FontManager::unicodeFont(FontManager::Proportional)); | 57 | languages->setFont(FontManager::unicodeFont(FontManager::Proportional)); |
66 | 58 | ||
67 | 59 | ||
68 | QString tfn = QPEApplication::qpeDir() + "/i18n/"; | 60 | QString tfn = QPEApplication::qpeDir() + "/i18n/"; |
69 | QDir langDir = tfn; | 61 | QDir langDir = tfn; |
70 | QStringList list = langDir.entryList("*", QDir::Dirs ); | 62 | QStringList list = langDir.entryList("*", QDir::Dirs ); |
71 | 63 | ||
72 | QStringList::Iterator it; | 64 | QStringList::Iterator it; |
73 | 65 | ||
74 | for ( it = list.begin(); it != list.end(); ++it ) { | 66 | for ( it = list.begin(); it != list.end(); ++it ) { |
75 | QString name = (*it); | 67 | QString name = (*it); |
76 | QFileInfo desktopFile( tfn + "/" + name + "/.directory" ); | 68 | QFileInfo desktopFile( tfn + "/" + name + "/.directory" ); |
77 | if ( desktopFile.exists() ) { | 69 | if ( desktopFile.exists() ) { |
78 | langAvail.append(name); | 70 | langAvail.append(name); |
79 | Config conf( desktopFile.filePath(), Config::File ); | 71 | Config conf( desktopFile.filePath(), Config::File ); |
80 | QString langName = conf.readEntry( "Name" ); | 72 | QString langName = conf.readEntry( "Name" ); |
81 | QString ownName = conf.readEntryDirect( "Name[" + name + "]" ); | 73 | QString ownName = conf.readEntryDirect( "Name[" + name + "]" ); |