/home/koen/project/wt/cvs/wt/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 <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 slots:
00037   void addMap();
00038 
00041   void removeMap();
00042 
00043 private:
00044   TreeNode *tree_;
00045   TreeNode *testMap_;
00046   int testCount_;
00047 
00048   Wt::WPushButton *addMapButton_;
00049   Wt::WPushButton *removeMapButton_;
00050 
00053   TreeNode *makeTreeMap(const std::wstring name, TreeNode *parent);
00054 
00057   TreeNode *makeTreeFile(const std::wstring name, TreeNode *parent);
00058 };
00059 
00062 #endif // DEMO_TREE_LIST

Generated on Mon Apr 14 15:15:04 2008 for Wt by doxygen 1.5.3