kdecore Library API Documentation

KGlobalAccelPrivate Class Reference

Inheritance diagram for KGlobalAccelPrivate:

QWidget KAccelBase QWidget KAccelBase KAccelBase List of all members.

Public Member Functions

 KGlobalAccelPrivate ()
virtual void setEnabled (bool)
virtual bool connectKey (KAccelAction &, KKeySequence)
virtual bool disconnectKey (KAccelAction &, KKeySequence)
 KGlobalAccelPrivate ()
void setEnabled (bool)
bool emitSignal (Signal)
bool connectKey (KAccelAction &, const KKeyServer::Key &)
bool connectKey (const KKeyServer::Key &)
bool disconnectKey (KAccelAction &, const KKeyServer::Key &)
bool disconnectKey (const KKeyServer::Key &)
virtual ~KGlobalAccelPrivate ()
virtual void setEnabled (bool)
virtual bool emitSignal (Signal)
virtual bool connectKey (KAccelAction &, const KKeyServer::Key &)
virtual bool connectKey (const KKeyServer::Key &)
virtual bool disconnectKey (KAccelAction &, const KKeyServer::Key &)
virtual bool disconnectKey (const KKeyServer::Key &)
virtual void setEnabled (bool)
virtual bool emitSignal (Signal)
virtual bool connectKey (KAccelAction &, const KKeyServer::Key &)
virtual bool connectKey (const KKeyServer::Key &)
virtual bool disconnectKey (KAccelAction &, const KKeyServer::Key &)
virtual bool disconnectKey (const KKeyServer::Key &)

Protected Types

typedef QMap< CodeMod, KAccelAction * > CodeModMap

Protected Slots

void slotActivated (int iAction)
void slotActivated (int iAction)

Protected Member Functions

bool grabKey (const KKeyServer::Key &, bool bGrab, KAccelAction *)
void activate (KAccelAction *pAction, const KKeySequence &seq)
bool grabKey (const KKeyServer::Key &, bool bGrab, KAccelAction *)
virtual bool x11Event (XEvent *)
void x11MappingNotify ()
bool x11KeyPress (const XEvent *pEvent)
void activate (KAccelAction *pAction, const KKeySequence &seq)

Protected Attributes

CodeModMap m_rgCodeModToAction

Friends

class KGlobalAccel

Classes

class  CodeMod

Detailed Description

Definition at line 7 of file kglobalaccel_emb.h.


Member Function Documentation

bool KGlobalAccelPrivate::grabKey const KKeyServer::Key ,
bool  bGrab,
KAccelAction
[protected]
 

Parameters:
bGrab Set to true to grab key, false to ungrab key.

Definition at line 114 of file kglobalaccel_x11.cpp.

References QString::arg(), KGlobalAccelPrivate::CodeMod::code, KKeyServer::Key::code(), endl(), KXErrorHandler::error(), QMap::insert(), kdDebug(), kdWarning(), KKeyServer::Key::key(), QString::latin1(), m_rgCodeModToAction, KGlobalAccelPrivate::CodeMod::mod, KKeyServer::Key::mod(), KKeyServer::modXAlt(), KAccelAction::name(), QMap::remove(), KKeyServer::Key::sym(), and KKey::toStringInternal().

void KGlobalAccelPrivate::activate KAccelAction pAction,
const KKeySequence seq
[protected]
 

Filters X11 events ev for key bindings in the accelerator dictionary.

If a match is found the activated activated is emitted and the function returns true. Return false if the event is not processed.

This is public for compatibility only. You do not need to call it.

Definition at line 307 of file kglobalaccel_x11.cpp.

References QRegExp::cap(), endl(), kdDebug(), KAccelAction::label(), QObject::metaObject(), KAccelAction::methodSlotPtr(), KAccelAction::name(), QObject::normalizeSignalSlot(), KAccelAction::objSlotPtr(), and QRegExp::search().

Referenced by slotActivated(), and x11KeyPress().

bool KGlobalAccelPrivate::grabKey const KKeyServer::Key ,
bool  bGrab,
KAccelAction
[protected]
 

Parameters:
bGrab Set to true to grab key, false to ungrab key.

bool KGlobalAccelPrivate::x11Event XEvent *   )  [protected, virtual]
 

Filters X11 events ev for key bindings in the accelerator dictionary.

If a match is found the activated activated is emitted and the function returns true. Return false if the event is not processed.

This is public for compatibility only. You do not need to call it.

Reimplemented from QWidget.

Definition at line 200 of file kglobalaccel_x11.cpp.

References QWidget::x11Event(), x11KeyPress(), and x11MappingNotify().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Nov 1 10:31:55 2005 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003