The action module allows to add user-defined menu items into the application. New custom menu items can be added to the following elements of the interface:
Note
The task-specific context menu can be called in several contexts: in Navigator, To Do list, Inbox, My Space as well as in Search tab. Custom menu items added into the task-specific menu appear in all of listed above contexts.
The attachment-specific context menu can be called in Forum alongside with the message-specific menu, and while searching the attachments. Custom menu items added into the attachment-specific menu appear in Forum and in attachment search window.
Message-specific context menu is called from a task Forum thread.
Each menu item added should be tied to a function of a custom user’s module. Activation of the menu item calls the corresponding function. Besides, the custom user’s menu items can have graphic thumbnails and assigned hot key combinations.
Custom user’s menus are added to the init_actions functions from menu module.
action.init_actions()
Called on application start and on Python modules updating on debugging.
action.py:
def init_actions():
...
mplementation of user menus is made through menu objects, described in the action module of Cerebro package. The access to these objects is gained through the actions module functions:
Using these classes one can implement user menus and actions in context menus:
On the toolbars:
To the application Main Menu:
You can find the examples of adding user’s menus here.