Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
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 bvba, Kessel-Lo, 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
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1