7 #include <Wt/WApplication.h> 8 #include <Wt/WContainerWidget.h> 10 #include <Wt/WTreeTableNode.h> 18 auto app = cpp14::make_unique<WApplication>(env);
19 app->setTitle(
"File explorer example");
20 app->useStyleSheet(
"filetree.css");
22 std::unique_ptr<FileTreeTable> treeTable
23 = cpp14::make_unique<FileTreeTable>(
".");
24 treeTable->resize(500, 300);
26 treeTable->treeRoot()->setNodeVisible(
false);
27 treeTable->treeRoot()->setChildCountPolicy(ChildCountPolicy::Enabled);
29 app->root()->addWidget(std::move(treeTable));
34 int main(
int argc,
char **argv)
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)
int main(int argc, char **argv)