File: classWt_1_1WAbstractProxyModel.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 (683 lines) | stat: -rw-r--r-- 46,402 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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
<!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::WAbstractProxyModel 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_1WAbstractProxyModel.html">WAbstractProxyModel</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WAbstractProxyModel Class Reference<br>
<small>
[<a class="el" href="group__modelview.html">Model/view system</a>]</small>
</h1><!-- doxytag: class="Wt::WAbstractProxyModel" --><!-- doxytag: inherits="Wt::WAbstractItemModel" -->An abstract proxy model for Wt's item models.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WAbstractProxyModel&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WAbstractProxyModel:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WAbstractProxyModel__inherit__graph.png" border="0" usemap="#Wt_1_1WAbstractProxyModel__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WAbstractProxyModel__inherit__map">
<area shape="rect" href="classWt_1_1WAggregateProxyModel.html" title="A proxy model for Wt&#39;s item models that provides column aggregation." alt="" coords="5,229,189,256"><area shape="rect" href="classWt_1_1WSortFilterProxyModel.html" title="A proxy model for Wt&#39;s item models that provides filtering and/or sorting." alt="" coords="213,229,392,256"><area shape="rect" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt&#39;s view classes." alt="" coords="117,80,283,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="152,5,248,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#856d190cc66edcf05462e2476f43b01d">mapFromSource</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;sourceIndex) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Maps a source model index to the proxy model.  <a href="#856d190cc66edcf05462e2476f43b01d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#c36b0ee3110073578da8b999d1882bf7">mapToSource</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;proxyIndex) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Maps a proxy model index to the source model.  <a href="#c36b0ee3110073578da8b999d1882bf7"></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_1WAbstractProxyModel.html#80f03a23bcd5d34eef1091a4891cda87">setSourceModel</a> (<a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *sourceModel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the source model.  <a href="#80f03a23bcd5d34eef1091a4891cda87"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#553fbfaa929ade5275a57186eaf7f2bf">sourceModel</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the source model.  <a href="#553fbfaa929ade5275a57186eaf7f2bf"></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_1WAbstractProxyModel.html#816f887f847e838e6b2cb3539f1614cd">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="#816f887f847e838e6b2cb3539f1614cd"></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_1WAbstractProxyModel.html#59e6feb26b7e6f714cb84ad14c3fdb15">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="#59e6feb26b7e6f714cb84ad14c3fdb15"></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_1WAbstractProxyModel.html#55bbf473942cd369f9d8ce5e08cf0c11">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="#55bbf473942cd369f9d8ce5e08cf0c11"></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_1WAbstractProxyModel.html#5d3d940e4789d25791efead3fd14b9aa">insertColumns</a> (int column, 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 columns.  <a href="#5d3d940e4789d25791efead3fd14b9aa"></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_1WAbstractProxyModel.html#6ee3a51e41a45d91472382093c0a1984">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="#6ee3a51e41a45d91472382093c0a1984"></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_1WAbstractProxyModel.html#9da4b69588ca66ef9d591e6b1433c655">removeColumns</a> (int column, 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 columns.  <a href="#9da4b69588ca66ef9d591e6b1433c655"></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_1WAbstractProxyModel.html#0c8d19dd3efcff79781566c634ec7522">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="#0c8d19dd3efcff79781566c634ec7522"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#59b7d0b8afcc709be5a93a08e92e0857">mimeType</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a mime-type for dragging a set of indexes.  <a href="#59b7d0b8afcc709be5a93a08e92e0857"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#c315164c99220a7846d1303a56188054">acceptDropMimeTypes</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a list of mime-types that could be accepted for a drop event.  <a href="#c315164c99220a7846d1303a56188054"></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_1WAbstractProxyModel.html#cd6129e7686db3e3ddf1e000a379983e">dropEvent</a> (const <a class="el" href="classWt_1_1WDropEvent.html">WDropEvent</a> &amp;e, <a class="el" href="group__modelview.html#gca801bdfb957c360c5f8709cc46949aa">DropAction</a> action, int row, int column, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handles a drop event.  <a href="#cd6129e7686db3e3ddf1e000a379983e"></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_1WAbstractProxyModel.html#4c406e858ed3020a2fac8414293bed2f">toRawIndex</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">Converts a model index to a raw pointer that remains valid while the model's layout is changed.  <a href="#4c406e858ed3020a2fac8414293bed2f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#c32c44c4ac80644bd4293e2d250f6fa6">fromRawIndex</a> (void *rawIndex) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts a raw pointer to a model index.  <a href="#c32c44c4ac80644bd4293e2d250f6fa6"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html#0144ccc35308b2c0fd6a8b018bd6a3e7">createSourceIndex</a> (int row, int column, void *ptr) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a source model index.  <a href="#0144ccc35308b2c0fd6a8b018bd6a3e7"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An abstract proxy model for Wt's item models. 
<p>
A proxy model does not store data, but presents data from a source model in another way. It may provide filtering, sorting, or other computed changes to the source model. A proxy model may be a fully functional model, that also allows modification of the underlying model.<p>
This abstract proxy model may be used as a starting point for implementing a custom proxy model, when <a class="el" href="classWt_1_1WSortFilterProxyModel.html" title="A proxy model for Wt&#39;s item models that provides filtering and/or sorting.">WSortFilterProxyModel</a> is not adequate. It implements data access and manipulation using the a virtual mapping method (<a class="el" href="classWt_1_1WAbstractProxyModel.html#c36b0ee3110073578da8b999d1882bf7" title="Maps a proxy model index to the source model.">mapToSource()</a>) to access and manipulate the underlying <a class="el" href="classWt_1_1WAbstractProxyModel.html#553fbfaa929ade5275a57186eaf7f2bf" title="Returns the source model.">sourceModel()</a>. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="856d190cc66edcf05462e2476f43b01d"></a><!-- doxytag: member="Wt::WAbstractProxyModel::mapFromSource" ref="856d190cc66edcf05462e2476f43b01d" args="(const WModelIndex &amp;sourceIndex) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WAbstractProxyModel::mapFromSource           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>sourceIndex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maps a source model index to the proxy model. 
<p>
This method returns a model index in the proxy model that corresponds to the model index <code>sourceIndex</code> in the source model. This method must only be implemented for source model indexes that are mapped and thus are the result of <a class="el" href="classWt_1_1WAbstractProxyModel.html#c36b0ee3110073578da8b999d1882bf7" title="Maps a proxy model index to the source model.">mapToSource()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#c36b0ee3110073578da8b999d1882bf7" title="Maps a proxy model index to the source model.">mapToSource()</a> </dd></dl>

