shortcutlistform

The shortcutlistform module contains the form class

class openlp.core.ui.shortcutlistform.ShortcutListForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.core.ui.shortcutlistdialog.Ui_ShortcutListDialog, openlp.core.common.registryproperties.RegistryProperties

The shortcut list dialog

exec()[source]

Execute the dialog

static get_shortcut_string(shortcut, for_display=False)[source]
keyPressEvent(event)[source]

Respond to certain key presses

keyReleaseEvent(event)[source]

Respond to certain key presses

on_alternate_push_button_clicked(toggled)[source]

Save the new alternate shortcut.

on_clear_alternate_button_clicked(toggled)[source]

Restore the defaults of this action.

on_clear_primary_button_clicked(toggled)[source]

Restore the defaults of this action.

on_current_item_changed(item=None, previousItem=None)[source]

A item has been pressed. We adjust the button’s text to the action’s shortcut which is encapsulate in the item.

on_custom_radio_button_clicked(toggled)[source]

The custom shortcut radio button was clicked, thus we have to restore the custom shortcuts by calling those functions triggered by button clicks.

on_default_radio_button_clicked(toggled)[source]

The default radio button has been clicked, which means we have to make sure, that we use the default shortcuts for the action.

on_item_double_clicked(item, column)[source]

A item has been double clicked. The primaryPushButton will be checked and the item’s shortcut will be displayed.

on_primary_push_button_clicked(toggled)[source]

Save the new primary shortcut.

on_restore_defaults_clicked(button)[source]

Restores all default shortcuts.

refresh_shortcut_list()[source]

This refreshes the item’s shortcuts shown in the list. Note, this neither adds new actions nor removes old actions.

reload_shortcut_list()[source]

Reload the tree_widget list to add new and remove old actions.

save()[source]

Save the shortcuts. Note, that we do not have to load the shortcuts, as they are loaded in ActionList.