Wt examples
3.3.12
build
witty-XWY8sd
witty-3.3.12+dfsg
examples
composer
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
hidden,
47
const
WAnimation& animation = WAnimation());
48
49
private
:
51
WText *
option_
;
52
54
WText *
sep_
;
55
57
OptionList
*
list_
;
58
59
friend
class
OptionList
;
60
61
void
setOptionList(
OptionList
*l);
62
64
void
addSeparator();
65
67
void
showSeparator();
68
70
void
hideSeparator();
71
};
72
75
#endif // OPTION_H_
Wt
Definition:
AddresseeEdit.h:16
Option::sep_
WText * sep_
The separator '|'.
Definition:
Option.h:54
Option
A clickable option.
Definition:
Option.h:31
OptionList
A list of options, separated by '|'.
Definition:
OptionList.h:40
Option::list_
OptionList * list_
The list in which this option is managed, if managed.
Definition:
Option.h:57
Option::item
WInteractWidget * item()
Returns the clickable part.
Definition:
Option.h:44
Option::option_
WText * option_
The option command text.
Definition:
Option.h:51
Generated on Fri Apr 24 2020 for
the C++ Web Toolkit (Wt)
by
1.8.17