File: classContactSuggestions.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (129 lines) | stat: -rw-r--r-- 8,975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt examples: ContactSuggestions Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;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 class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>ContactSuggestions Class Reference<br>
<small>
[<a class="el" href="group__composerexample.html">Composer example</a>]</small>
</h1><!-- doxytag: class="ContactSuggestions" --><!-- doxytag: inherits="Wt::WSuggestionPopup" -->A suggestion popup suggesting contacts from an addressbook.  
<a href="#_details">More...</a>
<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="dynsection">
<p><center><img src="classContactSuggestions__inherit__graph.png" border="0" usemap="#ContactSuggestions__inherit__map" alt="Inheritance graph"></center>
<map name="ContactSuggestions__inherit__map">
<area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WSuggestionPopup.html" title="Wt::WSuggestionPopup" alt="" coords="5,229,165,256"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WCompositeWidget.html" title="Wt::WCompositeWidget" alt="" coords="5,155,165,181"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WWidget.html" title="Wt::WWidget" alt="" coords="37,80,133,107"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classContactSuggestions-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classContactSuggestions.html#0f392ea7e40e79bfba3a990a94033095">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#3461e31818c4d2f516641bdaf508312a">parent</a>=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</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="#0f392ea7e40e79bfba3a990a94033095"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classContactSuggestions.html#bb65b3c75e64e050608d970d61b3fdcf">setAddressBook</a> (const std::vector&lt; <a class="el" href="structContact.html">Contact</a> &gt; &amp;contacts)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the address book.  <a href="#bb65b3c75e64e050608d970d61b3fdcf"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A suggestion popup suggesting contacts from an addressbook. 
<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>
The popup is only available when JavaScript is available, and is implemented entirely on the client-side. 
<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>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="0f392ea7e40e79bfba3a990a94033095"></a><!-- doxytag: member="ContactSuggestions::ContactSuggestions" ref="0f392ea7e40e79bfba3a990a94033095" 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> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</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 name="l00025"></a>00025   : <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WSuggestionPopup.html#2ddf4c97fa85c77de4c76cbca24951bb">WSuggestionPopup</a>(WSuggestionPopup::generateMatcherJS(<a class="code" href="ContactSuggestions_8C.html#3fc6e1549e5147d7529bca94e7b9d21c">contactOptions</a>),
<a name="l00026"></a>00026                      WSuggestionPopup::generateReplacerJS(<a class="code" href="ContactSuggestions_8C.html#3fc6e1549e5147d7529bca94e7b9d21c">contactOptions</a>),
<a name="l00027"></a>00027                      parent)
<a name="l00028"></a>00028 { }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bb65b3c75e64e050608d970d61b3fdcf"></a><!-- doxytag: member="ContactSuggestions::setAddressBook" ref="bb65b3c75e64e050608d970d61b3fdcf" 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;&nbsp;</td>
          <td class="paramname"> <em>contacts</em>          </td>
          <td>&nbsp;)&nbsp;</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 name="l00031"></a>00031 {
<a name="l00032"></a>00032   <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WSuggestionPopup.html#0beae292354fa79c2bbe68e9b11c8f01">clearSuggestions</a>();
<a name="l00033"></a>00033 
<a name="l00034"></a>00034   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; contacts.size(); ++i)
<a name="l00035"></a>00035     <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WSuggestionPopup.html#ff509867327911ed93445c56231680fb">addSuggestion</a>(contacts[i].formatted(), contacts[i].formatted());
<a name="l00036"></a>00036 }
</pre></div>
<p>

</div>
</div><p>
<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>/home/koen/project/wt/public-git/wt/examples/composer/<a class="el" href="ContactSuggestions_8C-source.html">ContactSuggestions.C</a></ul>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>