⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdlwidgetclient.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia2/qdl.cpp:1065 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QDLWidgetClient 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>QDLWidgetClient Class Reference</h1><p>The QDLWidgetClient class is a QDLClient that interfaces with a widget.<a href="#details">More...</a><p><tt>#include &lt;<a href="qdl-h.html">qdl.h</a>&gt;</tt><p>Inherits <a href="qdlclient.html">QDLClient</a>.<p><a href="qdlwidgetclient-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QDLWidgetClient"><b>QDLWidgetClient</b></a> ( QWidget&nbsp;*&nbsp;w, const&nbsp;char&nbsp;*&nbsp;name )</div></li><li><div class=fn>ContextMenu * <a href="#setupStandardContextMenu"><b>setupStandardContextMenu</b></a> ( ContextMenu&nbsp;*&nbsp;context = 0 )</div></li><li><div class=fn>virtual void <a href="#addLink"><b>addLink</b></a> ( const&nbsp;QDLLink&nbsp;&amp;&nbsp;newLink )</div></li><li><div class=fn>virtual void <a href="#setLink"><b>setLink</b></a> ( uint&nbsp;lid, const&nbsp;QDLLink&nbsp;&amp;&nbsp;newLink )</div></li><li><div class=fn>virtual void <a href="#removeLink"><b>removeLink</b></a> ( uint&nbsp;lid )</div></li><li><div class=fn>QString <a href="#hint"><b>hint</b></a> () const</div></li></ul><h2>Public Slots</h2><ul><li><div class=fn>void <a href="#requestLink"><b>requestLink</b></a> ()</div></li><li><div class=fn>virtual void <a href="#verifyLinks"><b>verifyLinks</b></a> ()</div></li></ul><h2>Protected Members</h2><ul><li><div class=fn>virtual QString <a href="#text"><b>text</b></a> () const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QDLWidgetClient class is a <a href="qdlclient.html">QDLClient</a> that interfaces with a widget.<p> A QDLWidgetClient has all the capabilities of a QDLClient, but alsodepends on a widget and interfaces with its text.<p> A QDLWidgetClient can currently interface with the following widgets.<ul><li>QLineEdit<li>QMultiLineEdit</ul>Other widgets may be supported in later releases of Qtopia.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QDLWidgetClient"></a>QDLWidgetClient::QDLWidgetClient ( QWidget&nbsp;*&nbsp;w, const&nbsp;char&nbsp;*&nbsp;name )</h3>Constructs a QDLWidgetClient with <em>w</em> as the parent andthe monitored widget. <em>name</em> is passed on to QObject.<h3 class=fn>void <a name="addLink"></a>QDLWidgetClient::addLink ( const&nbsp;<a href="qdllink.html">QDLLink</a>&nbsp;&amp;&nbsp;newLink )<tt> [virtual]</tt></h3>Adds <em>newLink</em> to the client. A new link identifier is generated.The link is also added into the widget's text.<p>Reimplemented from <a href="qdlclient.html#addLink">QDLClient</a>.<h3 class=fn>QString <a name="hint"></a>QDLWidgetClient::hint () const</h3>Returns the request hint for this widget.If a hint has not been explicitly set with <a href="qdlclient.html#setHint">QDLClient::setHint</a>(),then this function tries to dynamically determine the hint from the text of the client's widget, otherwise it just returns <a href="qdlclient.html#hint">QDLClient::hint</a>() <h3 class=fn>void <a name="removeLink"></a>QDLWidgetClient::removeLink ( uint&nbsp;lid )<tt> [virtual]</tt></h3>Removes the link specified by the link identifier <em>lid</em>.It is removed from <a href="qdlclient.html">QDLClient</a> and in the widget's text.<p>Reimplemented from <a href="qdlclient.html#removeLink">QDLClient</a>.<h3 class=fn>void <a name="requestLink"></a>QDLWidgetClient::requestLink ()<tt> [slot]</tt></h3>Convenience function. Simply calls <a href="qdlclient.html#requestLink">QDLClient::requestLink</a>() withthe client's widget as parent.<h3 class=fn>void <a name="setLink"></a>QDLWidgetClient::setLink ( uint&nbsp;lid, const&nbsp;<a href="qdllink.html">QDLLink</a>&nbsp;&amp;&nbsp;newLink )<tt> [virtual]</tt></h3>Sets the link specified by the link identifier <em>lid</em> to <em>newLink</em> both in <a href="qdlclient.html">QDLClient</a>and in the widget's text. If no link for <em>lid</em> currently exists, it is createdand added to the widget's text.<p>Reimplemented from <a href="qdlclient.html#setLink">QDLClient</a>.<h3 class=fn><a href="contextmenu.html">ContextMenu</a>&nbsp;* <a name="setupStandardContextMenu"></a>QDLWidgetClient::setupStandardContextMenu ( <a href="contextmenu.html">ContextMenu</a>&nbsp;*&nbsp;context = 0 )</h3>Automatically creates a standard 'Insert Link' action in the <a href="contextmenu.html">ContextMenu</a> specified by <em>context</em>. If <em>context</em> is 0, a new ContextMenu is created.<p> The action is connected to <a href="#requestLink">QDLWidgetClient::requestLink</a>().<h3 class=fn>QString <a name="text"></a>QDLWidgetClient::text () const<tt> [virtual protected]</tt></h3>Returns the text of the client's widget.<h3 class=fn>void <a name="verifyLinks"></a>QDLWidgetClient::verifyLinks ()<tt> [virtual slot]</tt></h3>Verifies that all internal links of <a href="qdlclient.html">QDLClient</a> exist in the widget's text.Any internal link that doesn't exist in the widget's text is removed.<p>Reimplemented from <a href="qdlclient.html#verifyLinks">QDLClient</a>.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright &copy; 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 &copy; 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 + -