25 #ifndef YDescribedItem_h 26 #define YDescribedItem_h 98 std::string _description;
103 #endif // YDescribedItem_h std::string label() const
Return this item's label.
void setEnabled(bool value)
Set this item to enabled or disabled.
bool selected() const
Return 'true' if this item is currently selected.
virtual ~YDescribedItem()
Destructor.
std::string iconName() const
Return this item's icon name.
bool enabled() const
Return 'true' if this item is enabled (which is the default).
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.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
void setDescription(const std::string &desc)
Set this item's description text.
Item class that has a (possibly multi-line) description text in addition to the normal label...
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...