class KKeyChooser

Widget for configuration of KAccel and KGlobalAccel. More...

Definition#include <kkeydialog.h>
InheritsQWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Slots

Signals

Protected Methods

Protected Slots

Protected Members


Detailed Description

Configure dictionaries of key/action associations for 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 keybindings to their default values.

See also: KKeyDialog

enum { NoKey = 1, DefaultKey, CustomKey }

 KKeyChooser ( KKeyEntryMap *aKeyMap, KKeyMapOrder *pMapOrder, QWidget* parent, bool check_against_std_keys, bool bAllowLetterShortcuts, bool bAllowMetaKey = false )

KKeyChooser

Constructor.

Parameters:
aKeyDictA dictionary (QMap) of key definitons.

 KKeyChooser ( KKeyEntryMap *aKeyMap, QWidget* parent, bool check_against_std_keys, bool bAllowLetterShortcuts, bool bAllowMetaKey = false )

KKeyChooser

 KKeyChooser ( KKeyEntryMap *aKeyDict, QWidget* parent = 0, bool check_against_std_keys = false )

KKeyChooser

 ~KKeyChooser ()

~KKeyChooser

void  init ( KKeyEntryMap *aKeyMap, KKeyMapOrder *pMapOrder, bool check_against_std_keys, bool bAllowLetterShortcuts, bool bAllowMetaKey )

init

[protected]

void  keyChange ()

keyChange

[signal]

Emitted when a key definition has been changed.

void  allDefault ()

allDefault

[slot]

Set all keys to their default values (bindings).

void  allDefault ( bool useFourModifierKeys )

allDefault

[slot]

void  setPreferFourModifierKeys ( bool preferFourModifierKeys )

setPreferFourModifierKeys

[slot]

void  listSync ()

listSync

[slot]

Set all list entries to their changed values. Use this if you changed the underlying map

void  toChange ( QListViewItem *item )

toChange

[protected slots slot]

void  changeKey ()

changeKey

[protected slots slot]

void  capturedKey ( uint key )

capturedKey

[protected slots slot]

void  updateAction ( QListViewItem *item )

updateAction

[protected slots slot]

void  defaultKey ()

defaultKey

[protected slots slot]

void  noKey ()

noKey

[protected slots slot]

void  keyMode ( int _mode )

keyMode

[protected slots slot]

void  shiftClicked ()

shiftClicked

[protected slots slot]

void  ctrlClicked ()

ctrlClicked

[protected slots slot]

void  altClicked ()

altClicked

[protected slots slot]

void  editKey ()

editKey

[protected slots slot]

void  editEnd ()

editEnd

[protected slots slot]

void  readGlobalKeys ()

readGlobalKeys

[protected slots slot]

void  readStdKeys ()

readStdKeys

[protected slots slot]

void  fontChange ( const QFont& _font )

fontChange

[protected]

Reimplemented from QWidget.

void  readKeysInternal ( QDict< int >* dict, const QString& group )

readKeysInternal

[protected]

bool  isKeyPresent (int kcode, bool warnuser = true )

isKeyPresent

[protected]

void  setKey ( int kCode )

setKey

[protected]

QDict*  globalDict ()

globalDict

[protected]

QDict*  stdDict ()

stdDict

[protected]

KKeyChooserPrivate * d

d

[protected]