<p>Implemented in <a class="el" href="classWt_1_1WAggregateProxyModel.html#bd53119f51f426bbf3e332227a7c140f">Wt::WAggregateProxyModel</a>, and <a class="el" href="classWt_1_1WSortFilterProxyModel.html#b32e734793e3a6e657b3b5655831885e">Wt::WSortFilterProxyModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="c36b0ee3110073578da8b999d1882bf7"></a><!-- doxytag: member="Wt::WAbstractProxyModel::mapToSource" ref="c36b0ee3110073578da8b999d1882bf7" args="(const WModelIndex &amp;proxyIndex) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WAbstractProxyModel::mapToSource           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>proxyIndex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maps a proxy model index to the source model. 
<p>
This method returns a model index in the source model that corresponds to the proxy model index <code>proxyIndex</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#856d190cc66edcf05462e2476f43b01d" title="Maps a source model index to the proxy model.">mapFromSource()</a> </dd></dl>

<p>Implemented in <a class="el" href="classWt_1_1WAggregateProxyModel.html#219cfab137c4e6b5fcdcfdaa00f2c652">Wt::WAggregateProxyModel</a>, and <a class="el" href="classWt_1_1WSortFilterProxyModel.html#290351f93612a5180c055328e2ff3663">Wt::WSortFilterProxyModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="80f03a23bcd5d34eef1091a4891cda87"></a><!-- doxytag: member="Wt::WAbstractProxyModel::setSourceModel" ref="80f03a23bcd5d34eef1091a4891cda87" args="(WAbstractItemModel *sourceModel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WAbstractProxyModel::setSourceModel           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *&nbsp;</td>
          <td class="paramname"> <em>sourceModel</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the source model. 
