Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KKeyChooser Class Reference

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

#include <kkeydialog.h>

List of all members.

Public Slots

void allDefault ()
void setPreferFourModifierKeys (bool preferFourModifierKeys)
void listSync ()

Signals

void keyChange ()

Public Methods

 KKeyChooser (QWidget *parent, ActionType type=Application, bool bAllowLetterShortcuts=true)
bool insert (KActionCollection *)
bool insert (KActionCollection *, const QString &title)
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)

Protected Methods

void buildListView (uint iList, const QString &title=QString::null)
 
Since:
3.1



Detailed Description

Widget for configuration of KAccel and KGlobalAccel.

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 shortcuts to their default values.

See also:
KKeyDialog
Version:
Id:
kkeydialog.h,v 1.72.2.1 2003/04/25 07:38:44 mlaurent Exp
Author:
Nicolas Hadacek <hadacek@via.ecp.fr>

Definition at line 58 of file kkeydialog.h.


Constructor & Destructor Documentation

KKeyChooser::KKeyChooser QWidget *    parent,
ActionType    type = Application,
bool    bAllowLetterShortcuts = true
 

Constructor.

Parameters:
bAllowLetterShortcuts  Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts.

KKeyChooser::KKeyChooser KAccel   actions,
QWidget *    parent,
bool    bCheckAgainstStdKeys,
bool    bAllowLetterShortcuts,
bool    bAllowWinKey = false
 

@obsolete

KKeyChooser::KKeyChooser KGlobalAccel   actions,
QWidget *    parent,
bool    bCheckAgainstStdKeys,
bool    bAllowLetterShortcuts,
bool    bAllowWinKey = false
 

@obsolete


Member Function Documentation

void KKeyChooser::allDefault   [slot]
 

Set all keys to their default values (bindings).

void KKeyChooser::commitChanges  
 

This function writes any shortcut changes back to the original action set(s).

bool KKeyChooser::insert KActionCollection  ,
const QString &    title
 

Insert an action collection, i.e. add all its actions to the ones already associated with the KKeyChooser object.

Parameters:
title  subtree title of this collection of shortcut.
Since:
3.1

bool KKeyChooser::insert KActionCollection  
 

Insert an action collection, i.e. add all its actions to the ones already associated with the KKeyChooser object.

void KKeyChooser::keyChange   [signal]
 

Emitted when an action's shortcut has been changed.

void KKeyChooser::listSync   [slot]
 

Rebuild list entries based on underlying map. Use this if you changed the underlying map.

void KKeyChooser::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.

void KKeyChooser::setPreferFourModifierKeys bool    preferFourModifierKeys [slot]
 

Specifies whether to use the 3 or 4 modifier key scheme. This determines which default is used when the 'Default' button is clicked.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:16 2003 for kdelibs by doxygen1.2.18