Public Methods
- KGlobalAccel ( QObject* pParent, const char* psName = 0 )
- virtual ~KGlobalAccel ()
- bool isEnabled ()
- void setEnabled ( bool bEnabled )
- 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 )
- KAccelAction* insert ( const QString& sName, const QString& sLabel )
- bool updateConnections ()
- const KShortcut& shortcut ( const QString& sAction ) const
- bool setShortcut ( const QString& sAction, const KShortcut& )
- bool setSlot ( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot )
- bool setEnabled ( const QString& sAction, bool bEnabled )
- const QString& configGroup () const
- void setConfigGroup ( const QString& )
- bool readSettings ( KConfigBase* pConfig = 0 )
- bool writeSettings ( KConfigBase* pConfig = 0 ) const
Public Static Methods
Protected Methods
KGlobalAccel ( QObject* pParent, const char* psName = 0 )
| KGlobalAccel |
~KGlobalAccel ()
| ~KGlobalAccel |
[virtual]
bool isEnabled ()
| isEnabled |
void setEnabled ( bool bEnabled )
| setEnabled |
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:
sAction | The internal name of the action.
|
sLabel | An i18n'ized short description of the action displayed when
using KKeyChooser to reconfigure the shortcuts.
|
sWhatsThis | An extended description of the action.
|
cutDef3 | The default 3 modifier scheme shortcut.
|
cutDef4 | The default 4 modifier scheme shortcut.
|
pObjSlot | Pointer to the slot object.
|
psMethodSlot | Pointer to the slot method.
|
bConfigurable | Allow the user to change this shortcut if set to 'true'.
|
bEnabled | The action will be activated by the shortcut if set to 'true'.
|
Use this to insert a label into the action list. This will be
displayed when the user configures shortcuts.
bool updateConnections ()
| updateConnections |
[const]
Set the shortcut to be associated with the action named by sAction
.
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. |