summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/inputmethods.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/launcher/inputmethods.cpp b/core/launcher/inputmethods.cpp
index cef16bf..a0e8939 100644
--- a/core/launcher/inputmethods.cpp
+++ b/core/launcher/inputmethods.cpp
@@ -1,91 +1,92 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#define QTOPIA_INTERNAL_LANGLIST 21#define QTOPIA_INTERNAL_LANGLIST
22#include "inputmethods.h" 22#include "inputmethods.h"
23 23
24/* OPIE */ 24/* OPIE */
25#include <opie2/odebug.h> 25#include <opie2/odebug.h>
26#include <qtopia/config.h> 26#include <qpe/config.h>
27#include <qtopia/qpeapplication.h> 27#include <qpe/global.h>
28#include <qpe/qpeapplication.h>
28using namespace Opie::Core; 29using namespace Opie::Core;
29 30
30/* QT */ 31/* QT */
31#include <qpopupmenu.h> 32#include <qpopupmenu.h>
32#include <qtoolbutton.h> 33#include <qtoolbutton.h>
33#include <qwidgetstack.h> 34#include <qwidgetstack.h>
34#include <qlayout.h> 35#include <qlayout.h>
35#include <qdir.h> 36#include <qdir.h>
36#include <qtl.h> 37#include <qtl.h>
37#ifdef Q_WS_QWS 38#ifdef Q_WS_QWS
38#include <qwindowsystem_qws.h> 39#include <qwindowsystem_qws.h>
39#include <qwsevent_qws.h> 40#include <qwsevent_qws.h>
40#include <qcopchannel_qws.h> 41#include <qcopchannel_qws.h>
41#endif 42#endif
42 43
43/* STD */ 44/* STD */
44#include <stdlib.h> 45#include <stdlib.h>
45 46
46/* XPM */ 47/* XPM */
47static const char * tri_xpm[]={ 48static const char * tri_xpm[]={
48"9 9 2 1", 49"9 9 2 1",
49"a c #000000", 50"a c #000000",
50". c None", 51". c None",
51".........", 52".........",
52".........", 53".........",
53".........", 54".........",
54"....a....", 55"....a....",
55"...aaa...", 56"...aaa...",
56"..aaaaa..", 57"..aaaaa..",
57".aaaaaaa.", 58".aaaaaaa.",
58".........", 59".........",
59"........."}; 60"........."};
60 61
61int InputMethod::operator <(const InputMethod& o) const 62int InputMethod::operator <(const InputMethod& o) const
62{ 63{
63 return name() < o.name(); 64 return name() < o.name();
64} 65}
65int InputMethod::operator >(const InputMethod& o) const 66int InputMethod::operator >(const InputMethod& o) const
66{ 67{
67 return name() > o.name(); 68 return name() > o.name();
68} 69}
69int InputMethod::operator <=(const InputMethod& o) const 70int InputMethod::operator <=(const InputMethod& o) const
70{ 71{
71 return name() <= o.name(); 72 return name() <= o.name();
72} 73}
73 74
74 75
75/* 76/*
76 Slightly hacky: We use WStyle_Tool as a flag to say "this widget 77 Slightly hacky: We use WStyle_Tool as a flag to say "this widget
77 belongs to the IM system, so clicking it should not cause a reset". 78 belongs to the IM system, so clicking it should not cause a reset".
78 */ 79 */
79class IMToolButton : public QToolButton 80class IMToolButton : public QToolButton
80{ 81{
81public: 82public:
82 IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent ) 83 IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent )
83 { setWFlags( WStyle_Tool ); } 84 { setWFlags( WStyle_Tool ); }
84}; 85};
85 86
86 87
87InputMethods::InputMethods( QWidget *parent ) : 88InputMethods::InputMethods( QWidget *parent ) :
88 QWidget( parent, "InputMethods", WStyle_Tool | WStyle_Customize ), 89 QWidget( parent, "InputMethods", WStyle_Tool | WStyle_Customize ),
89 mkeyboard(0), imethod(0) 90 mkeyboard(0), imethod(0)
90{ 91{
91 Config cfg( "Launcher" ); 92 Config cfg( "Launcher" );