<!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: FileTreeTable Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">FileTreeTable Class Reference<div class="ingroups"><a class="el" href="group__fileexplorer.html">File Explorer example</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="FileTreeTable" --><!-- doxytag: inherits="Wt::WTreeTable" --> <p>A tree table that displays a file tree. <a href="classFileTreeTable.html#details">More...</a></p> <p><code>#include <<a class="el" href="FileTreeTable_8h_source.html">FileTreeTable.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FileTreeTable:</div> <div class="dyncontent"> <div class="center"><img src="classFileTreeTable__inherit__graph.png" border="0" usemap="#FileTreeTable_inherit__map" alt="Inheritance graph"/></div> <map name="FileTreeTable_inherit__map" id="FileTreeTable_inherit__map"> <area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html" title="Wt::WTreeTable" alt="" coords="29,229,144,256"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCompositeWidget.html" title="Wt::WCompositeWidget" alt="" coords="5,155,168,181"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html" title="Wt::WWidget" alt="" coords="37,80,136,107"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="39,5,135,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classFileTreeTable-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFileTreeTable.html#a8d98c871831bbcfe2a3808ab6dc147b3">FileTreeTable</a> (const boost::filesystem::path &path, <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">Wt::WContainerWidget</a> *<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a3461e31818c4d2f516641bdaf508312a">parent</a>=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a new <a class="el" href="classFileTreeTable.html" title="A tree table that displays a file tree.">FileTreeTable</a>. <a href="#a8d98c871831bbcfe2a3808ab6dc147b3"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A tree table that displays a file tree. </p> <p>The table allows one to browse a path, and all its subdirectories, using a tree table. In addition to the file name, it shows file size and modification date.</p> <p>The table use <a class="el" href="classFileTreeTableNode.html" title="A single node in a file tree table.">FileTreeTableNode</a> objects to display the actual content of the table.</p> <p>The tree table uses the LazyLoading strategy of WTreeNode to dynamically load contents for the tree.</p> <p>This widget is part of the Wt File Explorer example. </p> <p>Definition at line <a class="el" href="FileTreeTable_8h_source.html#l00033">33</a> of file <a class="el" href="FileTreeTable_8h_source.html">FileTreeTable.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a8d98c871831bbcfe2a3808ab6dc147b3"></a><!-- doxytag: member="FileTreeTable::FileTreeTable" ref="a8d98c871831bbcfe2a3808ab6dc147b3" args="(const boost::filesystem::path &path, Wt::WContainerWidget *parent=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FileTreeTable::FileTreeTable </td> <td>(</td> <td class="paramtype">const boost::filesystem::path & </td> <td class="paramname"><em>path</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">Wt::WContainerWidget</a> * </td> <td class="paramname"><em>parent</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Construct a new <a class="el" href="classFileTreeTable.html" title="A tree table that displays a file tree.">FileTreeTable</a>. </p> <p>Create a new <a class="el" href="classFileTreeTable.html" title="A tree table that displays a file tree.">FileTreeTable</a> to browse the given path. </p> <p>Definition at line <a class="el" href="FileTreeTable_8C_source.html#l00015">15</a> of file <a class="el" href="FileTreeTable_8C_source.html">FileTreeTable.C</a>.</p> <div class="fragment"><pre class="fragment"> : <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#ab6224d3b98077147c7c6ce96d167e407">WTreeTable</a>(parent) { <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1">addColumn</a>(<span class="stringliteral">"Size"</span>, 80); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1">addColumn</a>(<span class="stringliteral">"Modified"</span>, 110); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#af20309bf1c221d907a72823595766af8">header</a>(1)-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#afd3a3b359681111460a93d13979d17dd">setStyleClass</a>(<span class="stringliteral">"fsize"</span>); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#af20309bf1c221d907a72823595766af8">header</a>(2)-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#afd3a3b359681111460a93d13979d17dd">setStyleClass</a>(<span class="stringliteral">"date"</span>); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0">setTreeRoot</a>(<span class="keyword">new</span> <a class="code" href="classFileTreeTableNode.html" title="A single node in a file tree table.">FileTreeTableNode</a>(path), <span class="stringliteral">"File"</span>); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#ad2df80ef5a3243b7b695946f5fbd8614">treeRoot</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeNode.html#aff37a6152a8195dd9b2a80e593d94298">setImagePack</a>(<span class="stringliteral">"icons/"</span>); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeTable.html#ad2df80ef5a3243b7b695946f5fbd8614">treeRoot</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTreeNode.html#a10e99f9db96ec2fc500927a5d50caafe">expand</a>(); } </pre></div> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>/home/koen/project/wt/public-git/wt/examples/filetreetable/<a class="el" href="FileTreeTable_8h_source.html">FileTreeTable.h</a></li> <li>/home/koen/project/wt/public-git/wt/examples/filetreetable/<a class="el" href="FileTreeTable_8C_source.html">FileTreeTable.C</a></li> </ul> </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>