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). |
|
|
|
Removes all action collections from the editor |
|
Export the current setting to configuration config.
This initializes the configuration object. This will export the global configuration too. config - Config object |
|
Import the settings from configuration config.
This will remove all current setting before importing. All shortcuts are set to KShortcut() prior to importing from config! config - Config object |
|
Are the unsaved changes? |
|
Emitted when an action's shortcut has been changed. |
|
Opens a printing dialog to print all the shortcuts |
|
Resize colums to width required |
|
Save the changes.
Well this function doesn't save actually for global shortcuts. It makes sure the editor doesn't undo all changes when it is deleted. 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. |
|
Undo all change made since the last save(). |
|
Write the current settings to the config object.
This does not initialize the config object. It adds the configuration. this will not save the global configuration! globalaccel holds that part of the configuration. See also writeGlobalConfig() config - Config object to save to or, or null to use the applications config object |
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 | - | - |