libyui-ncurses  2.57.2
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 singleSel=false)
 Constructor. More...
 
virtual void SetLabel (const NClabel &)
 
YItem * origItem () const
 
- Public Member Functions inherited from NCTableCol
 NCTableCol (const NCstring &label="", STYLE st=ACTIVEDATA)
 
const NClabelLabel () const
 
virtual void SetLabel (const std::string &newVal)
 
const NClabelprefix () const
 Return the prefix that is drawn (without delimiter) before the label. More...
 
virtual void setPrefix (const NClabel &newVal)
 
virtual void setPrefix (const std::string &newVal)
 
int prefixWidth () const
 
wrect prefixAdjusted (const wrect origRect) const
 Return a wrect that is adjusted for the size of the prefix, i.e. More...
 
virtual wsze Size () const
 
void stripHotkey ()
 
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: