KKeyChooser Class Reference
Configure dictionaries of key/action associations for KAccel and KGlobalAccel. Widget for configuration of KAccel and KGlobalAccel. More...
#include <kkeydialog.h>
Inheritance diagram for KKeyChooser:

Public Types | |
enum | ActionType { Application, ApplicationGlobal, Standard, Global } |
Public Slots | |
void | allDefault () |
void | setPreferFourModifierKeys (bool preferFourModifierKeys) |
void | listSync () |
Signals | |
void | keyChange () |
Public Methods | |
KKeyChooser (QWidget *parent, ActionType type=Application, bool bAllowLetterShortcuts=true) | |
KKeyChooser (KActionCollection *coll, QWidget *parent, bool bAllowLetterShortcuts=true) | |
KKeyChooser (KAccel *actions, QWidget *parent, bool bAllowLetterShortcuts=true) | |
KKeyChooser (KGlobalAccel *actions, QWidget *parent) | |
KKeyChooser (KShortcutList *, QWidget *parent, ActionType type=Application, bool bAllowLetterShortcuts=true) | |
virtual | ~KKeyChooser () |
bool | insert (KActionCollection *) |
bool | insert (KActionCollection *, const QString &title) |
void | syncToConfig (const QString &sConfigGroup, KConfigBase *pConfig, bool bClearUnset) |
void | commitChanges () |
void | save () |
KKeyChooser (KAccel *actions, QWidget *parent, bool bCheckAgainstStdKeys, bool bAllowLetterShortcuts, bool bAllowWinKey=false) | |
KKeyChooser (KGlobalAccel *actions, QWidget *parent, bool bCheckAgainstStdKeys, bool bAllowLetterShortcuts, bool bAllowWinKey=false) | |
Static Public Methods | |
bool | checkGlobalShortcutsConflict (const KShortcut &cut, bool warnUser, QWidget *parent) |
bool | checkStandardShortcutsConflict (const KShortcut &cut, bool warnUser, QWidget *parent) |
Protected Types | |
enum | { NoKey = 1, DefaultKey, CustomKey } |
Protected Slots | |
void | slotNoKey () |
void | slotDefaultKey () |
void | slotCustomKey () |
void | slotListItemSelected (QListViewItem *item) |
void | capturedShortcut (const KShortcut &cut) |
void | slotSettingsChanged (int) |
void | slotListItemDoubleClicked (QListViewItem *ipoQListViewItem, const QPoint &ipoQPoint, int c) |
Protected Methods | |
void | initGUI (ActionType type, bool bAllowLetterShortcuts) |
bool | insert (KAccel *) |
bool | insert (KGlobalAccel *) |
bool | insert (KShortcutList *) |
void | buildListView (uint iList, const QString &title=QString::null) |
void | readGlobalKeys () |
void | updateButtons () |
void | fontChange (const QFont &_font) |
void | setShortcut (const KShortcut &cut) |
bool | isKeyPresent (const KShortcut &cut, bool warnuser=true) |
bool | isKeyPresentLocally (const KShortcut &cut, KKeyChooserItem *ignoreItem, const QString &warnText) |
void | _warning (const KKeySequence &seq, QString sAction, QString sTitle) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
ActionType | m_type |
bool | m_bAllowLetterShortcuts |
bool | m_bAllowWinKey |
bool | m_bPreferFourModifierKeys |
QRadioButton * | m_prbNone |
QRadioButton * | m_prbDef |
QRadioButton * | m_prbCustom |
Friends | |
class | KKeyDialog |
Detailed Description
Configure dictionaries of key/action associations for KAccel and KGlobalAccel. Widget for configuration of KAccel and KGlobalAccel.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:
- KKeyDialog
- Version:
- Id:
- kkeydialog.h,v 1.81.2.1 2004/03/03 08:24:44 coolo Exp
- Author:
- Nicolas Hadacek <hadacek@via.ecp.fr>
Definition at line 58 of file kkeydialog.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 134 of file kkeydialog.cpp. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 140 of file kkeydialog.cpp. References insert(). |
|
Definition at line 168 of file kkeydialog.cpp. References insert(). |
|
Definition at line 184 of file kkeydialog.cpp. References insert(). |
Member Function Documentation
|
Insert an action collection, i.e. add all its actions to the ones already associated with the KKeyChooser object. Definition at line 213 of file kkeydialog.cpp. Referenced by KKeyDialog::configure(), KKeyDialog::insert(), and KKeyChooser(). |
|
Insert an action collection, i.e. add all its actions to the ones already associated with the KKeyChooser object.
Definition at line 218 of file kkeydialog.cpp. References KInstance::aboutData(), buildListView(), KActionCollection::instance(), QString::isEmpty(), and KAboutData::programName(). |
|
This function writes any shortcut changes back to the original action set(s).
Definition at line 253 of file kkeydialog.cpp. References QListViewItemIterator::current(). Referenced by KKeyDialog::commitChanges(), and save(). |
|
This commits and then 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. Definition at line 265 of file kkeydialog.cpp. References commitChanges(). |
|
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.
Definition at line 787 of file kkeydialog.cpp. |
|
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.
Definition at line 769 of file kkeydialog.cpp. References KShortcut::count(), KStdAccel::findStdAccel(), and KShortcut::seq(). |
|
Emitted when an action's shortcut has been changed.
Referenced by allDefault(). |
|
Set all keys to their default values (bindings).
Definition at line 562 of file kkeydialog.cpp. References QListViewItemIterator::current(), and keyChange(). |
|
Specifies whether to use the 3 or 4 modifier key scheme. This determines which default is used when the 'Default' button is clicked. Definition at line 594 of file kkeydialog.cpp. |
|
Definition at line 413 of file kkeydialog.cpp. References KShortcutList::count(), QListViewItem::firstChild(), KShortcutList::isConfigurable(), QString::isEmpty(), KShortcutList::label(), KShortcutList::name(), QListViewItem::setExpandable(), QListViewItem::setOpen(), QListViewItem::setSelectable(), and QString::startsWith(). Referenced by insert(). |
|
Rebuild list entries based on underlying map. Use this if you changed the underlying map. Definition at line 609 of file kkeydialog.cpp. |
The documentation for this class was generated from the following files: