class KGlobalAccel


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

Public Methods

Public Static Methods

Protected Methods


Detailed Description

 KGlobalAccel ( QObject* pParent, const char* psName = 0 )

KGlobalAccel

 ~KGlobalAccel ()

~KGlobalAccel

[virtual]

bool  isEnabled ()

isEnabled

void  setEnabled ( bool bEnabled )

setEnabled

KAccelAction*  insert ( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, const KShortcut& cutDef3, const KShortcut& cutDef4, const QObject* pObjSlot, const char* psMethodSlot, bool bConfigurable = true, bool bEnabled = true )

insert

Create an accelerator action.

Usage:


 insert( "Do Something", i18n("Do Something"),
   i18n("This action allows you to do something really great with this program to "
        "the currently open document."),
   ALT+CTRL+Key_Q, KKey::QtWIN+CTRL+Key_Q, this, SLOT(slotDoSomething()) );

Parameters:
sActionThe internal name of the action.
sLabelAn i18n'ized short description of the action displayed when using KKeyChooser to reconfigure the shortcuts.
sWhatsThisAn extended description of the action.
cutDef3The default 3 modifier scheme shortcut.
cutDef4The default 4 modifier scheme shortcut.
pObjSlotPointer to the slot object.
psMethodSlotPointer to the slot method.
bConfigurableAllow the user to change this shortcut if set to 'true'.
bEnabledThe action will be activated by the shortcut if set to 'true'.

KAccelAction*  insert ( const QString& sName, const QString& sLabel )

insert

Use this to insert a label into the action list. This will be displayed when the user configures shortcuts.

bool  updateConnections ()

updateConnections

const KShortcut&  shortcut ( const QString& sAction )

shortcut

[const]

Set the shortcut to be associated with the action named by sAction.

bool  setShortcut ( const QString& sAction, const KShortcut& )

setShortcut

Set the shortcut to be associated with the action named by sAction.

bool  setSlot ( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot )

setSlot

Set the slot to be called when the shortcut of the action named by sAction is pressed.

bool  setEnabled ( const QString& sAction, bool bEnabled )

setEnabled

Enable or disable the action named by sAction.

const QString&  configGroup ()

configGroup

[const]

void  setConfigGroup ( const QString& )

setConfigGroup

bool  readSettings ( KConfigBase* pConfig = 0 )

readSettings

Read all shortcuts from pConfig, or (if pConfig is zero) from the application's configuration file KGlobal::config().

bool  writeSettings ( KConfigBase* pConfig = 0 )

writeSettings

[const]

Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration file.

bool  useFourModifierKeys ()

useFourModifierKeys

[static]

KAccelActions::useFourModifierKeys().

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]


Generated by: dfaure on faure on Tue Apr 16 08:49:00 2002, using kdoc 2.0a53.