Wt examples 3.3.12
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 bvba, Kessel-Lo, 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
12using namespace Wt;
13
14class Option;
15
20
41{
42public:
46
49 void add(Option *option);
50
54 void update();
55
56private:
58 std::vector<Option *> options_;
59
62
64 void optionVisibilityChanged(Option *opt, bool hidden);
65
66 friend class Option;
67};
68
71#endif // OPTIONLIST_H_
A list of options, separated by '|'.
Definition OptionList.h:41
void add(Option *option)
Add an Option to the list.
Definition OptionList.C:18
void optionVisibilityChanged(Option *opt, bool hidden)
An option changed visibility: possibly update the separators inbetween.
Definition OptionList.C:38
Option * optionNeedReset_
The option that needs its stateless code updated.
Definition OptionList.h:61
void update()
Updates the stateless implementations after an Option has been hidden or shown.
Definition OptionList.C:30
std::vector< Option * > options_
The list of options.
Definition OptionList.h:58
A clickable option.
Definition Option.h:32
WWidget * parent() const

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8