summaryrefslogtreecommitdiff
path: root/inputmethods/multikey
authorhash <hash>2002-08-19 07:21:51 (UTC)
committer hash <hash>2002-08-19 07:21:51 (UTC)
commit9cc94030d7f6a04b79da8db83e6c609c1580a3d3 (patch) (unidiff)
treeb7c0fbc543d633ec9bd0f9d2ef762ebb92b2da55 /inputmethods/multikey
parent64a00421be85d223072e087d4d3c9ecdad464095 (diff)
downloadopie-9cc94030d7f6a04b79da8db83e6c609c1580a3d3.zip
opie-9cc94030d7f6a04b79da8db83e6c609c1580a3d3.tar.gz
opie-9cc94030d7f6a04b79da8db83e6c609c1580a3d3.tar.bz2
parses dir and also lets you add/remove maps located in other places
Diffstat (limited to 'inputmethods/multikey') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp2
-rw-r--r--inputmethods/multikey/keyboard.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp
index a6e4dad..ac132d3 100644
--- a/inputmethods/multikey/configdlg.cpp
+++ b/inputmethods/multikey/configdlg.cpp
@@ -173,12 +173,14 @@ void ConfigDlg::setMap(int index) {
173 emit setMapToDefault(); 173 emit setMapToDefault();
174 } 174 }
175 else if ((uint)index <= default_maps.count()) { 175 else if ((uint)index <= default_maps.count()) {
176 176
177 remove_button->setDisabled(true); 177 remove_button->setDisabled(true);
178 178
179 emit setMapToFile(keymaps->text(index));
180
179 } else { 181 } else {
180 182
181 remove_button->setEnabled(true); 183 remove_button->setEnabled(true);
182 184
183 emit setMapToFile(keymaps->text(index)); 185 emit setMapToFile(keymaps->text(index));
184 } 186 }
diff --git a/inputmethods/multikey/keyboard.h b/inputmethods/multikey/keyboard.h
index 805f0ed..8c4e666 100644
--- a/inputmethods/multikey/keyboard.h
+++ b/inputmethods/multikey/keyboard.h
@@ -66,13 +66,13 @@ public:
66 int numKeys(const int row); 66 int numKeys(const int row);
67 void setKeysFromFile(const char *filename); 67 void setKeysFromFile(const char *filename);
68 void setKey(const int row, const int qcode, const ushort unicode, 68 void setKey(const int row, const int qcode, const ushort unicode,
69 const int width, QPixmap *pix); 69 const int width, QPixmap *pix);
70 void setPressed(const int row, const int col, const bool pressed); 70 void setPressed(const int row, const int col, const bool pressed);
71 QString lang; 71 QString lang;
72 QString title; 72 QString label;
73 73
74private: 74private:
75 75
76 typedef struct Key { 76 typedef struct Key {
77 int qcode; // are qt key codes just unicode values? 77 int qcode; // are qt key codes just unicode values?
78 ushort unicode; 78 ushort unicode;