📄 extinputmethodinterface.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/doc/inputmethodinterface.doc:61 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ExtInputMethodInterface Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>ExtInputMethodInterface Class Reference</h1><p>The ExtInputMethodInterface class provides an extended interface for Qtopiainput methods.<a href="#details">More...</a><p><tt>#include <<a href="inputmethodinterface-h.html">inputmethodinterface.h</a>></tt><p><a href="extinputmethodinterface-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn>virtual QString <a href="#name"><b>name</b></a> () = 0</div></li><li><div class=fn>virtual QPixmap * <a href="#icon"><b>icon</b></a> () = 0</div></li><li><div class=fn>virtual void <a href="#resetState"><b>resetState</b></a> () = 0</div></li><li><div class=fn>virtual QWidget * <a href="#keyboardWidget"><b>keyboardWidget</b></a> ( QWidget * parent, Qt::WFlags f ) = 0</div></li><li><div class=fn>virtual QStringList <a href="#compatible"><b>compatible</b></a> () = 0</div></li><li><div class=fn>virtual QWSInputMethod * <a href="#inputMethod"><b>inputMethod</b></a> () = 0</div></li><li><div class=fn>virtual QWidget * <a href="#statusWidget"><b>statusWidget</b></a> ( QWidget * parent, Qt::WFlags f ) = 0</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2> The ExtInputMethodInterface class provides an extended interface for Qtopiainput methods.<p> There are two kinds of input methods that may be implemented using thisinterface.<p> One is a virtual keyboard like <a href="inputmethodinterface.html">InputMethodInterface</a>, but with accessto the Qtopia 1.6 input method API. In this case, implement<a href="#keyboardWidget">keyboardWidget</a>(). There is no <tt>onKeyPress</tt> method; useQWSServer::sendKeyEvent() to send key events when a key is pressed.<p> The other is a composing input methods that modifies input from aseparate keyboard (real or virtual). In this case, implement <a href="#inputMethod">inputMethod</a>()and <a href="#statusWidget">statusWidget</a>(). Composing input methods are used to implement textinput for languages such as Chinese, Japanese and Korean.<p> There may be dependencies between specific virtual keyboard inputmethods and composing input methods. This can be specified byimplementing <a href="#compatible">compatible</a>().<p> Input methods may be added to Qtopia via plugins. In order to write aninput method plugin you must create an interface to your input method byderiving from the ExtInputMethodInterface class and implementing the purevirtual functions.<p> See also: <a href="inputmethods.html">Input Method Tutorial</a><hr><h2>Member Function Documentation</h2><h3 class=fn>QStringList <a name="compatible"></a>ExtInputMethodInterface::compatible ()<tt> [pure virtual]</tt></h3> Returns a list of plugin library filenames that are compatiblewith this input method. An empty list means that there are norestrictions; it is compatible with anything.<h3 class=fn>QPixmap * <a name="icon"></a>ExtInputMethodInterface::icon ()<tt> [pure virtual]</tt></h3> <p> The <a href="#icon">icon</a>() function returns the icon for the input method. This willbe displayed in the taskbar when the input method is selected.<h3 class=fn>QWSInputMethod * <a name="inputMethod"></a>ExtInputMethodInterface::inputMethod ()<tt> [pure virtual]</tt></h3> If this is a composing input method, this function returns the inputmethod object, which is a subclass of QWSInputMethod.<p> Returns 0 for a virtual keyboard. <h3 class=fn>QWidget * <a name="keyboardWidget"></a>ExtInputMethodInterface::keyboardWidget ( QWidget * parent, Qt::WFlags f )<tt> [pure virtual]</tt></h3> <p> For a virtual keyboard, creates keyboard widget (if not alreadycreated) and returns the keyboard widget. Returns 0 for a composinginput method.<p> <em>parent</em> is the parent of the widget.<em>f</em> contains the flags to pass to the widget.<p> Thiswidget will be display just above the task bar when the user needs to inputtext. You should always return the same widget if this function is calledmultiple times.<h3 class=fn>QString <a name="name"></a>ExtInputMethodInterface::name ()<tt> [pure virtual]</tt></h3> <p> The <a href="#name">name</a>() function returns the name of the input method. This willbe displayed in the popup list of available input methods.<h3 class=fn>void <a name="resetState"></a>ExtInputMethodInterface::resetState ()<tt> [pure virtual]</tt></h3> <p> The <a href="#resetState">resetState</a>() function should return the input method to its defaultstate.<h3 class=fn>QWidget * <a name="statusWidget"></a>ExtInputMethodInterface::statusWidget ( QWidget * parent, Qt::WFlags f )<tt> [pure virtual]</tt></h3> <p> For a composing input method, this function returns a widget tobe shown in the taskbar. <em>parent</em> and <em>f</em> are the standardQWidget parameters.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -