25 #ifndef YItemCustomStatus_h 26 #define YItemCustomStatus_h 62 const std::string &
iconName()
const {
return _iconName; }
98 std::string _iconName;
99 std::string _textIndicator;
104 typedef std::vector<YItemCustomStatus> YItemCustomStatusVector;
107 #endif // YItemCustomStatus_h bool hasNextStatus() const
Return 'true' if a next status to cylce to is defined for this status, 'false' if not...
YItemCustomStatus(const std::string &iconName, const std::string &textIndicator, int nextStatus=-1)
Constructor.
Class describing a non-binary status for an item.
const std::string & iconName() const
The name of an icon to use in the widget in a graphical UI if an item has this status.
int nextStatus() const
This returns the next status to cycle through if the user clicks on the status or cycles through stat...
const std::string & textIndicator() const
A text representation of this status in a text-based UI if an item has this status, for example "[ ]", "[x]" or "[ ], "[ +]", "[a+]".
void setNextStatus(int value)
Set the next status.