Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2080

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QInputContext" doc="/**
&lt;p&gt;The &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; class abstracts the input method dependent data and composing state.&lt;/p&gt;
&lt;p&gt;An input method is responsible to input complex text that cannot be inputted via simple keymap. It converts a sequence of input events (typically key events) into a text string through the input method specific converting process. The class of the processes are widely ranging from simple finite state machine to complex text translator that pools a whole paragraph of a text with text editing capability to perform grammar and semantic analysis.&lt;/p&gt;
&lt;p&gt;To abstract such different input method specific intermediate information, Qt offers the &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; as base class. The concept is well known as 'input context' in the input method domain. an input context is created for a text widget in response to a demand. It is ensured that an input context is prepared for an input method before input to a text widget.&lt;/p&gt;
&lt;p&gt;Multiple input contexts that is belonging to a single input method may concurrently coexist. Suppose multi-window text editor. Each text widget of window A and B holds different &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; instance which contains different state information such as partially composed text.&lt;/p&gt;
&lt;a name=&quot;groups-of-functions&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Groups of Functions&lt;/h3&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Context&lt;/th&gt;&lt;th&gt;Functions&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Receiving information&lt;/td&gt;&lt;td&gt;x11FilterEvent(), &lt;a href=&quot;QInputContext.html#filterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;filterEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QInputContext.html#mouseHandler(int, com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseHandler&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Sending back composed text&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QInputContext.html#sendEvent(com.trolltech.qt.gui.QInputMethodEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;State change notification&lt;/td&gt;&lt;td&gt;setFocusWidget(), &lt;a href=&quot;QInputContext.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Context information&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QInputContext.html#identifierName()&quot;&gt;&lt;tt&gt;identifierName&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QInputContext.html#language()&quot;&gt;&lt;tt&gt;language&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QInputContext.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QInputContext.html#isComposing()&quot;&gt;&lt;tt&gt;isComposing&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;tt&gt;QInputContextPlugin&lt;/tt&gt;
@see &lt;a href=&quot;QInputContextFactory.html&quot;&gt;&lt;tt&gt;QInputContextFactory&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::setInputContext&lt;/tt&gt; */">
    <method name="public QInputContext(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an input context with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QInputContext()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.gui.QWidget focusWidget()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;

@see &lt;tt&gt;setFocusWidget&lt;/tt&gt;
@see &lt;tt&gt;holderWidget&lt;/tt&gt; */"/>
    <method name="public final void sendEvent(com.trolltech.qt.gui.QInputMethodEvent event)" doc="/**
