Functions

/build/buildd/witty-3.1.2/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 Sat Dec 4 2010 06:32:31 for Wt by doxygen 1.7.2