#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.
00017 { 00018 WApplication *app = new WApplication(env); 00019 app->setTitle("File explorer example"); 00020 app->useStyleSheet("filetree.css"); 00021 00022 FileTreeTable *treeTable = new FileTreeTable("."); 00023 treeTable->resize(500, 300); 00024 treeTable->tree()->setSelectionMode(ExtendedSelection); 00025 treeTable->treeRoot()->setNodeVisible(false); 00026 treeTable->treeRoot()->setChildCountPolicy(WTreeNode::Enabled); 00027 00028 app->root()->addWidget(treeTable); 00029 00030 return app; 00031 }
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 33 of file FileTreeExample.C.
00034 { 00035 return WRun(argc, argv, &createApplication); 00036 }
1.5.6