25 #ifndef NCCustomStatusItemSelector_h
26 #define NCCustomStatusItemSelector_h
31 #include "NCItemSelector.h"
48 NCTableLine::STATE linestate,
49 unsigned colidx )
const;
51 virtual void SetSelected(
bool sel );
53 virtual bool Selected()
const;
55 virtual bool SingleSelection()
const {
return false; }
76 YItemSelector * _parentSelector;
91 const YItemCustomStatusVector & customStates );
98 virtual const char * location()
const {
return "NCCustomStatusItemSelector"; }
virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Return 'true' if a status change (by user interaction) from status 'fromStatus' to status 'toStatus' ...
virtual void cycleCurrentItemStatus()
Cycle the status of the current item through its possible values.
virtual NCCustomStatusTableTag * tagCell(int index) const
Return the tag cell (the cell with the "[x]" or "(x)" selector) for the item with the specified index...
NCCustomStatusItemSelector(YWidget *parent, const YItemCustomStatusVector &customStates)
Constructor.
virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator.
virtual NCursesEvent valueChangedNotify(YItem *item)
Notification that a status value was just changed in the input handler and the 'notify' flag is set.
virtual NCTableTag * createTagCell(YItem *item)
Create a tag cell for an item.
virtual ~NCCustomStatusItemSelector()
Destructor.
Specialized subclass of NCTableTag that can not only handle a boolean "selected" flag (and accordingl...
void updateStatusIndicator()
Update the status indicator according to the status of the associated item, i.e.
void setStatus(int newStatus)
Set the numeric status value of the associated item and update the status indicator.
int status() const
Return the numeric status value of the associated item.