| Wt examples
    3.3.0
    | 
#include <Wt/WApplication>#include <Wt/WContainerWidget>#include <Wt/WTree>#include <Wt/WTreeTableNode>#include "FileTreeTable.h"Go to the source code of this file.
| Functions | |
| WApplication * | createApplication (const WEnvironment &env) | 
| int | main (int argc, char **argv) | 
| 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);
}
 1.7.5.1
 1.7.5.1