Qt API | Qtopia API | Qtopia Documentation | ![]() |
The ExtInputMethodInterface class provides an extended interface for Qtopia input methods. More...
#include <qtopia/inputmethodinterface.h>
There are two kinds of input methods that may be implemented using this interface.
One is a virtual keyboard like InputMethodInterface, but with access to the Qtopia 1.6 input method API. In this case, implement keyboardWidget(). There is no onKeyPress method; use QWSServer::sendKeyEvent() to send key events when a key is pressed.
The other is a composing input methods that modifies input from a separate keyboard (real or virtual). In this case, implement inputMethod() and statusWidget(). Composing input methods are used to implement text input for languages such as Chinese, Japanese and Korean.
There may be dependencies between specific virtual keyboard input methods and composing input methods. This can be specified by implementing compatible().
Input methods may be added to Qtopia via plugins. In order to write an input method plugin you must create an interface to your input method by deriving from the ExtInputMethodInterface class and implementing the pure virtual functions.
See also: Input Method Tutorial
The icon() function returns the icon for the input method. This will be displayed in the taskbar when the input method is selected.
Returns 0 for a virtual keyboard.
For a virtual keyboard, creates keyboard widget (if not already created) and returns the keyboard widget. Returns 0 for a composing input method.
parent is the parent of the widget. f contains the flags to pass to the widget.
This widget will be display just above the task bar when the user needs to input text. You should always return the same widget if this function is called multiple times.
The name() function returns the name of the input method. This will be displayed in the popup list of available input methods.
The resetState() function should return the input method to its default state.
For a composing input method, this function returns a widget to be shown in the taskbar, which
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.7.1
|