class KShortcutsEditor |
|
Widget for configuration of KAccel and KGlobalAccel.
Configure dictionaries of key/action associations for KActions, including global shortcuts. The class takes care of all aspects of configuration, including handling key conflicts internally. Connect to the allDefault() slot if you want to set all configurable shortcuts to their default values.
See also KShortcutsDialog
Author Nicolas Hadacek |
|
Constructor.
collection - the KActionCollection to configure parent - parent widget actionTypes - types of actions to display in this widget. allowLetterShortcuts - set to LetterShortcutsDisallowed if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. |
|
Creates a key chooser without a starting action collection. parent - parent widget actionTypes - types of actions to display in this widget. allowLetterShortcuts - set to LetterShortcutsDisallowed if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. |
|
|
Insert an action collection, i.e. add all its actions to the ones
already associated with the KShortcutsEditor object.
title - subtree title of this collection of shortcut. |
|
Set all shortcuts to their default values (bindings). |
|
Checks whether the given shortcut conflicts with global keyboard shortcuts.
If yes, and the warnUser argument is true, warns the user and gives them a chance
to reassign the shortcut from the global shortcut.
Returns true if there was conflict (and the user didn't reassign the shortcut) cut - the shortcut that will be checked for conflicts warnUser - if true, the user will be warned about a conflict and given a chance to reassign the shortcut parent - parent widget for the warning dialog |
|
Checks whether the given shortcut conflicts with standard keyboard shortcuts.
If yes, and the warnUser argument is true, warns the user and gives them a chance
to reassign the shortcut from the standard shortcut.
Returns true if there was conflict (and the user didn't reassign the shortcut) cut - the shortcut that will be checked for conflicts warnUser - if true, the user will be warned about a conflict and given a chance to reassign the shortcut parent - parent widget for the warning dialog |
|
Removes all action collections from the editor |
|
Emitted when an action's shortcut has been changed. |
|
Resize colums to width required |
|
This saves the actions to disk. Any KActionCollection objects with the xmlFile() value set will be written to an XML file. All other will be written to the application's rc file. |
|
This function reverts any shortcut changes to the original action set(s). Not implemented yet. |
Actions which are triggered by any keypress in a widget which has the action added to it
WidgetAction | - Qt::WidgetShortcut | - | ||
WindowAction | - Qt::WindowShortcut | - | ||
ApplicationAction | - Qt::ApplicationShortcut | - | ||
GlobalAction | - 4 | - | ||
AllActions | - 0xffffffff | - |
Shortcuts without a modifier are not allowed, so 'A' would not be valid, whereas 'Ctrl+A' would be. This only applies to printable characters, however. 'F1', 'Insert' etc. could still be used.
LetterShortcutsDisallowed | - 0 | - | ||
LetterShortcutsAllowed | - | - |