Diffstat (limited to 'inputmethods/multikey/keyboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/multikey/keyboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inputmethods/multikey/keyboard.h b/inputmethods/multikey/keyboard.h index dc50e55..b692975 100644 --- a/inputmethods/multikey/keyboard.h +++ b/inputmethods/multikey/keyboard.h | |||
@@ -59,12 +59,13 @@ public: | |||
59 | ushort uni(const int row, const int col); | 59 | ushort uni(const int row, const int col); |
60 | int qcode(const int row, const int col); | 60 | int qcode(const int row, const int col); |
61 | int width(const int row, const int col); | 61 | int width(const int row, const int col); |
62 | bool pressed(const int row, const int col); | 62 | bool pressed(const int row, const int col); |
63 | bool *pressedPtr(const int row, const int col); | 63 | bool *pressedPtr(const int row, const int col); |
64 | ushort shift(const ushort); | 64 | ushort shift(const ushort); |
65 | ushort meta(const ushort); | ||
65 | QPixmap *pix(const int row, const int col); | 66 | QPixmap *pix(const int row, const int col); |
66 | int numKeys(const int row); | 67 | int numKeys(const int row); |
67 | void setKeysFromFile(const char *filename); | 68 | void setKeysFromFile(const char *filename); |
68 | void setKey(const int row, const int qcode, const ushort unicode, | 69 | void setKey(const int row, const int qcode, const ushort unicode, |
69 | const int width, QPixmap *pix); | 70 | const int width, QPixmap *pix); |
70 | void setPressed(const int row, const int col, const bool pressed); | 71 | void setPressed(const int row, const int col, const bool pressed); |
@@ -82,12 +83,13 @@ private: | |||
82 | bool *pressed; | 83 | bool *pressed; |
83 | QPixmap *pix; | 84 | QPixmap *pix; |
84 | }; | 85 | }; |
85 | 86 | ||
86 | QList<Key> keys[6]; | 87 | QList<Key> keys[6]; |
87 | QMap<ushort,ushort> shiftMap; | 88 | QMap<ushort,ushort> shiftMap; |
89 | QMap<ushort,ushort> metaMap; | ||
88 | 90 | ||
89 | }; | 91 | }; |
90 | 92 | ||
91 | class Keyboard : public QFrame | 93 | class Keyboard : public QFrame |
92 | { | 94 | { |
93 | Q_OBJECT | 95 | Q_OBJECT |
@@ -124,12 +126,13 @@ private: | |||
124 | void clearHighlight(); | 126 | void clearHighlight(); |
125 | 127 | ||
126 | bool *shift; | 128 | bool *shift; |
127 | bool *lock; | 129 | bool *lock; |
128 | bool *ctrl; | 130 | bool *ctrl; |
129 | bool *alt; | 131 | bool *alt; |
132 | bool *meta; | ||
130 | uint useLargeKeys:1; | 133 | uint useLargeKeys:1; |
131 | uint usePicks:1; | 134 | uint usePicks:1; |
132 | uint useRepeat:1; | 135 | uint useRepeat:1; |
133 | 136 | ||
134 | int pressedKeyRow; | 137 | int pressedKeyRow; |
135 | int pressedKeyCol; | 138 | int pressedKeyCol; |