author | zecke <zecke> | 2004-03-14 19:35:00 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 19:35:00 (UTC) |
commit | 05c8d999941989a97a581fb5822437034ec10fd7 (patch) (unidiff) | |
tree | 28ba32dcf84bf8297550bf0f79fc504855caf341 /inputmethods/multikey | |
parent | cbb87c7c24dfe46462602c73b10bd76ce81a3baf (diff) | |
download | opie-05c8d999941989a97a581fb5822437034ec10fd7.zip opie-05c8d999941989a97a581fb5822437034ec10fd7.tar.gz opie-05c8d999941989a97a581fb5822437034ec10fd7.tar.bz2 |
Input Methods -> ODP
-rw-r--r-- | inputmethods/multikey/config.in | 2 | ||||
-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 14 | ||||
-rw-r--r-- | inputmethods/multikey/multikey.pro | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/inputmethods/multikey/config.in b/inputmethods/multikey/config.in index b34bd3d..ad7d1e8 100644 --- a/inputmethods/multikey/config.in +++ b/inputmethods/multikey/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config MULTIKEY | 1 | config MULTIKEY |
2 | boolean "opie-multikey (OnScreen keyboard for multiple languages)" | 2 | boolean "opie-multikey (OnScreen keyboard for multiple languages)" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && PICKBOARD | 4 | depends ( LIBQPE || LIBQPE-X11 ) && PICKBOARD && LIBQTAUX2 && LIBOPIEUI2 |
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 3e39415..1fba9bc 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -23,19 +23,21 @@ | |||
23 | #include <qcheckbox.h> | 23 | #include <qcheckbox.h> |
24 | #include <qsizepolicy.h> | 24 | #include <qsizepolicy.h> |
25 | #include <qpushbutton.h> | 25 | #include <qpushbutton.h> |
26 | #include <qlistbox.h> | 26 | #include <qlistbox.h> |
27 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
28 | #include <qtoolbutton.h> | 28 | #include <qtoolbutton.h> |
29 | #include <opie/ofiledialog.h> | 29 | #include <opie2/ofiledialog.h> |
30 | #include <opie/colordialog.h> | 30 | #include <opie2/qcolordialog.h> |
31 | #include <qdir.h> | 31 | #include <qdir.h> |
32 | #include <qfileinfo.h> | 32 | #include <qfileinfo.h> |
33 | #include "configdlg.h" | 33 | #include "configdlg.h" |
34 | #include "keyboard.h" | 34 | #include "keyboard.h" |
35 | 35 | ||
36 | using namespace Opie; | ||
37 | using namespace Opie::Ui; | ||
36 | // ConfigDlg::ConfigDlg() {{{1 | 38 | // ConfigDlg::ConfigDlg() {{{1 |
37 | ConfigDlg::ConfigDlg () : QDialog () | 39 | ConfigDlg::ConfigDlg () : QDialog () |
38 | { | 40 | { |
39 | setCaption( tr("Multikey Configuration") ); | 41 | setCaption( tr("Multikey Configuration") ); |
40 | Config config ("multikey"); | 42 | Config config ("multikey"); |
41 | config.setGroup("keymaps"); | 43 | config.setGroup("keymaps"); |
@@ -432,13 +434,13 @@ void ConfigDlg::keyColorClicked() { | |||
432 | 434 | ||
433 | Config config ("multikey"); | 435 | Config config ("multikey"); |
434 | config.setGroup ("colors"); | 436 | config.setGroup ("colors"); |
435 | 437 | ||
436 | QStringList color = config.readListEntry("keycolor", QChar(',')); | 438 | QStringList color = config.readListEntry("keycolor", QChar(',')); |
437 | 439 | ||
438 | QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 440 | QColor newcolor = QColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); |
439 | 441 | ||
440 | color[0].setNum(newcolor.red()); | 442 | color[0].setNum(newcolor.red()); |
441 | color[1].setNum(newcolor.green()); | 443 | color[1].setNum(newcolor.green()); |
442 | color[2].setNum(newcolor.blue()); | 444 | color[2].setNum(newcolor.blue()); |
443 | 445 | ||
444 | config.writeEntry("keycolor", color, QChar(',')); | 446 | config.writeEntry("keycolor", color, QChar(',')); |
@@ -451,13 +453,13 @@ void ConfigDlg::keyColorPressedClicked() { | |||
451 | 453 | ||
452 | Config config ("multikey"); | 454 | Config config ("multikey"); |
453 | config.setGroup ("colors"); | 455 | config.setGroup ("colors"); |
454 | 456 | ||
455 | QStringList color = config.readListEntry("keycolor_pressed", QChar(',')); | 457 | QStringList color = config.readListEntry("keycolor_pressed", QChar(',')); |
456 | 458 | ||
457 | QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 459 | QColor newcolor = QColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); |
458 | 460 | ||
459 | color[0].setNum(newcolor.red()); | 461 | color[0].setNum(newcolor.red()); |
460 | color[1].setNum(newcolor.green()); | 462 | color[1].setNum(newcolor.green()); |
461 | color[2].setNum(newcolor.blue()); | 463 | color[2].setNum(newcolor.blue()); |
462 | 464 | ||
463 | config.writeEntry("keycolor_pressed", color, QChar(',')); | 465 | config.writeEntry("keycolor_pressed", color, QChar(',')); |
@@ -470,13 +472,13 @@ void ConfigDlg::keyColorLinesClicked() { | |||
470 | 472 | ||
471 | Config config ("multikey"); | 473 | Config config ("multikey"); |
472 | config.setGroup ("colors"); | 474 | config.setGroup ("colors"); |
473 | 475 | ||
474 | QStringList color = config.readListEntry("keycolor_lines", QChar(',')); | 476 | QStringList color = config.readListEntry("keycolor_lines", QChar(',')); |
475 | 477 | ||
476 | QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 478 | QColor newcolor = QColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); |
477 | 479 | ||
478 | color[0].setNum(newcolor.red()); | 480 | color[0].setNum(newcolor.red()); |
479 | color[1].setNum(newcolor.green()); | 481 | color[1].setNum(newcolor.green()); |
480 | color[2].setNum(newcolor.blue()); | 482 | color[2].setNum(newcolor.blue()); |
481 | 483 | ||
482 | config.writeEntry("keycolor_lines", color, QChar(',')); | 484 | config.writeEntry("keycolor_lines", color, QChar(',')); |
@@ -489,13 +491,13 @@ void ConfigDlg::textColorClicked() { | |||
489 | 491 | ||
490 | Config config ("multikey"); | 492 | Config config ("multikey"); |
491 | config.setGroup ("colors"); | 493 | config.setGroup ("colors"); |
492 | 494 | ||
493 | QStringList color = config.readListEntry("textcolor", QChar(',')); | 495 | QStringList color = config.readListEntry("textcolor", QChar(',')); |
494 | 496 | ||
495 | QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 497 | QColor newcolor = QColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); |
496 | 498 | ||
497 | color[0].setNum(newcolor.red()); | 499 | color[0].setNum(newcolor.red()); |
498 | color[1].setNum(newcolor.green()); | 500 | color[1].setNum(newcolor.green()); |
499 | color[2].setNum(newcolor.blue()); | 501 | color[2].setNum(newcolor.blue()); |
500 | 502 | ||
501 | config.writeEntry("textcolor", color, QChar(',')); | 503 | config.writeEntry("textcolor", color, QChar(',')); |
diff --git a/inputmethods/multikey/multikey.pro b/inputmethods/multikey/multikey.pro index 0901006..3a7de06 100644 --- a/inputmethods/multikey/multikey.pro +++ b/inputmethods/multikey/multikey.pro | |||
@@ -7,12 +7,12 @@ SOURCES = keyboard.cpp \ | |||
7 | configdlg.cpp \ | 7 | configdlg.cpp \ |
8 | keyboardimpl.cpp | 8 | keyboardimpl.cpp |
9 | TARGET = qmultikey | 9 | TARGET = qmultikey |
10 | DESTDIR = $(OPIEDIR)/plugins/inputmethods | 10 | DESTDIR = $(OPIEDIR)/plugins/inputmethods |
11 | INCLUDEPATH += $(OPIEDIR)/include | 11 | INCLUDEPATH += $(OPIEDIR)/include |
12 | DEPENDPATH += ../$(OPIEDIR)/include ../../launcher | 12 | DEPENDPATH += ../$(OPIEDIR)/include ../../launcher |
13 | LIBS += -lqpe -L$(OPIEDIR)/plugins/inputmethods -lqpickboard | 13 | LIBS += -lqpe -L$(OPIEDIR)/plugins/inputmethods -lqpickboard -lqtaux2 -lopieui2 |
14 | QMAKE_LFLAGS+= -Wl,-rpath,/opt/QtPalmtop/plugins/inputmethods | 14 | QMAKE_LFLAGS+= -Wl,-rpath,/opt/QtPalmtop/plugins/inputmethods |
15 | VERSION = 1.0.0 | 15 | VERSION = 1.0.0 |
16 | 16 | ||
17 | include ( $(OPIEDIR)/include.pro ) | 17 | include ( $(OPIEDIR)/include.pro ) |
18 | target.path = $$prefix/plugins/inputmethods | 18 | target.path = $$prefix/plugins/inputmethods |