Home | Trees | Indices | Help |
|
---|
|
Naming and other conventions: All data needed for configuration of shortcuts are collected in metadata objects wich are of type Metadata. The text in a menu item to the right of the character is called shortcut. Examples of shortcuts: Ctrl+N, PgUp, Shift+Ctrl+X The shortcut, if it exists, consists of an optional modifier and a shortcut key. So the format of a shortcut is: [modifier +] shortcut_key. The text in a menu item describing the action is called function. wxid is the ID associated with the menu item. cfgid is the ID used in the configuration file associated with a shortcut.
Classes | |
Metadata | |
ShortcutController |
Variables | |
CTRL_MODIFIER = "Ctrl"
|
|
ALT_MODIFIER = "Alt"
|
|
NO_MODIFIER = ""
|
|
LABEL = "%s->%%s"
|
|
LABEL_FILE = LABEL % _("File")
|
|
LABEL_EDIT = LABEL % _("Edit")
|
|
LABEL_VIEW = LABEL % _("View")
|
|
LABEL_TIMELINE = LABEL % _("Timeline")
|
|
LABEL_NAVIGATE = LABEL % _("Navigate")
|
|
LABEL_HELP = LABEL % _("Help")
|
|
NAVLABEL = "%s(%s)->%%s"
|
|
LABEL_NAVIGATE_TIME = NAVLABEL %(_("Navigate"), "tm")
|
|
LABEL_NAVIGATE_NUM = NAVLABEL %(_("Navigate"), "num")
|
|
METADATA = [Metadata(mf.ID_NEW, "shortcut_file_new", LABEL_FIL
|
|
FUNCTION_KEYS = ["PgDn", "PgUp", "F1", "F2", "F3", "F4", "F5",
|
|
SHORTCUT_KEYS = ["", "A", "B", "C", "D", "E", "F", "G", "H", "
|
|
NON_EMPTY_MODIFIERS = ["Ctrl", "Alt", "Shift+Ctrl", "Shift+Alt
|
|
MODIFIERS = ["",]+ NON_EMPTY_MODIFIERS
|
Imports: mf
Variables Details |
METADATA
|
FUNCTION_KEYS
|
SHORTCUT_KEYS
|
NON_EMPTY_MODIFIERS
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 19 02:55:28 2018 | http://epydoc.sourceforge.net |