Wt examples  3.7.1
DemoTreeList.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bv, Herent, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef DEMO_TREE_LIST
8 #define DEMO_TREE_LIST
9 
10 #include <Wt/WContainerWidget>
11 
12 namespace Wt {
13  class WPushButton;
14 }
15 
16 class TreeNode;
17 
22 
28 {
29 public:
33 
34 private:
38 
41 
44  void addMap();
45 
48  void removeMap();
49 
52  TreeNode *makeTreeMap(const std::string name, TreeNode *parent);
53 
56  TreeNode *makeTreeFile(const std::string name, TreeNode *parent);
57 };
58 
61 #endif // DEMO_TREE_LIST
Wt::WPushButton * addMapButton_
Definition: DemoTreeList.h:39
A demonstration of the treelist.
Definition: DemoTreeList.h:27
Wt::WPushButton * removeMapButton_
Definition: DemoTreeList.h:40
TreeNode * testMap_
Definition: DemoTreeList.h:36
TreeNode * tree_
Definition: DemoTreeList.h:35
Example implementation of a single tree list node.
Definition: TreeNode.h:55

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13