1QWSInputMethod(3qt)                                        QWSInputMethod(3qt)
2
3
4

NAME

6       QWSInputMethod - International input methods for Qt/Embedded
7

SYNOPSIS

9       #include <qwindowsystem_qws.h>
10
11   Public Members
12       QWSInputMethod ()
13       virtual ~QWSInputMethod ()
14       virtual bool filter ( int unicode, int keycode, int modifiers, bool
15           isPress, bool autoRepeat ) = 0
16       virtual void reset ()
17       virtual void setMicroFocus ( int x, int y )
18       virtual void setFont ( const QFont & )
19
20   Protected Members
21       void sendIMEvent ( QWSServer::IMState state, const QString & txt, int
22           cpos, int selLen = 0 )
23

DESCRIPTION

25       The QWSInputMethod class provides international input methods for
26       Qt/Embedded.
27
28       Subclass this class to implement your own input method.
29
30       An input methods consists of a keyboard filter and optionally a
31       graphical interface. The keyboard filter intercepts key events from
32       physical or virtual keyboards by implementing the filter() function.
33
34       Use sendIMEvent() to send composition events. Composition starts with
35       the input method sending an IMStart event, followed by a number of
36       IMCompose events and ending with an IMEnd event or when the virtual
37       reset() function is called.
38
39       The functions setMicroFocus() and setFont() can be reimplemented to
40       receive more information about the state of the focus widget.
41
42       Use QWSServer::setCurrentInputMethod() to install an input method.
43
44       See also Qt/Embedded.
45

MEMBER FUNCTION DOCUMENTATION

QWSInputMethod::QWSInputMethod ()

48       Constructs a new input method
49

QWSInputMethod::~QWSInputMethod () [virtual]

51       Destructs the input method uninstalling it if it is currently
52       installed.
53

bool QWSInputMethod::filter ( int unicode, int keycode, int modifiers, bool

55       isPress, bool autoRepeat ) [pure virtual]
56       This function must be implemented in subclasses to handle key input
57       from physical or virtual keyboards. Returning TRUE will block the event
58       from further processing.
59
60       The Unicode value is given in unicode and the key code in keycode.
61       Keyboard modifiers are OR-ed together in modifiers. If isPress is TRUE
62       this is a key press; otherwise it is a key release. If autoRepeat is
63       TRUE this is an auto-repeated key press.
64
65       All normal key events should be blocked while in compose mode (i.e.,
66       between IMStart and IMEnd).
67

void QWSInputMethod::reset () [virtual]

69       Implemented in subclasses to reset the state of the input method.
70

void QWSInputMethod::sendIMEvent ( QWSServer::IMState state, const QString &

72       txt, int cpos, int selLen = 0 ) [protected]
73       Causes a QIMEvent to be sent to the focus widget. state may be one of
74       QWSServer::IMStart, QWSServer::IMCompose or QWSServer::IMEnd.
75
76       txt is the text being composed (or the finished text if state is
77       IMEnd). cpos is the current cursor position.
78
79       If state is IMCompose, selLen is the number of characters in the
80       composition string (starting at cpos) that should be marked as selected
81       by the input widget receiving the event.
82

void QWSInputMethod::setFont ( const QFont & ) [virtual]

84       Implemented in subclasses to handle font changes in the focus widget.
85
86       This functionality is provided for future expansion; it is not used in
87       this version of Qt/Embedded.
88

void QWSInputMethod::setMicroFocus ( int x, int y ) [virtual]

90       Implemented in subclasses to handle microFocusHint changes in the focus
91       widget. x and y are the global coordinates of the text cursor.
92

SEE ALSO

94       http://doc.trolltech.com/qwsinputmethod.html
95       http://www.trolltech.com/faq/tech.html
96
98       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
99       license file included in the distribution for a complete license
100       statement.
101

AUTHOR

103       Generated automatically from the source code.
104

BUGS

106       If you find a bug in Qt, please report it as described in
107       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
108       help you. Thank you.
109
110       The definitive Qt documentation is provided in HTML format; it is
111       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
112       web browser. This man page is provided as a convenience for those users
113       who prefer man pages, although this format is not officially supported
114       by Trolltech.
115
116       If you find errors in this manual page, please report them to qt-
117       bugs@trolltech.com.  Please include the name of the manual page
118       (qwsinputmethod.3qt) and the Qt version (3.3.8).
119
120
121
122Trolltech AS                    2 February 2007            QWSInputMethod(3qt)
Impressum