$search
Simple non-intrusive helper class which creates a menu and maps its entries to function callbacks. More...
Public Member Functions | |
| def | __init__ |
| def | apply |
| Copy current menu state into the marker given by the specified name & divert callback for MENU_SELECT feedback to this manager. | |
| def | doInsert |
| def | getCheckState |
| Get the current state of an entry. | |
| def | getTitle |
| Get the title for the given menu entry. | |
| def | insert |
| Insert a new menu item. | |
| def | makeEntry |
| def | processFeedback |
| def | pushMenuEntries |
| def | reApply |
| Re-apply to all markers that this was applied to previously. | |
| def | setCheckState |
| Specify if an entry is checked or can't be checked at all. | |
| def | setVisible |
| Specify if an entry should be visible or hidden. | |
Public Attributes | |
| current_handle_ | |
| entry_contexts_ | |
| managed_markers_ | |
| top_level_handles_ | |
Static Public Attributes | |
| int | CHECKED = 1 |
| int | NO_CHECKBOX = 0 |
| int | UNCHECKED = 2 |
Simple non-intrusive helper class which creates a menu and maps its entries to function callbacks.
Definition at line 50 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::__init__ | ( | self | ) |
Definition at line 55 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::apply | ( | self, | ||
| server, | ||||
| marker_name | ||||
| ) |
Copy current menu state into the marker given by the specified name & divert callback for MENU_SELECT feedback to this manager.
Definition at line 104 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::doInsert | ( | self, | ||
| title, | ||||
| command_type, | ||||
| command, | ||||
| feedback_cb | ||||
| ) |
Definition at line 177 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::getCheckState | ( | self, | ||
| handle | ||||
| ) |
Get the current state of an entry.
Definition at line 95 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::getTitle | ( | self, | ||
| handle | ||||
| ) |
Get the title for the given menu entry.
Definition at line 130 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::insert | ( | self, | ||
| title, | ||||
parent = None, |
||||
command_type = MenuEntry.FEEDBACK, |
||||
command = "", |
||||
callback = None | ||||
| ) |
Insert a new menu item.
Definition at line 62 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::makeEntry | ( | self, | ||
| context, | ||||
| handle, | ||||
| parent_handle | ||||
| ) |
Definition at line 160 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::processFeedback | ( | self, | ||
| feedback | ||||
| ) |
Definition at line 137 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::pushMenuEntries | ( | self, | ||
| handles_in, | ||||
| entries_out, | ||||
| parent_handle | ||||
| ) |
Definition at line 146 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::reApply | ( | self, | ||
| server | ||||
| ) |
Re-apply to all markers that this was applied to previously.
Definition at line 118 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::setCheckState | ( | self, | ||
| handle, | ||||
| check_state | ||||
| ) |
Specify if an entry is checked or can't be checked at all.
Definition at line 85 of file menu_handler.py.
| def interactive_markers::menu_handler::MenuHandler::setVisible | ( | self, | ||
| handle, | ||||
| visible | ||||
| ) |
Specify if an entry should be visible or hidden.
Definition at line 76 of file menu_handler.py.
int interactive_markers::menu_handler::MenuHandler::CHECKED = 1 [static] |
Definition at line 52 of file menu_handler.py.
Definition at line 58 of file menu_handler.py.
Definition at line 57 of file menu_handler.py.
Definition at line 59 of file menu_handler.py.
int interactive_markers::menu_handler::MenuHandler::NO_CHECKBOX = 0 [static] |
Definition at line 51 of file menu_handler.py.
Definition at line 56 of file menu_handler.py.
int interactive_markers::menu_handler::MenuHandler::UNCHECKED = 2 [static] |
Definition at line 53 of file menu_handler.py.