# class KKeyDialog | Dialog for configuration of KAccel and KGlobalAccel. More...
Definition | `#include <kkeydialog.h>`
Inherits | KDialogBase [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KKeyDialog ( KKeyEntryMap* aKeyDict, QWidget *parent = 0, bool check_against_std_keys = false )
- ~KKeyDialog ()

#### Public Static Methods

- static int configureKeys ( KAccel *keys, bool save_settings = true, QWidget *parent = 0 )
- static int configureKeys ( KGlobalAccel *keys, bool save_settings = true, QWidget *parent = 0 )
- static int configureKeys ( KActionCollection *coll, const QString& xmlfile, bool save_settings = true, QWidget *parent = 0 )

## Detailed Description

The KKeyDialog class is used for configuring dictionaries of key/action associations for KAccel and KGlobalAccel. It uses the KKeyChooser widget and offers buttons to set all keys to defaults and invoke on-line help.

Two static methods are supplied which provide the most convienient interface to the dialog. For example you could use KAccel and KKeyDialog like this

     KAccel keys;

     keys.insertItem( i18n( "Zoom in" ), "Zoom in", "+" );
     keys.connectItem( "Zoom in", myWindow, SLOT( zoomIn() ) );

     keys.connectItem( KAccel::Print, myWindow, SLOT( print() ) );

     keys.readSettings();

     if( KKeyDialog::configureKeys( &keys ) ) {
    	      ...
     }

This will also implicitly save the settings. If you don't want this, you can call

     if( KKeyDialog::configureKeys( &keys, false ) ) { // do not save settings
    	      ...
     }

KKeyDialog ( KKeyEntryMap* aKeyDict, QWidget *parent = 0, bool check_against_std_keys = false ) | ### KKeyDialog

~KKeyDialog () | ### ~KKeyDialog

int configureKeys ( KAccel *keys, bool save_settings = true, QWidget *parent = 0 ) | ### configureKeys

[static]

Configure key settings.

int configureKeys ( KGlobalAccel *keys, bool save_settings = true, QWidget *parent = 0 ) | ### configureKeys

[static]

Configure key settings.

int configureKeys ( KActionCollection *coll, const QString& xmlfile, bool save_settings = true, QWidget *parent = 0 ) | ### configureKeys

[static]

Configure key settings.

- Version: $Id: kkeydialog.h,v 1.30 2000/07/06 13:50:38 coolo Exp $
- Author: Nicolas Hadacek <hadacek@via.ecp.fr>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:37:45 2001, using kdoc 2.0a53.