File: classWt_1_1WStringListModel.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 (456 lines) | stat: -rw-r--r-- 30,546 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!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::WStringListModel 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="classWt_1_1WStringListModel.html">WStringListModel</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WStringListModel Class Reference<br>
<small>
[<a class="el" href="group__modelview.html">Model/view system</a>]</small>
</h1><!-- doxytag: class="Wt::WStringListModel" --><!-- doxytag: inherits="Wt::WAbstractListModel" -->An model that manages a list of strings.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WStringListModel&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WStringListModel:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WStringListModel__inherit__graph.png" border="0" usemap="#Wt_1_1WStringListModel__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WStringListModel__inherit__map">
<area shape="rect" href="classWt_1_1WAbstractListModel.html" title="An abstract list model for use with Wt&#39;s view classes." alt="" coords="8,155,168,181"><area shape="rect" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt&#39;s view classes." alt="" coords="5,80,171,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="40,5,136,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WStringListModel-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"><a class="anchor" name="8473bc475b42b0d2bbb171ab22f498fd"></a><!-- doxytag: member="Wt::WStringListModel::WStringListModel" ref="8473bc475b42b0d2bbb171ab22f498fd" args="(WObject *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#8473bc475b42b0d2bbb171ab22f498fd">WStringListModel</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new empty string list model. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="730e0b9b2fd0922d274b4ab7278420e5"></a><!-- doxytag: member="Wt::WStringListModel::WStringListModel" ref="730e0b9b2fd0922d274b4ab7278420e5" args="(const std::vector&lt; WString &gt; &amp;strings, WObject *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#730e0b9b2fd0922d274b4ab7278420e5">WStringListModel</a> (const std::vector&lt; <a class="el" href="classWt_1_1WString.html">WString</a> &gt; &amp;strings, <a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new string list model. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fa9abc72565103ebedc8efa26dad427a"></a><!-- doxytag: member="Wt::WStringListModel::~WStringListModel" ref="fa9abc72565103ebedc8efa26dad427a" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#fa9abc72565103ebedc8efa26dad427a">~WStringListModel</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <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_1WStringListModel.html#605688afa2a1810e1a01b3ef3d335bda">setStringList</a> (const std::vector&lt; <a class="el" href="classWt_1_1WString.html">WString</a> &gt; &amp;strings)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets a new string list.  <a href="#605688afa2a1810e1a01b3ef3d335bda"></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_1WStringListModel.html#3bf0b8d2e110cbd518a57f74e8f9e4c6">insertString</a> (int row, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;string)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts a string.  <a href="#3bf0b8d2e110cbd518a57f74e8f9e4c6"></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_1WStringListModel.html#11d42c5242caafbdc6cb21d56f7e8a8b">addString</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;string)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a string.  <a href="#11d42c5242caafbdc6cb21d56f7e8a8b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::vector&lt; <a class="el" href="classWt_1_1WString.html">WString</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#d51da40b9c4267fffbb439bdc0ef718b">stringList</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the string list.  <a href="#d51da40b9c4267fffbb439bdc0ef718b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual WFlags&lt; <a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0">ItemFlag</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#5ee1ba3f7d36612e3a78fdc132b5b327">flags</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the flags for an item.  <a href="#5ee1ba3f7d36612e3a78fdc132b5b327"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#9a650aa1d48d5e634573c930a5f62b45">setData</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index, const boost::any &amp;value, int role=EditRole)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets data at the given model index.  <a href="#9a650aa1d48d5e634573c930a5f62b45"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual boost::any&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#a953d435f25052df7b2c09a6f180c606">data</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index, int role=DisplayRole) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns data at a specific model index.  <a href="#a953d435f25052df7b2c09a6f180c606"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#81138b8b606df663cc7163265a9b0644">rowCount</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent=<a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>()) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of rows.  <a href="#81138b8b606df663cc7163265a9b0644"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#0c22294fa02436654cde45e34a84a228">insertRows</a> (int row, int count, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent=<a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>())</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts one or more rows.  <a href="#0c22294fa02436654cde45e34a84a228"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#5d73ec0b7b622a4117afaebea3d4ce6b">removeRows</a> (int row, int count, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent=<a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>())</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes rows.  <a href="#5d73ec0b7b622a4117afaebea3d4ce6b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html#3cc26548b0301db88afc8a52a59e8f55">sort</a> (int column, <a class="el" href="group__modelview.html#g4173856040cf108a9c7360927a43ebac">SortOrder</a> order=AscendingOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sorts the model according to a particular column.  <a href="#3cc26548b0301db88afc8a52a59e8f55"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An model that manages a list of strings. 
<p>
This model only manages a unidimensional list of strings. It is used as the default model for view classes that show a list.<p>
The model only presents <a class="el" href="group__modelview.html#gg0ae864e12320f9f89172735e075ed0685ed17aded8a0e3b712698cf85a218f1f">DisplayRole</a> data of a single column of data, but otherwise provides support for all standard features of a model, including editing and addition and removal of data rows.<p>
You can populate the model by passing a list of strings to its consructor, or by using the <a class="el" href="classWt_1_1WStringListModel.html#605688afa2a1810e1a01b3ef3d335bda" title="Sets a new string list.">setStringList()</a> method. You can set or retrieve data using the <a class="el" href="classWt_1_1WStringListModel.html#9a650aa1d48d5e634573c930a5f62b45" title="Sets data at the given model index.">setData()</a> and <a class="el" href="classWt_1_1WStringListModel.html#a953d435f25052df7b2c09a6f180c606" title="Returns data at a specific model index.">data()</a> methods, and add or remove data using the <a class="el" href="classWt_1_1WStringListModel.html#0c22294fa02436654cde45e34a84a228" title="Inserts one or more rows.">insertRows()</a> and <a class="el" href="classWt_1_1WStringListModel.html#5d73ec0b7b622a4117afaebea3d4ce6b" title="Removes rows.">removeRows()</a> methods.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, <a class="el" href="classWt_1_1WSelectionBox.html" title="A selection box allows selection from a list of options.">WSelectionBox</a>, <a class="el" href="classWt_1_1Ext_1_1ComboBox.html" title="A widget that provides a drop-down combo-box control.">Ext::ComboBox</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="605688afa2a1810e1a01b3ef3d335bda"></a><!-- doxytag: member="Wt::WStringListModel::setStringList" ref="605688afa2a1810e1a01b3ef3d335bda" args="(const std::vector&lt; WString &gt; &amp;strings)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WStringListModel::setStringList           </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classWt_1_1WString.html">WString</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>strings</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets a new string list. 
<p>
Replaces the current string list with a new list.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#4ebbe404a68b96788938c1ad09d8949e" title="Signal emitted when some data was changed.">dataChanged()</a> <p>
<a class="el" href="classWt_1_1WStringListModel.html#11d42c5242caafbdc6cb21d56f7e8a8b" title="Adds a string.">addString()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3bf0b8d2e110cbd518a57f74e8f9e4c6"></a><!-- doxytag: member="Wt::WStringListModel::insertString" ref="3bf0b8d2e110cbd518a57f74e8f9e4c6" args="(int row, const WString &amp;string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WStringListModel::insertString           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>string</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inserts a string. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WStringListModel.html#605688afa2a1810e1a01b3ef3d335bda" title="Sets a new string list.">setStringList()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="11d42c5242caafbdc6cb21d56f7e8a8b"></a><!-- doxytag: member="Wt::WStringListModel::addString" ref="11d42c5242caafbdc6cb21d56f7e8a8b" args="(const WString &amp;string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WStringListModel::addString           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>string</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a string. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WStringListModel.html#605688afa2a1810e1a01b3ef3d335bda" title="Sets a new string list.">setStringList()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="d51da40b9c4267fffbb439bdc0ef718b"></a><!-- doxytag: member="Wt::WStringListModel::stringList" ref="d51da40b9c4267fffbb439bdc0ef718b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="classWt_1_1WString.html">WString</a>&gt;&amp; Wt::WStringListModel::stringList           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the string list. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WStringListModel.html#605688afa2a1810e1a01b3ef3d335bda" title="Sets a new string list.">setStringList()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="5ee1ba3f7d36612e3a78fdc132b5b327"></a><!-- doxytag: member="Wt::WStringListModel::flags" ref="5ee1ba3f7d36612e3a78fdc132b5b327" args="(const WModelIndex &amp;index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WFlags&lt; <a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0">ItemFlag</a> &gt; Wt::WStringListModel::flags           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the flags for an item. 
<p>
This method is reimplemented to return <a class="el" href="group__modelview.html#gg1d77c4de293aebfacbdde124de06b8b077f858c86a06358abdcc64e4f9d03e40">ItemIsSelectable</a> | <a class="el" href="group__modelview.html#gg1d77c4de293aebfacbdde124de06b8b08664c482d721bbcb73539a924c7a9fab">ItemIsEditable</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0" title="Flags that indicate data item options.">Wt::ItemFlag</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemModel.html#b5e60f81be797c0553a010eff5b9a592">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="9a650aa1d48d5e634573c930a5f62b45"></a><!-- doxytag: member="Wt::WStringListModel::setData" ref="9a650aa1d48d5e634573c930a5f62b45" args="(const WModelIndex &amp;index, const boost::any &amp;value, int role=EditRole)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WStringListModel::setData           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::any &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>role</em> = <code>EditRole</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets data at the given model index. 
<p>
Returns <code>true</code> if the operation was successful.<p>
The default implementation returns <code>false</code>. If you reimplement this method, you must emit the <a class="el" href="classWt_1_1WAbstractItemModel.html#4ebbe404a68b96788938c1ad09d8949e" title="Signal emitted when some data was changed.">dataChanged()</a> signal after data was changed.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WStringListModel.html#a953d435f25052df7b2c09a6f180c606" title="Returns data at a specific model index.">data()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemModel.html#70856db8c322be8c7f397a932165a943">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="a953d435f25052df7b2c09a6f180c606"></a><!-- doxytag: member="Wt::WStringListModel::data" ref="a953d435f25052df7b2c09a6f180c606" args="(const WModelIndex &amp;index, int role=DisplayRole) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boost::any Wt::WStringListModel::data           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>role</em> = <code>DisplayRole</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns data at a specific model index. 
<p>
Return data for a given role at a given index.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WStringListModel.html#5ee1ba3f7d36612e3a78fdc132b5b327" title="Returns the flags for an item.">flags()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#86bbab7c809fce4de9b5cb543b2fb124" title="Returns the row or column header data.">headerData()</a>, <a class="el" href="classWt_1_1WStringListModel.html#9a650aa1d48d5e634573c930a5f62b45" title="Sets data at the given model index.">setData()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemModel.html#9112b74d160f916ef75fb6c1c09dd8fe">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="81138b8b606df663cc7163265a9b0644"></a><!-- doxytag: member="Wt::WStringListModel::rowCount" ref="81138b8b606df663cc7163265a9b0644" args="(const WModelIndex &amp;parent=WModelIndex()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WStringListModel::rowCount           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>()</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of rows. 
<p>
This returns the number of rows at index <code>parent</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractListModel.html#c1067d3ba070038275690deb2e9a40f4" title="Returns the number of columns.">columnCount()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemModel.html#b0709a8f71fd5df882f29bb29fd055f0">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="0c22294fa02436654cde45e34a84a228"></a><!-- doxytag: member="Wt::WStringListModel::insertRows" ref="0c22294fa02436654cde45e34a84a228" args="(int row, int count, const WModelIndex &amp;parent=WModelIndex())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WStringListModel::insertRows           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inserts one or more rows. 
<p>
Returns <code>true</code> if the operation was successful. If you reimplement this method, then you must call <a class="el" href="classWt_1_1WAbstractItemModel.html#91e52898a805996aee496877cd090eb4" title="Method to be called before inserting rows.">beginInsertRows()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#ce03c0bc5b0b57b6add882aaf444b62f" title="Method to be called after inserting rows.">endInsertRows()</a> before and after the operation.<p>
The default implementation returns <code>false</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#1eded9eb68b9247ae2ff371f74a5e5f2" title="Inserts one or more columns.">insertColumns()</a>, <a class="el" href="classWt_1_1WStringListModel.html#5d73ec0b7b622a4117afaebea3d4ce6b" title="Removes rows.">removeRows()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#91e52898a805996aee496877cd090eb4" title="Method to be called before inserting rows.">beginInsertRows()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#ce03c0bc5b0b57b6add882aaf444b62f" title="Method to be called after inserting rows.">endInsertRows()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemModel.html#bcafc38dc24fd9edf70eafe834ca411d">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="5d73ec0b7b622a4117afaebea3d4ce6b"></a><!-- doxytag: member="Wt::WStringListModel::removeRows" ref="5d73ec0b7b622a4117afaebea3d4ce6b" args="(int row, int count, const WModelIndex &amp;parent=WModelIndex())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WStringListModel::removeRows           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes rows. 
<p>
Returns <code>true</code> if the operation was successful.<p>
The default implementation returns <code>false</code>. If you reimplement this method, then you must call <a class="el" href="classWt_1_1WAbstractItemModel.html#5286cc70219c8d8d720abc255b0183f5" title="Method to be called before removing rows.">beginRemoveRows()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#fceaf639f2a5088f45c00f03d550f262" title="Method to be called after removing rows.">endRemoveRows()</a> before and after the operation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#27428d1a02830336ec9db69c6d0b0762" title="Removes columns.">removeColumns()</a>, <a class="el" href="classWt_1_1WStringListModel.html#0c22294fa02436654cde45e34a84a228" title="Inserts one or more rows.">insertRows()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#5286cc70219c8d8d720abc255b0183f5" title="Method to be called before removing rows.">beginRemoveRows()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#fceaf639f2a5088f45c00f03d550f262" title="Method to be called after removing rows.">endRemoveRows()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemModel.html#29cf3003ee8f97b2b5de9c52af27361a">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="3cc26548b0301db88afc8a52a59e8f55"></a><!-- doxytag: member="Wt::WStringListModel::sort" ref="3cc26548b0301db88afc8a52a59e8f55" args="(int column, SortOrder order=AscendingOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WStringListModel::sort           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__modelview.html#g4173856040cf108a9c7360927a43ebac">SortOrder</a>&nbsp;</td>
          <td class="paramname"> <em>order</em> = <code>AscendingOrder</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sorts the model according to a particular column. 
<p>
If the model supports sorting, then it should emit the <a class="el" href="classWt_1_1WAbstractItemModel.html#abe99309231808a48c8f1db2c462f8e2" title="Signal emitted when the layout is about to be changed.">layoutAboutToBeChanged()</a> signal, rearrange its items, and afterwards emit the <a class="el" href="classWt_1_1WAbstractItemModel.html#5a6a3810afb5333405887df52827db02" title="Signal emitted when the layout is changed.">layoutChanged()</a> signal.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#abe99309231808a48c8f1db2c462f8e2" title="Signal emitted when the layout is about to be changed.">layoutAboutToBeChanged()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#5a6a3810afb5333405887df52827db02" title="Signal emitted when the layout is changed.">layoutChanged()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemModel.html#133931424d4daa8422bcdea911cda713">Wt::WAbstractItemModel</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 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>