org.kde.koala

Class KKeyDialog

public class KKeyDialog extends KDialogBase

The KKeyDialog class is used for configuring dictionaries of key/action associations for KActionCollection, KAccel, and KGlobalAccel. It uses the KKeyChooser widget and offers buttons to set all keys to defaults and invoke on-line help. Several static methods are supplied which provide the most convenient interface to the dialog. The most common and most encouraged use is with KActionCollection.
 KKeyDialog.configure( actionCollection() );
 

Author: Nicolas Hadacek

UNKNOWN: Dialog for configuration of KActionCollection, KAccel, and KGlobalAccel.

Constructor Summary
protected KKeyDialog(Class dummy)
KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name)
Constructs a KKeyDialog called name as a child of parent. Set bAllowLetterShortcuts to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts.
KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent)
KKeyDialog(boolean bAllowLetterShortcuts)
KKeyDialog()
Method Summary
StringclassName()
voidcommitChanges()
Commit key setting changes so that changed settings actually become active.
booleanconfigure(boolean bSaveSettings)
Run the dialog and call commitChanges() if bSaveSettings is true.
booleanconfigure()
static intconfigure(KActionCollection coll, QWidget parent, boolean bSaveSettings)
Pops up a modal dialog for configuring key settings.
static intconfigure(KActionCollection coll, QWidget parent)
static intconfigure(KActionCollection coll)
static intconfigure(KAccel keys, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience.
static intconfigure(KAccel keys, QWidget parent)
static intconfigure(KAccel keys)
static intconfigure(KGlobalAccel keys, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience.
static intconfigure(KGlobalAccel keys, QWidget parent)
static intconfigure(KGlobalAccel keys)
static intconfigure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience.
static intconfigure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent)
static intconfigure(KActionCollection coll, boolean bAllowLetterShortcuts)
static intconfigure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience.
static intconfigure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent)
static intconfigure(KAccel keys, boolean bAllowLetterShortcuts)
static intconfigure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience.
static intconfigure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent)
static intconfigure(KGlobalAccel keys, boolean bAllowLetterShortcuts)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleaninsert(KActionCollection arg1)
Insert an action collection, i.e. add all its actions to the ones displayed by the dialog.
booleaninsert(KActionCollection arg1, String title)
Insert an action collection, i.e. add all its actions to the ones displayed by the dialog.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()

Constructor Detail

KKeyDialog

protected KKeyDialog(Class dummy)

KKeyDialog

public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name)
Constructs a KKeyDialog called name as a child of parent. Set bAllowLetterShortcuts to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts.

UNKNOWN: Constructs a KKeyDialog called name as a child of parent.

KKeyDialog

public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent)

KKeyDialog

public KKeyDialog(boolean bAllowLetterShortcuts)

KKeyDialog

public KKeyDialog()

Method Detail

className

public String className()

commitChanges

public void commitChanges()
Commit key setting changes so that changed settings actually become active. This method is implicitly called from configure(boolean) if bSaveSettings is true.

UNKNOWN: Commit key setting changes so that changed settings actually become active.

configure

public boolean configure(boolean bSaveSettings)
Run the dialog and call commitChanges() if bSaveSettings is true.

UNKNOWN: Run the dialog and call commitChanges() if bSaveSettings is true.

configure

public boolean configure()

configure

public static int configure(KActionCollection coll, QWidget parent, boolean bSaveSettings)
Pops up a modal dialog for configuring key settings. The new shortcut settings will be active if the user presses OK. If bSaveSettings if true, the settings will also be saved back to the uirc file which they were intially read from.

Returns: Accept if the dialog was closed with OK, Reject otherwise.

UNKNOWN: Pops up a modal dialog for configuring key settings.

configure

public static int configure(KActionCollection coll, QWidget parent)

configure

public static int configure(KActionCollection coll)

configure

public static int configure(KAccel keys, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function, except that settings are saved to a .rc file using KConfig.

UNKNOWN: This is an overloaded member function, provided for convenience.

configure

public static int configure(KAccel keys, QWidget parent)

configure

public static int configure(KAccel keys)

configure

public static int configure(KGlobalAccel keys, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

UNKNOWN: This is an overloaded member function, provided for convenience.

configure

public static int configure(KGlobalAccel keys, QWidget parent)

configure

public static int configure(KGlobalAccel keys)

configure

public static int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Parameters: coll the KActionCollection to configure bAllowLetterShortcuts Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. parent the parent widget to attach to bSaveSettings if true, the settings will also be saved back to the uirc file which they were intially read from.

UNKNOWN: This is an overloaded member function, provided for convenience.

configure

public static int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent)

configure

public static int configure(KActionCollection coll, boolean bAllowLetterShortcuts)

configure

public static int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

UNKNOWN: This is an overloaded member function, provided for convenience.

configure

public static int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent)

configure

public static int configure(KAccel keys, boolean bAllowLetterShortcuts)

configure

public static int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

UNKNOWN: This is an overloaded member function, provided for convenience.

configure

public static int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent)

configure

public static int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

insert

public boolean insert(KActionCollection arg1)
Insert an action collection, i.e. add all its actions to the ones displayed by the dialog. This method can be useful in applications following the document/view design, with actions in both the document and the view. Simply call insert with the action collections of each one in turn.

Returns: true :)

UNKNOWN: Insert an action collection, i.

insert

public boolean insert(KActionCollection arg1, String title)
Insert an action collection, i.e. add all its actions to the ones displayed by the dialog. This method can be useful in applications following the document/view design, with actions in both the document and the view. Simply call insert with the action collections of each one in turn.

Parameters: title the title associated with the collection (if null, the KAboutData.progName() of the collection's instance is used)

Returns: true :)

UNKNOWN: Insert an action collection, i.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()