Home ⌂Doc Index ◂Up ▴

eric6.Preferences.Shortcuts

Module implementing functions dealing with keyboard shortcuts.

Global Attributes

None

Classes

None

Functions

__readShortcut Private function to read a single keyboard shortcut from the settings.
__saveShortcut Private function to write a single keyboard shortcut to the settings.
__setAction Private function to write a single keyboard shortcut to the settings.
exportShortcuts Module function to export the keyboard shortcuts for the defined QActions.
importShortcuts Module function to import the keyboard shortcuts for the defined E5Actions.
readShortcuts Module function to read the keyboard shortcuts for the defined QActions.
saveShortcuts Module function to write the keyboard shortcuts for the defined QActions.
setActions Module function to set actions based on new format shortcuts file.


__readShortcut

__readShortcut(act, category, prefClass)

Private function to read a single keyboard shortcut from the settings.

act
reference to the action object (E5Action)
category
category the action belongs to (string)
prefClass
preferences class used as the storage area
Up


__saveShortcut

__saveShortcut(act, category, prefClass)

Private function to write a single keyboard shortcut to the settings.

act
reference to the action object (E5Action)
category
category the action belongs to (string)
prefClass
preferences class used as the storage area
Up


__setAction

__setAction(actions, sdict)

Private function to write a single keyboard shortcut to the settings.

actions
list of actions to set (list of E5Action)
sdict
dictionary containg accelerator information for one category
Up


exportShortcuts

exportShortcuts(fn, helpViewer=None)

Module function to export the keyboard shortcuts for the defined QActions.

fn
filename of the export file (string)
helpViewer
reference to the help window object
Up


importShortcuts

importShortcuts(fn, helpViewer=None)

Module function to import the keyboard shortcuts for the defined E5Actions.

fn
filename of the import file (string)
helpViewer
reference to the help window object
Up


readShortcuts

readShortcuts(prefClass=Prefs, helpViewer=None, pluginName=None)

Module function to read the keyboard shortcuts for the defined QActions.

prefClass=
preferences class used as the storage area
helpViewer=
reference to the help window object
pluginName=
name of the plugin for which to load shortcuts (string)
Up


saveShortcuts

saveShortcuts(prefClass=Prefs, helpViewer=None)

Module function to write the keyboard shortcuts for the defined QActions.

prefClass
preferences class used as the storage area
helpViewer=
reference to the help window object
Up


setActions

setActions(shortcuts, helpViewer=None)

Module function to set actions based on new format shortcuts file.

shortcuts
dictionary containing the accelerator information read from a XML file
helpViewer
reference to the help window object
Up



Home ⌂Doc Index ◂Up ▴