|
libyui-ncurses
2.44.1
|


Public Member Functions | |
| NCTable (YWidget *parent, YTableHeader *tableHeader, bool multiSelection=false) | |
| bool | bigList () const |
| void | setHeader (std::vector< std::string > head) |
| void | getHeader (std::vector< std::string > &head) |
| virtual void | setAlignment (int col, YAlignmentType al) |
| void | setBigList (const bool big) |
| void | SetSepChar (const chtype colSepchar) |
| void | SetSepWidth (const unsigned sepwidth) |
| void | SetHotCol (const int hcol) |
| virtual void | addItem (YItem *yitem) |
| virtual void | addItems (const YItemCollection &itemCollection) |
| virtual void | deleteAllItems () |
| virtual int | getCurrentItem () |
| YItem * | getCurrentItemPointer () |
| virtual void | setCurrentItem (int index) |
| virtual void | selectItem (YItem *yitem, bool selected) |
| void | selectCurrentItem () |
| virtual void | deselectAllItems () |
| virtual int | preferredWidth () |
| virtual int | preferredHeight () |
| virtual void | setSize (int newWidth, int newHeight) |
| virtual void | setLabel (const std::string &nlabel) |
| virtual void | setEnabled (bool do_bv) |
| bool | setItemByKey (int key) |
| virtual NCursesEvent | wHandleInput (wint_t key) |
| virtual bool | setKeyboardFocus () |
| void | stripHotkeys () |
| void | setSortStrategy (NCTableSortStrategyBase *newStrategy) |
Protected Member Functions | |
| virtual NCTablePad * | myPad () const |
| virtual const char * | location () const |
| virtual NCPad * | CreatePad () |
| virtual void | cellChanged (int index, int colnum, const std::string &newtext) |
| virtual void | cellChanged (const YTableCell *cell) |
| virtual void | startMultipleChanges () |
| virtual void | doneMultipleChanges () |
| virtual void | addItem (YItem *yitem, bool allAtOnce) |
| void | toggleCurrentItem () |
Protected Attributes | |
| bool | biglist |
| bool | multiselect |
Friends | |
| std::ostream & | operator<< (std::ostream &STREAM, const NCTable &OBJ) |
| virtual NCTablePad* NCTable::myPad | ( | ) | const [inline, protected, virtual] |
Overload myPad to narrow the type
Reimplemented from NCPadWidget.
| void NCTable::setEnabled | ( | bool | do_bv | ) | [virtual] |
Pure virtual to make sure every widget implements it. Necessary to make sure that UI requests via YWidget::setEnabled perform, and behave the same way as direct calls to NCWidget::setEnabled.
Reimplemented from NCPadWidget.
Definition at line 468 of file NCTable.cc.

| void NCTable::toggleCurrentItem | ( | ) | [protected] |
Toggle item from selected -> deselected and vice versa
Definition at line 588 of file NCTable.cc.