libyui-mga-ncurses
1.1.0
|
Classes | |
struct | Private |
Public Member Functions | |
YMGANCMenuBar (YWidget *parent) | |
virtual int | preferredWidth () |
virtual int | preferredHeight () |
virtual void | setSize (int newWidth, int newHeight) |
virtual NCursesEvent | wHandleHotkey (wint_t key) |
virtual NCursesEvent | wHandleInput (wint_t key) |
virtual bool | setKeyboardFocus () |
virtual void | setEnabled (bool do_bv) |
virtual void | addItem (YItem *item) |
Add an YMenuItem first item represents the menu name, other sub items menu entries. More... | |
virtual void | addItems (const YItemCollection &itemCollection) |
Add multiple items. More... | |
virtual bool | HasHotkey (int key) |
Reimplemnted to check all the hotkeys from YMenuItems. More... | |
virtual void | enableItem (YItem *menu_item, bool enable=true) |
Enable YMGAMenuItem (menu name or menu entry) to enable/disable it into menubar or menu. More... | |
virtual void | hideItem (YItem *menu_item, bool invisible=true) |
Hide YMGAMenuItem (menu name or menu entry) to hide/show it into menubar or menu. More... | |
virtual void | deleteAllItems () |
Delete all items. More... | |
Protected Member Functions | |
virtual const char * | location () const |
virtual void | wRedraw () |
NCursesEvent | postMenu () |
Friends | |
std::ostream & | operator<< (std::ostream &str, const YMGANCMenuBar &obj) |
Definition at line 33 of file YMGANCMenuBar.h.
|
virtual |
Add an YMenuItem first item represents the menu name, other sub items menu entries.
Reimplemented from YSelectionWidget.
Definition at line 244 of file YMGANCMenuBar.cc.
|
virtual |
Add multiple items.
For some UIs, this can be more efficient than calling addItem() multiple times.
Reimplemented from YSelectionWidget.
Definition at line 269 of file YMGANCMenuBar.cc.
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget
Definition at line 473 of file YMGANCMenuBar.cc.
|
virtual |
Enable YMGAMenuItem (menu name or menu entry) to enable/disable it into menubar or menu.
Reimplemented from YMGAMenuBar.
Definition at line 463 of file YMGANCMenuBar.cc.
|
virtual |
Reimplemnted to check all the hotkeys from YMenuItems.
Definition at line 168 of file YMGANCMenuBar.cc.
|
virtual |
Hide YMGAMenuItem (menu name or menu entry) to hide/show it into menubar or menu.
Reimplemented from YMGAMenuBar.
Definition at line 468 of file YMGANCMenuBar.cc.