Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KeyAction Class Reference

#include </home/clem/local/src/opie/noncore/applets/keyhelper/keyhelperapplet/misc/KeyAction.h>

Collaboration diagram for KeyAction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyAction ()
virtual ~KeyAction ()
void setKeyMappings (KeyMappings *map)
void setKeyModifiers (KeyModifiers *mod)
void setKeyExtensions (KeyExtensions *ext)
void setKeyRepeater (KeyRepeater *rep)
void setAction (int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat)
bool doAction ()
void enable ()
void disable ()
void setCapture (bool enable)
void setHook (const QCString &s)

Private Slots

void sendKeyEvent (int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat)

Private Member Functions

void init ()
bool checkState ()

Private Attributes

int m_unicode
int m_keycode
int m_modifiers
bool m_isPress
bool m_autoRepeat
bool m_capture
bool m_enable
int m_presscnt
int m_keep_toggle_code
bool m_keepToggle
bool m_check
QValueList< int > m_excludeKeys
QCString m_hookChannel
KeyMappingsm_pMappings
KeyModifiersm_pModifiers
KeyExtensionsm_pExtensions
KeyRepeaterm_pRepeater

Constructor & Destructor Documentation

KeyAction::KeyAction  ) 
 

Definition at line 3 of file KeyAction.cpp.

References enable(), and qDebug().

KeyAction::~KeyAction  )  [virtual]
 

Definition at line 9 of file KeyAction.cpp.

References qDebug().


Member Function Documentation

bool KeyAction::checkState  )  [private]
 

Definition at line 59 of file KeyAction.cpp.

References QChar::category(), category(), QChar::Letter_Lowercase, QChar::Letter_Uppercase, m_modifiers, m_pMappings, m_unicode, KeyMappings::setCapsLock(), and Qt::ShiftButton.

Referenced by doAction().

void KeyAction::disable  )  [inline]
 

Definition at line 47 of file KeyAction.h.

References m_enable.

Referenced by KeyHelper::disable().

bool KeyAction::doAction  ) 
 

Definition at line 101 of file KeyAction.cpp.

References KeyMappings::apply(), checkState(), QValueList< T >::contains(), KeyExtensions::doKey(), KeyRepeater::ENABLE, KeyMappings::getKeycode(), KeyRepeater::getMode(), KeyMappings::getModifiers(), KeyModifiers::getModifiers(), KeyModifiers::getState(), KeyMappings::getUnicode(), KeyMappings::isDefined(), KeyModifiers::isModifier(), KeyRepeater::isRepeatable(), KeyModifiers::keepToggles(), keycode, KeyRepeater::KILL, m_autoRepeat, m_capture, m_check, m_enable, m_excludeKeys, m_isPress, m_keep_toggle_code, m_keepToggle, m_keycode, m_modifiers, m_pExtensions, m_pMappings, m_pModifiers, m_pRepeater, m_presscnt, m_unicode, KeyModifiers::pressKey(), qDebug(), qWarning(), KeyModifiers::releaseKey(), KeyModifiers::resetToggles(), sendKeyEvent(), KeyMappings::setModifiers(), KeyMappings::setOriginal(), KeyMappings::setUnicode(), KeyRepeater::start(), and KeyRepeater::stop().

Referenced by KeyHelperWidget::doEvent(), and KeyHelper::filter().

void KeyAction::enable  )  [inline]
 

Definition at line 43 of file KeyAction.h.

References init(), and m_enable.

Referenced by KeyHelper::enable(), and KeyAction().

void KeyAction::init  )  [private]
 

Definition at line 14 of file KeyAction.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::clear(), code, QValueList< T >::end(), KeyNames::getCode(), ConfigEx::getGroup(), ConfigEx::getInstance(), Config::hasKey(), KHUtil::hex2int(), Qt::Key_F34, m_capture, m_check, m_excludeKeys, m_keep_toggle_code, m_keepToggle, m_presscnt, Config::readBoolEntry(), Config::readListEntry(), and Config::setGroup().

Referenced by enable().

void KeyAction::sendKeyEvent int  unicode,
int  keycode,
int  modifiers,
bool  isPress,
bool  autoRepeat
[private, slot]
 

Definition at line 85 of file KeyAction.cpp.

References QCString::isEmpty(), QCopChannel::isRegistered(), m_hookChannel, and QWSServer::sendKeyEvent().

