Wt examples  3.2.1
Functions
FileTreeExample.C File Reference
#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WTree>
#include <Wt/WTreeTableNode>
#include "FileTreeTable.h"

Go to the source code of this file.

Functions

WApplicationcreateApplication (const WEnvironment &env)
int main (int argc, char **argv)

Function Documentation

WApplication* createApplication ( const WEnvironment env)

Definition at line 16 of file FileTreeExample.C.

{
WApplication *app = new WApplication(env);
app->setTitle("File explorer example");
app->useStyleSheet("filetree.css");
FileTreeTable *treeTable = new FileTreeTable(".");
treeTable->resize(500, 300);
treeTable->tree()->setSelectionMode(ExtendedSelection);
treeTable->treeRoot()->setNodeVisible(false);
treeTable->treeRoot()->setChildCountPolicy(WTreeNode::Enabled);
app->root()->addWidget(treeTable);
return app;
}
int main ( int  argc,
char **  argv 
)

Definition at line 33 of file FileTreeExample.C.

{
return WRun(argc, argv, &createApplication);
}

Generated on Mon Aug 25 2014 for the C++ Web Toolkit (Wt) by doxygen 1.8.1.2