libyui-ncurses
Loading...
Searching...
No Matches
NCCustomStatusTableTag Class Reference

#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
void setStatus (int newStatus)
void updateStatusIndicator ()
Public Member Functions inherited from NCTableTag
 NCTableTag (YItem *item, bool sel=false, bool singleSel=false)
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
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

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.

Member Function Documentation

◆ DrawAt()

void NCCustomStatusTableTag::DrawAt ( NCursesWindow & w,
const wrect at,
NCTableStyle & tableStyle,
NCTableLine::STATE linestate,
unsigned colidx ) const
virtual

Reimplemented from NCTableTag.

◆ Selected()

bool NCCustomStatusTableTag::Selected ( ) const
virtual

Reimplemented from NCTableTag.

◆ SetSelected()

void NCCustomStatusTableTag::SetSelected ( bool sel)
virtual

Reimplemented from NCTableTag.

◆ setStatus()

void NCCustomStatusTableTag::setStatus ( int newStatus)

Set the numeric status value of the associated item and update the status indicator.

◆ SingleSelection()

virtual bool NCCustomStatusTableTag::SingleSelection ( ) const
inlinevirtual

Reimplemented from NCTableTag.

◆ status()

int NCCustomStatusTableTag::status ( ) const

Return the numeric status value of the associated item.

◆ 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.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCCustomStatusItemSelector.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCCustomStatusItemSelector.cc