Wt examples  3.7.1
OptionList.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 bv, Herent, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef OPTIONLIST_H_
8 #define OPTIONLIST_H_
9 
10 #include <Wt/WContainerWidget>
11 
12 using namespace Wt;
13 
14 class Option;
15 
19 
41 {
42 public:
45  OptionList(WContainerWidget *parent = 0);
46 
49  void add(Option *option);
50 
54  void update();
55 
56 private:
58  std::vector<Option *> options_;
59 
62 
64  void optionVisibilityChanged(Option *opt, bool hidden);
65 
66  friend class Option;
67 };
68 
70 
71 #endif // OPTIONLIST_H_
A clickable option.
Definition: Option.h:31
std::vector< Option * > options_
The list of options.
Definition: OptionList.h:58
A list of options, separated by &#39;|&#39;.
Definition: OptionList.h:40
Option * optionNeedReset_
The option that needs its stateless code updated.
Definition: OptionList.h:61

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13