KAccelBase Class Reference
Inheritance diagram for KAccelBase:

Detailed Description
Definition at line 121 of file kaccelbase.h.
Public Types | |
enum | Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 } |
enum | Signal { KEYCODE_CHANGED } |
Public Member Functions | |
KAccelBase (int fInitCode) | |
virtual | ~KAccelBase () |
uint | actionCount () const |
KAccelActions & | actions () |
bool | isEnabled () const |
KAccelAction * | actionPtr (const QString &sAction) |
const KAccelAction * | actionPtr (const QString &sAction) const |
KAccelAction * | actionPtr (const KKey &key) |
KAccelAction * | actionPtr (const KKeyServer::Key &key) |
const QString & | configGroup () const |
void | setConfigGroup (const QString &group) |
void | setConfigGlobal (bool global) |
virtual void | setEnabled (bool bEnabled)=0 |
bool | getAutoUpdate () |
bool | setAutoUpdate (bool bAuto) |
KAccelAction * | insert (const QString &sName, const QString &sDesc) |
KAccelAction * | insert (const QString &sAction, const QString &sDesc, const QString &sHelp, const KShortcut &rgCutDefaults3, const KShortcut &rgCutDefaults4, const QObject *pObjSlot, const char *psMethodSlot, bool bConfigurable=true, bool bEnabled=true) |
bool | remove (const QString &sAction) |
bool | setActionSlot (const QString &sAction, const QObject *pObjSlot, const char *psMethodSlot) |
bool | updateConnections () |
bool | setShortcut (const QString &sAction, const KShortcut &cut) |
bool | setActionEnabled (const QString &sAction, bool bEnable) |
void | readSettings (KConfigBase *pConfig=0) |
void | writeSettings (KConfigBase *pConfig=0) const |
QPopupMenu * | createPopupMenu (QWidget *pParent, const KKeySequence &) |
Protected Types | |
typedef QMap< KKeyServer::Key, ActionInfo > | KKeyToActionMap |
Protected Member Functions | |
void | slotRemoveAction (KAccelAction *) |
void | createKeyList (QValueVector< struct X > &rgKeys) |
bool | insertConnection (KAccelAction *) |
bool | removeConnection (KAccelAction *) |
virtual bool | emitSignal (Signal)=0 |
virtual bool | connectKey (KAccelAction &, const KKeyServer::Key &)=0 |
virtual bool | connectKey (const KKeyServer::Key &)=0 |
virtual bool | disconnectKey (KAccelAction &, const KKeyServer::Key &)=0 |
virtual bool | disconnectKey (const KKeyServer::Key &)=0 |
virtual bool | isEnabledInternal () const |
Protected Attributes | |
KAccelActions | m_rgActions |
KKeyToActionMap | m_mapKeyToAction |
QValueList< KAccelAction * > | m_rgActionsNonUnique |
bool | m_bNativeKeys |
bool | m_bEnabled |
bool | m_bConfigIsGlobal |
QString | m_sConfigGroup |
bool | m_bAutoUpdate |
KAccelAction * | mtemp_pActionRemoving |
Friends | |
class | KAccelActions |
Classes | |
struct | ActionInfo |
Member Enumeration Documentation
|
Initialization mode of the KAccelBase, used in constructor.
Definition at line 125 of file kaccelbase.h. |
|
Enum for kinds of signals which may be emitted.
Definition at line 128 of file kaccelbase.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 46 of file kaccelbase.cpp. |
Member Function Documentation
|
Returns number of actions in this handler.
Definition at line 63 of file kaccelbase.cpp. |
|
Basically the same as above, except a KKeyServer::Key already has a key mapping defined (either NATIVE_KEYS or not).
Definition at line 78 of file kaccelbase.cpp. |
|
Returns a pointer to the KAccelAction associated with the key This function takes into account the key mapping defined in the constructor. May return 0 if no (or more than one) action is associated with the key. Definition at line 86 of file kaccelbase.cpp. |
|
Const version of the above.
Definition at line 75 of file kaccelbase.cpp. |
|
Returns a pointer to the KAccelAction named
Definition at line 72 of file kaccelbase.cpp. |
|
Returns a list of all the actions in this handler.
Definition at line 64 of file kaccelbase.cpp. |
|
Returns the name of the configuration group these accelerators are stored in. The default is "Shortcuts". Definition at line 163 of file kaccelbase.h. |
|
Returns whether autoupdate is enabled for these accelerators.
Definition at line 171 of file kaccelbase.h. |
|
Returns whether this accelerator handler is enabled or not.
Definition at line 65 of file kaccelbase.cpp. |
|
Read all key associations from The group in which the configuration is stored can be set with setConfigGroup(). Definition at line 567 of file kaccelbase.cpp. |
|
Enables (or disables) autoupdate for these accelerators.
Definition at line 119 of file kaccelbase.cpp. |
|
Set the group (in the configuration file) for storing accelerators.
Definition at line 93 of file kaccelbase.cpp. |
|
Write the current configurable associations to
Definition at line 574 of file kaccelbase.cpp. |
The documentation for this class was generated from the following files: