Wt examples: /home/koen/project/wt/public-git/wt/examples/filetreetable/FileTreeExample.C File Reference

Wt examples 3.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
WApplication * | createApplication (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);
    }