Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 277

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt examples: ContactSuggestions Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt examples
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ContactSuggestions Class Reference<div class="ingroups"><a class="el" href="group__composerexample.html">Composer example</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ContactSuggestions" --><!-- doxytag: inherits="Wt::WSuggestionPopup" -->
<p>A suggestion popup suggesting contacts from an addressbook.  
 <a href="classContactSuggestions.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ContactSuggestions_8h_source.html">ContactSuggestions.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ContactSuggestions:</div>
<div class="dyncontent">
<div class="center"><img src="classContactSuggestions__inherit__graph.png" border="0" usemap="#ContactSuggestions_inherit__map" alt="Inheritance graph"/></div>
<map name="ContactSuggestions_inherit__map" id="ContactSuggestions_inherit__map">
<area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WSuggestionPopup.html" title="Wt::WSuggestionPopup" alt="" coords="7,229,167,256"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCompositeWidget.html" title="Wt::WCompositeWidget" alt="" coords="5,155,168,181"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html" title="Wt::WWidget" alt="" coords="37,80,136,107"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classContactSuggestions-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classContactSuggestions.html#a0f392ea7e40e79bfba3a990a94033095">ContactSuggestions</a> (<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a> *<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a3461e31818c4d2f516641bdaf508312a">parent</a>=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="classContactSuggestions.html" title="A suggestion popup suggesting contacts from an addressbook.">ContactSuggestions</a> popup.  <a href="#a0f392ea7e40e79bfba3a990a94033095"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classContactSuggestions.html#abb65b3c75e64e050608d970d61b3fdcf">setAddressBook</a> (const std::vector&lt; <a class="el" href="structContact.html">Contact</a> &gt; &amp;contacts)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the address book.  <a href="#abb65b3c75e64e050608d970d61b3fdcf"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A suggestion popup suggesting contacts from an addressbook. </p>
<p>This popup provides suggestions from a list of contact, by matching parts of the name or email adress with the current value being edited. It also supports editing a list of email addresses.</p>
<p>The popup is only available when JavaScript is available, and is implemented entirely on the client-side. </p>

<p>Definition at line <a class="el" href="ContactSuggestions_8h_source.html#l00032">32</a> of file <a class="el" href="ContactSuggestions_8h_source.html">ContactSuggestions.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0f392ea7e40e79bfba3a990a94033095"></a><!-- doxytag: member="ContactSuggestions::ContactSuggestions" ref="a0f392ea7e40e79bfba3a990a94033095" args="(WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContactSuggestions::ContactSuggestions </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new <a class="el" href="classContactSuggestions.html" title="A suggestion popup suggesting contacts from an addressbook.">ContactSuggestions</a> popup. </p>

<p>Definition at line <a class="el" href="ContactSuggestions_8C_source.html#l00024">24</a> of file <a class="el" href="ContactSuggestions_8C_source.html">ContactSuggestions.C</a>.</p>
<div class="fragment"><pre class="fragment">  : <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WSuggestionPopup.html#a854886c83fd73cdb5f3c338cc0baf6a5">WSuggestionPopup</a>(WSuggestionPopup::generateMatcherJS(contactOptions),
                     WSuggestionPopup::generateReplacerJS(contactOptions),
                     parent)
{ }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abb65b3c75e64e050608d970d61b3fdcf"></a><!-- doxytag: member="ContactSuggestions::setAddressBook" ref="abb65b3c75e64e050608d970d61b3fdcf" args="(const std::vector&lt; Contact &gt; &amp;contacts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContactSuggestions::setAddressBook </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="structContact.html">Contact</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>contacts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the address book. </p>

<p>Definition at line <a class="el" href="ContactSuggestions_8C_source.html#l00030">30</a> of file <a class="el" href="ContactSuggestions_8C_source.html">ContactSuggestions.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WSuggestionPopup.html#a0beae292354fa79c2bbe68e9b11c8f01">clearSuggestions</a>();

  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; contacts.size(); ++i)
    <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WSuggestionPopup.html#aff509867327911ed93445c56231680fb">addSuggestion</a>(contacts[i].formatted(), contacts[i].formatted());
}
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/koen/project/wt/public-git/wt/examples/composer/<a class="el" href="ContactSuggestions_8h_source.html">ContactSuggestions.h</a></li>
<li>/home/koen/project/wt/public-git/wt/examples/composer/<a class="el" href="ContactSuggestions_8C_source.html">ContactSuggestions.C</a></li>
</ul>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>