summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/keyboard.h
Side-by-side diff
Diffstat (limited to 'inputmethods/multikey/keyboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/keyboard.h8
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:
QPixmap *pix(const int row, const int col);
int numKeys(const int row);
void setKeysFromFile(const char *filename);
void setKey(const int row, const int qcode, const ushort unicode,
const int width, QPixmap *pix);
void setPressed(const int row, const int col, const bool pressed);
+ QString lang;
+ QString title;
private:
typedef struct Key {
int qcode; // are qt key codes just unicode values?
ushort unicode;
@@ -105,12 +107,14 @@ public:
signals:
void key( ushort scancode, ushort unicode, ushort modifiers, bool, bool );
private slots:
void repeat();
void togglePickboard(bool on_off);
+ void setMapToDefault();
+ void setMapToFile(QString file);
private:
int getKey( int &w, int j = -1 );
void clearHighlight();
bool *shift;
@@ -133,14 +137,14 @@ private:
int qkeycode;
int modifiers;
int pressTid;
bool pressed;
- Keys keys;
- QString LANG;
+ Keys *keys;
+
/* for korean input */
ushort schar, mchar, echar;
ushort parseKoreanInput(ushort c);
ushort combineKoreanChars(const ushort s, const ushort m, const ushort e);
ushort constoe(const ushort c);