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

KeyRepeater Class Reference

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

Collaboration diagram for KeyRepeater:

Collaboration graph
[legend]
List of all members.

Public Types

enum  RepeaterMode { DISABLE = 0, ENABLE = 1, KILL = 2 }

Signals

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

Public Member Functions

 KeyRepeater ()
virtual ~KeyRepeater ()
void start (int unicode, int keycode, int modifieres)
void stop (int keycode=0)
void reset ()
void setRepeatable (int keycode, bool enable)
bool isRepeatable (int keycode)
void setMode (int mode)
RepeaterMode getMode ()
void setDelay (int msec)
void setPeriod (int msec)
void statistics ()

Private Slots

void autoRepeat ()

Private Member Functions

void init ()
void clear ()

Private Attributes

int m_unicode
int m_keycode
int m_modifiers
int m_repeatdelay
int m_repeatperiod
QCString m_hookChannel
RepeaterMode m_mode
QValueList< int > m_disablekeys
QTimer * m_pTimer

Member Enumeration Documentation

enum KeyRepeater::RepeaterMode
 

Enumeration values:
DISABLE 
ENABLE 
KILL 

Definition at line 18 of file KeyRepeater.h.


Constructor & Destructor Documentation

KeyRepeater::KeyRepeater  ) 
 

Definition at line 3 of file KeyRepeater.cpp.

References autoRepeat(), init(), m_pTimer, and qDebug().

KeyRepeater::~KeyRepeater  )  [virtual]
 

Definition at line 11 of file KeyRepeater.cpp.

References m_pTimer, and qDebug().


Member Function Documentation

void KeyRepeater::autoRepeat  )  [private, slot]
 

Definition at line 90 of file KeyRepeater.cpp.

References FALSE, keyEvent(), m_keycode, m_modifiers, m_pTimer, m_repeatperiod, m_unicode, qDebug(), and TRUE.

Referenced by KeyRepeater().

void KeyRepeater::clear  )  [private]
 

Definition at line 56 of file KeyRepeater.cpp.

References QValueList< T >::clear(), and m_disablekeys.

Referenced by reset().

RepeaterMode KeyRepeater::getMode  )  [inline]
 

Definition at line 47 of file KeyRepeater.h.

References m_mode.

Referenced by KeyAction::doAction().

void KeyRepeater::init  )  [private]
 

Definition at line 40 of file KeyRepeater.cpp.

References QValueList< T >::append(), ENABLE, i, Qt::Key_Alt, Qt::Key_Control, Qt::Key_Escape, Qt::Key_F1, Qt::Key_F35, Qt::Key_Meta, Qt::Key_Shift, m_disablekeys, m_mode, m_repeatdelay, and m_repeatperiod.

Referenced by KeyRepeater(), and reset().

bool KeyRepeater::isRepeatable int  keycode  ) 
 

Definition at line 81 of file KeyRepeater.cpp.

References QValueList< T >::contains(), and m_disablekeys.

Referenced by KeyAction::doAction(), start(), and stop().

void KeyRepeater::keyEvent int  unicode,
int  keycode,
int  modifiers,
bool  isPress,
bool  autoRepeat
[signal]
 

Referenced by autoRepeat().

void KeyRepeater::reset  ) 
 

Definition at line 61 of file KeyRepeater.cpp.

References clear(), and init().

Referenced by KeycfgReader::load(), and KeyHelper::reload().

void KeyRepeater::setDelay int  msec  )  [inline]
 

Definition at line 51 of file KeyRepeater.h.

References m_repeatdelay.

Referenced by RepeaterHandler::startElement().

void KeyRepeater::setMode int  mode  )  [inline]
 

Definition at line 31 of file KeyRepeater.h.

References DISABLE, ENABLE, KILL, and m_mode.

Referenced by KeyHelperWidget::receiveMessage(), and RepeaterHandler::startElement().

void KeyRepeater::setPeriod int  msec  )  [inline]
 

Definition at line 55 of file KeyRepeater.h.

References m_repeatperiod.

Referenced by RepeaterHandler::startElement().

void KeyRepeater::setRepeatable int  keycode,
bool  enable
 

Definition at line 67 of file KeyRepeater.cpp.

References QValueList< T >::append(), QValueList< T >::contains(), QValueList< T >::end(), QValueList< T >::find(), m_disablekeys, and QValueList< T >::remove().

Referenced by RepeaterHandler::endElement().

void KeyRepeater::start int  unicode,
int  keycode,
int  modifieres
 

Definition at line 17 of file KeyRepeater.cpp.

References ENABLE, isRepeatable(), m_keycode, m_mode, m_modifiers, m_pTimer, m_repeatdelay, m_unicode, and TRUE.

Referenced by KeyAction::doAction().

void KeyRepeater::statistics  ) 
 

Definition at line 132 of file KeyRepeater.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), m_disablekeys, m_repeatdelay, m_repeatperiod, qDebug(), and qWarning().

Referenced by KeycfgReader::load(), and KeyHelper::statistics().

void KeyRepeater::stop int  keycode = 0  ) 
 

Definition at line 31 of file KeyRepeater.cpp.

References isRepeatable(), m_keycode, and m_pTimer.

Referenced by KeyHelper::disable(), and KeyAction::doAction().


Member Data Documentation

QValueList<int> KeyRepeater::m_disablekeys [private]
 

Definition at line 75 of file KeyRepeater.h.

Referenced by clear(), init(), isRepeatable(), setRepeatable(), and statistics().

QCString KeyRepeater::m_hookChannel [private]
 

Definition at line 71 of file KeyRepeater.h.

int KeyRepeater::m_keycode [private]
 

Definition at line 65 of file KeyRepeater.h.

Referenced by autoRepeat(), start(), and stop().

RepeaterMode KeyRepeater::m_mode [private]
 

Definition at line 73 of file KeyRepeater.h.

Referenced by getMode(), init(), setMode(), and start().

int KeyRepeater::m_modifiers [private]
 

Definition at line 66 of file KeyRepeater.h.

Referenced by autoRepeat(), and start().

QTimer* KeyRepeater::m_pTimer [private]
 

Definition at line 77 of file KeyRepeater.h.

Referenced by autoRepeat(), KeyRepeater(), start(), stop(), and ~KeyRepeater().

int KeyRepeater::m_repeatdelay [private]
 

Definition at line 68 of file KeyRepeater.h.

Referenced by init(), setDelay(), start(), and statistics().

int KeyRepeater::m_repeatperiod [private]
 

Definition at line 69 of file KeyRepeater.h.

Referenced by autoRepeat(), init(), setPeriod(), and statistics().

int KeyRepeater::m_unicode [private]
 

Definition at line 64 of file KeyRepeater.h.

Referenced by autoRepeat(), and start().


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