#include <FileTreeTable.h>
Public Member Functions | |
FileTreeTable (const boost::filesystem::path &path, Wt::WContainerWidget *parent=0) | |
Construct a new FileTreeTable. |
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.
The table use FileTreeTableNode objects to display the actual content of the table.
The tree table uses the LazyLoading strategy of WTreeNode to dynamically load contents for the tree.
This widget is part of the Wt File Explorer example.
Definition at line 33 of file FileTreeTable.h.
FileTreeTable::FileTreeTable | ( | const boost::filesystem::path & | path, | |
Wt::WContainerWidget * | parent = 0 | |||
) |
Construct a new FileTreeTable.
Create a new FileTreeTable to browse the given path.
Definition at line 16 of file FileTreeTable.C.
00018 : WTreeTable(parent) 00019 { 00020 addColumn("Size", 80); 00021 addColumn("Modified", 110); 00022 00023 header(1)->setStyleClass("fsize"); 00024 header(2)->setStyleClass("date"); 00025 00026 setTreeRoot(new FileTreeTableNode(path), "File"); 00027 00028 treeRoot()->setImagePack("icons/"); 00029 treeRoot()->expand(); 00030 }