<p>
The source model provides the actual data for the proxy model.<p>
Ownership of the source model is <em>not</em> transferred. 
<p>Reimplemented in <a class="el" href="classWt_1_1WAggregateProxyModel.html#dcd5632ba87b439d87b2470bf028cf28">Wt::WAggregateProxyModel</a>, and <a class="el" href="classWt_1_1WSortFilterProxyModel.html#805bcc6964e8c0194638c05f30d2a8cb">Wt::WSortFilterProxyModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="553fbfaa929ade5275a57186eaf7f2bf"></a><!-- doxytag: member="Wt::WAbstractProxyModel::sourceModel" ref="553fbfaa929ade5275a57186eaf7f2bf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>* Wt::WAbstractProxyModel::sourceModel           </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 source model. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#80f03a23bcd5d34eef1091a4891cda87" title="Sets the source model.">setSourceModel()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="816f887f847e838e6b2cb3539f1614cd"></a><!-- doxytag: member="Wt::WAbstractProxyModel::data" ref="816f887f847e838e6b2cb3539f1614cd" 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::WAbstractProxyModel::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_1WAbstractProxyModel.html#55bbf473942cd369f9d8ce5e08cf0c11" 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_1WAbstractProxyModel.html#59e6feb26b7e6f714cb84ad14c3fdb15" 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="59e6feb26b7e6f714cb84ad14c3fdb15"></a><!-- doxytag: member="Wt::WAbstractProxyModel::setData" ref="59e6feb26b7e6f714cb84ad14c3fdb15" 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::WAbstractProxyModel::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_1WAbstractProxyModel.html#816f887f847e838e6b2cb3539f1614cd" 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="55bbf473942cd369f9d8ce5e08cf0c11"></a><!-- doxytag: member="Wt::WAbstractProxyModel::flags" ref="55bbf473942cd369f9d8ce5e08cf0c11" 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::WAbstractProxyModel::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>
The default implementation returns <a class="el" href="group__modelview.html#gg1d77c4de293aebfacbdde124de06b8b077f858c86a06358abdcc64e4f9d03e40">ItemIsSelectable</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="5d3d940e4789d25791efead3fd14b9aa"></a><!-- doxytag: member="Wt::WAbstractProxyModel::insertColumns" ref="5d3d940e4789d25791efead3fd14b9aa" args="(int column, int count, const WModelIndex &amp;parent=WModelIndex())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WAbstractProxyModel::insertColumns           </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">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 columns. 
<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#1b0c2b404763032e48637a2a3615b2b6" title="Method to be called before inserting columns.">beginInsertColumns()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#2422779ff8af9d19c6bfd3e169c84422" title="Method to be called after inserting columns.">endInsertColumns()</a> before and after the operation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#6ee3a51e41a45d91472382093c0a1984" title="Inserts one or more rows.">insertRows()</a>, <a class="el" href="classWt_1_1WAbstractProxyModel.html#9da4b69588ca66ef9d591e6b1433c655" title="Removes columns.">removeColumns()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#1b0c2b404763032e48637a2a3615b2b6" title="Method to be called before inserting columns.">beginInsertColumns()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#2422779ff8af9d19c6bfd3e169c84422" title="Method to be called after inserting columns.">endInsertColumns()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="6ee3a51e41a45d91472382093c0a1984"></a><!-- doxytag: member="Wt::WAbstractProxyModel::insertRows" ref="6ee3a51e41a45d91472382093c0a1984" 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::WAbstractProxyModel::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_1WAbstractProxyModel.html#5d3d940e4789d25791efead3fd14b9aa" title="Inserts one or more columns.">insertColumns()</a>, <a class="el" href="classWt_1_1WAbstractProxyModel.html#0c8d19dd3efcff79781566c634ec7522" 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="9da4b69588ca66ef9d591e6b1433c655"></a><!-- doxytag: member="Wt::WAbstractProxyModel::removeColumns" ref="9da4b69588ca66ef9d591e6b1433c655" args="(int column, int count, const WModelIndex &amp;parent=WModelIndex())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WAbstractProxyModel::removeColumns           </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">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 columns. 
<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#8dbef6f3633812d2df7289cb7cfb192b" title="Method to be called before removing columns.">beginRemoveColumns()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#840b32221ade669cb4e987f86203d1d3" title="Method to be called after removing columns.">endRemoveColumns()</a> before and after the operation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#0c8d19dd3efcff79781566c634ec7522" title="Removes rows.">removeRows()</a>, <a class="el" href="classWt_1_1WAbstractProxyModel.html#5d3d940e4789d25791efead3fd14b9aa" title="Inserts one or more columns.">insertColumns()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#8dbef6f3633812d2df7289cb7cfb192b" title="Method to be called before removing columns.">beginRemoveColumns()</a>, <a class="el" href="classWt_1_1WAbstractItemModel.html#840b32221ade669cb4e987f86203d1d3" title="Method to be called after removing columns.">endRemoveColumns()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="0c8d19dd3efcff79781566c634ec7522"></a><!-- doxytag: member="Wt::WAbstractProxyModel::removeRows" ref="0c8d19dd3efcff79781566c634ec7522" 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::WAbstractProxyModel::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_1WAbstractProxyModel.html#9da4b69588ca66ef9d591e6b1433c655" title="Removes columns.">removeColumns()</a>, <a class="el" href="classWt_1_1WAbstractProxyModel.html#6ee3a51e41a45d91472382093c0a1984" 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="59b7d0b8afcc709be5a93a08e92e0857"></a><!-- doxytag: member="Wt::WAbstractProxyModel::mimeType" ref="59b7d0b8afcc709be5a93a08e92e0857" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Wt::WAbstractProxyModel::mimeType           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a mime-type for dragging a set of indexes. 
<p>
This method returns a mime-type that describes dragging of a selection of items.<p>
The drop event will indicate a <a class="el" href="classWt_1_1WItemSelectionModel.html">selection model</a> for this abstract item model as <a class="el" href="classWt_1_1WDropEvent.html#dfe27a00e34b7322a52bc7dc73d4d5af">source</a>.<p>
The default implementation returns a mime-type for generic drag&amp;drop support between abstract item models.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#c315164c99220a7846d1303a56188054" title="Returns a list of mime-types that could be accepted for a drop event.">acceptDropMimeTypes()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="c315164c99220a7846d1303a56188054"></a><!-- doxytag: member="Wt::WAbstractProxyModel::acceptDropMimeTypes" ref="c315164c99220a7846d1303a56188054" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; Wt::WAbstractProxyModel::acceptDropMimeTypes           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a list of mime-types that could be accepted for a drop event. 
<p>
The default implementation only accepts drag&amp;drop support between abstract item models.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#59b7d0b8afcc709be5a93a08e92e0857" title="Returns a mime-type for dragging a set of indexes.">mimeType()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="cd6129e7686db3e3ddf1e000a379983e"></a><!-- doxytag: member="Wt::WAbstractProxyModel::dropEvent" ref="cd6129e7686db3e3ddf1e000a379983e" args="(const WDropEvent &amp;e, DropAction action, int row, int column, const WModelIndex &amp;parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WAbstractProxyModel::dropEvent           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WDropEvent.html">WDropEvent</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__modelview.html#gca801bdfb957c360c5f8709cc46949aa">DropAction</a>&nbsp;</td>
          <td class="paramname"> <em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>column</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></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>
