#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 #ifndef WIN32 00023 FileTreeTable *treeTable = new FileTreeTable("/home/koen/project/wt"); 00024 #else 00025 FileTreeTable *treeTable = new FileTreeTable("/tmp"); 00026 #endif 00027 treeTable->resize(500, 300); 00028 treeTable->tree()->setSelectionMode(ExtendedSelection); 00029 treeTable->treeRoot()->setNodeVisible(false); 00030 treeTable->treeRoot()->setChildCountPolicy(WTreeNode::Enabled); 00031 00032 app->root()->addWidget(treeTable); 00033 00034 return app; 00035 }
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 37 of file FileTreeExample.C.
00038 { 00039 return WRun(argc, argv, &createApplication); 00040 }
1.5.6