Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 279e1392635986df1af89cdbd290e105 > files > 240

maliit-framework-docs-0.94.2-11.mga6.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MeeGo Input Method Extensions to Qt</title>
<link href="meego-im.css" rel="stylesheet" type="text/css">
</head><body>
<table>
<tr>
<td></td>
<td>
<a href="index.html">Home</a>
·
<a href="classes.html">API Reference</a>
·
<a href="modules.html">Modules</a>
</td>
</tr>
</table>
<!-- Generated by Doxygen 1.8.12 -->
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">MeeGo Input Method Extensions to Qt </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="Overview"></a>
Overview</h1>
<p>To support MeeGo Touch features, we often find they are not supported out of the box by Qt. Hence, we did some extensions to Qt to overcome this problem. The main goal would be still to push these extensions back to Qt upstream.</p>
<h1><a class="anchor" id="IMQuery"></a>
Qt::inputMethodQuery extensions</h1>
<p>In libmeegotouch we provided several extensions to Qt::inputMethodQuery. The query will be performed in QWidget::inputMethodQuery() and QGraphicsItem::inputMethodQuery(). The purpose is for input method to query the widget about a set of properties to support some input method operations. To make use of these queries the widget needs to reimplement the inputMethodQuery() function.</p>
<h2><a class="anchor" id="VisualizationPriority"></a>
M::VisualizationPriorityQuery</h2>
<p>This boolean query is answered by the widget if it wants to have higher visualization priority than the input method window. By answering this query to true, then the input method window will be hidden (or something else, depending on the implementation). Answering again to false will bring back the input method to the screen.</p>
<h2><a class="anchor" id="PreeditRectangleQuery"></a>
M::PreeditRectangleQuery</h2>
<p>This query returns a QRect of the area occupied by currently shown pre edit text.</p>
<h2><a class="anchor" id="ImCorrectionEnabledQuery"></a>
M::ImCorrectionEnabledQuery</h2>
<p>This query returns a boolean whether the widget wants to use the input method's error correction feature or not. If it is true then the text input is not using pre-edit mechanism, instead it will just commit the text to the text entry.</p>
<h2><a class="anchor" id="ImModeQuery"></a>
M::ImModeQuery</h2>
<p>This query returns M::InputMethodMode enum of the requested mode of text input. Here the widget can ask input method to use whether to use normal mode with pre-edit and/or committed text or a direct mode which uses a fake key event injection mode.</p>
<p>In normal mode input method sends the inputted text using a standard pre-edit and/or the committed text. In Qt applications this mean sending text using QInputMethodEvent.</p>
<p>In direct mode input method crafts a fake QKeyEvent and sends it to the input context. There, if the input method does not want to compose the event, it is forwarded to the application.</p>
<h2><a class="anchor" id="InputMethodToolbarQuery"></a>
M::InputMethodToolbarQuery</h2>
<p>This query returns a QString of input method toolbar name to be shown. Input method loads the named toolbar and displays that in it's UI.</p>
<h1><a class="anchor" id="IMState"></a>
MInputMethodState</h1>
<p>This class provides additional information which QInputContext does not provide. The widget which needs these information can connect to the available signal and slots. The more accurate description will be maintained in the MInputMethodState class documentation. However here is a short version.</p>
<h2><a class="anchor" id="orientationAngle"></a>
MInputMethodState::setActiveWindowOrientationAngle</h2>
<p>This slot sets the active window orientation angle to the named angle. This is used internally by MeeGoTouch library to tell input method that the current orientation of the current active window is changed.</p>
<h2><a class="anchor" id="imArea"></a>
MInputMethodState::setInputMethodArea</h2>
<p>This slot sets a rectangle of area occupied by input method on the screen. This is used by MInputContext to set the area upon receiving such information from input method side.</p>
<h2><a class="anchor" id="activeWindowOrientationAngleChanged"></a>
MInputMetodState::activeWindowOrientationAngleChanged</h2>
<p>This signal informs that the active window orientation angle is changed. This information is needed by input method to rotate according to the current orientation of the active window.</p>
<h2><a class="anchor" id="orientationAngleSignal"></a>
MInputMetodState::inputMethodAreaChanged</h2>
<p>This signal informs that the current area occupied by input method has been changed. Widgets or applications can connect to this signal to do further action. At MeeGo Touch library uses this information to move the pannable area upwards whenever the text input is obscured by input method.</p>
<p>When there is no input method visible, the area will be updated to an empty rectangle. </p>
</div></div><!-- contents -->
<hr>
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright &copy; 2011 Nokia Corporation</td>
<td width="40%" align="center" class="generator"><!-- Generated on Thu Nov 17 2016 17:45:20<br>Doxygen 1.8.12 --></td>
<td width="30%" align="right"><div align="right">Maliit</div></td>
</tr></table>
</body>
</html>