Wt examples  3.2.1
Functions
/home/koen/project/wt/public-git/wt/examples/filetreetable/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 Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1