--- qtopia-free-1.5.0-k1/inputmethods/handwriting/handwritingimpl.cpp.org Mon Feb 11 14:29:37 2002 +++ qtopia-free-1.5.0-k1/inputmethods/handwriting/handwritingimpl.cpp Fri Oct 11 21:01:51 2002 @@ -83,7 +83,7 @@ QString HandwritingImpl::name() { - return qApp->translate( "InputMethods", "Handwriting" ); + return qApp->translate( "InputMethods", "Graffiti" ); } void HandwritingImpl::onKeyPress( QObject *receiver, const char *slot ) --- qtopia-free-1.5.0-k1/inputmethods/handwriting/qimpeninput.cpp.org Fri Oct 11 22:07:57 2002 +++ qtopia-free-1.5.0-k1/inputmethods/handwriting/qimpeninput.cpp Fri Oct 11 22:08:00 2002 @@ -61,7 +61,7 @@ " .. ", " "}; - +#if 0 /* XPM */ static char * bs_xpm[] = { "12 12 5 1", @@ -82,6 +82,28 @@ " . ", " ", " "}; +#endif + +/* XPM */ +static char * knj_xpm[] = { +"12 12 5 1", +" c None", +". c #333333", +"+ c #000000", +"@ c #FFFFFF", +"# c #666666", +"+ + + ", +" ++++++++++ ", +" + + ", +" +++++++ ", +"+ + + + ", +" + +++++++ ", +" + ", +" ++++++++ ", +" + + ", +".+ +++++++ ", +"+. + +. ", +"+ +++ .++ "}; /* XPM */ @@ -170,11 +192,11 @@ QPushButton *b = new QPushButton( this ); b->setFocusPolicy( NoFocus ); - b->setPixmap( QPixmap( (const char **)bs_xpm ) ); + b->setPixmap( QPixmap( (const char **)knj_xpm ) ); b->setFixedHeight(pw->sizeHint().height()-3*bh); // left-over space goes here b->setAutoRepeat( TRUE ); gl->addWidget( b, 1, 1 ); - connect( b, SIGNAL(clicked()), SLOT(backspace())); + connect( b, SIGNAL(clicked()), SLOT(toggleKanjiMode())); b = new QPushButton( this ); b->setFocusPolicy( NoFocus ); @@ -500,6 +522,12 @@ { keypress( Qt::Key_Backspace << 16 ); matcher->backspace(); +} + +void QIMPenInput::toggleKanjiMode() +{ + keypress( Qt::Key_F25 << 16 ); + matcher->resetState(); } void QIMPenInput::enter() --- qtopia-free-1.5.0-k1/inputmethods/handwriting/qimpeninput.h.org Mon Feb 11 14:29:37 2002 +++ qtopia-free-1.5.0-k1/inputmethods/handwriting/qimpeninput.h Fri Oct 11 21:05:55 2002 @@ -62,6 +62,7 @@ void help(); void setup(); void backspace(); + void toggleKanjiMode(); void enter(); private: