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"; }
152 #endif // NCCustomStatusItemSelector_h virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Return 'true' if a status change (by user interaction) from status 'fromStatus' to status 'toStatus' ...
void setStatus(int newStatus)
Set the numeric status value of the associated item and update the status indicator.
NCCustomStatusItemSelector(YWidget *parent, const YItemCustomStatusVector &customStates)
Constructor.
virtual NCTableTag * createTagCell(YItem *item)
Create a tag cell for an item.
virtual ~NCCustomStatusItemSelector()
Destructor.
virtual NCursesEvent valueChangedNotify(YItem *item)
Notification that a status value was just changed in the input handler and the 'notify' flag is set...
virtual void cycleCurrentItemStatus()
Cycle the status of the current item through its possible values.
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.
virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator.
int status() const
Return the numeric status value of the associated item.
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...