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

#include <NCTableItem.h>

Inheritance diagram for NCTableTag:
Collaboration diagram for NCTableTag:

Public Member Functions

 NCTableTag (YItem *item, bool sel=false, bool singleSel=false)
 
virtual void SetLabel (const NClabel &)
 
virtual void DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, NCTableLine::STATE linestate, unsigned colidx) const
 
virtual bool Selected () const
 
virtual void SetSelected (bool sel)
 
virtual bool SingleSelection () const
 
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
 

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

A column (one cell) used as a selection marker: '[ ]'/'[x]' or '( )'/'(x)'.

Constructor & Destructor Documentation

◆ NCTableTag()

NCTableTag::NCTableTag ( YItem * item,
bool sel = false,
bool singleSel = false )
inline

Constructor.

Parameters
item(must not be nullptr, not owned)
selcurrently selected, draw an 'x' inside
singleSelif true draw this in a radio-button style '(x)'; if false draw this in a checkbox style '[x]'

Member Function Documentation

◆ DrawAt()

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

Reimplemented from NCTableCol.

◆ SetLabel()

virtual void NCTableTag::SetLabel ( const NClabel & )
inlinevirtual

Reimplemented from NCTableCol.


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