Qt API | Qtopia API | Qtopia Documentation | ![]() |
International input methods for Qt/Embedded. More...
#include <qwindowsystem_qws.h>
Inherits QObject.
Subclass this to implement your own input method
An input methods consists of a keyboard filter and optionally a graphical interface. The keyboard filter intercepts key events from physical or virtual keyboards by implementing the filter() function.
Use sendIMEvent() to send composition events. Composition starts with the input method sending the first IMCompose event. This can be followed by a number of IMCompose events and ending with an IMEnd event.
The function setMicroFocus() is called when the focus widget changes its cursor position.
The functions font() and inputRect() provide more information about the state of the focus widget.
Use QWSServer::setCurrentInputMethod() to install an input method.
Must be implemented in subclasses to handle key input from physical or virtual keyboards. Returning TRUE will block the event from further processing.
All normal key events should be blocked while in compose mode (between IMCompose and IMEnd).
Implemented in subclasses to handle mouse presses/releases within the on-the-spot text. The parameter x is the offset within the string that was sent with the IMCompose event. state is either QWSServer::MousePress or QWSServer::MouseRelease
Causes a QIMEvent to be sent to the focus widget. state may be either QWSServer::IMCompose or QWSServer::IMEnd.
txt is the text being composed (or the finished text if state is IMEnd). cpos is the current cursor position.
If state is IMCompose, selLen is the number of characters in the composition string ( starting at cpos ) that should be marked as selected by the input widget receiving the event.
Implemented in subclasses to handle microFocusHint changes in the focus widget. x and y are the global coordinates of the cursor position.
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.7.0
|