<!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 examples: /home/koen/project/wt/public-git/wt/examples/treelist/TreeNode.C Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </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 examples  <span id="projectnumber">3.2.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <div class="title">/home/koen/project/wt/public-git/wt/examples/treelist/TreeNode.C</div> </div> </div> <div class="contents"> <a href="TreeNode_8C.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.</span> <a name="l00003"></a>00003 <span class="comment"> *</span> <a name="l00004"></a>00004 <span class="comment"> * See the LICENSE file for terms of use.</span> <a name="l00005"></a>00005 <span class="comment"> */</span> <a name="l00006"></a>00006 <span class="preprocessor">#include <boost/lexical_cast.hpp></span> <a name="l00007"></a>00007 <a name="l00008"></a>00008 <span class="preprocessor">#include <Wt/WTable></span> <a name="l00009"></a>00009 <span class="preprocessor">#include <Wt/WTableCell></span> <a name="l00010"></a>00010 <span class="preprocessor">#include <Wt/WImage></span> <a name="l00011"></a>00011 <span class="preprocessor">#include <Wt/WText></span> <a name="l00012"></a>00012 <span class="preprocessor">#include <Wt/WCssDecorationStyle></span> <a name="l00013"></a>00013 <a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="TreeNode_8h.html">TreeNode.h</a>"</span> <a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="IconPair_8h.html">IconPair.h</a>"</span> <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="keyword">using</span> std::find; <a name="l00018"></a>00018 <a name="l00019"></a>00019 std::string <a class="code" href="classTreeNode.html#a55d4c04fb9c147448963b149e8fc8cb6">TreeNode::imageLine_</a>[] = { <span class="stringliteral">"icons/line-middle.gif"</span>, <a name="l00020"></a>00020 <span class="stringliteral">"icons/line-last.gif"</span> }; <a name="l00021"></a>00021 std::string <a class="code" href="classTreeNode.html#a75675ae3d29018b6bc5d3bb614ed494b">TreeNode::imagePlus_</a>[] = { <span class="stringliteral">"icons/nav-plus-line-middle.gif"</span>, <a name="l00022"></a>00022 <span class="stringliteral">"icons/nav-plus-line-last.gif"</span> }; <a name="l00023"></a>00023 std::string <a class="code" href="classTreeNode.html#ab404df187e81ce5f216eb815572f11b6">TreeNode::imageMin_</a>[] = { <span class="stringliteral">"icons/nav-minus-line-middle.gif"</span>, <a name="l00024"></a>00024 <span class="stringliteral">"icons/nav-minus-line-last.gif"</span> }; <a name="l00025"></a>00025 <a name="l00026"></a><a class="code" href="classTreeNode.html#aed275ce59686bd08fdabaaea3488e4db">00026</a> <a class="code" href="classTreeNode.html#aed275ce59686bd08fdabaaea3488e4db" title="Construct a tree node with the given label.">TreeNode::TreeNode</a>(<span class="keyword">const</span> std::string labelText, <a name="l00027"></a>00027 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html#a140dea437d52d3d7c438ea3bd16a1480">Wt::TextFormat</a> labelFormat, <a name="l00028"></a>00028 <a class="code" href="classIconPair.html" title="An icon pair (identical to WIconPair)">IconPair</a> *labelIcon, <a name="l00029"></a>00029 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">Wt::WContainerWidget</a> *parent) <a name="l00030"></a>00030 : Wt::WCompositeWidget(parent), <a name="l00031"></a>00031 parentNode_(0), <a name="l00032"></a>00032 labelIcon_(labelIcon) <a name="l00033"></a>00033 { <a name="l00034"></a>00034 <span class="comment">// pre-learned stateless implementations ...</span> <a name="l00035"></a>00035 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html#adaa163b9e92933f3b2ff4ec58e2734c6">implementStateless</a>(&<a class="code" href="classTreeNode.html#abac0f39de477ab6f8d3373ae9f900652" title="Expands this node.">TreeNode::expand</a>, &<a class="code" href="classTreeNode.html#a353196fdcb63d58e6a1a007a81bb81ee" title="Undo function for prelearning expand()">TreeNode::undoExpand</a>); <a name="l00036"></a>00036 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html#adaa163b9e92933f3b2ff4ec58e2734c6">implementStateless</a>(&<a class="code" href="classTreeNode.html#a7c38a975e8b3a31932b8409fa4231bc4" title="Collapses this node.">TreeNode::collapse</a>, &<a class="code" href="classTreeNode.html#a0dadb29c855289ba6adaabed4ba86990" title="Undo function for prelearning collapse()">TreeNode::undoCollapse</a>); <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="comment">// ... or auto-learned stateless implementations</span> <a name="l00039"></a>00039 <span class="comment">// which do not need undo functions</span> <a name="l00040"></a>00040 <span class="comment">//implementStateless(&TreeNode::expand);</span> <a name="l00041"></a>00041 <span class="comment">//implementStateless(&TreeNode::collapse);</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCompositeWidget.html#aa5a3e93a551fd41b180c6b28fa169946">setImplementation</a>(<a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html">Wt::WTable</a>()); <a name="l00044"></a>00044 <a name="l00045"></a>00045 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a> = <span class="keyword">new</span> <a class="code" href="classIconPair.html" title="An icon pair (identical to WIconPair)">IconPair</a>(<a class="code" href="classTreeNode.html#a75675ae3d29018b6bc5d3bb614ed494b">imagePlus_</a>[<a class="code" href="classTreeNode.html#a8ec244c77c2d4cd7335340dead3ff6e5aa9495647920a84019492819c907b9b0c">Last</a>], <a class="code" href="classTreeNode.html#ab404df187e81ce5f216eb815572f11b6">imageMin_</a>[Last]); <a name="l00046"></a>00046 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00047"></a>00047 <a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html">Wt::WImage</a>(<a class="code" href="classTreeNode.html#a55d4c04fb9c147448963b149e8fc8cb6">imageLine_</a>[Last]); <a name="l00048"></a>00048 <a name="l00049"></a>00049 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">Wt::WContainerWidget</a>(); <a name="l00050"></a>00050 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00051"></a>00051 <a name="l00052"></a>00052 <a class="code" href="classTreeNode.html#a9bd2202cc1f44ce4cf21943cc64e3bd2" title="The label.">labelText_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">Wt::WText</a>(labelText); <a name="l00053"></a>00053 <a class="code" href="classTreeNode.html#a9bd2202cc1f44ce4cf21943cc64e3bd2" title="The label.">labelText_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#af22c64c4c5fed3d2aef0915a7e5c5866">setTextFormat</a>(labelFormat); <a name="l00054"></a>00054 <a class="code" href="classTreeNode.html#a9bd2202cc1f44ce4cf21943cc64e3bd2" title="The label.">labelText_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#afd3a3b359681111460a93d13979d17dd">setStyleClass</a>(<span class="stringliteral">"treenodelabel"</span>); <a name="l00055"></a>00055 <a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">Wt::WText</a>(); <a name="l00056"></a>00056 <a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#a9795c18e926b26b97fcbabc62a1dd4e3">setMargin</a>(7, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3a6568fecac7c7d7223afaed240bcfdd9e">Wt::Left</a>); <a name="l00057"></a>00057 <a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#afd3a3b359681111460a93d13979d17dd">setStyleClass</a>(<span class="stringliteral">"treenodechildcount"</span>); <a name="l00058"></a>00058 <a name="l00059"></a>00059 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 0)->addWidget(<a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>); <a name="l00060"></a>00060 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 0)->addWidget(<a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>); <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>) { <a name="l00063"></a>00063 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 1)->addWidget(<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>); <a name="l00064"></a>00064 <a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCompositeWidget.html#af548a47d09382c9413a688c0eb65df14">setVerticalAlignment</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f">Wt::AlignMiddle</a>); <a name="l00065"></a>00065 } <a name="l00066"></a>00066 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 1)->addWidget(<a class="code" href="classTreeNode.html#a9bd2202cc1f44ce4cf21943cc64e3bd2" title="The label.">labelText_</a>); <a name="l00067"></a>00067 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 1)->addWidget(<a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a>); <a name="l00068"></a>00068 <a name="l00069"></a>00069 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(1, 1)->addWidget(<a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>); <a name="l00070"></a>00070 <a name="l00071"></a>00071 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 0)->setContentAlignment(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9">Wt::AlignTop</a>); <a name="l00072"></a>00072 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 1)->setContentAlignment(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f">Wt::AlignMiddle</a>); <a name="l00073"></a>00073 <a name="l00074"></a>00074 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#add2ab8e518f79ef40d8000f32bc004dc" title="Signal emitted when clicked while in state 0 (icon 1 is shown).">icon1Clicked</a>.<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1EventSignal.html#a36896f54a4db342af24efa6e9d703455">connect</a>(<span class="keyword">this</span>, &<a class="code" href="classTreeNode.html#abac0f39de477ab6f8d3373ae9f900652" title="Expands this node.">TreeNode::expand</a>); <a name="l00075"></a>00075 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#aaa5a73811e71280dcdf2ce4e9efc540a" title="Signal emitted when clicked while in state 1 (icon 2 is shown).">icon2Clicked</a>.<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1EventSignal.html#a36896f54a4db342af24efa6e9d703455">connect</a>(<span class="keyword">this</span>, &<a class="code" href="classTreeNode.html#a7c38a975e8b3a31932b8409fa4231bc4" title="Collapses this node.">TreeNode::collapse</a>); <a name="l00076"></a>00076 } <span class="comment">//</span> <a name="l00077"></a>00077 <a name="l00078"></a><a class="code" href="classTreeNode.html#abc3819da4ca51204db2f9528d0ea1c73">00078</a> <span class="keywordtype">bool</span> <a class="code" href="classTreeNode.html#abc3819da4ca51204db2f9528d0ea1c73" title="Returns if is the last child within its parent (is rendered differently)">TreeNode::isLastChildNode</a>()<span class="keyword"> const</span> <a name="l00079"></a>00079 <span class="keyword"></span>{ <a name="l00080"></a>00080 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#acbb1649a75a11ed3dee8022bfdf53b6c" title="The parent node.">parentNode_</a>) { <a name="l00081"></a>00081 <span class="keywordflow">return</span> <a class="code" href="classTreeNode.html#acbb1649a75a11ed3dee8022bfdf53b6c" title="The parent node.">parentNode_</a>-><a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.back() == <span class="keyword">this</span>; <a name="l00082"></a>00082 } <span class="keywordflow">else</span> <a name="l00083"></a>00083 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00084"></a>00084 } <a name="l00085"></a>00085 <a name="l00086"></a><a class="code" href="classTreeNode.html#aa3bca1b27d9cbb05b0fa13504498179e">00086</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#aa3bca1b27d9cbb05b0fa13504498179e" title="Adds a child node.">TreeNode::addChildNode</a>(<a class="code" href="classTreeNode.html" title="Example implementation of a single tree list node.">TreeNode</a> *node) <a name="l00087"></a>00087 { <a name="l00088"></a>00088 <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.push_back(node); <a name="l00089"></a>00089 node-><a class="code" href="classTreeNode.html#acbb1649a75a11ed3dee8022bfdf53b6c" title="The parent node.">parentNode_</a> = <span class="keyword">this</span>; <a name="l00090"></a>00090 <a name="l00091"></a>00091 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html#a2cfe66d9b62940f889e99538a9f478d2">addWidget</a>(node); <a name="l00092"></a>00092 <a name="l00093"></a>00093 <a class="code" href="classTreeNode.html#a3e45cd3a50ee872dcff38b27c41b42fb" title="Rerender when children have changed.">childNodesChanged</a>(); <a name="l00094"></a>00094 } <a name="l00095"></a>00095 <a name="l00096"></a><a class="code" href="classTreeNode.html#aa772a12f5220a2256247048a1edcc581">00096</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#aa772a12f5220a2256247048a1edcc581" title="Removes a child node.">TreeNode::removeChildNode</a>(<a class="code" href="classTreeNode.html" title="Example implementation of a single tree list node.">TreeNode</a> *node) <a name="l00097"></a>00097 { <a name="l00098"></a>00098 <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.erase(std::find(<a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.begin(), <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.end(), node)); <a name="l00099"></a>00099 <a name="l00100"></a>00100 node-><a class="code" href="classTreeNode.html#acbb1649a75a11ed3dee8022bfdf53b6c" title="The parent node.">parentNode_</a> = 0; <a name="l00101"></a>00101 <a name="l00102"></a>00102 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html#a4292867b1872bd31c7d0c3346d988470">removeWidget</a>(node); <a name="l00103"></a>00103 <a name="l00104"></a>00104 <a class="code" href="classTreeNode.html#a3e45cd3a50ee872dcff38b27c41b42fb" title="Rerender when children have changed.">childNodesChanged</a>(); <a name="l00105"></a>00105 } <span class="comment">//</span> <a name="l00106"></a>00106 <a name="l00107"></a><a class="code" href="classTreeNode.html#a3e45cd3a50ee872dcff38b27c41b42fb">00107</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#a3e45cd3a50ee872dcff38b27c41b42fb" title="Rerender when children have changed.">TreeNode::childNodesChanged</a>() <a name="l00108"></a>00108 { <a name="l00109"></a>00109 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.size(); ++i) <a name="l00110"></a>00110 <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>[i]-><a class="code" href="classTreeNode.html#adaba65c9268249f665d548082d94b930" title="Adjust the expand icon.">adjustExpandIcon</a>(); <a name="l00111"></a>00111 <a name="l00112"></a>00112 <a class="code" href="classTreeNode.html#adaba65c9268249f665d548082d94b930" title="Adjust the expand icon.">adjustExpandIcon</a>(); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.size()) <a name="l00115"></a>00115 <a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a> <a name="l00116"></a>00116 ->setText(<span class="stringliteral">"("</span> + boost::lexical_cast<std::string>(<a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.size()) <a name="l00117"></a>00117 + <span class="stringliteral">")"</span>); <a name="l00118"></a>00118 <span class="keywordflow">else</span> <a name="l00119"></a>00119 <a class="code" href="classTreeNode.html#a6d5140f032f5b24b3398ccdcdba03ca0" title="The children count '(x)' for x children.">childCountLabel_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a2f788aa524d51b3962642c9f565e66e6">setText</a>(<span class="stringliteral">""</span>); <a name="l00120"></a>00120 <a name="l00121"></a>00121 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html#a92d8b00edc79b7a60d41d7c088f50436">resetLearnedSlots</a>(); <a name="l00122"></a>00122 } <span class="comment">//</span> <a name="l00123"></a>00123 <a name="l00124"></a><a class="code" href="classTreeNode.html#a7c38a975e8b3a31932b8409fa4231bc4">00124</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#a7c38a975e8b3a31932b8409fa4231bc4" title="Collapses this node.">TreeNode::collapse</a>() <a name="l00125"></a>00125 { <a name="l00126"></a>00126 <a class="code" href="classTreeNode.html#a650686b10a2f2cdb815462dbf030c204" title="Was collapsed (for undo of prelearned collapse() and expand() slots.">wasCollapsed_</a> = <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#ad565084bebed7abe45a659f6ba7101cf">isHidden</a>(); <a name="l00127"></a>00127 <a name="l00128"></a>00128 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(0); <a name="l00129"></a>00129 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00130"></a>00130 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>) <a name="l00131"></a>00131 <a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(0); <a name="l00132"></a>00132 } <span class="comment">//</span> <a name="l00133"></a>00133 <a name="l00134"></a><a class="code" href="classTreeNode.html#abac0f39de477ab6f8d3373ae9f900652">00134</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#abac0f39de477ab6f8d3373ae9f900652" title="Expands this node.">TreeNode::expand</a>() <a name="l00135"></a>00135 { <a name="l00136"></a>00136 <a class="code" href="classTreeNode.html#a650686b10a2f2cdb815462dbf030c204" title="Was collapsed (for undo of prelearned collapse() and expand() slots.">wasCollapsed_</a> = <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#ad565084bebed7abe45a659f6ba7101cf">isHidden</a>(); <a name="l00137"></a>00137 <a name="l00138"></a>00138 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(1); <a name="l00139"></a>00139 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a52dcef5a385ddfa0a8c3e6c20000f181">show</a>(); <a name="l00140"></a>00140 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>) <a name="l00141"></a>00141 <a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(1); <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="comment">/*</span> <a name="l00144"></a>00144 <span class="comment"> * collapse all children</span> <a name="l00145"></a>00145 <span class="comment"> */</span> <a name="l00146"></a>00146 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.size(); ++i) <a name="l00147"></a>00147 <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>[i]-><a class="code" href="classTreeNode.html#a7c38a975e8b3a31932b8409fa4231bc4" title="Collapses this node.">collapse</a>(); <a name="l00148"></a>00148 } <span class="comment">//</span> <a name="l00149"></a>00149 <a name="l00150"></a><a class="code" href="classTreeNode.html#a0dadb29c855289ba6adaabed4ba86990">00150</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#a0dadb29c855289ba6adaabed4ba86990" title="Undo function for prelearning collapse()">TreeNode::undoCollapse</a>() <a name="l00151"></a>00151 { <a name="l00152"></a>00152 <span class="keywordflow">if</span> (!<a class="code" href="classTreeNode.html#a650686b10a2f2cdb815462dbf030c204" title="Was collapsed (for undo of prelearned collapse() and expand() slots.">wasCollapsed_</a>) { <a name="l00153"></a>00153 <span class="comment">// re-expand</span> <a name="l00154"></a>00154 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(1); <a name="l00155"></a>00155 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a52dcef5a385ddfa0a8c3e6c20000f181">show</a>(); <a name="l00156"></a>00156 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>) <a name="l00157"></a>00157 <a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(1); <a name="l00158"></a>00158 } <a name="l00159"></a>00159 } <a name="l00160"></a>00160 <a name="l00161"></a><a class="code" href="classTreeNode.html#a353196fdcb63d58e6a1a007a81bb81ee">00161</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#a353196fdcb63d58e6a1a007a81bb81ee" title="Undo function for prelearning expand()">TreeNode::undoExpand</a>() <a name="l00162"></a>00162 { <a name="l00163"></a>00163 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a650686b10a2f2cdb815462dbf030c204" title="Was collapsed (for undo of prelearned collapse() and expand() slots.">wasCollapsed_</a>) { <a name="l00164"></a>00164 <span class="comment">// re-collapse</span> <a name="l00165"></a>00165 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(0); <a name="l00166"></a>00166 <a class="code" href="classTreeNode.html#a1aef899199fbedac9990f7902fa7fc23" title="The container in which the children are managed.">expandedContent_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00167"></a>00167 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>) <a name="l00168"></a>00168 <a class="code" href="classTreeNode.html#aeb5228e3bfb5f8f210ef7ff62da5ec7f" title="The icon next to the label.">labelIcon_</a>-><a class="code" href="classIconPair.html#a349d74977ef2174b64bab37e2b9a27ea" title="Set which icon should be visible.">setState</a>(0); <a name="l00169"></a>00169 } <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="comment">/*</span> <a name="l00172"></a>00172 <span class="comment"> * undo collapse of children</span> <a name="l00173"></a>00173 <span class="comment"> */</span> <a name="l00174"></a>00174 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.size(); ++i) <a name="l00175"></a>00175 <a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>[i]-><a class="code" href="classTreeNode.html#a0dadb29c855289ba6adaabed4ba86990" title="Undo function for prelearning collapse()">undoCollapse</a>(); <a name="l00176"></a>00176 } <span class="comment">//</span> <a name="l00177"></a>00177 <a name="l00178"></a><a class="code" href="classTreeNode.html#adaba65c9268249f665d548082d94b930">00178</a> <span class="keywordtype">void</span> <a class="code" href="classTreeNode.html#adaba65c9268249f665d548082d94b930" title="Adjust the expand icon.">TreeNode::adjustExpandIcon</a>() <a name="l00179"></a>00179 { <a name="l00180"></a>00180 <a class="code" href="classTreeNode.html#a8ec244c77c2d4cd7335340dead3ff6e5" title="Two sets of images, for a normal node, and for the last node.">ImageIndex</a> index = <a class="code" href="classTreeNode.html#abc3819da4ca51204db2f9528d0ea1c73" title="Returns if is the last child within its parent (is rendered differently)">isLastChildNode</a>() ? <a class="code" href="classTreeNode.html#a8ec244c77c2d4cd7335340dead3ff6e5aa9495647920a84019492819c907b9b0c">Last</a> : <a class="code" href="classTreeNode.html#a8ec244c77c2d4cd7335340dead3ff6e5ac16e3d1c45f2863648cd9332dc464ec7">Middle</a>; <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#afaed887865e6069e3c4689feed6cf43a" title="Get the first icon image.">icon1</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ae68e0ae2813fd3937876bc86538bd952">imageLink</a>().url() != <a class="code" href="classTreeNode.html#a75675ae3d29018b6bc5d3bb614ed494b">imagePlus_</a>[index]) <a name="l00183"></a>00183 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#afaed887865e6069e3c4689feed6cf43a" title="Get the first icon image.">icon1</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca">setImageLink</a>(<a class="code" href="classTreeNode.html#a75675ae3d29018b6bc5d3bb614ed494b">imagePlus_</a>[index]); <a name="l00184"></a>00184 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#aa7fcead5a40120b8765213c217351cda" title="Get the second icon image.">icon2</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ae68e0ae2813fd3937876bc86538bd952">imageLink</a>().url() != <a class="code" href="classTreeNode.html#ab404df187e81ce5f216eb815572f11b6">imageMin_</a>[index]) <a name="l00185"></a>00185 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="code" href="classIconPair.html#aa7fcead5a40120b8765213c217351cda" title="Get the second icon image.">icon2</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca">setImageLink</a>(<a class="code" href="classTreeNode.html#ab404df187e81ce5f216eb815572f11b6">imageMin_</a>[index]); <a name="l00186"></a>00186 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ae68e0ae2813fd3937876bc86538bd952">imageLink</a>().url() != <a class="code" href="classTreeNode.html#a55d4c04fb9c147448963b149e8fc8cb6">imageLine_</a>[index]) <a name="l00187"></a>00187 <a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca">setImageLink</a>(<a class="code" href="classTreeNode.html#a55d4c04fb9c147448963b149e8fc8cb6">imageLine_</a>[index]); <a name="l00188"></a>00188 <a name="l00189"></a>00189 <span class="keywordflow">if</span> (index == <a class="code" href="classTreeNode.html#a8ec244c77c2d4cd7335340dead3ff6e5aa9495647920a84019492819c907b9b0c">Last</a>) { <a name="l00190"></a>00190 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 0) <a name="l00191"></a>00191 ->decorationStyle().setBackgroundImage(<span class="stringliteral">""</span>); <a name="l00192"></a>00192 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(1, 0) <a name="l00193"></a>00193 ->decorationStyle().setBackgroundImage(<span class="stringliteral">""</span>); <a name="l00194"></a>00194 } <span class="keywordflow">else</span> { <a name="l00195"></a>00195 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(0, 0) <a name="l00196"></a>00196 ->decorationStyle().setBackgroundImage(<span class="stringliteral">"icons/line-trunk.gif"</span>, <a name="l00197"></a>00197 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCssDecorationStyle.html#a6110934e7bf757aa4b2235137027b23aa0aeb307a9966be9867e8cfb44dadeff6">Wt::WCssDecorationStyle::RepeatY</a>); <a name="l00198"></a>00198 <a class="code" href="classTreeNode.html#a37660f20c29ac82614c35b41356e30e1" title="Layout (2x2 table).">layout_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4">elementAt</a>(1, 0) <a name="l00199"></a>00199 ->decorationStyle().setBackgroundImage(<span class="stringliteral">"icons/line-trunk.gif"</span>, <a name="l00200"></a>00200 <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCssDecorationStyle.html#a6110934e7bf757aa4b2235137027b23aa0aeb307a9966be9867e8cfb44dadeff6">Wt::WCssDecorationStyle::RepeatY</a>); <a name="l00201"></a>00201 } <span class="comment">//</span> <a name="l00202"></a>00202 <a name="l00203"></a>00203 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a34d25e9f0be4f1ed6535d3f47dbec443" title="List of child nodes.">childNodes_</a>.empty()) { <a name="l00204"></a>00204 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#ad565084bebed7abe45a659f6ba7101cf">isHidden</a>()) { <a name="l00205"></a>00205 <a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a52dcef5a385ddfa0a8c3e6c20000f181">show</a>(); <a name="l00206"></a>00206 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00207"></a>00207 } <a name="l00208"></a>00208 } <span class="keywordflow">else</span> { <a name="l00209"></a>00209 <span class="keywordflow">if</span> (<a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCompositeWidget.html#ac22140fb020018e0d855ad524c6effff">isHidden</a>()) { <a name="l00210"></a>00210 <a class="code" href="classTreeNode.html#a9eea36d4c2abeec8829cd6e94a0c8da2" title="The single image shown instead of the expand/collapse icon when no children.">noExpandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a0825c3ccbd4999afc1a88fafa6aa6fc7">hide</a>(); <a name="l00211"></a>00211 <a class="code" href="classTreeNode.html#a61266475f7f53fa8e43410f0fdb96fc0" title="The icon for expanding or collapsing.">expandIcon_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a52dcef5a385ddfa0a8c3e6c20000f181">show</a>(); <a name="l00212"></a>00212 } <a name="l00213"></a>00213 } <a name="l00214"></a>00214 } <span class="comment">//</span> </pre></div></div> </div> <hr size="1"><address style="text-align: right; margin: 3px"><small> Generated on Thu Nov 1 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>