Handles a drop event. 
<p>
The default implementation only handles generic drag&amp;drop between abstract item models. Source item data is copied (but not the source item's flags).<p>
The location in the model is indicated by the <code>row</code> and <code>column</code> within the <code>parent</code> index. If <code>row</code> is -1, then the item is appended to the <code>parent</code>. Otherwise, the item is inserted at or copied over the indicated item (and subsequent rows). When <code>action</code> is a <a class="el" href="group__modelview.html#ggca801bdfb957c360c5f8709cc46949aa3f0ed7a05e822a2623d65f15e573bc73">MoveAction</a>, the original items are deleted from the source model.<p>
You may want to reimplement this method if you want to handle other mime-type data, or if you want to refine how the drop event of an item selection must be interpreted.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Currently, only row selections are handled by the default implementation.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#59b7d0b8afcc709be5a93a08e92e0857" title="Returns a mime-type for dragging a set of indexes.">mimeType()</a>, <a class="el" href="classWt_1_1WItemSelectionModel.html" title="A class that represents a selection for a WAbstractItemView.">WItemSelectionModel</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="4c406e858ed3020a2fac8414293bed2f"></a><!-- doxytag: member="Wt::WAbstractProxyModel::toRawIndex" ref="4c406e858ed3020a2fac8414293bed2f" args="(const WModelIndex &amp;index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * Wt::WAbstractProxyModel::toRawIndex           </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>
Converts a model index to a raw pointer that remains valid while the model's layout is changed. 
<p>
Use this method to temporarily save model indexes while the model's layout is changed by for example a sorting operation.<p>
The default implementation returns <code>0</code>, which indicates that the index cannot be converted to a raw pointer. If you reimplement this method, you also need to reimplemnt <a class="el" href="classWt_1_1WAbstractProxyModel.html#c32c44c4ac80644bd4293e2d250f6fa6" title="Converts a raw pointer to a model index.">fromRawIndex()</a>.<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#133931424d4daa8422bcdea911cda713" title="Sorts the model according to a particular column.">sort()</a>, <a class="el" href="classWt_1_1WAbstractProxyModel.html#c32c44c4ac80644bd4293e2d250f6fa6" title="Converts a raw pointer to a model index.">fromRawIndex()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="c32c44c4ac80644bd4293e2d250f6fa6"></a><!-- doxytag: member="Wt::WAbstractProxyModel::fromRawIndex" ref="c32c44c4ac80644bd4293e2d250f6fa6" args="(void *rawIndex) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WAbstractProxyModel::fromRawIndex           </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>rawIndex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Converts a raw pointer to a model index. 
<p>
Use this method to create model index from temporary raw pointers. It is the reciproce method of <a class="el" href="classWt_1_1WAbstractProxyModel.html#4c406e858ed3020a2fac8414293bed2f" title="Converts a model index to a raw pointer that remains valid while the model&#39;s...">toRawIndex()</a>.<p>
You can return an invalid modelindex if the rawIndex no longer points to a valid item because of the layout change.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractProxyModel.html#4c406e858ed3020a2fac8414293bed2f" title="Converts a model index to a raw pointer that remains valid while the model&#39;s...">toRawIndex()</a> </dd></dl>

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

</div>
</div><p>
<a class="anchor" name="0144ccc35308b2c0fd6a8b018bd6a3e7"></a><!-- doxytag: member="Wt::WAbstractProxyModel::createSourceIndex" ref="0144ccc35308b2c0fd6a8b018bd6a3e7" args="(int row, int column, void *ptr) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WAbstractProxyModel::createSourceIndex           </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>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>ptr</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a source model index. 
<p>
This is a utility function that allows you to create indexes in the source model. In this way, you can reuse the internal pointers of the source model in proxy model indexes, and convert a proxy model index back to the source model index using this method. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 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>