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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Model/view system</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Wt
 <span id="projectnumber">3.2.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related 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><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Model/view system</div> </div>
</div>
<div class="contents">
<p>Classes that implement Wt's model/view system.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structWt_1_1boost__any__traits.html">Wt::boost_any_traits< Type ></a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A traits class for a type stored in a boost::any. <a href="structWt_1_1boost__any__traits.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html">Wt::Chart::WAbstractChart</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abstract base class for MVC-based charts. <a href="classWt_1_1Chart_1_1WAbstractChart.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html">Wt::Chart::WCartesianChart</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A cartesian chart. <a href="classWt_1_1Chart_1_1WCartesianChart.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html">Wt::Chart::WPieChart</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A pie chart. <a href="classWt_1_1Chart_1_1WPieChart.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Dbo_1_1QueryModel.html">Wt::Dbo::QueryModel< Result ></a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A Wt MVC Model to view/edit query results. <a href="classWt_1_1Dbo_1_1QueryModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html">Wt::Ext::ComboBox</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A widget that provides a drop-down combo-box control. <a href="classWt_1_1Ext_1_1ComboBox.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractItemDelegate.html">Wt::WAbstractItemDelegate</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abstract delegate class for rendering an item in an item view. <a href="classWt_1_1WAbstractItemDelegate.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractItemModel.html">Wt::WAbstractItemModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract model for use with Wt's view classes. <a href="classWt_1_1WAbstractItemModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractItemView.html">Wt::WAbstractItemView</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract base class for item Views. <a href="classWt_1_1WAbstractItemView.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractListModel.html">Wt::WAbstractListModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract list model for use with Wt's view classes. <a href="classWt_1_1WAbstractListModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractProxyModel.html">Wt::WAbstractProxyModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract proxy model for Wt's item models. <a href="classWt_1_1WAbstractProxyModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAbstractTableModel.html">Wt::WAbstractTableModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract table model for use with Wt's view classes. <a href="classWt_1_1WAbstractTableModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WAggregateProxyModel.html">Wt::WAggregateProxyModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A proxy model for Wt's item models that provides column aggregation. <a href="classWt_1_1WAggregateProxyModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBatchEditProxyModel.html">Wt::WBatchEditProxyModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A proxy model for Wt's item models that provides batch editing. <a href="classWt_1_1WBatchEditProxyModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WComboBox.html">Wt::WComboBox</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A widget that provides a drop-down combo-box control. <a href="classWt_1_1WComboBox.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WItemDelegate.html">Wt::WItemDelegate</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Standard delegate class for rendering a view item. <a href="classWt_1_1WItemDelegate.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WItemSelectionModel.html">Wt::WItemSelectionModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A class that represents a selection for a <a class="el" href="classWt_1_1WAbstractItemView.html" title="An abstract base class for item Views.">WAbstractItemView</a>. <a href="classWt_1_1WItemSelectionModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html">Wt::WModelIndex</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A value class that describes an index to an item in a data model. <a href="classWt_1_1WModelIndex.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WReadOnlyProxyModel.html">Wt::WReadOnlyProxyModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A read-only wrapper for a source model. <a href="classWt_1_1WReadOnlyProxyModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSelectionBox.html">Wt::WSelectionBox</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A selection box allows selection from a list of options. <a href="classWt_1_1WSelectionBox.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSortFilterProxyModel.html">Wt::WSortFilterProxyModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A proxy model for Wt's item models that provides filtering and/or sorting. <a href="classWt_1_1WSortFilterProxyModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStandardItem.html">Wt::WStandardItem</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An item in a <a class="el" href="classWt_1_1WStandardItemModel.html" title="A standard data model, which stores its data in memory.">WStandardItemModel</a>. <a href="classWt_1_1WStandardItem.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStandardItemModel.html">Wt::WStandardItemModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A standard data model, which stores its data in memory. <a href="classWt_1_1WStandardItemModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStringListModel.html">Wt::WStringListModel</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An model that manages a list of strings. <a href="classWt_1_1WStringListModel.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSuggestionPopup.html">Wt::WSuggestionPopup</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A widget which popups to assist in editing a textarea or lineedit. <a href="classWt_1_1WSuggestionPopup.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html">Wt::WTableView</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An MVC View widget for tabular data. <a href="classWt_1_1WTableView.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeView.html">Wt::WTreeView</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A view class that displays a model as a tree or tree table. <a href="classWt_1_1WTreeView.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#gaad8dd5072a40c11a34ee548bfb20b2ba">Wt::MatchFlag</a> { <br/>
  <a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baa7b0e63f3888f29b33a722dade0f2bfe8">Wt::MatchExactly</a> = 0x0,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baac2dc009d041fc6e24084ed6be94a9747">Wt::MatchStringExactly</a> = 0x1,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baaaf45aa78ff6ae362f112fa1988104730">Wt::MatchStartsWith</a> = 0x2,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baa0b444585cace7576dda80036805d93bf">Wt::MatchEndsWith</a> = 0x3,
<br/>
  <a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baa801be4d30b88ade43408a788cef7b6ef">Wt::MatchRegExp</a> = 0x4,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baae7967680e21f7dae7b603a1f1c5bf44a">Wt::MatchWildCard</a> = 0x5,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baa72ef48ecccae23d56c8a5bbeb400568d">Wt::MatchCaseSensitive</a> = 0x10,
<a class="el" href="group__modelview.html#ggaad8dd5072a40c11a34ee548bfb20b2baa2e90a2f383a7da7e73e8f498e3f2faf5">Wt::MatchWrap</a> = 0x20
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Flags that specify how to match two values. <a href="group__modelview.html#gaad8dd5072a40c11a34ee548bfb20b2ba">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#gafb18b4339442f1327c2a65850f3d8a53">Wt::HeaderFlag</a> { <br/>
  <a class="el" href="group__modelview.html#ggafb18b4339442f1327c2a65850f3d8a53a55020edcd8019b7fd0b330283b194929">Wt::ColumnIsCollapsed</a> = 0x1,
<a class="el" href="group__modelview.html#ggafb18b4339442f1327c2a65850f3d8a53adb54e2a704ae37581af6cc33828fef71">Wt::ColumnIsExpandedLeft</a> = 0x2,
<a class="el" href="group__modelview.html#ggafb18b4339442f1327c2a65850f3d8a53ab8f2b2845555220afc9c3c24c43194cd">Wt::ColumnIsExpandedRight</a> = 0x4,
<a class="el" href="group__modelview.html#ggafb18b4339442f1327c2a65850f3d8a53ab71d3165c1b9d6cae5538201bffea1a9">Wt::HeaderIsUserCheckable</a> = 0x8,
<br/>
  <a class="el" href="group__modelview.html#ggafb18b4339442f1327c2a65850f3d8a53a8666173a8e2d9d088d4eab78100bf37c">Wt::HeaderIsTristate</a> = 0x10
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Flags that indicate table header options. <a href="group__modelview.html#gafb18b4339442f1327c2a65850f3d8a53">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068">Wt::ItemDataRole</a> { <br/>
  <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a5ed17aded8a0e3b712698cf85a218f1f">Wt::DisplayRole</a> = 0,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068aab6678fc176854f7990d6cff4eed779e">Wt::DecorationRole</a> = 1,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a6bc0da3ea683a06ee293a5a15f903cde">Wt::EditRole</a> = 2,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a776934b313f273b8e5e602e7eee9f73b">Wt::StyleClassRole</a> = 3,
<br/>
  <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068aad55e3ad8d7b76279adfc160bcb74940">Wt::CheckStateRole</a> = 4,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068abde5f65c6b5cab667d11d1ceb87e4606">Wt::ToolTipRole</a> = 5,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068af52f557e7c59dcb07a01ffd532ab839a">Wt::LinkRole</a> = 6,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a4b121c4303b1ab17f6347e950af65c21">Wt::LevelRole</a> = 8,
<br/>
  <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a80b9aeddc46a50e7f71b7fd3b3dc2d7d">Wt::MarkerPenColorRole</a> = 16,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068ae77c18ea017e985b9c029f56c2417ddd">Wt::MarkerBrushColorRole</a> = 17,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a86aaa1fc3bff566ed029cf482727f00f">Wt::BarPenColorRole</a> = 18,
<a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068aa1233ccdd9d90cb2f389ecd51cdb4478">Wt::BarBrushColorRole</a> = 19,
<br/>
  <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a9b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a> = 32
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a role for a data item. <a href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#ga1d77c4de293aebfacbdde124de06b8b0">Wt::ItemFlag</a> { <br/>
  <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a77f858c86a06358abdcc64e4f9d03e40">Wt::ItemIsSelectable</a> = 0x1,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a8664c482d721bbcb73539a924c7a9fab">Wt::ItemIsEditable</a> = 0x2,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0af309bd7d1183d934c73aefb2830e591c">Wt::ItemIsUserCheckable</a> = 0x4,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a2b0edddfd15d67a84723c9043479ced1">Wt::ItemIsDragEnabled</a> = 0x8,
<br/>
  <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a95d23063251001545d4bfab1308879a3">Wt::ItemIsDropEnabled</a> = 0x10,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0aacc3aa45a6c6197687337399315826b3">Wt::ItemIsTristate</a> = 0x20,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a8ce71c5a5f185d9097b4bd596c71315e">Wt::ItemIsXHTMLText</a> = 0x40,
<a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a95a89bce0ba3417d61392eccc09995ef">Wt::ItemIsDirty</a> = 0x80
<br/>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Flags that indicate data item options. <a href="group__modelview.html#ga1d77c4de293aebfacbdde124de06b8b0">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#ga4173856040cf108a9c7360927a43ebac">Wt::SortOrder</a> { <a class="el" href="group__modelview.html#gga4173856040cf108a9c7360927a43ebacac2e51e9fbb9a1250c908443700e03d3e">Wt::AscendingOrder</a>,
<a class="el" href="group__modelview.html#gga4173856040cf108a9c7360927a43ebacaaca46a90a3bf0912bf035a380722c9f3">Wt::DescendingOrder</a>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a sort order. <a href="group__modelview.html#ga4173856040cf108a9c7360927a43ebac">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#gaca801bdfb957c360c5f8709cc46949aa">Wt::DropAction</a> { <a class="el" href="group__modelview.html#ggaca801bdfb957c360c5f8709cc46949aaa153a9813fd5eb77e31695657ac9cfb68">Wt::CopyAction</a> = 0x1,
<a class="el" href="group__modelview.html#ggaca801bdfb957c360c5f8709cc46949aaa3f0ed7a05e822a2623d65f15e573bc73">Wt::MoveAction</a> = 0x2
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a drop action. <a href="group__modelview.html#gaca801bdfb957c360c5f8709cc46949aa">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">WString </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1">Wt::asString</a> (const boost::any &v, const WString &formatString=WString())</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interprets a boost::any as a string value. <a href="#ga57b5cadd177847f51eaeb0cee23782c1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a">Wt::asNumber</a> (const boost::any &v)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interprets a boost::any as a number value. <a href="#ga2494f8093b2b8f2f9c0aa7699e7bfc2a"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template<typename Type > </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__modelview.html#gaeb2f9c583490833afd55d65402b4fea9">Wt::registerType</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Registers MVC-support for a type passed in a boost::any. <a href="#gaeb2f9c583490833afd55d65402b4fea9"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Classes that implement Wt's model/view system. </p>
<h2>1. Models</h2>
<p>The library provides support for tabular, tree-like and tree-table like models. All of these implement <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt's view classes.">WAbstractItemModel</a>.</p>
<h3>Concrete model implementations</h3>
<p>The following concrete model implementations are provided:</p>
<ul>
<li><a class="el" href="classWt_1_1WStandardItemModel.html" title="A standard data model, which stores its data in memory.">Wt::WStandardItemModel</a>: a full general purpose model, which stores data in memory.</li>
<li><a class="el" href="classWt_1_1WStringListModel.html" title="An model that manages a list of strings.">Wt::WStringListModel</a>: a low-height single column model, useful for simple list views</li>
<li><a class="el" href="classWt_1_1Dbo_1_1QueryModel.html" title="A Wt MVC Model to view/edit query results.">Wt::Dbo::QueryModel</a>: a database query backed model</li>
</ul>
<h3>Proxy model implementations</h3>
<p>Proxy models are helper models which wrap around another model, to provide additional functionality on top of the existing model. The following propy models:</p>
<ul>
<li><a class="el" href="classWt_1_1WSortFilterProxyModel.html" title="A proxy model for Wt's item models that provides filtering and/or sorting.">Wt::WSortFilterProxyModel</a>: provides sorting and filtering support</li>
<li><a class="el" href="classWt_1_1WAggregateProxyModel.html" title="A proxy model for Wt's item models that provides column aggregation.">Wt::WAggregateProxyModel</a>: provides column aggregation (useful only for views that implement column aggregation such as WAbstractItemView's).</li>
</ul>
<h3>Abstract models</h3>
<p>Abstract models cannot be instantiated as such, but are the base point for custom model implementations:</p>
<ul>
<li><a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt's view classes.">Wt::WAbstractItemModel</a>: abstract base class of all models</li>
<li><a class="el" href="classWt_1_1WAbstractTableModel.html" title="An abstract table model for use with Wt's view classes.">Wt::WAbstractTableModel</a>: abstract base class for tabular models</li>
<li><a class="el" href="classWt_1_1WAbstractProxyModel.html" title="An abstract proxy model for Wt's item models.">Wt::WAbstractProxyModel</a>: abstract base class for proxy models.</li>
</ul>
<h2>2. Views</h2>
<h3>Item-based views</h3>
<ul>
<li><a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>: a combo box</li>
<li><a class="el" href="classWt_1_1WSelectionBox.html" title="A selection box allows selection from a list of options.">WSelectionBox</a>: a selection box</li>
<li><a class="el" href="classWt_1_1WTableView.html" title="An MVC View widget for tabular data.">WTableView</a>: a table view (with editing support)</li>
<li><a class="el" href="classWt_1_1WTreeView.html" title="A view class that displays a model as a tree or tree table.">WTreeView</a>: a tree(-table) view (with editing support)</li>
<li><a class="el" href="classWt_1_1WSuggestionPopup.html" title="A widget which popups to assist in editing a textarea or lineedit.">WSuggestionPopup</a>: an intelligent input-driven combo box</li>
</ul>
<h3>Graphical views</h3>
<ul>
<li><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Chart::WCartesianChart</a>: 2D cartesian chart</li>
<li><a class="el" href="classWt_1_1Chart_1_1WPieChart.html" title="A pie chart.">Chart::WPieChart</a>: pie charts</li>
</ul>
<h3>ExtJS-based (JavaScript-only) views</h3>
<p>These views are being deprecated in favour of accessible counterparts.</p>
<ul>
<li><a class="el" href="classWt_1_1Ext_1_1ComboBox.html" title="A widget that provides a drop-down combo-box control.">Ext::ComboBox</a>: ExtJS implementation of combo box</li>
<li><a class="el" href="classWt_1_1Ext_1_1TableView.html" title="A widget that displays data in a table.">Ext::TableView</a>: ExtJS implementation of table view (with editing support)</li>
</ul>
<h2>3. Helper classes</h2>
<h3>Model indexes</h3>
<p><a class="el" href="classWt_1_1WModelIndex.html" title="A value class that describes an index to an item in a data model.">WModelIndex</a> represents an index to an item of a <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt's view classes.">WAbstractItemModel</a>, identified by a row, column and parent node.</p>
<h3>Item delegates</h3>
<p>Item delegates are used by <a class="el" href="classWt_1_1WTableView.html" title="An MVC View widget for tabular data.">WTableView</a> and <a class="el" href="classWt_1_1WTreeView.html" title="A view class that displays a model as a tree or tree table.">WTreeView</a> to render a single item and to provide editing support.</p>
<p>The abstract base class is <a class="el" href="classWt_1_1WAbstractItemDelegate.html" title="Abstract delegate class for rendering an item in an item view.">WAbstractItemDelegate</a>, and a default implementation is provided by <a class="el" href="classWt_1_1WItemDelegate.html" title="Standard delegate class for rendering a view item.">WItemDelegate</a>. </p>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="gaca801bdfb957c360c5f8709cc46949aa"></a><!-- doxytag: member="Wt::DropAction" ref="gaca801bdfb957c360c5f8709cc46949aa" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#gaca801bdfb957c360c5f8709cc46949aa">Wt::DropAction</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumeration that indicates a drop action. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#af9142a0328922a1b6872f0186164b066" title="Handles a drop event.">WAbstractItemModel::dropEvent()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ggaca801bdfb957c360c5f8709cc46949aaa153a9813fd5eb77e31695657ac9cfb68"></a><!-- doxytag: member="CopyAction" ref="ggaca801bdfb957c360c5f8709cc46949aaa153a9813fd5eb77e31695657ac9cfb68" args="" -->CopyAction</em> </td><td>
<p>Copy the selection. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaca801bdfb957c360c5f8709cc46949aaa3f0ed7a05e822a2623d65f15e573bc73"></a><!-- doxytag: member="MoveAction" ref="ggaca801bdfb957c360c5f8709cc46949aaa3f0ed7a05e822a2623d65f15e573bc73" args="" -->MoveAction</em> </td><td>
<p>Move the selection (deleting originals) </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gafb18b4339442f1327c2a65850f3d8a53"></a><!-- doxytag: member="Wt::HeaderFlag" ref="gafb18b4339442f1327c2a65850f3d8a53" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#gafb18b4339442f1327c2a65850f3d8a53">Wt::HeaderFlag</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Flags that indicate table header options. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a6bb2a7e70f816606351be4a23c453a49" title="Returns the flags for a header.">WAbstractItemModel::headerFlags()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ggafb18b4339442f1327c2a65850f3d8a53a55020edcd8019b7fd0b330283b194929"></a><!-- doxytag: member="ColumnIsCollapsed" ref="ggafb18b4339442f1327c2a65850f3d8a53a55020edcd8019b7fd0b330283b194929" args="" -->ColumnIsCollapsed</em> </td><td>
<p>Flag that indicates that the column can be expanded. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#ad7da483e201a6a0d717438049ce1f1d1" title="Expands a column.">WAbstractItemModel::expandColumn()</a> </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggafb18b4339442f1327c2a65850f3d8a53adb54e2a704ae37581af6cc33828fef71"></a><!-- doxytag: member="ColumnIsExpandedLeft" ref="ggafb18b4339442f1327c2a65850f3d8a53adb54e2a704ae37581af6cc33828fef71" args="" -->ColumnIsExpandedLeft</em> </td><td>
<p>Flag that indicates that the column was expanded to the left. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#accd1f651c0b01ae897a52b9ad4b0f553" title="Collapses a column.">WAbstractItemModel::collapseColumn()</a> </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggafb18b4339442f1327c2a65850f3d8a53ab8f2b2845555220afc9c3c24c43194cd"></a><!-- doxytag: member="ColumnIsExpandedRight" ref="ggafb18b4339442f1327c2a65850f3d8a53ab8f2b2845555220afc9c3c24c43194cd" args="" -->ColumnIsExpandedRight</em> </td><td>
<p>Flag that indicates that the column was expanded to the right. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#accd1f651c0b01ae897a52b9ad4b0f553" title="Collapses a column.">WAbstractItemModel::collapseColumn()</a> </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggafb18b4339442f1327c2a65850f3d8a53ab71d3165c1b9d6cae5538201bffea1a9"></a><!-- doxytag: member="HeaderIsUserCheckable" ref="ggafb18b4339442f1327c2a65850f3d8a53ab71d3165c1b9d6cae5538201bffea1a9" args="" -->HeaderIsUserCheckable</em> </td><td>
<p>Flag that indicates that the header can be checked. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggafb18b4339442f1327c2a65850f3d8a53a8666173a8e2d9d088d4eab78100bf37c"></a><!-- doxytag: member="HeaderIsTristate" ref="ggafb18b4339442f1327c2a65850f3d8a53a8666173a8e2d9d088d4eab78100bf37c" args="" -->HeaderIsTristate</em> </td><td>
<p>Flag that indicates that the item has three states. </p>
<p>When set, <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068aad55e3ad8d7b76279adfc160bcb74940">Wt::CheckStateRole</a> data is of type <a class="el" href="namespaceWt.html#a59dae4dad2967d1d0f9b765f468442fb" title="Enumeration for the check state of a check box.">Wt::CheckState</a> </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga0ae864e12320f9f89172735e075ed068"></a><!-- doxytag: member="Wt::ItemDataRole" ref="ga0ae864e12320f9f89172735e075ed068" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068">Wt::ItemDataRole</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumeration that indicates a role for a data item. </p>
<p>A single data item can have data associated with it corresponding to different roles. Each role may be used by the corresponding view class in a different way.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#a7f05920329ca4b7fdbb10931afdb634e" title="Returns data in the model at this index.">WModelIndex::data()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a5ed17aded8a0e3b712698cf85a218f1f"></a><!-- doxytag: member="DisplayRole" ref="gga0ae864e12320f9f89172735e075ed068a5ed17aded8a0e3b712698cf85a218f1f" args="" -->DisplayRole</em> </td><td>
<p>Role for textual representation. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068aab6678fc176854f7990d6cff4eed779e"></a><!-- doxytag: member="DecorationRole" ref="gga0ae864e12320f9f89172735e075ed068aab6678fc176854f7990d6cff4eed779e" args="" -->DecorationRole</em> </td><td>
<p>Role for the url of an icon. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a6bc0da3ea683a06ee293a5a15f903cde"></a><!-- doxytag: member="EditRole" ref="gga0ae864e12320f9f89172735e075ed068a6bc0da3ea683a06ee293a5a15f903cde" args="" -->EditRole</em> </td><td>
<p>Role for the edited value. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a776934b313f273b8e5e602e7eee9f73b"></a><!-- doxytag: member="StyleClassRole" ref="gga0ae864e12320f9f89172735e075ed068a776934b313f273b8e5e602e7eee9f73b" args="" -->StyleClassRole</em> </td><td>
<p>Role for the style class. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068aad55e3ad8d7b76279adfc160bcb74940"></a><!-- doxytag: member="CheckStateRole" ref="gga0ae864e12320f9f89172735e075ed068aad55e3ad8d7b76279adfc160bcb74940" args="" -->CheckStateRole</em> </td><td>
<p>Role that indicates the check state. Data for this role should be a <code>bool</code>. When the <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0aacc3aa45a6c6197687337399315826b3">Wt::ItemIsTristate</a> flag is set for the item, data for this role should be of type <a class="el" href="namespaceWt.html#a59dae4dad2967d1d0f9b765f468442fb" title="Enumeration for the check state of a check box.">Wt::CheckState</a>. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068abde5f65c6b5cab667d11d1ceb87e4606"></a><!-- doxytag: member="ToolTipRole" ref="gga0ae864e12320f9f89172735e075ed068abde5f65c6b5cab667d11d1ceb87e4606" args="" -->ToolTipRole</em> </td><td>
<p>Role for a tooltip. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068af52f557e7c59dcb07a01ffd532ab839a"></a><!-- doxytag: member="LinkRole" ref="gga0ae864e12320f9f89172735e075ed068af52f557e7c59dcb07a01ffd532ab839a" args="" -->LinkRole</em> </td><td>
<p>Role for a link. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a4b121c4303b1ab17f6347e950af65c21"></a><!-- doxytag: member="LevelRole" ref="gga0ae864e12320f9f89172735e075ed068a4b121c4303b1ab17f6347e950af65c21" args="" -->LevelRole</em> </td><td>
<p>Level in aggregation, for header data. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a80b9aeddc46a50e7f71b7fd3b3dc2d7d"></a><!-- doxytag: member="MarkerPenColorRole" ref="gga0ae864e12320f9f89172735e075ed068a80b9aeddc46a50e7f71b7fd3b3dc2d7d" args="" -->MarkerPenColorRole</em> </td><td>
<p>Marker pen color (for <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Chart::WCartesianChart</a>) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068ae77c18ea017e985b9c029f56c2417ddd"></a><!-- doxytag: member="MarkerBrushColorRole" ref="gga0ae864e12320f9f89172735e075ed068ae77c18ea017e985b9c029f56c2417ddd" args="" -->MarkerBrushColorRole</em> </td><td>
<p>Marker brush color (for <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Chart::WCartesianChart</a>) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a86aaa1fc3bff566ed029cf482727f00f"></a><!-- doxytag: member="BarPenColorRole" ref="gga0ae864e12320f9f89172735e075ed068a86aaa1fc3bff566ed029cf482727f00f" args="" -->BarPenColorRole</em> </td><td>
<p>Bar pen color (for <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Chart::WCartesianChart</a>) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068aa1233ccdd9d90cb2f389ecd51cdb4478"></a><!-- doxytag: member="BarBrushColorRole" ref="gga0ae864e12320f9f89172735e075ed068aa1233ccdd9d90cb2f389ecd51cdb4478" args="" -->BarBrushColorRole</em> </td><td>
<p>Bar brush color (for <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Chart::WCartesianChart</a>) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga0ae864e12320f9f89172735e075ed068a9b7eae9fc07ea4fd8afe7bc97954162c"></a><!-- doxytag: member="UserRole" ref="gga0ae864e12320f9f89172735e075ed068a9b7eae9fc07ea4fd8afe7bc97954162c" args="" -->UserRole</em> </td><td>
<p>First role reserved for user purposes. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga1d77c4de293aebfacbdde124de06b8b0"></a><!-- doxytag: member="Wt::ItemFlag" ref="ga1d77c4de293aebfacbdde124de06b8b0" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#ga1d77c4de293aebfacbdde124de06b8b0">Wt::ItemFlag</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Flags that indicate data item options. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#a04877832f757772b8dc7e6b30fb3638c" title="Returns the flags for this item.">WModelIndex::flags()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a77f858c86a06358abdcc64e4f9d03e40"></a><!-- doxytag: member="ItemIsSelectable" ref="gga1d77c4de293aebfacbdde124de06b8b0a77f858c86a06358abdcc64e4f9d03e40" args="" -->ItemIsSelectable</em> </td><td>
<p>Item can be selected. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a8664c482d721bbcb73539a924c7a9fab"></a><!-- doxytag: member="ItemIsEditable" ref="gga1d77c4de293aebfacbdde124de06b8b0a8664c482d721bbcb73539a924c7a9fab" args="" -->ItemIsEditable</em> </td><td>
<p>Item can be edited. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0af309bd7d1183d934c73aefb2830e591c"></a><!-- doxytag: member="ItemIsUserCheckable" ref="gga1d77c4de293aebfacbdde124de06b8b0af309bd7d1183d934c73aefb2830e591c" args="" -->ItemIsUserCheckable</em> </td><td>
<p>Item can be checked. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a2b0edddfd15d67a84723c9043479ced1"></a><!-- doxytag: member="ItemIsDragEnabled" ref="gga1d77c4de293aebfacbdde124de06b8b0a2b0edddfd15d67a84723c9043479ced1" args="" -->ItemIsDragEnabled</em> </td><td>
<p>Item can be dragged. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a95d23063251001545d4bfab1308879a3"></a><!-- doxytag: member="ItemIsDropEnabled" ref="gga1d77c4de293aebfacbdde124de06b8b0a95d23063251001545d4bfab1308879a3" args="" -->ItemIsDropEnabled</em> </td><td>
<p>Item can be a drop target. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0aacc3aa45a6c6197687337399315826b3"></a><!-- doxytag: member="ItemIsTristate" ref="gga1d77c4de293aebfacbdde124de06b8b0aacc3aa45a6c6197687337399315826b3" args="" -->ItemIsTristate</em> </td><td>
<p>Item has tree states. When set, <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068aad55e3ad8d7b76279adfc160bcb74940">Wt::CheckStateRole</a> data is of type <a class="el" href="namespaceWt.html#a59dae4dad2967d1d0f9b765f468442fb" title="Enumeration for the check state of a check box.">Wt::CheckState</a> </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a8ce71c5a5f185d9097b4bd596c71315e"></a><!-- doxytag: member="ItemIsXHTMLText" ref="gga1d77c4de293aebfacbdde124de06b8b0a8ce71c5a5f185d9097b4bd596c71315e" args="" -->ItemIsXHTMLText</em> </td><td>
<p>Item's textual is HTML. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga1d77c4de293aebfacbdde124de06b8b0a95a89bce0ba3417d61392eccc09995ef"></a><!-- doxytag: member="ItemIsDirty" ref="gga1d77c4de293aebfacbdde124de06b8b0a95a89bce0ba3417d61392eccc09995ef" args="" -->ItemIsDirty</em> </td><td>
<p>Item's value has been modified. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gaad8dd5072a40c11a34ee548bfb20b2ba"></a><!-- doxytag: member="Wt::MatchFlag" ref="gaad8dd5072a40c11a34ee548bfb20b2ba" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#gaad8dd5072a40c11a34ee548bfb20b2ba">Wt::MatchFlag</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Flags that specify how to match two values. </p>
<p>Except when MatchExactly, the lexical matching is done (by comparing string representations of the value with the query). This is by default case insensitive, unless MatchCaseSensitive is OR'ed. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baa7b0e63f3888f29b33a722dade0f2bfe8"></a><!-- doxytag: member="MatchExactly" ref="ggaad8dd5072a40c11a34ee548bfb20b2baa7b0e63f3888f29b33a722dade0f2bfe8" args="" -->MatchExactly</em> </td><td>
<p>Same type and value. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baac2dc009d041fc6e24084ed6be94a9747"></a><!-- doxytag: member="MatchStringExactly" ref="ggaad8dd5072a40c11a34ee548bfb20b2baac2dc009d041fc6e24084ed6be94a9747" args="" -->MatchStringExactly</em> </td><td>
<p>Lexical match. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baaaf45aa78ff6ae362f112fa1988104730"></a><!-- doxytag: member="MatchStartsWith" ref="ggaad8dd5072a40c11a34ee548bfb20b2baaaf45aa78ff6ae362f112fa1988104730" args="" -->MatchStartsWith</em> </td><td>
<p>Match start with query. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baa0b444585cace7576dda80036805d93bf"></a><!-- doxytag: member="MatchEndsWith" ref="ggaad8dd5072a40c11a34ee548bfb20b2baa0b444585cace7576dda80036805d93bf" args="" -->MatchEndsWith</em> </td><td>
<p>Match end with query. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baa801be4d30b88ade43408a788cef7b6ef"></a><!-- doxytag: member="MatchRegExp" ref="ggaad8dd5072a40c11a34ee548bfb20b2baa801be4d30b88ade43408a788cef7b6ef" args="" -->MatchRegExp</em> </td><td>
<p>Regular expression match. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baae7967680e21f7dae7b603a1f1c5bf44a"></a><!-- doxytag: member="MatchWildCard" ref="ggaad8dd5072a40c11a34ee548bfb20b2baae7967680e21f7dae7b603a1f1c5bf44a" args="" -->MatchWildCard</em> </td><td>
<p>Wildcard match. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baa72ef48ecccae23d56c8a5bbeb400568d"></a><!-- doxytag: member="MatchCaseSensitive" ref="ggaad8dd5072a40c11a34ee548bfb20b2baa72ef48ecccae23d56c8a5bbeb400568d" args="" -->MatchCaseSensitive</em> </td><td>
<p>Case sensitive. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggaad8dd5072a40c11a34ee548bfb20b2baa2e90a2f383a7da7e73e8f498e3f2faf5"></a><!-- doxytag: member="MatchWrap" ref="ggaad8dd5072a40c11a34ee548bfb20b2baa2e90a2f383a7da7e73e8f498e3f2faf5" args="" -->MatchWrap</em> </td><td>
<p>Wrap around whole model. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga4173856040cf108a9c7360927a43ebac"></a><!-- doxytag: member="Wt::SortOrder" ref="ga4173856040cf108a9c7360927a43ebac" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__modelview.html#ga4173856040cf108a9c7360927a43ebac">Wt::SortOrder</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumeration that indicates a sort order. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga4173856040cf108a9c7360927a43ebacac2e51e9fbb9a1250c908443700e03d3e"></a><!-- doxytag: member="AscendingOrder" ref="gga4173856040cf108a9c7360927a43ebacac2e51e9fbb9a1250c908443700e03d3e" args="" -->AscendingOrder</em> </td><td>
<p>Ascending sort order. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4173856040cf108a9c7360927a43ebacaaca46a90a3bf0912bf035a380722c9f3"></a><!-- doxytag: member="DescendingOrder" ref="gga4173856040cf108a9c7360927a43ebacaaca46a90a3bf0912bf035a380722c9f3" args="" -->DescendingOrder</em> </td><td>
<p>Descending sort order. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga2494f8093b2b8f2f9c0aa7699e7bfc2a"></a><!-- doxytag: member="Wt::asNumber" ref="ga2494f8093b2b8f2f9c0aa7699e7bfc2a" args="(const boost::any &v)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double Wt::asNumber </td>
<td>(</td>
<td class="paramtype">const boost::any & </td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Interprets a boost::any as a number value. </p>
<p>The conversion works as follows:</p>
<ul>
<li>A boost::any without a value, or a string that does not represent a number, is converted to a <em>NaN</em>.</li>
<li>A string is lexically casted to a double</li>
<li>Data of type <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> is converted to an integer number using <a class="el" href="classWt_1_1WDate.html#acee5169b63142a6543dc0bb709303769" title="Converts the date to a Julian day.">WDate::toJulianDay()</a>.</li>
<li>Data of type <a class="el" href="classWt_1_1WDateTime.html" title="A calendar date and clock time.">WDateTime</a> is converted to an integer number using <a class="el" href="classWt_1_1WDateTime.html#aa8f4b59cddc562f9902e554d888c9b90" title="Returns the number of seconds since the Epoch.">WDateTime::toTime_t()</a>.</li>
<li>Data of type <a class="el" href="classWt_1_1WTime.html" title="A value class that defines a clock time.">WTime</a> is converted to an integer number as the number of milliseconds since midnight.</li>
</ul>
<p>Other types are converted according to <a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a" title="Interprets a boost::any as a number value.">Wt::boost_any_traits<Type>::asNumber()</a>. For these other types, you need to register their support first using <a class="el" href="group__modelview.html#gaeb2f9c583490833afd55d65402b4fea9" title="Registers MVC-support for a type passed in a boost::any.">Wt::registerType<Type>()</a> and you may want to specialize Wt::boost_any_traits<Type> for a custom handling of their conversions.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1" title="Interprets a boost::any as a string value.">asString()</a>, <a class="el" href="structWt_1_1boost__any__traits.html" title="A traits class for a type stored in a boost::any.">boost_any_traits</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga57b5cadd177847f51eaeb0cee23782c1"></a><!-- doxytag: member="Wt::asString" ref="ga57b5cadd177847f51eaeb0cee23782c1" args="(const boost::any &v, const WString &formatString=WString())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">WString Wt::asString </td>
<td>(</td>
<td class="paramtype">const boost::any & </td>
<td class="paramname"><em>v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const WString & </td>
<td class="paramname"><em>formatString</em> = <code>WString()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Interprets a boost::any as a string value. </p>
<p>The conversion works as follows:</p>
<ul>
<li>A boost::any without a value is converted to an empty string</li>
<li>Number values (integers and doubles) are formatted using the format string with <em>snprintf()</em>, or with <em>boost::lexical_cast<></em> if the format string is empty.</li>
<li>Data of type <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> is converted with <a class="el" href="classWt_1_1WDate.html#a1d9b6450f5f6126722f07c971ea9e4c0" title="Formats this date to a string using a default format.">WDate::toString()</a> using the indicated format string. If the format string is empty, "dd/MM/yy" is assumed.</li>
<li>Data of type <a class="el" href="classWt_1_1WTime.html" title="A value class that defines a clock time.">WTime</a> is converted with <a class="el" href="classWt_1_1WTime.html#a34367d6f97d872d7598c1ba88b4fc95c" title="Formats this time to a string using a default format.">WTime::toString()</a> using the indicated format string. If the format string is emtpy, "HH:mm:ss" is assumed.</li>
<li>Data of type <a class="el" href="classWt_1_1WDateTime.html" title="A calendar date and clock time.">WDateTime</a> is converted with <a class="el" href="classWt_1_1WDateTime.html#abb73b8df39ef05dbab3e0e7d7281c7d1" title="Formats this datetime to a string using a default format.">WDateTime::toString()</a> using the indicated format string. If the format string is empty, "dd/MM/yy HH:mm:ss" is assumed.</li>
</ul>
<p>Other types are converted according to <a class="el" href="group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1" title="Interprets a boost::any as a string value.">Wt::boost_any_traits<Type>::asString()</a>. For these other types, you need to register their support first using <a class="el" href="group__modelview.html#gaeb2f9c583490833afd55d65402b4fea9" title="Registers MVC-support for a type passed in a boost::any.">Wt::registerType<Type>()</a> and you may want to specialize Wt::boost_any_traits<Type> for a custom handling of their conversions.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a" title="Interprets a boost::any as a number value.">asNumber()</a>, <a class="el" href="structWt_1_1boost__any__traits.html" title="A traits class for a type stored in a boost::any.">boost_any_traits</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaeb2f9c583490833afd55d65402b4fea9"></a><!-- doxytag: member="Wt::registerType" ref="gaeb2f9c583490833afd55d65402b4fea9" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename Type > </div>
<table class="memname">
<tr>
<td class="memname">void Wt::registerType </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Registers MVC-support for a type passed in a boost::any. </p>
<p>By registering a type using this method, the global function <a class="el" href="group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1" title="Interprets a boost::any as a string value.">Wt::asString()</a>, which converts a boost::any to a string, will know how to interpret a boost::any holding a value of type <code>Type</code> using <a class="el" href="group__modelview.html#ga57b5cadd177847f51eaeb0cee23782c1" title="Interprets a boost::any as a string value.">Wt::boost_any_traits<Type>::asString()</a>. This gives Wt's built-in standard View classes the ability to display <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068a5ed17aded8a0e3b712698cf85a218f1f" title="Role for textual representation.">Wt::DisplayRole</a> data of a <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt's view classes.">Wt::WAbstractItemModel</a> model.</p>
<p>Similarly, <a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a" title="Interprets a boost::any as a number value.">Wt::asNumber()</a> uses <a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a" title="Interprets a boost::any as a number value.">Wt::boost_any_traits<Type>::asNumber()</a> for use by <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Wt::Chart::WCartesianChart</a> and <a class="el" href="classWt_1_1Chart_1_1WPieChart.html" title="A pie chart.">Wt::Chart::WPieChart</a> as numerical data.</p>
<p>The default implementation of Wt::boost_any_traits<Type> converts a value <code>t</code> to a <a class="el" href="classWt_1_1WString.html" title="A value class which describes a locale-aware unicode string.">Wt::WString</a> by using boost::lexical_cast<std::string>() which it expects to return a UTF-8 string. This conversion thus relies on the std::ostream<< operator to be overloaded for the type. You may want to specialize <a class="el" href="structWt_1_1boost__any__traits.html" title="A traits class for a type stored in a boost::any.">Wt::boost_any_traits</a> to provide a custom conversion for a type, or if you want to take into account the format string.</p>
<p>The following types are registered by Wt itself:</p>
<ul>
<li>strings of type <a class="el" href="classWt_1_1WString.html" title="A value class which describes a locale-aware unicode string.">WString</a> or std::string</li>
<li><a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a>, <a class="el" href="classWt_1_1WTime.html" title="A value class that defines a clock time.">WTime</a>, <a class="el" href="classWt_1_1WDateTime.html" title="A calendar date and clock time.">WDateTime</a></li>
<li>standard C++ numeric types (int, double, etc...)</li>
<li>bool</li>
</ul>
<p>This method is thread-safe, and it is not an error to register the same type multiple times. </p>
</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by <a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>
|