Wt examples 3.3.12
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
12namespace Wt {
13 class WPushButton;
14}
15
16class TreeNode;
17
22
28{
29public:
33
34private:
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
A demonstration of the treelist.
void removeMap()
Remove a map.
Wt::WPushButton * addMapButton_
void addMap()
Add a map.
TreeNode * tree_
Wt::WPushButton * removeMapButton_
TreeNode * makeTreeMap(const std::string name, TreeNode *parent)
Create a "map" node, and insert in the given parent.
TreeNode * makeTreeFile(const std::string name, TreeNode *parent)
Create a "file" node, and insert in the given parent.
TreeNode * testMap_
Example implementation of a single tree list node.
Definition TreeNode.h:56
WWidget * parent() const

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8