Diffstat (limited to 'inputmethods/multikey/keyboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/multikey/keyboard.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/inputmethods/multikey/keyboard.h b/inputmethods/multikey/keyboard.h index e61b76c..c2efe10 100644 --- a/inputmethods/multikey/keyboard.h +++ b/inputmethods/multikey/keyboard.h | |||
@@ -64,12 +64,14 @@ public: | |||
64 | QPixmap *pix(const int row, const int col); | 64 | QPixmap *pix(const int row, const int col); |
65 | int numKeys(const int row); | 65 | int numKeys(const int row); |
66 | void setKeysFromFile(const char *filename); | 66 | void setKeysFromFile(const char *filename); |
67 | void setKey(const int row, const int qcode, const ushort unicode, | 67 | void setKey(const int row, const int qcode, const ushort unicode, |
68 | const int width, QPixmap *pix); | 68 | const int width, QPixmap *pix); |
69 | void setPressed(const int row, const int col, const bool pressed); | 69 | void setPressed(const int row, const int col, const bool pressed); |
70 | QString lang; | ||
71 | QString title; | ||
70 | 72 | ||
71 | private: | 73 | private: |
72 | 74 | ||
73 | typedef struct Key { | 75 | typedef struct Key { |
74 | int qcode; // are qt key codes just unicode values? | 76 | int qcode; // are qt key codes just unicode values? |
75 | ushort unicode; | 77 | ushort unicode; |
@@ -105,12 +107,14 @@ public: | |||
105 | signals: | 107 | signals: |
106 | void key( ushort scancode, ushort unicode, ushort modifiers, bool, bool ); | 108 | void key( ushort scancode, ushort unicode, ushort modifiers, bool, bool ); |
107 | 109 | ||
108 | private slots: | 110 | private slots: |
109 | void repeat(); | 111 | void repeat(); |
110 | void togglePickboard(bool on_off); | 112 | void togglePickboard(bool on_off); |
113 | void setMapToDefault(); | ||
114 | void setMapToFile(QString file); | ||
111 | 115 | ||
112 | private: | 116 | private: |
113 | int getKey( int &w, int j = -1 ); | 117 | int getKey( int &w, int j = -1 ); |
114 | void clearHighlight(); | 118 | void clearHighlight(); |
115 | 119 | ||
116 | bool *shift; | 120 | bool *shift; |
@@ -133,14 +137,14 @@ private: | |||
133 | int qkeycode; | 137 | int qkeycode; |
134 | int modifiers; | 138 | int modifiers; |
135 | 139 | ||
136 | int pressTid; | 140 | int pressTid; |
137 | bool pressed; | 141 | bool pressed; |
138 | 142 | ||
139 | Keys keys; | 143 | Keys *keys; |
140 | QString LANG; | 144 | |
141 | /* for korean input */ | 145 | /* for korean input */ |
142 | ushort schar, mchar, echar; | 146 | ushort schar, mchar, echar; |
143 | ushort parseKoreanInput(ushort c); | 147 | ushort parseKoreanInput(ushort c); |
144 | ushort combineKoreanChars(const ushort s, const ushort m, const ushort e); | 148 | ushort combineKoreanChars(const ushort s, const ushort m, const ushort e); |
145 | ushort constoe(const ushort c); | 149 | ushort constoe(const ushort c); |
146 | 150 | ||