Wt examples  3.3.0
Option.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 OPTION_H_
8 #define OPTION_H_
9 
10 #include <Wt/WContainerWidget>
11 #include <Wt/WText>
12 
13 using namespace Wt;
14 
15 class OptionList;
16 
21 
31 class Option : public WContainerWidget
32 {
33 public:
36  Option(const WString& text, WContainerWidget *parent = 0);
37 
40  void setText(const WString& text);
41 
44  WInteractWidget *item() { return option_; }
45 
46  virtual void setHidden(bool);
47 
48 private:
51 
54 
57 
58  friend class OptionList;
59 
60  void setOptionList(OptionList *l);
61 
63  void addSeparator();
64 
66  void showSeparator();
67 
69  void hideSeparator();
70 };
71 
74 #endif // OPTION_H_

Generated on Fri May 31 2013 for the C++ Web Toolkit (Wt) by doxygen 1.8.3.1