libyui-ncurses
2.54.5
|
Specialized subclass of NCTableTag that can not only handle a boolean "selected" flag (and accordingly set "[ ]" / "[x]" or "( )" / "(x)" as a status indicator), but extended numeric status values and an assciated text. More...
#include <NCCustomStatusItemSelector.h>
Public Member Functions | |
NCCustomStatusTableTag (YItemSelector *parentSelector, YItem *item) | |
virtual void | DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, NCTableLine::STATE linestate, unsigned colidx) const |
virtual void | SetSelected (bool sel) |
virtual bool | Selected () const |
virtual bool | SingleSelection () const |
int | status () const |
Return the numeric status value of the associated item. | |
void | setStatus (int newStatus) |
Set the numeric status value of the associated item and update the status indicator. | |
void | updateStatusIndicator () |
Update the status indicator according to the status of the associated item, i.e. More... | |
![]() | |
NCTableTag (YItem *item, bool sel=false, bool single_sel=false) | |
virtual void | SetLabel (const NClabel &) |
YItem * | origItem () const |
![]() | |
NCTableCol (const NCstring &l="", STYLE st=ACTIVEDATA) | |
const NClabel & | Label () const |
void | stripHotkey () |
virtual wsze | Size () const |
bool | hasHotkey () const |
unsigned char | hotkey () const |
Protected Attributes | |
YItemSelector * | _parentSelector |
Additional Inherited Members | |
![]() | |
enum | STYLE { NONE = 0, PLAIN, DATA, ACTIVEDATA, HINT, SEPARATOR } |
![]() | |
chtype | setBkgd (NCursesWindow &w, NCTableStyle &tableStyle, NCTableLine::STATE linestate, STYLE colstyle) const |
Specialized subclass of NCTableTag that can not only handle a boolean "selected" flag (and accordingly set "[ ]" / "[x]" or "( )" / "(x)" as a status indicator), but extended numeric status values and an assciated text.
Definition at line 39 of file NCCustomStatusItemSelector.h.
void NCCustomStatusTableTag::updateStatusIndicator | ( | ) |
Update the status indicator according to the status of the associated item, i.e.
display the status text for that custom status.
Definition at line 139 of file NCCustomStatusItemSelector.cc.