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