org.kde.koala
public class KGlobalAccel extends QObject
See Also: KAccel KAccelShortcutList KKeyChooser KKeyDialog
UNKNOWN: Configurable global shortcut support.
Constructor Summary | |
---|---|
protected | KGlobalAccel(Class dummy) |
KGlobalAccel(QObject pParent, String psName)
Creates a new KGlobalAccel object with the given pParent and
psName. | |
KGlobalAccel(QObject pParent) |
Method Summary | |
---|---|
static void | blockShortcuts(boolean block) |
String | className() |
String | configGroup()
Returns the configuration group that is used to save the accelerators. |
void | disableBlocking(boolean disable) |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
KAccelAction | insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled)
Create an accelerator action.
|
KAccelAction | insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable) |
KAccelAction | insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot) |
KAccelAction | insert(String sName, String sLabel)
Use this to insert a label into the action list. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isEnabled()
Checks whether the accelerators are enabled. |
String | label(String sAction)
Return the label (i18n'ized short description) associated with the action named by sAction. |
QMetaObject | metaObject() |
boolean | readSettings(KConfigBase pConfig)
Read all shortcuts from pConfig , or (if pConfig
is zero) from the application's configuration file
KGlobal.config(). |
boolean | readSettings() |
boolean | remove(String sAction)
Removes the accelerator action identified by the name.
|
boolean | setActionEnabled(String sAction, boolean bEnable)
Enables or disables action sAction. |
void | setConfigGroup(String cg)
Sets the configuration group that is used to save the accelerators. |
boolean | setShortcut(String sAction, KShortcut shortcut)
Set the shortcut to be associated with the action named by sAction. |
boolean | setSlot(String sAction, QObject pObjSlot, String psMethodSlot)
Set the slot to be called when the shortcut of the action named
by sAction is pressed. |
KShortcut | shortcut(String sAction)
Return the shortcut associated with the action named by sAction. |
boolean | updateConnections()
Updates the connections of the accelerations after changing them. |
static boolean | useFourModifierKeys()
KAccelActions.useFourModifierKeys(). |
boolean | writeSettings(KConfigBase pConfig)
Write the current shortcuts to pConfig ,
or (if pConfig is zero) to the application's
configuration file. |
boolean | writeSettings() |
boolean | writeSettings(KConfigBase pConfig, boolean bGlobal)
Write the current shortcuts to pConfig ,
or (if pConfig is zero) to the application's
configuration file. |
Parameters: pParent the parent of the QObject psName the name of the QObject
UNKNOWN: Creates a new KGlobalAccel object with the given pParent and psName.
UNKNOWN:
Returns: the configuration group
See Also: KConfig
UNKNOWN: Returns the configuration group that is used to save the accelerators.
UNKNOWN:
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'.
UNKNOWN: Create an accelerator action.
Parameters: sName of the of the action to insert sLabel a user-readable (i18n!) name for the action
Returns: the KAccelAction of the action
UNKNOWN: Use this to insert a label into the action list.
Returns: true if the KGlobalAccel is enabled
UNKNOWN: Checks whether the accelerators are enabled.
sAction.
Parameters: sAction the name of the action
Returns: the label
UNKNOWN: Return the label (i18n'ized short description) associated with the action named by sAction.
pConfig
, or (if pConfig
is zero) from the application's configuration file
KGlobal.config().Parameters: pConfig the configuration file to read from, or 0 for the application configuration file
Returns: true if successful, false otherwise
UNKNOWN: Read all shortcuts from pConfig
, or (if pConfig
is zero) from the application's configuration file KGlobal.config().
Parameters: sAction the name of the action to remove
UNKNOWN: Removes the accelerator action identified by the name.
sAction.
UNKNOWN: Enables or disables action sAction.
Parameters: cg the configuration group
See Also: KConfig
UNKNOWN: Sets the configuration group that is used to save the accelerators.
sAction.
Parameters: sAction the name of the action shortcut the shortcut for the action
Returns: true if successful, false otherwise
UNKNOWN: Set the shortcut to be associated with the action named by sAction.
sAction
is pressed.Parameters: sAction the name of the action pObjSlot the receiver of the signal psMethodSlot the slot to receive the signal
Returns: true if successful, false otherwise
UNKNOWN: Set the slot to be called when the shortcut of the action named by sAction
is pressed.
sAction.
Parameters: sAction the name of the action
Returns: the shortcut. If the action does not exist a null shortcut will be returned.
UNKNOWN: Return the shortcut associated with the action named by sAction.
Returns: true if successful, false otherwise
UNKNOWN: Updates the connections of the accelerations after changing them.
UNKNOWN:
pConfig
,
or (if pConfig
is zero) to the application's
configuration file.Parameters: pConfig the configuration file to read from, or 0 for the application configuration file
Returns: true if successful, false otherwise
UNKNOWN: Write the current shortcuts to pConfig
, or (if pConfig
is zero) to the application's configuration file.
pConfig
,
or (if pConfig
is zero) to the application's
configuration file. Alternatively, if bGlobal is true, then write
to kdeglobals.Parameters: pConfig the configuration file to read from, or 0 for the application configuration file bGlobal if true write the configuration to the kde global settings
Returns: true if successful, false otherwise
UNKNOWN: Write the current shortcuts to pConfig
, or (if pConfig
is zero) to the application's configuration file.