KDECore
KAccelPrivate Class Reference
#include <kaccelprivate.h>
Signals | |
void | menuItemActivated (KAccelAction *) |
void | menuItemActivated () |
Public Member Functions | |
virtual bool | connectKey (const KKeyServer::Key &key) |
virtual bool | connectKey (KAccelAction &action, const KKeyServer::Key &key) |
virtual bool | disconnectKey (const KKeyServer::Key &key) |
virtual bool | disconnectKey (KAccelAction &action, const KKeyServer::Key &key) |
virtual bool | emitSignal (KAccelBase::Signal signal) |
KAccelPrivate (KAccel *pParent, QWidget *pWatch) | |
virtual bool | removeAction (const QString &sAction) |
bool | setEnabled (const QString &sAction, bool bEnable) |
virtual void | setEnabled (bool bEnabled) |
Public Attributes | |
QMap< int, KAccelAction * > | m_mapIDToAction |
QMap< int, int > | m_mapIDToKey |
KAccel * | m_pAccel |
QWidget * | m_pWatch |
QTimer | m_timerShowMenu |
Detailed Description
For internal use only.
Definition at line 12 of file kaccelprivate.h.
Constructor & Destructor Documentation
Definition at line 163 of file kaccel.cpp.
Member Function Documentation
bool KAccelPrivate::connectKey | ( | const KKeyServer::Key & | key | ) | [virtual] |
Defines a key which activates the accelerator.
- Parameters:
-
key key which causes the action to be executed
Implements KAccelBase.
Definition at line 251 of file kaccel.cpp.
bool KAccelPrivate::connectKey | ( | KAccelAction & | action, | |
const KKeyServer::Key & | key | |||
) | [virtual] |
Defines a key which activates the accelerator and executes the action.
- Parameters:
-
action action to be executed when key is pressed key key which causes the action to be executed
- Todo:
- TEMP: new implementation (commit #424926) didn't work
Implements KAccelBase.
Definition at line 229 of file kaccel.cpp.
bool KAccelPrivate::disconnectKey | ( | const KKeyServer::Key & | ) | [virtual] |
bool KAccelPrivate::disconnectKey | ( | KAccelAction & | , | |
const KKeyServer::Key & | ||||
) | [virtual] |
Removes the key from accelerator so it no longer executes the action.
Implements KAccelBase.
Definition at line 262 of file kaccel.cpp.
bool KAccelPrivate::emitSignal | ( | KAccelBase::Signal | signal | ) | [virtual] |
Emits a signal.
- Parameters:
-
signal signal to be emitted
Implements KAccelBase.
Definition at line 220 of file kaccel.cpp.
void KAccelPrivate::menuItemActivated | ( | KAccelAction * | ) | [signal] |
void KAccelPrivate::menuItemActivated | ( | ) | [signal] |
Definition at line 204 of file kaccel.cpp.
Definition at line 185 of file kaccel.cpp.
void KAccelPrivate::setEnabled | ( | bool | bEnabled | ) | [virtual] |
Enables or disables the accelerator.
- Parameters:
-
bEnabled determines whether the accelerator should be enabled or disabled.
Implements KAccelBase.
Definition at line 179 of file kaccel.cpp.
Member Data Documentation
Definition at line 19 of file kaccelprivate.h.
QMap<int, int> KAccelPrivate::m_mapIDToKey |
Definition at line 18 of file kaccelprivate.h.
Definition at line 16 of file kaccelprivate.h.
Definition at line 17 of file kaccelprivate.h.
Definition at line 20 of file kaccelprivate.h.
The documentation for this class was generated from the following files: