Wt examples 3.1.10
/build/buildd/witty-3.1.10/examples/composer/OptionList.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 OPTIONLIST_H_
00008 #define OPTIONLIST_H_
00009 
00010 #include <Wt/WContainerWidget>
00011 
00012 using namespace Wt;
00013 
00014 class Option;
00015 
00020 
00040 class OptionList : public WContainerWidget
00041 {
00042 public:
00045   OptionList(WContainerWidget *parent = 0);
00046 
00049   void add(Option *option);
00050 
00054   void update();
00055 
00056 private:
00058   std::vector<Option *> options_;
00059 
00061   Option *optionNeedReset_;
00062 
00064   void optionVisibilityChanged(Option *opt, bool hidden);
00065 
00066   friend class Option;
00067 };
00068 
00071 #endif // OPTIONLIST_H_

Generated on Sat Dec 24 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4