List of all members.
Detailed Description
handles the MenuItem insertion automaticly. If the menu is selected, a callback is triggered. Default behaviour is that the menu item is added every time the menu is built, and that it's enabled but not checked. That can be changes by setting the doadd_, isenabled_ and ischecked_ or by an inheriting object in the shouldAddMenu(), shouldBeEnabled() and shouldBeChecked() functions.
Constructor & Destructor Documentation
| MenuItemHandler::MenuItemHandler |
( |
MenuHandler & |
, |
|
|
const char * |
nm, |
|
|
const CallBack & |
, |
|
|
int |
placement = -1 | |
|
) |
| | |
| MenuItemHandler::~MenuItemHandler |
( |
|
) |
|
Member Function Documentation
| virtual void MenuItemHandler::createMenuCB |
( |
CallBacker * |
|
) |
[protected, virtual] |
| virtual void MenuItemHandler::handleMenuCB |
( |
CallBacker * |
|
) |
[protected, virtual] |
| virtual bool MenuItemHandler::shouldAddMenu |
( |
|
) |
const [inline, protected, virtual] |
| virtual bool MenuItemHandler::shouldBeChecked |
( |
|
) |
const [inline, protected, virtual] |
| virtual bool MenuItemHandler::shouldBeEnabled |
( |
|
) |
const [inline, protected, virtual] |
Member Data Documentation