libyui-ncurses
|
#include <NCTableItem.h>
Public Member Functions | |
NCTableHead (unsigned cols) | |
NCTableHead (std::vector< NCTableCol * > &headCells) | |
virtual void | DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, bool active) const |
![]() | |
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) |
NCTableCol * | GetCol (unsigned idx) |
const NCTableCol * | GetCol (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 () |
virtual void | DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, bool active) const |
void | stripHotkeys () |
virtual NCTableLine * | parent () const |
virtual NCTableLine * | firstChild () const |
virtual NCTableLine * | nextSibling () const |
void | setParent (NCTableLine *newVal) |
void | setFirstChild (NCTableLine *newVal) |
void | setNextSibling (NCTableLine *newVal) |
int | treeLevel () const |
void | setTreeLevel (int newVal) |
int | prefixLen () const |
NCTableTag * | tagCell () const |
std::string | indentationStr () const |
Additional Inherited Members | |
![]() | |
enum | STATE { S_NORMAL = 0x00 , S_ACTIVE = 0x01 , S_DISABLED = 0x10 , S_HIDDEN = 0x20 , S_HEADLINE = 0x40 } |
![]() | |
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 |
![]() | |
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 |
The header line of an NCTable.
|
virtual |
Draw the header line with special attributes. That is the whole reason of having a separate class for this.
Reimplemented from NCTableLine.