25 #ifndef YDescribedItem_h
26 #define YDescribedItem_h
98 std::string _description;
Item class that has a (possibly multi-line) description text in addition to the normal label.
bool enabled() const
Return 'true' if this item is enabled (which is the default).
void setEnabled(bool value)
Set this item to enabled or disabled.
YDescribedItem(const std::string &label, const std::string &description="", bool selected=false)
Constructor with the label, the description and optionally the selected state.
std::string description() const
Return this item's description text.
YDescribedItem(const std::string &label, const std::string &description, const std::string &iconName, bool selected=false)
Constructor with the label, the description, the icon name and optionally the selected state.
void setDescription(const std::string &desc)
Set this item's description text.
virtual ~YDescribedItem()
Destructor.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
std::string label() const
Return this item's label.
bool selected() const
Return 'true' if this item is currently selected.
std::string iconName() const
Return this item's icon name.