• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KAccelPrivate Class Reference

#include <kaccelprivate.h>

Inheritance diagram for KAccelPrivate:

Inheritance graph
[legend]

List of all members.


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

KAccelPrivate::KAccelPrivate ( KAccel *  pParent,
QWidget *  pWatch 
)

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]

Removes the key from accelerator.

Implements KAccelBase.

Definition at line 282 of file kaccel.cpp.

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]

bool KAccelPrivate::removeAction ( const QString &  sAction  )  [virtual]

Definition at line 204 of file kaccel.cpp.

bool KAccelPrivate::setEnabled ( const QString &  sAction,
bool  bEnable 
)

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

QMap<int, KAccelAction*> KAccelPrivate::m_mapIDToAction

Definition at line 19 of file kaccelprivate.h.

QMap<int, int> KAccelPrivate::m_mapIDToKey

Definition at line 18 of file kaccelprivate.h.

KAccel* KAccelPrivate::m_pAccel

Definition at line 16 of file kaccelprivate.h.

QWidget* KAccelPrivate::m_pWatch

Definition at line 17 of file kaccelprivate.h.

QTimer KAccelPrivate::m_timerShowMenu

Definition at line 20 of file kaccelprivate.h.


The documentation for this class was generated from the following files:
  • kaccelprivate.h
  • kaccel.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal