summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-05-14 15:47:06 (UTC)
committer mickeyl <mickeyl>2004-05-14 15:47:06 (UTC)
commit3378aa3bfa5fc0e9e664ae5d3800107c790dfc5a (patch) (unidiff)
tree1d7ce18cc0e543d8c07d08ec3b63734fe73f61a4
parenta9c907c218d106727ad3879a125c77ae7900635f (diff)
downloadopie-3378aa3bfa5fc0e9e664ae5d3800107c790dfc5a.zip
opie-3378aa3bfa5fc0e9e664ae5d3800107c790dfc5a.tar.gz
opie-3378aa3bfa5fc0e9e664ae5d3800107c790dfc5a.tar.bz2
CLEANUP: Don't include header files via relative paths
Note: Remember to rm stamp-headers
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make2
-rw-r--r--inputmethods/dvorak/dvorak.h4
-rw-r--r--inputmethods/keyboard/keyboard.h4
-rw-r--r--inputmethods/multikey/keyboard.h4
4 files changed, 8 insertions, 6 deletions
diff --git a/Rules.make b/Rules.make
index f0e463b..7fa0178 100644
--- a/Rules.make
+++ b/Rules.make
@@ -128,96 +128,98 @@ $(TOPDIR)/.depends.cfgs:
128 128
129$(QTDIR)/stamp-headers : 129$(QTDIR)/stamp-headers :
130 @-rm -f $(QTDIR)/stamp-headers* 130 @-rm -f $(QTDIR)/stamp-headers*
131 ( cd $(QTDIR)/include; \ 131 ( cd $(QTDIR)/include; \
132 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 132 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
133 qcopchannel_qws.h qwindowsystem_qws.h \ 133 qcopchannel_qws.h qwindowsystem_qws.h \
134 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 134 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
135 touch $@ 135 touch $@
136 136
137$(QTDIR)/stamp-headers-x11 : 137$(QTDIR)/stamp-headers-x11 :
138 @-rm -f $(QTDIR)/stamp-headers* 138 @-rm -f $(QTDIR)/stamp-headers*
139 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) 139 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h)
140 touch $@ 140 touch $@
141 141
142$(OPIEDIR)/stamp-headers : 142$(OPIEDIR)/stamp-headers :
143 @-rm -f $(OPIEDIR)/stamp-headers* 143 @-rm -f $(OPIEDIR)/stamp-headers*
144 mkdir -p $(TOPDIR)/include/qpe \ 144 mkdir -p $(TOPDIR)/include/qpe \
145 $(TOPDIR)/include/qtopia \ 145 $(TOPDIR)/include/qtopia \
146 $(TOPDIR)/include/opie \ 146 $(TOPDIR)/include/opie \
147 $(TOPDIR)/include/opie2 \ 147 $(TOPDIR)/include/opie2 \
148 $(TOPDIR)/include/qtopia/private \ 148 $(TOPDIR)/include/qtopia/private \
149 $(TOPDIR)/include/sl 149 $(TOPDIR)/include/sl
150 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 150 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
151 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 151 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
152 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 152 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
153ifeq ($(CONFIG_LIBOPIE),y) 153ifeq ($(CONFIG_LIBOPIE),y)
154 # libopie1 154 # libopie1
155 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 155 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
156 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 156 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
157 ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) 157 ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; )
158endif 158endif
159 # libopie2 159 # libopie2
160 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 160 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
161 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 161 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
162 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 162 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
163 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 163 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
164 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 164 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
165 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 165 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
166 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 166 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
167 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; ) 167 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; )
168 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 168 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
169 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 169 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
170 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 170 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
171 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 171 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
172 # auxilliary libraries 172 # auxilliary libraries
173 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 173 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
174 ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) 174 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
175 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 175 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
176 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
177 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
176 # all 178 # all
177ifeq ($(CONFIG_LIBOPIE),y) 179ifeq ($(CONFIG_LIBOPIE),y)
178 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 180 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
179 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 181 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
180endif 182endif
181 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 183 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
182 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 184 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
183 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 185 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
184 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 186 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
185 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 187 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
186 touch $@ 188 touch $@
187 189
188$(OPIEDIR)/stamp-headers-x11 : 190$(OPIEDIR)/stamp-headers-x11 :
189 @-rm -f $(OPIEDIR)/stamp-headers* 191 @-rm -f $(OPIEDIR)/stamp-headers*
190 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ 192 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \
191 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private 193 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private
192 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 194 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
193 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 195 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
194 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 196 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
195 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 197 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
196 ( cd include/opie && ln -sf ../../libsql/*.h .; ) 198 ( cd include/opie && ln -sf ../../libsql/*.h .; )
197 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 199 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
198 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 200 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
199 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 201 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
200 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 202 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
201 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 203 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
202 touch $@ 204 touch $@
203 205
204$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 206$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
205 @-rm -f $@ 207 @-rm -f $@
206 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 208 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
207 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 209 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
208 @touch $@ 210 @touch $@
209 211
210$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: 212$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake:
211 @$(call descend,$(shell dirname $@),$(shell basename $@)) 213 @$(call descend,$(shell dirname $@),$(shell basename $@))
212 214
213menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 215menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
214 $(TOPDIR)/scripts/kconfig/mconf ./config.in 216 $(TOPDIR)/scripts/kconfig/mconf ./config.in
215 @touch ./.config.stamp 217 @touch ./.config.stamp
216 218
217xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 219xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
218 $(TOPDIR)/scripts/kconfig/qconf ./config.in 220 $(TOPDIR)/scripts/kconfig/qconf ./config.in
219 @touch .config.stamp 221 @touch .config.stamp
220 222
221gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 223gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
222 $(TOPDIR)/scripts/kconfig/gconf ./config.in 224 $(TOPDIR)/scripts/kconfig/gconf ./config.in
223 @touch .config.stamp 225 @touch .config.stamp
diff --git a/inputmethods/dvorak/dvorak.h b/inputmethods/dvorak/dvorak.h
index 216b5e5..758e181 100644
--- a/inputmethods/dvorak/dvorak.h
+++ b/inputmethods/dvorak/dvorak.h
@@ -1,70 +1,70 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of 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#include <qframe.h> 20#include <qframe.h>
21#include "../pickboard/pickboardcfg.h" 21#include <pickboardcfg.h>
22#include "../pickboard/pickboardpicks.h" 22#include <pickboardpicks.h>
23 23
24class QTimer; 24class QTimer;
25 25
26namespace Dvorak 26namespace Dvorak
27{ 27{
28 28
29class KeyboardConfig : public DictFilterConfig 29class KeyboardConfig : public DictFilterConfig
30{ 30{
31public: 31public:
32 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; } 32 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; }
33 virtual void generateText(const QString &s); 33 virtual void generateText(const QString &s);
34 void decBackspaces() { if (backspaces) backspaces--; } 34 void decBackspaces() { if (backspaces) backspaces--; }
35 void incBackspaces() { backspaces++; } 35 void incBackspaces() { backspaces++; }
36 void resetBackspaces() { backspaces = 0; } 36 void resetBackspaces() { backspaces = 0; }
37private: 37private:
38 int backspaces; 38 int backspaces;
39}; 39};
40 40
41 41
42class KeyboardPicks : public PickboardPicks 42class KeyboardPicks : public PickboardPicks
43{ 43{
44 Q_OBJECT 44 Q_OBJECT
45public: 45public:
46 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0) 46 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0)
47 : PickboardPicks(parent, name, f) { } 47 : PickboardPicks(parent, name, f) { }
48 void initialise(); 48 void initialise();
49 virtual QSize sizeHint() const; 49 virtual QSize sizeHint() const;
50 KeyboardConfig *dc; 50 KeyboardConfig *dc;
51}; 51};
52 52
53class Keyboard : public QFrame 53class Keyboard : public QFrame
54{ 54{
55 Q_OBJECT 55 Q_OBJECT
56public: 56public:
57 Keyboard( QWidget* parent=0, const char* name=0, WFlags f=0 ); 57 Keyboard( QWidget* parent=0, const char* name=0, WFlags f=0 );
58 58
59 void resetState(); 59 void resetState();
60 60
61 void mousePressEvent(QMouseEvent*); 61 void mousePressEvent(QMouseEvent*);
62 void mouseReleaseEvent(QMouseEvent*); 62 void mouseReleaseEvent(QMouseEvent*);
63 void resizeEvent(QResizeEvent*); 63 void resizeEvent(QResizeEvent*);
64 void paintEvent(QPaintEvent* e); 64 void paintEvent(QPaintEvent* e);
65 void timerEvent(QTimerEvent* e); 65 void timerEvent(QTimerEvent* e);
66 void drawKeyboard( QPainter &p, int key = -1 ); 66 void drawKeyboard( QPainter &p, int key = -1 );
67 67
68 void setMode(int mode) { useOptiKeys = mode; } 68 void setMode(int mode) { useOptiKeys = mode; }
69 69
70 QSize sizeHint() const; 70 QSize sizeHint() const;
diff --git a/inputmethods/keyboard/keyboard.h b/inputmethods/keyboard/keyboard.h
index cc7f3f5..82588f0 100644
--- a/inputmethods/keyboard/keyboard.h
+++ b/inputmethods/keyboard/keyboard.h
@@ -1,70 +1,70 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of 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#include <qframe.h> 20#include <qframe.h>
21#include "../pickboard/pickboardcfg.h" 21#include <pickboardcfg.h>
22#include "../pickboard/pickboardpicks.h" 22#include <pickboardpicks.h>
23 23
24class QTimer; 24class QTimer;
25 25
26namespace KeyboardInput 26namespace KeyboardInput
27{ 27{
28 28
29class KeyboardConfig : public DictFilterConfig 29class KeyboardConfig : public DictFilterConfig
30{ 30{
31public: 31public:
32 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; } 32 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; }
33 virtual void generateText(const QString &s); 33 virtual void generateText(const QString &s);
34 void decBackspaces() { if (backspaces) backspaces--; } 34 void decBackspaces() { if (backspaces) backspaces--; }
35 void incBackspaces() { backspaces++; } 35 void incBackspaces() { backspaces++; }
36 void resetBackspaces() { backspaces = 0; } 36 void resetBackspaces() { backspaces = 0; }
37private: 37private:
38 int backspaces; 38 int backspaces;
39}; 39};
40 40
41 41
42class KeyboardPicks : public PickboardPicks 42class KeyboardPicks : public PickboardPicks
43{ 43{
44 Q_OBJECT 44 Q_OBJECT
45public: 45public:
46 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0) 46 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0)
47 : PickboardPicks(parent, name, f) { } 47 : PickboardPicks(parent, name, f) { }
48 void initialise(); 48 void initialise();
49 virtual QSize sizeHint() const; 49 virtual QSize sizeHint() const;
50 KeyboardConfig *dc; 50 KeyboardConfig *dc;
51}; 51};
52 52
53class Keyboard : public QFrame 53class Keyboard : public QFrame
54{ 54{
55 Q_OBJECT 55 Q_OBJECT
56public: 56public:
57 Keyboard( QWidget* parent=0, const char* name=0, WFlags f=0 ); 57 Keyboard( QWidget* parent=0, const char* name=0, WFlags f=0 );
58 58
59 void resetState(); 59 void resetState();
60 60
61 void mousePressEvent(QMouseEvent*); 61 void mousePressEvent(QMouseEvent*);
62 void mouseReleaseEvent(QMouseEvent*); 62 void mouseReleaseEvent(QMouseEvent*);
63 void resizeEvent(QResizeEvent*); 63 void resizeEvent(QResizeEvent*);
64 void paintEvent(QPaintEvent* e); 64 void paintEvent(QPaintEvent* e);
65 void timerEvent(QTimerEvent* e); 65 void timerEvent(QTimerEvent* e);
66 void drawKeyboard( QPainter &p, int key = -1 ); 66 void drawKeyboard( QPainter &p, int key = -1 );
67 67
68 void setMode(int mode) { useOptiKeys = mode; } 68 void setMode(int mode) { useOptiKeys = mode; }
69 69
70 QSize sizeHint() const; 70 QSize sizeHint() const;
diff --git a/inputmethods/multikey/keyboard.h b/inputmethods/multikey/keyboard.h
index 0b56988..77bf718 100644
--- a/inputmethods/multikey/keyboard.h
+++ b/inputmethods/multikey/keyboard.h
@@ -1,71 +1,71 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of 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#include <qframe.h> 20#include <qframe.h>
21#include <qmap.h> 21#include <qmap.h>
22#include "../pickboard/pickboardcfg.h" 22#include <pickboardcfg.h>
23#include "../pickboard/pickboardpicks.h" 23#include <pickboardpicks.h>
24#include "configdlg.h" 24#include "configdlg.h"
25 25
26class QTimer; 26class QTimer;
27 27
28namespace MultiKey 28namespace MultiKey
29{ 29{
30 30
31class KeyboardConfig : public DictFilterConfig 31class KeyboardConfig : public DictFilterConfig
32{ 32{
33public: 33public:
34 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; } 34 KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; }
35 virtual void generateText(const QString &s); 35 virtual void generateText(const QString &s);
36 void decBackspaces() { if (backspaces) backspaces--; } 36 void decBackspaces() { if (backspaces) backspaces--; }
37 void incBackspaces() { backspaces++; } 37 void incBackspaces() { backspaces++; }
38 void resetBackspaces() { backspaces = 0; } 38 void resetBackspaces() { backspaces = 0; }
39private: 39private:
40 int backspaces; 40 int backspaces;
41}; 41};
42 42
43 43
44class KeyboardPicks : public PickboardPicks 44class KeyboardPicks : public PickboardPicks
45{ 45{
46 Q_OBJECT 46 Q_OBJECT
47public: 47public:
48 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0) 48 KeyboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0)
49 : PickboardPicks(parent, name, f) { } 49 : PickboardPicks(parent, name, f) { }
50 void initialise(); 50 void initialise();
51 virtual QSize sizeHint() const; 51 virtual QSize sizeHint() const;
52 KeyboardConfig *dc; 52 KeyboardConfig *dc;
53}; 53};
54 54
55 55
56class Keys { 56class Keys {
57public: 57public:
58 58
59 Keys(); 59 Keys();
60 Keys(const char * filename); 60 Keys(const char * filename);
61 ~Keys(); 61 ~Keys();
62 int width(const int row, const int col); 62 int width(const int row, const int col);
63 int rows(); 63 int rows();
64 ushort uni(const int row, const int col); 64 ushort uni(const int row, const int col);
65 int qcode(const int row, const int col); 65 int qcode(const int row, const int col);
66 bool pressed(const int row, const int col); 66 bool pressed(const int row, const int col);
67 bool *pressedPtr(const int row, const int col); 67 bool *pressedPtr(const int row, const int col);
68 ushort shift(const ushort); 68 ushort shift(const ushort);
69 ushort meta(const ushort); 69 ushort meta(const ushort);
70 ushort circumflex(const ushort); 70 ushort circumflex(const ushort);
71 ushort diaeresis(const ushort); 71 ushort diaeresis(const ushort);