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

KeyHelper Class Reference

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

Inheritance diagram for KeyHelper:

Inheritance graph
[legend]
Collaboration diagram for KeyHelper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyHelper ()
virtual ~KeyHelper ()
bool filter (int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat)
void enable ()
void disable ()
void set ()
void unset ()
void statistics ()
void dumpkeymap ()
bool reload (const QString &file=QString::null)

Private Member Functions

bool load (const QString &file=QString::null)
void setDefault ()

Private Attributes

KeyAction m_oAction
KeyMappings m_oMappings
KeyModifiers m_oModifiers
KeyExtensions m_oExtensions
KeyRepeater m_oRepeater

Friends

class KeyHelperWidget

Constructor & Destructor Documentation

KeyHelper::KeyHelper  ) 
 

Definition at line 5 of file KeyHelper.cpp.

References load(), m_oAction, m_oExtensions, m_oMappings, m_oModifiers, m_oRepeater, qDebug(), KeyAction::setKeyExtensions(), KeyAction::setKeyMappings(), KeyAction::setKeyModifiers(), and KeyAction::setKeyRepeater().

KeyHelper::~KeyHelper  )  [virtual]
 

Definition at line 17 of file KeyHelper.cpp.

References qDebug(), and unset().


Member Function Documentation

void KeyHelper::disable  ) 
 

Definition at line 48 of file KeyHelper.cpp.

References KeyAction::disable(), m_oAction, m_oRepeater, and KeyRepeater::stop().

Referenced by KeyHelperWidget::disable().

void KeyHelper::dumpkeymap  ) 
 

Definition at line 106 of file KeyHelper.cpp.

References keyMap, and qWarning().

Referenced by KeyHelperWidget::receiveMessage().

void KeyHelper::enable  ) 
 

Definition at line 43 of file KeyHelper.cpp.

References KeyAction::enable(), and m_oAction.

Referenced by KeyHelperWidget::enable().

bool KeyHelper::filter int  unicode,
int  keycode,
int  modifiers,
bool  isPress,
bool  autoRepeat
 

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 23 of file KeyHelper.cpp.

References KeyAction::doAction(), m_oAction, odebug, and KeyAction::setAction().

bool KeyHelper::load const QString file = QString::null  )  [private]
 

Definition at line 54 of file KeyHelper.cpp.

References QDir::homeDirPath(), QString::length(), KeycfgReader::load(), m_oExtensions, m_oMappings, m_oModifiers, m_oRepeater, qDebug(), setDefault(), KeycfgReader::setKeyExtensions(), KeycfgReader::setKeyMappings(), KeycfgReader::setKeyModifiers(), and KeycfgReader::setKeyRepeater().

Referenced by KeyHelper(), and reload().

bool KeyHelper::reload const QString file = QString::null  ) 
 

Definition at line 79 of file KeyHelper.cpp.

References load(), m_oExtensions, m_oMappings, m_oModifiers, m_oRepeater, KeyRepeater::reset(), KeyExtensions::reset(), KeyMappings::reset(), and KeyModifiers::reset().

Referenced by KeyHelperWidget::reload().

void KeyHelper::set  ) 
 

Definition at line 37 of file KeyHelper.cpp.

References Opie::Core::OKeyFilter::inst(), m_oModifiers, and KeyModifiers::resetStates().

Referenced by KeyHelperWidget::set().

void KeyHelper::setDefault  )  [private]
 

Definition at line 89 of file KeyHelper.cpp.

References KeyExtensions::assign(), KeyNames::getCode(), KeyModifiers::getMask(), Qt::Key_F11, Qt::Key_F12, m_oExtensions, and m_oModifiers.

Referenced by load().

void KeyHelper::statistics  ) 
 

Definition at line 98 of file KeyHelper.cpp.

References m_oExtensions, m_oMappings, m_oModifiers, m_oRepeater, KeyRepeater::statistics(), KeyExtensions::statistics(), KeyMappings::statistics(), and KeyModifiers::statistics().

Referenced by KeyHelperWidget::receiveMessage().

void KeyHelper::unset  ) 
 

Definition at line 32 of file KeyHelper.cpp.

References Opie::Core::OKeyFilter::inst().

Referenced by KeyHelperWidget::unset(), and ~KeyHelper().


Friends And Related Function Documentation

friend class KeyHelperWidget [friend]
 

Definition at line 30 of file KeyHelper.h.


Member Data Documentation

KeyAction KeyHelper::m_oAction [private]
 

Definition at line 35 of file KeyHelper.h.

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

KeyExtensions KeyHelper::m_oExtensions [private]
 

Definition at line 38 of file KeyHelper.h.

Referenced by KeyHelper(), load(), reload(), setDefault(), and statistics().

KeyMappings KeyHelper::m_oMappings [private]
 

Definition at line 36 of file KeyHelper.h.

Referenced by KeyHelper(), load(), reload(), and statistics().

KeyModifiers KeyHelper::m_oModifiers [private]
 

Definition at line 37 of file KeyHelper.h.

Referenced by KeyHelper(), load(), reload(), set(), setDefault(), and statistics().

KeyRepeater KeyHelper::m_oRepeater [private]
 

Definition at line 39 of file KeyHelper.h.

Referenced by disable(), KeyHelper(), load(), KeyHelperWidget::receiveMessage(), reload(), and statistics().


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