Referenced by doAction(), and setKeyRepeater().

void KeyAction::setAction int  unicode,
int  keycode,
int  modifiers,
bool  isPress,
bool  autoRepeat
 

Definition at line 49 of file KeyAction.cpp.

References m_autoRepeat, m_isPress, m_keycode, m_modifiers, and m_unicode.

Referenced by KeyHelperWidget::doEvent(), and KeyHelper::filter().

void KeyAction::setCapture bool  enable  )  [inline]
 

Definition at line 50 of file KeyAction.h.

References m_capture.

Referenced by KeyHelperWidget::receiveMessage().

void KeyAction::setHook const QCString s  )  [inline]
 

Definition at line 54 of file KeyAction.h.

References m_hookChannel.

Referenced by KeyHelperWidget::receiveMessage().

void KeyAction::setKeyExtensions KeyExtensions ext  )  [inline]
 

Definition at line 29 of file KeyAction.h.

References m_pExtensions.

Referenced by KeyHelper::KeyHelper().

void KeyAction::setKeyMappings KeyMappings map  )  [inline]
 

Definition at line 21 of file KeyAction.h.

References m_pMappings.

Referenced by KeyHelper::KeyHelper().

void KeyAction::setKeyModifiers KeyModifiers mod  )  [inline]
 

Definition at line 25 of file KeyAction.h.

References m_pModifiers.

Referenced by KeyHelper::KeyHelper().

void KeyAction::setKeyRepeater KeyRepeater rep  )  [inline]
 

Definition at line 33 of file KeyAction.h.

References m_pRepeater, and sendKeyEvent().

Referenced by KeyHelper::KeyHelper().


Member Data Documentation

bool KeyAction::m_autoRepeat [private]
 

Definition at line 62 of file KeyAction.h.

Referenced by doAction(), and setAction().

bool KeyAction::m_capture [private]
 

Definition at line 64 of file KeyAction.h.

Referenced by doAction(), init(), and setCapture().

bool KeyAction::m_check [private]
 

Definition at line 70 of file KeyAction.h.

Referenced by doAction(), and init().

bool KeyAction::m_enable [private]
 

Definition at line 65 of file KeyAction.h.

Referenced by disable(), doAction(), and enable().

QValueList<int> KeyAction::m_excludeKeys [private]
 

Definition at line 71 of file KeyAction.h.

Referenced by doAction(), and init().

QCString KeyAction::m_hookChannel [private]
 

Definition at line 73 of file KeyAction.h.

Referenced by sendKeyEvent(), and setHook().

bool KeyAction::m_isPress [private]
 

Definition at line 61 of file KeyAction.h.

Referenced by doAction(), and setAction().

int KeyAction::m_keep_toggle_code [private]
 

Definition at line 68 of file KeyAction.h.

Referenced by doAction(), and init().

bool KeyAction::m_keepToggle [private]
 

Definition at line 69 of file KeyAction.h.

Referenced by doAction(), and init().

int KeyAction::m_keycode [private]
 

Definition at line 59 of file KeyAction.h.

Referenced by doAction(), and setAction().

int KeyAction::m_modifiers [private]
 

Definition at line 60 of file KeyAction.h.

Referenced by checkState(), doAction(), and setAction().

KeyExtensions* KeyAction::m_pExtensions [private]
 

Definition at line 77 of file KeyAction.h.

Referenced by doAction(), and setKeyExtensions().

KeyMappings* KeyAction::m_pMappings [private]
 

Definition at line 75 of file KeyAction.h.

Referenced by checkState(), doAction(), and setKeyMappings().

KeyModifiers* KeyAction::m_pModifiers [private]
 

Definition at line 76 of file KeyAction.h.

Referenced by doAction(), and setKeyModifiers().

KeyRepeater* KeyAction::m_pRepeater [private]
 

Definition at line 78 of file KeyAction.h.

Referenced by doAction(), and setKeyRepeater().

int KeyAction::m_presscnt [private]
 

Definition at line 66 of file KeyAction.h.

Referenced by doAction(), and init().

int KeyAction::m_unicode [private]
 

Definition at line 58 of file KeyAction.h.

Referenced by checkState(), doAction(), and setAction().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:27 2005 for OPIE by  doxygen 1.4.2