#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 |
void | setStatus (int newStatus) |
void | updateStatusIndicator () |
![]() | |
NCTableTag (YItem *item, bool sel=false, bool singleSel=false) | |
virtual void | SetLabel (const NClabel &) |
YItem * | origItem () const |
![]() | |
NCTableCol (const NCstring &label="", STYLE st=ACTIVEDATA) | |
const NClabel & | Label () const |
virtual void | SetLabel (const std::string &newVal) |
const NClabel & | prefix () const |
virtual void | setPrefix (const NClabel &newVal) |
virtual void | setPrefix (const std::string &newVal) |
int | prefixWidth () const |
wrect | prefixAdjusted (const wrect origRect) const |
virtual wsze | Size () const |
void | stripHotkey () |
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.
|
virtual |
Reimplemented from NCTableTag.
|
virtual |
Reimplemented from NCTableTag.
|
virtual |
Reimplemented from NCTableTag.
void NCCustomStatusTableTag::setStatus | ( | int | newStatus | ) |
Set the numeric status value of the associated item and update the status indicator.
|
inlinevirtual |
Reimplemented from NCTableTag.
int NCCustomStatusTableTag::status | ( | ) | const |
Return the numeric status value of the associated item.
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.