Wt examples
3.7.1
public-git
wt
examples
treelist
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
27
class
DemoTreeList
:
public
Wt::WContainerWidget
28
{
29
public
:
32
DemoTreeList
(
Wt::WContainerWidget
*parent);
33
34
private
:
35
TreeNode
*
tree_
;
36
TreeNode
*
testMap_
;
37
int
testCount_
;
38
39
Wt::WPushButton
*
addMapButton_
;
40
Wt::WPushButton
*
removeMapButton_
;
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
DemoTreeList::addMapButton_
Wt::WPushButton * addMapButton_
Definition:
DemoTreeList.h:39
DemoTreeList
A demonstration of the treelist.
Definition:
DemoTreeList.h:27
DemoTreeList::removeMapButton_
Wt::WPushButton * removeMapButton_
Definition:
DemoTreeList.h:40
DemoTreeList::testMap_
TreeNode * testMap_
Definition:
DemoTreeList.h:36
Wt::WPushButton
Wt
DemoTreeList::tree_
TreeNode * tree_
Definition:
DemoTreeList.h:35
Wt::WContainerWidget
DemoTreeList::testCount_
int testCount_
Definition:
DemoTreeList.h:37
TreeNode
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
1.8.13