| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
debug.debugmixin --+
|
UserActionClassList
Creates a list of actions for a major mode
This class creates a list of action classes and a sorted list of actions ready to be populated into a menu.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Methods | |||
|
|||
|
Inherited from |
|||
| Class Variables | |
default_menu_weights =
|
|
|
Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
Set the default menubar weights. Weights is a mapping of the menu name to the sort order of the menu name. By default the sort order of the menu ranges from 0 to 1000, and floating-point numbers are OK. |
Initialize the mapping with the new set of actions. The ordering of the menu items is set here, but nothing is actually mapped to a menubar or a toolbar until either updateMenuActions or updateToolbarActions is called. frame: parent Frame object action_classes: list of possible action classes (i.e. not instantiated classes, but the classes themselves. They will be instantiated when they are mapped to a menubar or toolbar.
|
Get menu ordering info from the action The class attribute default_menu is decoded here into the mode (either a text string or None indicating the action is applicable to all major modes), the menu title, menu weight (sorting order of the menu itself) and the item weight (sorting order of the action within the menu). |
Get the parent menu title. Submenus are indicated by a / in the menu title |
Sort the actions into a hierarchy of menus Menus and menu items are sorted here by the weights given in the default_menu attribute of the action. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:20 2008 | http://epydoc.sourceforge.net |