/briefClass used by DtConfigurableMenu when asked to create simple menu items as in the function DtConfigurableMenu::createSimpleMenuItem().
More...
Protected Member Functions |
| void | on_triggered () |
| | Invoke the menu action.
|
Additional Inherited Members |
Detailed Description
/briefClass used by DtConfigurableMenu when asked to create simple menu items as in the function DtConfigurableMenu::createSimpleMenuItem().
This class can be overridden to create even more extensively custom menu items, but one could also just override the makVrv::DtMenuItem as well. Menu item text is plainly passed in and the translation can be applied to it
Constructor & Destructor Documentation
| makVrf::DtSimpleMenuItem::DtSimpleMenuItem |
( |
makVrv::DtDe & |
de, |
|
|
std::string |
menuItemId, |
|
|
std::string |
menuItemText |
|
) |
| |
|
inline |
| virtual makVrf::DtSimpleMenuItem::~DtSimpleMenuItem |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
| virtual std::string makVrf::DtSimpleMenuItem::menuItemText |
( |
| ) |
|
|
inlinevirtual |
gets the display text of the menu item, not the menuId
Sets a function that gets called when this menu item is chosen.
This function is stored and associated with this menu item. You can also pass in an object pointer in case the function requires more than just the makVrv::DtDe it will give the user. If usr is not set, the argument will be null. No function is set, this menu item will simply do nothing.
| void makVrf::DtSimpleMenuItem::on_triggered |
( |
| ) |
|
|
inlineprotectedvirtual |
Member Data Documentation
| void* makVrf::DtSimpleMenuItem::myUser |
|
protected |
| std::string makVrf::DtSimpleMenuItem::myMenuItemText |
|
protected |
The documentation for this class was generated from the following file: