Wt examples
3.3.12
build
witty-DHLR6e
witty-3.3.12+dfsg
examples
filetreetable
FileTreeTable.C
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
8
#include "
FileTreeTable.h
"
9
#include "
FileTreeTableNode.h
"
10
11
#include <Wt/WText>
12
13
using namespace
Wt
;
14
15
FileTreeTable::FileTreeTable
(
const
boost::filesystem::path& path,
16
WContainerWidget *parent)
17
: WTreeTable(parent)
18
{
19
addColumn(
"Size"
, 80);
20
addColumn(
"Modified"
, 110);
21
22
header(1)->setStyleClass(
"fsize"
);
23
header(2)->setStyleClass(
"date"
);
24
25
setTreeRoot(
new
FileTreeTableNode
(path),
"File"
);
26
27
treeRoot()->setImagePack(
"icons/"
);
28
treeRoot()->expand();
29
}
Wt
Definition:
AddresseeEdit.h:16
FileTreeTable::FileTreeTable
FileTreeTable(const boost::filesystem::path &path, Wt::WContainerWidget *parent=0)
Construct a new FileTreeTable.
Definition:
FileTreeTable.C:15
FileTreeTableNode.h
FileTreeTableNode
A single node in a file tree table.
Definition:
FileTreeTableNode.h:28
FileTreeTable.h
Generated on Fri Apr 24 2020 for
the C++ Web Toolkit (Wt)
by
1.8.17