&lt;p&gt;Sends an input method event specified by &lt;tt&gt;event&lt;/tt&gt; to the current focus widget. Implementations of &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; should call this method to send the generated input method events and not QApplication::sendEvent(), as the events might have to get dispatched to a different application on some platforms.&lt;/p&gt;
&lt;p&gt;Some complex input methods route the handling to several child contexts (e.g&amp;#x2e; to enable language switching). To account for this, &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; will check if the parent object is a &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt;. If yes, it will call the parents &lt;a href=&quot;QInputContext.html#sendEvent(com.trolltech.qt.gui.QInputMethodEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt; implementation instead of sending the event directly.&lt;/p&gt;

@see &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextFormat standardFormat(com.trolltech.qt.gui.QInputContext.StandardFormat s)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QTextFormat.html&quot;&gt;&lt;tt&gt;QTextFormat&lt;/tt&gt;&lt;/a&gt; object that specifies the format for component &lt;tt&gt;s&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public java.util.List&lt;com.trolltech.qt.gui.QAction&gt; actions()" doc="/**
&lt;p&gt;This is a preliminary interface for Qt 4.&lt;/p&gt;
 */"/>
    <method name="public boolean filterEvent(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function can be reimplemented in a subclass to filter input events.&lt;/p&gt;
&lt;p&gt;Return true if the &lt;tt&gt;event&lt;/tt&gt; has been consumed. Otherwise, the unfiltered &lt;tt&gt;event&lt;/tt&gt; will be forwarded to widgets as ordinary way. Although the input events have accept() and ignore() methods, leave it untouched.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;event&lt;/tt&gt; is currently restricted to &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;. But some input method related events such as &lt;a href=&quot;QWheelEvent.html&quot;&gt;&lt;tt&gt;QWheelEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTabletEvent.html&quot;&gt;&lt;tt&gt;QTabletEvent&lt;/tt&gt;&lt;/a&gt; may be added in future.&lt;/p&gt;
&lt;p&gt;The filtering opportunity is always given to the input context as soon as possible. It has to be taken place before any other key event consumers such as eventfilters and accelerators because some input methods require quite various key combination and sequences. It often conflicts with accelerators and so on, so we must give the input context the filtering opportunity first to ensure all input methods work properly regardless of application design.&lt;/p&gt;
&lt;p&gt;Ordinary input methods require discrete key events to work properly, so Qt's key compression is always disabled for any input contexts.&lt;/p&gt;

@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;x11FilterEvent&lt;/tt&gt; */"/>
    <method name="public com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the font of the current input widget&lt;/p&gt;
 */"/>
    <method name="public abstract java.lang.String identifierName()" doc="/**
&lt;p&gt;This function must be implemented in any subclasses to return the identifier name of the input method.&lt;/p&gt;
&lt;p&gt;Return value is the name to identify and specify input methods for the input method switching mechanism and so on. The name has to be consistent with QInputContextPlugin::keys(). The name has to consist of ASCII characters only.&lt;/p&gt;
&lt;p&gt;There are two different names with different responsibility in the input method domain. This function returns one of them. Another name is called 'display name' that stands for the name for endusers appeared in a menu and so on.&lt;/p&gt;

@see &lt;tt&gt;QInputContextPlugin::keys&lt;/tt&gt;
@see &lt;tt&gt;QInputContextPlugin::displayName&lt;/tt&gt; */"/>
    <method name="public abstract boolean isComposing()" doc="/**
&lt;p&gt;This function indicates whether InputMethodStart event had been sent to the current focus widget. It is ensured that an input context can send InputMethodCompose or InputMethodEnd event safely if this function returned true.&lt;/p&gt;
&lt;p&gt;The state is automatically being tracked through &lt;a href=&quot;QInputContext.html#sendEvent(com.trolltech.qt.gui.QInputMethodEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QInputContext.html#sendEvent(com.trolltech.qt.gui.QInputMethodEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public abstract java.lang.String language()" doc="/**
&lt;p&gt;This function must be implemented in any subclasses to return a language code (e.g&amp;#x2e; &amp;quot;zh_CN&amp;quot;, &amp;quot;zh_TW&amp;quot;, &amp;quot;zh_HK&amp;quot;, &amp;quot;ja&amp;quot;, &amp;quot;ko&amp;quot;, ..&amp;#x2e;) of the input context. If the input context can handle multiple languages, return the currently used one. The name has to be consistent with QInputContextPlugin::language().&lt;/p&gt;
&lt;p&gt;This information will be used by language tagging feature in &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt;. It is required to distinguish unified han characters correctly. It enables proper font and character code handling. Suppose CJK-awared multilingual web browser (that automatically modifies fonts in CJK-mixed text) and XML editor (that automatically inserts lang attr).&lt;/p&gt;
 */"/>
    <method name="public void mouseHandler(int x, com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function can be reimplemented in a subclass to handle mouse press, release, double-click, and move events within the preedit text. You can use the function to implement mouse-oriented user interface such as text selection or popup menu for candidate selection.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;x&lt;/tt&gt; parameter is the offset within the string that was sent with the InputMethodCompose event. The alteration boundary of &lt;tt&gt;x&lt;/tt&gt; is ensured as character boundary of preedit string accurately.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;event&lt;/tt&gt; parameter is the event that was sent to the editor widget. The event type is QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick or QEvent::MouseButtonMove. The event's button and state indicate the kind of operation that was performed.&lt;/p&gt;
 */"/>
    <method name="public abstract void reset()" doc="/**
&lt;p&gt;This function can be reimplemented in a subclass to reset the state of the input method.&lt;/p&gt;
&lt;p&gt;This function is called by several widgets to reset input state. For example, a text widget call this function before inserting a text to make widget ready to accept a text.&lt;/p&gt;
&lt;p&gt;Default implementation is sufficient for simple input method. You can override this function to reset external input method engines in complex input method. In the case, call QInputContext::reset() to ensure proper termination of inputting.&lt;/p&gt;
&lt;p&gt;You must not send any &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt; except empty InputMethodEnd event using QInputContext::reset() at reimplemented &lt;a href=&quot;QInputContext.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;. It will break input state consistency.&lt;/p&gt;
 */"/>
    <method name="public void update()" doc="/**
&lt;p&gt;This virtual function is called when a state in the focus widget has changed. &lt;a href=&quot;QInputContext.html#QInputContext(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; can then use QWidget::inputMethodQuery() to query the new state of the widget.&lt;/p&gt;
 */"/>
    <method name="public void widgetDestroyed(com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;This virtual function is called when the specified &lt;tt&gt;w&lt;/tt&gt; is destroyed. The &lt;tt&gt;w&lt;/tt&gt; is a widget on which this input context is installed.&lt;/p&gt;
 */"/>
    <enum name="StandardFormat">
        <enum-value name="PreeditFormat" doc="/**
&lt;p&gt;The preedit text.&lt;/p&gt;
 */"/>
        <enum-value name="SelectionFormat" doc="/**
&lt;p&gt;The selection text.&lt;/p&gt;
 */"/>
</enum>
</class>