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