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

#include <NCTableItem.h>

Inheritance diagram for NCTableHead:
Collaboration diagram for NCTableHead:

Public Member Functions

 NCTableHead (unsigned cols)
 NCTableHead (std::vector< NCTableCol * > &headCells)
virtual void DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, bool active) const
Public Member Functions inherited from NCTableLine
 NCTableLine (std::vector< NCTableCol * > &cells, int index=-1, bool nested=false, unsigned state=S_NORMAL)
 NCTableLine (NCTableLine *parentLine, YItem *yitem, std::vector< NCTableCol * > &cells, int index=-1, bool nested=false, unsigned state=S_NORMAL)
 NCTableLine (unsigned colCount, int index=-1, bool nested=false, unsigned state=S_NORMAL)
 NCTableLine (NCTableLine *parentLine, YItem *yitem, unsigned colCount, int index=-1, bool nested=false, unsigned state=S_NORMAL)
virtual ~NCTableLine ()
YTableItem * origItem () const
void setOrigItem (YTableItem *yitem)
int index () const
unsigned Cols () const
void SetCols (unsigned idx)
void SetCols (std::vector< NCTableCol * > &newCells)
void ClearLine ()
std::vector< NCTableCol * > GetItems () const
void Append (NCTableCol *cell)
void AddCol (unsigned idx, NCTableCol *item)
void DelCol (unsigned idx)
NCTableColGetCol (unsigned idx)
const NCTableColGetCol (unsigned idx) const
void SetState (const STATE s)
void ClearState (const STATE s)
bool isHidden () const
bool isDisabled () const
bool isSpecial () const
bool isActive () const
virtual bool isVisible () const
virtual bool isEnabled () const
virtual bool isNested () const
virtual void setNested (bool val)
void openBranch ()
void closeBranch ()
void toggleOpenClosedState ()
virtual bool handleInput (wint_t key)
virtual bool ChangeToVisible ()
virtual unsigned Hotspot (unsigned &at) const
virtual void UpdateFormat (NCTableStyle &tableStyle)
virtual void updatePrefix ()
void stripHotkeys ()
virtual NCTableLineparent () const
virtual NCTableLinefirstChild () const
virtual NCTableLinenextSibling () const
void setParent (NCTableLine *newVal)
void setFirstChild (NCTableLine *newVal)
void setNextSibling (NCTableLine *newVal)
int treeLevel () const
void setTreeLevel (int newVal)
int prefixLen () const
NCTableTagtagCell () const
std::string indentationStr () const

Additional Inherited Members

Public Types inherited from NCTableLine
enum  STATE {
  S_NORMAL = 0x00 , S_ACTIVE = 0x01 , S_DISABLED = 0x10 , S_HIDDEN = 0x20 ,
  S_HEADLINE = 0x40
}
Protected Member Functions inherited from NCTableLine
void treeInit (NCTableLine *parentLine, YItem *yitem)
void initPrefixPlaceholder ()
void addToTree (NCTableLine *parent)
bool isOpen (YItem *yitem) const
YItem * yitem () const
void setYItem (YItem *yitem)
virtual void DrawItems (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, bool active) const
void assertCol (unsigned idx)
const std::string & prefixPlaceholder () const
void drawPrefix (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle) const
Protected Attributes inherited from NCTableLine
std::vector< NCTableCol * > _cells
 owned
unsigned _state
 Or'ed STATE flags.
int _index
 unique index to identify this line
YItem * _yitem
 not owned
bool _nested
 using nested (tree-like) items?
int _treeLevel
NCTableLine_parent
NCTableLine_nextSibling
NCTableLine_firstChild
STATE _vstate
chtype * _prefix
std::string _prefixPlaceholder

Detailed Description

The header line of an NCTable.

Member Function Documentation

◆ DrawAt()

void NCTableHead::DrawAt ( NCursesWindow & w,
const wrect at,
NCTableStyle & tableStyle,
bool active ) const
virtual

Draw the header line with special attributes. That is the whole reason of having a separate class for this.

Reimplemented from NCTableLine.


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/NCTableItem.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCTableItem.cc