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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt examples: FileTreeTable Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main 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 class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>FileTreeTable Class Reference<br>
<small>
[<a class="el" href="group__fileexplorer.html">File Explorer example</a>]</small>
</h1><!-- doxytag: class="FileTreeTable" --><!-- doxytag: inherits="Wt::WTreeTable" -->A tree table that displays a file tree.
<a href="#_details">More...</a>
<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="dynsection">
<p><center><img src="classFileTreeTable__inherit__graph.png" border="0" usemap="#FileTreeTable__inherit__map" alt="Inheritance graph"></center>
<map name="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,141,256"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WCompositeWidget.html" title="Wt::WCompositeWidget" alt="" coords="5,155,165,181"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WWidget.html" title="Wt::WWidget" alt="" coords="37,80,133,107"><area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classFileTreeTable-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFileTreeTable.html#8d98c871831bbcfe2a3808ab6dc147b3">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#3461e31818c4d2f516641bdaf508312a">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="#8d98c871831bbcfe2a3808ab6dc147b3"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A tree table that displays a file tree.
<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>
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>
The tree table uses the LazyLoading strategy of WTreeNode to dynamically load contents for the tree.<p>
This widget is part of the Wt File Explorer example.
<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>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="8d98c871831bbcfe2a3808ab6dc147b3"></a><!-- doxytag: member="FileTreeTable::FileTreeTable" ref="8d98c871831bbcfe2a3808ab6dc147b3" 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><td> </td>
</tr>
<tr>
<td></td>
<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>
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>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 name="l00017"></a>00017 : <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#b6224d3b98077147c7c6ce96d167e407">WTreeTable</a>(parent)
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1">addColumn</a>(<span class="stringliteral">"Size"</span>, 80);
<a name="l00020"></a>00020 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1">addColumn</a>(<span class="stringliteral">"Modified"</span>, 110);
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#f20309bf1c221d907a72823595766af8">header</a>(1)-><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WWebWidget.html#6fd43dced1a62f7e79bc3522eeb16216">setStyleClass</a>(<span class="stringliteral">"fsize"</span>);
<a name="l00023"></a>00023 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#f20309bf1c221d907a72823595766af8">header</a>(2)-><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WWebWidget.html#6fd43dced1a62f7e79bc3522eeb16216">setStyleClass</a>(<span class="stringliteral">"date"</span>);
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0">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 name="l00026"></a>00026
<a name="l00027"></a>00027 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#d2df80ef5a3243b7b695946f5fbd8614">treeRoot</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeNode.html#ff37a6152a8195dd9b2a80e593d94298">setImagePack</a>(<span class="stringliteral">"icons/"</span>);
<a name="l00028"></a>00028 <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeTable.html#d2df80ef5a3243b7b695946f5fbd8614">treeRoot</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WTreeNode.html#10e99f9db96ec2fc500927a5d50caafe">expand</a>();
<a name="l00029"></a>00029 }
</pre></div>
<p>
</div>
</div><p>
<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>/home/koen/project/wt/public-git/wt/examples/filetreetable/<a class="el" href="FileTreeTable_8C-source.html">FileTreeTable.C</a></ul>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|