/home/koen/project/wt/cvs/wt/examples/wt-homepage/TreeListExample.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 TREE_LIST_EXAMPLE
00008 #define TREE_LIST_EXAMPLE
00009 
00010 #include <Wt/WContainerWidget>
00011 
00012 namespace Wt {
00013   class WPushButton;
00014   class WLineEdit;
00015 }
00016 
00017 using namespace Wt;
00018 
00019 class TreeNode;
00020 
00021 class TreeListExample : public WContainerWidget
00022 {
00023 public:
00024   TreeListExample(WContainerWidget *parent = 0);
00025 
00026 private slots:
00027   void addMap();
00028   void removeMap();
00029 
00030 private:
00031   TreeNode *tree_;
00032   TreeNode *testMap_;
00033   int testCount_;
00034 
00035   WLineEdit   *mapNameEdit_;
00036   WPushButton *addMapButton_;
00037   WPushButton *removeMapButton_;
00038 
00039   TreeNode *makeTreeMap(const WString& name, TreeNode *parent);
00040   TreeNode *makeTreeFile(const WString& name, TreeNode *parent);
00041 };
00042 
00043 #endif // TREE_LIST_EXAMPLE

Generated on Fri Jul 25 17:05:59 2008 for Wt by doxygen 1.5.3