Wt examples 3.1.10
/build/buildd/witty-3.1.10/examples/treelist/DemoTreeList.h
Go to the documentation of this file.
00001 // This may look like C code, but it's really -*- C++ -*-
00002 /*
00003  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
00004  *
00005  * See the LICENSE file for terms of use.
00006  */
00007 #ifndef DEMO_TREE_LIST
00008 #define DEMO_TREE_LIST
00009 
00010 #include <Wt/WContainerWidget>
00011 
00012 namespace Wt {
00013   class WPushButton;
00014 }
00015 
00016 class TreeNode;
00017 
00022 
00027 class DemoTreeList : public Wt::WContainerWidget
00028 {
00029 public:
00032   DemoTreeList(Wt::WContainerWidget *parent);
00033 
00034 private:
00035   TreeNode *tree_;
00036   TreeNode *testMap_;
00037   int testCount_;
00038 
00039   Wt::WPushButton *addMapButton_;
00040   Wt::WPushButton *removeMapButton_;
00041 
00044   void addMap();
00045 
00048   void removeMap();
00049 
00052   TreeNode *makeTreeMap(const std::string name, TreeNode *parent);
00053 
00056   TreeNode *makeTreeFile(const std::string name, TreeNode *parent);
00057 };
00058 
00061 #endif // DEMO_TREE_LIST

Generated on Wed Jul 27 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4