summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/keyboard.cpp
Unidiff
Diffstat (limited to 'inputmethods/multikey/keyboard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/keyboard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp
index 3f6f73b..c3ee8f3 100644
--- a/inputmethods/multikey/keyboard.cpp
+++ b/inputmethods/multikey/keyboard.cpp
@@ -25,25 +25,24 @@
25#include <qpe/qcopenvelope_qws.h> 25#include <qpe/qcopenvelope_qws.h>
26 26
27#include <qwindowsystem_qws.h> 27#include <qwindowsystem_qws.h>
28#include <qpainter.h> 28#include <qpainter.h>
29#include <qfontmetrics.h> 29#include <qfontmetrics.h>
30#include <qtimer.h> 30#include <qtimer.h>
31#include <qpe/qpeapplication.h> 31#include <qpe/qpeapplication.h>
32#include <qpe/config.h> 32#include <qpe/config.h>
33#include <ctype.h> 33#include <ctype.h>
34#include <qfile.h> 34#include <qfile.h>
35#include <qtextstream.h> 35#include <qtextstream.h>
36#include <qstringlist.h> 36#include <qstringlist.h>
37#include <iostream.h>
38 37
39#include <sys/utsname.h> 38#include <sys/utsname.h>
40 39
41 40
42/* Keyboard::Keyboard {{{1 */ 41/* Keyboard::Keyboard {{{1 */
43Keyboard::Keyboard(QWidget* parent, const char* _name, WFlags f) : 42Keyboard::Keyboard(QWidget* parent, const char* _name, WFlags f) :
44 QFrame(parent, _name, f), shift(0), lock(0), ctrl(0), alt(0), meta(0), 43 QFrame(parent, _name, f), shift(0), lock(0), ctrl(0), alt(0), meta(0),
45 useLargeKeys(TRUE), usePicks(0), useRepeat(0), pressedKeyRow(-1), pressedKeyCol(-1), 44 useLargeKeys(TRUE), usePicks(0), useRepeat(0), pressedKeyRow(-1), pressedKeyCol(-1),
46 unicode(-1), qkeycode(0), modifiers(0), schar(0), mchar(0), echar(0), 45 unicode(-1), qkeycode(0), modifiers(0), schar(0), mchar(0), echar(0),
47 configdlg(0) 46 configdlg(0)
48 47
49{ 48{
@@ -593,25 +592,25 @@ void Keyboard::togglePickboard(bool on_off)
593 592
594 } 593 }
595 /* 594 /*
596 * this closes && opens the input method 595 * this closes && opens the input method
597 */ 596 */
598 QCopChannel::send ("QPE/TaskBar", "hideInputMethod()"); 597 QCopChannel::send ("QPE/TaskBar", "hideInputMethod()");
599 QCopChannel::send ("QPE/TaskBar", "showInputMethod()"); 598 QCopChannel::send ("QPE/TaskBar", "showInputMethod()");
600} 599}
601 600
602void Keyboard::toggleRepeat(bool on) { 601void Keyboard::toggleRepeat(bool on) {
603 602
604 useRepeat = on; 603 useRepeat = on;
605 cout << "setting useRepeat to: " << useRepeat << "\n"; 604 //cout << "setting useRepeat to: " << useRepeat << "\n";
606} 605}
607 606
608/* Keyboard::setMapTo ... {{{1 */ 607/* Keyboard::setMapTo ... {{{1 */
609void Keyboard::setMapToDefault() { 608void Keyboard::setMapToDefault() {
610 609
611 610
612 /* load current locale language map */ 611 /* load current locale language map */
613 Config *config = new Config("locale"); 612 Config *config = new Config("locale");
614 config->setGroup( "Language" ); 613 config->setGroup( "Language" );
615 QString l = config->readEntry( "Language" , "en" ); 614 QString l = config->readEntry( "Language" , "en" );
616 delete config; 615 delete config;
617 616