13 : WContainerWidget(parent),
19 option_ =
new WText(text,
this);
20 option_->setStyleClass(
"option");
35 sep_ =
new WText(
"|",
this);
36 sep_->setStyleClass(
"sep");
51 WContainerWidget::setHidden(hidden, animation);
Option(const WString &text, WContainerWidget *parent=0)
Create an Option with the given text.
void setOptionList(OptionList *l)
void hideSeparator()
Hide the separator.
void showSeparator()
Show the separator.
OptionList * list_
The list in which this option is managed, if managed.
void addSeparator()
Create and show the separator.
A list of options, separated by '|'.
virtual void setHidden(bool hidden, const WAnimation &animation=WAnimation())
WText * option_
The option command text.
void optionVisibilityChanged(Option *opt, bool hidden)
An option changed visibility: possibly update the separators inbetween.
void setText(const WString &text)
Change the text.
WText * sep_
The separator '|'.