File: classWt_1_1Ext_1_1LineEdit.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 (235 lines) | stat: -rw-r--r-- 18,526 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!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: Wt::Ext::LineEdit 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="pages.html"><span>Related&nbsp;Pages</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>
    </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 class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Ext.html">Ext</a>::<a class="el" href="classWt_1_1Ext_1_1LineEdit.html">LineEdit</a>
  </div>
</div>
<div class="contents">
<h1>Wt::Ext::LineEdit Class Reference<br>
<small>
[<a class="el" href="group__ext.html">Ext widgets</a>]</small>
</h1><!-- doxytag: class="Wt::Ext::LineEdit" --><!-- doxytag: inherits="Wt::Ext::FormField" -->A line edit.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/Ext/LineEdit&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::LineEdit:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Ext_1_1LineEdit__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1LineEdit__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1Ext_1_1LineEdit__inherit__map">
<area shape="rect" href="classWt_1_1Ext_1_1ComboBox.html" title="A widget that provides a drop&#45;down combo&#45;box control." alt="" coords="5,528,141,555"><area shape="rect" href="classWt_1_1Ext_1_1DateField.html" title="A form field for conveniently editing a date using a calendar popup." alt="" coords="165,528,293,555"><area shape="rect" href="classWt_1_1Ext_1_1NumberField.html" title="A form field for editing a number." alt="" coords="317,528,464,555"><area shape="rect" href="classWt_1_1Ext_1_1FormField.html" title="An abstract base class for form fields." alt="" coords="164,379,295,405"><area shape="rect" href="classWt_1_1Ext_1_1Component.html" title="An abstract base class for widgets that can be visually disabled." alt="" coords="160,304,299,331"><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="173,229,285,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="168,155,291,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="181,80,277,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="181,5,277,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1Ext_1_1LineEdit-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">EchoMode</a> { <a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1d095e17353838d86f57d1a7601a57332">Normal</a>, 
<a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1e84e09a5c6446aff5ba5053acb7904b4">Password</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enum that describes how the contents is displayed.  <a href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71715b99ff1aba4f38af23e86056e074"></a><!-- doxytag: member="Wt::Ext::LineEdit::LineEdit" ref="71715b99ff1aba4f38af23e86056e074" args="(WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#71715b99ff1aba4f38af23e86056e074">LineEdit</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new line edit with empty content. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e0a247bcb43fd119bfffb29a3b1d7319"></a><!-- doxytag: member="Wt::Ext::LineEdit::LineEdit" ref="e0a247bcb43fd119bfffb29a3b1d7319" args="(const WString &amp;content, WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#e0a247bcb43fd119bfffb29a3b1d7319">LineEdit</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;content, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a line edit with given content. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4f47849711e93d6760f86a38eeca418a"></a><!-- doxytag: member="Wt::Ext::LineEdit::setTextSize" ref="4f47849711e93d6760f86a38eeca418a" args="(int chars)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#4f47849711e93d6760f86a38eeca418a">setTextSize</a> (int chars)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specify the width of the line edit in number of characters. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b87c5c0f13c068383ffa402863d44e6e">textSize</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the current width of the line edit in number of characters.  <a href="#b87c5c0f13c068383ffa402863d44e6e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0f77652f6a47a27a17bc2d9a46e6fd3"></a><!-- doxytag: member="Wt::Ext::LineEdit::setText" ref="a0f77652f6a47a27a17bc2d9a46e6fd3" args="(const WString &amp;value)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#a0f77652f6a47a27a17bc2d9a46e6fd3">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the content of the line edit. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ba4c9a22661c192bd28b4a28a8ca943"></a><!-- doxytag: member="Wt::Ext::LineEdit::text" ref="8ba4c9a22661c192bd28b4a28a8ca943" args="() const " -->
const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#8ba4c9a22661c192bd28b4a28a8ca943">text</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the current content. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b17143af0d6fef0467a7a9aead17d091">setMaxLength</a> (int length)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specify the maximum length of text that can be entered.  <a href="#b17143af0d6fef0467a7a9aead17d091"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#cb99fb14b98c8cd8640deb8706130118">maxLength</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximum length of text that can be entered.  <a href="#cb99fb14b98c8cd8640deb8706130118"></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="classWt_1_1Ext_1_1LineEdit.html#b2ef8ad240cfeda9b5dc5f2ccf6a5fd8">setEchoMode</a> (<a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">EchoMode</a> echoMode)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the echo mode.  <a href="#b2ef8ad240cfeda9b5dc5f2ccf6a5fd8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b2d9d91c96ec140d7fdd76b57e37150d"></a><!-- doxytag: member="Wt::Ext::LineEdit::echoMode" ref="b2d9d91c96ec140d7fdd76b57e37150d" args="() const " -->
<a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">EchoMode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b2d9d91c96ec140d7fdd76b57e37150d">echoMode</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the echo mode. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee32a5451b7e73568b39215f18d2d98c"></a><!-- doxytag: member="Wt::Ext::LineEdit::validate" ref="ee32a5451b7e73568b39215f18d2d98c" args="()" -->
virtual <a class="el" href="classWt_1_1WValidator.html#638a1feefca259ea2f806a8add2d18a3">WValidator::State</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#ee32a5451b7e73568b39215f18d2d98c">validate</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Validate the field. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3876ad8ff416a6020db30b57ab165dbe"></a><!-- doxytag: member="Wt::Ext::LineEdit::keyWentDown" ref="3876ad8ff416a6020db30b57ab165dbe" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#3876ad8ff416a6020db30b57ab165dbe">keyWentDown</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Event signal emitted when a keyboard key is pushed down. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2d94e3020a39759bd885d46600b0bb8"></a><!-- doxytag: member="Wt::Ext::LineEdit::keyPressed" ref="d2d94e3020a39759bd885d46600b0bb8" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#d2d94e3020a39759bd885d46600b0bb8">keyPressed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Event signal emitted when a keyboard key is pressed. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62383a836f5fb357a3824ea86006b44b"></a><!-- doxytag: member="Wt::Ext::LineEdit::keyWentUp" ref="62383a836f5fb357a3824ea86006b44b" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#62383a836f5fb357a3824ea86006b44b">keyWentUp</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Event signal emitted when a keyboard key is released. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A line edit. 
<p>
To act upon text changes, connect a slot to the <a class="el" href="classWt_1_1Ext_1_1FormField.html#4d610435f726887b0ab33411ceff2750" title="Signal emitted when the value was changed.">changed()</a> signal. This signal is emitted when the user changed the content, and subsequently removes the focus from the line edit.<p>
To act upon editing, connect a slot to the <a class="el" href="classWt_1_1Ext_1_1LineEdit.html#62383a836f5fb357a3824ea86006b44b" title="Event signal emitted when a keyboard key is released.">keyWentUp()</a> signal.<p>
At all times, the current content may be accessed with the <a class="el" href="classWt_1_1Ext_1_1LineEdit.html#8ba4c9a22661c192bd28b4a28a8ca943" title="Return the current content.">text()</a> method.<p>
The API is a super-set of the <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a> API. <hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="c3469352f6a1073ac5015202e6f3e2e1"></a><!-- doxytag: member="Wt::Ext::LineEdit::EchoMode" ref="c3469352f6a1073ac5015202e6f3e2e1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">Wt::Ext::LineEdit::EchoMode</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Enum that describes how the contents is displayed. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b2ef8ad240cfeda9b5dc5f2ccf6a5fd8" title="Set the echo mode.">setEchoMode</a> <p>
<a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b2d9d91c96ec140d7fdd76b57e37150d" title="Return the echo mode.">echoMode</a> </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="c3469352f6a1073ac5015202e6f3e2e1d095e17353838d86f57d1a7601a57332"></a><!-- doxytag: member="Normal" ref="c3469352f6a1073ac5015202e6f3e2e1d095e17353838d86f57d1a7601a57332" args="" -->Normal</em>&nbsp;</td><td>
Characters are shown. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="c3469352f6a1073ac5015202e6f3e2e1e84e09a5c6446aff5ba5053acb7904b4"></a><!-- doxytag: member="Password" ref="c3469352f6a1073ac5015202e6f3e2e1e84e09a5c6446aff5ba5053acb7904b4" args="" -->Password</em>&nbsp;</td><td>
Hide the contents as for a password. </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b87c5c0f13c068383ffa402863d44e6e"></a><!-- doxytag: member="Wt::Ext::LineEdit::textSize" ref="b87c5c0f13c068383ffa402863d44e6e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Ext::LineEdit::textSize           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the current width of the line edit in number of characters. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#4f47849711e93d6760f86a38eeca418a" title="Specify the width of the line edit in number of characters.">setTextSize(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b17143af0d6fef0467a7a9aead17d091"></a><!-- doxytag: member="Wt::Ext::LineEdit::setMaxLength" ref="b17143af0d6fef0467a7a9aead17d091" args="(int length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::LineEdit::setMaxLength           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>length</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify the maximum length of text that can be entered. 
<p>
A value &lt;= 0 indicates that there is no limit.<p>
The default value is -1. 
</div>
</div><p>
<a class="anchor" name="cb99fb14b98c8cd8640deb8706130118"></a><!-- doxytag: member="Wt::Ext::LineEdit::maxLength" ref="cb99fb14b98c8cd8640deb8706130118" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Ext::LineEdit::maxLength           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the maximum length of text that can be entered. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#b17143af0d6fef0467a7a9aead17d091" title="Specify the maximum length of text that can be entered.">setMaxLength(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b2ef8ad240cfeda9b5dc5f2ccf6a5fd8"></a><!-- doxytag: member="Wt::Ext::LineEdit::setEchoMode" ref="b2ef8ad240cfeda9b5dc5f2ccf6a5fd8" args="(EchoMode echoMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::LineEdit::setEchoMode           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1Ext_1_1LineEdit.html#c3469352f6a1073ac5015202e6f3e2e1">EchoMode</a>&nbsp;</td>
          <td class="paramname"> <em>echoMode</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the echo mode. 
<p>
The default echo mode is Normal. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 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>