author | hash <hash> | 2002-08-14 05:39:42 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-14 05:39:42 (UTC) |
commit | 13a1334cca686bf512c4a8f94a648ba969b38d22 (patch) (unidiff) | |
tree | 13e46c6b4157b0348f38d952ddc70f6e0fda619b /inputmethods/multikey/keyboard.h | |
parent | 29ffa9119abaf753b165c5c241b22938eeaef301 (diff) | |
download | opie-13a1334cca686bf512c4a8f94a648ba969b38d22.zip opie-13a1334cca686bf512c4a8f94a648ba969b38d22.tar.gz opie-13a1334cca686bf512c4a8f94a648ba969b38d22.tar.bz2 |
added config dialog. only open/closing pickboard works
Diffstat (limited to 'inputmethods/multikey/keyboard.h') (more/less context) (show whitespace changes)
-rw-r--r-- | inputmethods/multikey/keyboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inputmethods/multikey/keyboard.h b/inputmethods/multikey/keyboard.h index b524195..e61b76c 100644 --- a/inputmethods/multikey/keyboard.h +++ b/inputmethods/multikey/keyboard.h | |||
@@ -12,24 +12,25 @@ | |||
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 "../pickboard/pickboardcfg.h" |
23 | #include "../pickboard/pickboardpicks.h" | 23 | #include "../pickboard/pickboardpicks.h" |
24 | #include "configdlg.h" | ||
24 | 25 | ||
25 | class QTimer; | 26 | class QTimer; |
26 | 27 | ||
27 | class KeyboardConfig : public DictFilterConfig | 28 | class KeyboardConfig : public DictFilterConfig |
28 | { | 29 | { |
29 | public: | 30 | public: |
30 | KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; } | 31 | KeyboardConfig(PickboardPicks* p) : DictFilterConfig(p), backspaces(0) { nrows = 1; } |
31 | virtual void generateText(const QString &s); | 32 | virtual void generateText(const QString &s); |
32 | void decBackspaces() { if (backspaces) backspaces--; } | 33 | void decBackspaces() { if (backspaces) backspaces--; } |
33 | void incBackspaces() { backspaces++; } | 34 | void incBackspaces() { backspaces++; } |
34 | void resetBackspaces() { backspaces = 0; } | 35 | void resetBackspaces() { backspaces = 0; } |
35 | private: | 36 | private: |
@@ -97,24 +98,25 @@ public: | |||
97 | void resizeEvent(QResizeEvent*); | 98 | void resizeEvent(QResizeEvent*); |
98 | void paintEvent(QPaintEvent* e); | 99 | void paintEvent(QPaintEvent* e); |
99 | //void timerEvent(QTimerEvent* e); | 100 | //void timerEvent(QTimerEvent* e); |
100 | void drawKeyboard( QPainter &p, int row = -1, int col = -1); | 101 | void drawKeyboard( QPainter &p, int row = -1, int col = -1); |
101 | 102 | ||
102 | QSize sizeHint() const; | 103 | QSize sizeHint() const; |
103 | 104 | ||
104 | signals: | 105 | signals: |
105 | void key( ushort scancode, ushort unicode, ushort modifiers, bool, bool ); | 106 | void key( ushort scancode, ushort unicode, ushort modifiers, bool, bool ); |
106 | 107 | ||
107 | private slots: | 108 | private slots: |
108 | void repeat(); | 109 | void repeat(); |
110 | void togglePickboard(bool on_off); | ||
109 | 111 | ||
110 | private: | 112 | private: |
111 | int getKey( int &w, int j = -1 ); | 113 | int getKey( int &w, int j = -1 ); |
112 | void clearHighlight(); | 114 | void clearHighlight(); |
113 | 115 | ||
114 | bool *shift; | 116 | bool *shift; |
115 | bool *lock; | 117 | bool *lock; |
116 | bool *ctrl; | 118 | bool *ctrl; |
117 | bool *alt; | 119 | bool *alt; |
118 | uint useLargeKeys:1; | 120 | uint useLargeKeys:1; |
119 | uint usePicks:1; | 121 | uint usePicks:1; |
120 | 122 | ||
@@ -134,15 +136,17 @@ private: | |||
134 | int pressTid; | 136 | int pressTid; |
135 | bool pressed; | 137 | bool pressed; |
136 | 138 | ||
137 | Keys keys; | 139 | Keys keys; |
138 | QString LANG; | 140 | QString LANG; |
139 | /* for korean input */ | 141 | /* for korean input */ |
140 | ushort schar, mchar, echar; | 142 | ushort schar, mchar, echar; |
141 | ushort parseKoreanInput(ushort c); | 143 | ushort parseKoreanInput(ushort c); |
142 | ushort combineKoreanChars(const ushort s, const ushort m, const ushort e); | 144 | ushort combineKoreanChars(const ushort s, const ushort m, const ushort e); |
143 | ushort constoe(const ushort c); | 145 | ushort constoe(const ushort c); |
144 | 146 | ||
145 | QTimer *repeatTimer; | 147 | QTimer *repeatTimer; |
148 | |||
149 | ConfigDlg *configdlg; | ||
146 | }; | 150 | }; |
147 | 151 | ||
148 | 152 | ||