#include <tcMenu.h>
Public Member Functions | |
CommitCallbackObserver (MenuCallbackFn callbackFn) | |
void | structureHasChanged () override |
bool | menuEditStarting (MenuItem *) override |
void | menuEditEnded (MenuItem *item) override |
Public Member Functions inherited from MenuManagerObserver | |
virtual void | activeItemHasChanged (MenuItem *) |
This is used to simulate the old commit hook callback.
|
inlineoverridevirtual |
Indicates that the menu structure has changed in a way that requires a new bootstrap and complete redraw. For example when a new menu item is added, or when static values such as the name or info block data change.
Implements MenuManagerObserver.
|
inlineoverridevirtual |
This method is called when editing is started with the menu manager, you can prevent editing by returning false.
item | the item that is about to start editing |
Implements MenuManagerObserver.
|
inlineoverridevirtual |
This method indicates that editing has completed editing, it is different to the menu item callback in that it is only called when the menu is edited. You cannot prevent completion, but you could present a dialog if the value was incorrectly adjusted.
item | the item that has finished editing. |
Implements MenuManagerObserver.