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();
226 #endif // YItemSelector_h
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
bool validCustomStatusIndex(int index) const
Return 'true' if a custom status index is within the valid range, i.e.
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 setItemStatus(YItem *item, int status)
Set the status of an item.
A set of properties to check names and types against.
virtual void setVisibleItems(int newVal)
Set the number of visible items.
virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator (status icon or text indicator) if this widget is using custom status val...
const YItemCustomStatus & customStatus(int index)
Return the custom status with the specified index (counting from 0).
virtual void activateItem(YItem *item)=0
Activate selected item.
virtual const YPropertySet & propertySet()
Return this class's property set.
int visibleItems() const
Return the number of visible items (i.e.
virtual ~YItemSelector()
Destructor.
bool usingCustomStatus() const
Return 'true' if this widget uses custom status values, 'false' if not (i.e.
YItemSelector(YWidget *parent, bool enforceSingleSelection=true)
Standard constructor.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
int cycleCustomStatus(int oldStatus)
Cycle through the custom status values according to the custom status table, i.e.
Transport class for the value of simple properties.
const char * userInputProperty()
The name of the widget property that will return user input.
int customStatusCount() const
Return the number of custom status values or 0 if no custom status values are used.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.