25 #ifndef YItemSelector_h
26 #define YItemSelector_h
28 #include "YSelectionWidget.h"
29 #include "YDescribedItem.h"
30 #include "YItemCustomStatus.h"
81 const YItemCustomStatusVector & customStates );
164 virtual bool setProperty(
const std::string & propertyName,
217 void checkCustomStates();
Class describing a non-binary status for an item.
Scrollable item selector widget with not only a label for each item, but also a (possible multi-line)...
virtual void setVisibleItems(int newVal)
Set the number of visible items.
int visibleItems() const
Return the number of visible items (i.e.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
int customStatusCount() const
Return the number of custom status values or 0 if no custom status values are used.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual void activateItem(YItem *item)=0
Activate selected item.
int cycleCustomStatus(int oldStatus)
Cycle through the custom status values according to the custom status table, i.e.
YItemSelector(YWidget *parent, bool enforceSingleSelection=true)
Standard constructor.
bool validCustomStatusIndex(int index) const
Return 'true' if a custom status index is within the valid range, i.e.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
const YItemCustomStatus & customStatus(int index)
Return the custom status with the specified index (counting from 0).
virtual void setItemStatus(YItem *item, int status)
Set the status of an item.
virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator (status icon or text indicator) if this widget is using custom status val...
bool usingCustomStatus() const
Return 'true' if this widget uses custom status values, 'false' if not (i.e.
const char * userInputProperty()
The name of the widget property that will return user input.
virtual ~YItemSelector()
Destructor.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
A set of properties to check names and types against.
Transport class for the value of simple properties.