libyui-ncurses  2.55.0
NCCustomStatusTableTag Class Reference

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>

Inheritance diagram for NCCustomStatusTableTag:
Collaboration diagram for NCCustomStatusTableTag:

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...
 
- Public Member Functions inherited from NCTableTag
 NCTableTag (YItem *item, bool sel=false, bool single_sel=false)
 
virtual void SetLabel (const NClabel &)
 
YItem * origItem () const
 
- Public Member Functions inherited from NCTableCol
 NCTableCol (const NCstring &l="", STYLE st=ACTIVEDATA)
 
const NClabelLabel () const
 
void stripHotkey ()
 
virtual wsze Size () const
 
bool hasHotkey () const
 
unsigned char hotkey () const
 

Protected Attributes

YItemSelector * _parentSelector
 

Additional Inherited Members

- Public Types inherited from NCTableCol
enum  STYLE {
  NONE = 0 , PLAIN , DATA , ACTIVEDATA ,
  HINT , SEPARATOR
}
 
- Protected Member Functions inherited from NCTableCol
chtype setBkgd (NCursesWindow &w, NCTableStyle &tableStyle, NCTableLine::STATE linestate, STYLE colstyle) const
 

Detailed Description

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.

Member Function Documentation

◆ updateStatusIndicator()

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.


The documentation for this class was generated from the following files: