author | hash <hash> | 2002-08-18 22:26:40 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-18 22:26:40 (UTC) |
commit | bec883a38720a1e1a975e5474a3085d149cf935c (patch) (unidiff) | |
tree | 9facd615fd042be9d2011cb45f7400c2a8f32a2a | |
parent | 2adfc7ba3b5fcdd11b6e495eb446c82405078146 (diff) | |
download | opie-bec883a38720a1e1a975e5474a3085d149cf935c.zip opie-bec883a38720a1e1a975e5474a3085d149cf935c.tar.gz opie-bec883a38720a1e1a975e5474a3085d149cf935c.tar.bz2 |
added share/multikey/* to the control file
-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 16 | ||||
-rw-r--r-- | inputmethods/multikey/opie-multikey.control | 2 |
2 files changed, 7 insertions, 11 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index c4f7413..157714c 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -18,12 +18,14 @@ | |||
18 | #include <qlabel.h> | 18 | #include <qlabel.h> |
19 | #include <qcheckbox.h> | 19 | #include <qcheckbox.h> |
20 | #include <qsizepolicy.h> | 20 | #include <qsizepolicy.h> |
21 | #include <qpushbutton.h> | 21 | #include <qpushbutton.h> |
22 | #include <qlistbox.h> | 22 | #include <qlistbox.h> |
23 | #include <qstringlist.h> | 23 | #include <qstringlist.h> |
24 | #include <opie/ofiledialog.h> | ||
25 | #include <iostream.h> | ||
24 | #include "configdlg.h" | 26 | #include "configdlg.h" |
25 | #include "keyboard.h" | 27 | #include "keyboard.h" |
26 | 28 | ||
27 | ConfigDlg::ConfigDlg () : QTabWidget () | 29 | ConfigDlg::ConfigDlg () : QTabWidget () |
28 | { | 30 | { |
29 | setCaption( tr("Multikey Configuration") ); | 31 | setCaption( tr("Multikey Configuration") ); |
@@ -55,29 +57,20 @@ ConfigDlg::ConfigDlg () : QTabWidget () | |||
55 | 57 | ||
56 | // have to "+1" because the "current language" listItem... remember? | 58 | // have to "+1" because the "current language" listItem... remember? |
57 | keymaps->setSelected(config.readNumEntry("current", 0) + 1, true); | 59 | keymaps->setSelected(config.readNumEntry("current", 0) + 1, true); |
58 | 60 | ||
59 | connect(keymaps, SIGNAL(highlighted(int)), SLOT(setMap(int))); | 61 | connect(keymaps, SIGNAL(highlighted(int)), SLOT(setMap(int))); |
60 | 62 | ||
61 | /* | ||
62 | QString ko(QPEApplication::qpeDir() + "/share/multikey/ko.keymap"); | ||
63 | keymaps->insertItem(ko); | ||
64 | |||
65 | QString en(QPEApplication::qpeDir() + "/share/multikey/en.keymap"); | ||
66 | keymaps->insertItem(en); | ||
67 | |||
68 | QString de(QPEApplication::qpeDir() + "/share/multikey/de.keymap"); | ||
69 | keymaps->insertItem(de); | ||
70 | */ | ||
71 | 63 | ||
72 | QGrid *add_remove_grid = new QGrid(2, map_group); | 64 | QGrid *add_remove_grid = new QGrid(2, map_group); |
73 | add_remove_grid->setMargin(3); | 65 | add_remove_grid->setMargin(3); |
74 | add_remove_grid->setSpacing(3); | 66 | add_remove_grid->setSpacing(3); |
75 | 67 | ||
76 | add_button = new QPushButton(tr("Add"), add_remove_grid); | 68 | add_button = new QPushButton(tr("Add"), add_remove_grid); |
77 | add_button->setFlat((bool)1); | 69 | add_button->setFlat((bool)1); |
70 | connect(add_button, SIGNAL(clicked()), SLOT(addMap())); | ||
78 | 71 | ||
79 | remove_button = new QPushButton(tr("Remove"), add_remove_grid); | 72 | remove_button = new QPushButton(tr("Remove"), add_remove_grid); |
80 | remove_button->setFlat((bool)1); | 73 | remove_button->setFlat((bool)1); |
81 | 74 | ||
82 | pick_button = new QCheckBox(tr("Pickboard"), gen_box); | 75 | pick_button = new QCheckBox(tr("Pickboard"), gen_box); |
83 | 76 | ||
@@ -156,11 +149,14 @@ void ConfigDlg::setMap(int index) { | |||
156 | emit setMapToFile(index - 1); | 149 | emit setMapToFile(index - 1); |
157 | } | 150 | } |
158 | } | 151 | } |
159 | 152 | ||
160 | void ConfigDlg::addMap() { | 153 | void ConfigDlg::addMap() { |
161 | 154 | ||
155 | QString map = OFileDialog::getOpenFileName(2, QPEApplication::qpeDir() + "/share/multikey"); | ||
156 | cout << "added file " << map << "!\n"; | ||
157 | |||
162 | } | 158 | } |
163 | 159 | ||
164 | void ConfigDlg::removeMap(int index) { | 160 | void ConfigDlg::removeMap(int index) { |
165 | 161 | ||
166 | } | 162 | } |
diff --git a/inputmethods/multikey/opie-multikey.control b/inputmethods/multikey/opie-multikey.control index 42df4cd..ce39f36 100644 --- a/inputmethods/multikey/opie-multikey.control +++ b/inputmethods/multikey/opie-multikey.control | |||
@@ -1,7 +1,7 @@ | |||
1 | Files: plugins/inputmethods/libqmultikey.so* | 1 | Files: plugins/inputmethods/libqmultikey.so* share/multikey/* |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/inputmethods | 3 | Section: opie/inputmethods |
4 | Maintainer: Jake Richardson (jake@asdfnews.org) | 4 | Maintainer: Jake Richardson (jake@asdfnews.org) |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |