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

KeyHelperWidget Class Reference

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

Collaboration diagram for KeyHelperWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyHelperWidget (QWidget *parent=0, const char *name=0)
 ~KeyHelperWidget ()
virtual bool eventFilter (QObject *o, QEvent *e)

Static Public Member Functions

static int position ()

Protected Slots

void receiveMessage (const QCString &msg, const QByteArray &data)
void sysMessage (const QCString &msg, const QByteArray &data)
void reload ()
void set ()
void unset ()
void init ()
void mouseReleaseEvent (QMouseEvent *)

Protected Attributes

QCopChannelm_pChannel
QCopChannelm_pSysChannel
QPixmap disabled

Private Slots

void doReload (bool showstatus=true)
void doEvent (int, int, int, int, int)
void doEvent (const QString &, int)

Private Member Functions

void loadUseFilterApps ()
void enable ()
void disable ()
void pause ()
void restart ()
void version ()
void setDebugLevel (int level)
void initDebugLevel ()

Private Attributes

bool m_reset
bool m_useFilter
bool m_status
QString m_xmlfile
msg_handler m_defHandler
bool m_enable
bool m_saved
QStringList m_apps
KeyHelperm_pHelper

Constructor & Destructor Documentation

KeyHelperWidget::KeyHelperWidget QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 10 of file KeyHelperWidget.cpp.

References disabled, g_Widget, init(), initDebugLevel(), m_defHandler, m_pChannel, m_pHelper, m_pSysChannel, m_reset, m_status, m_useFilter, NULL, qDebug(), receiveMessage(), AppLnk::smallIconSize(), and sysMessage().

KeyHelperWidget::~KeyHelperWidget  ) 
 

Definition at line 48 of file KeyHelperWidget.cpp.

References m_pChannel, m_pHelper, m_pSysChannel, NULL, qDebug(), receiveMessage(), setDebugLevel(), and unset().


Member Function Documentation

void KeyHelperWidget::disable  )  [private]
 

Definition at line 322 of file KeyHelperWidget.cpp.

References KeyHelper::disable(), m_enable, m_pHelper, and unset().

Referenced by pause(), receiveMessage(), and reload().

void KeyHelperWidget::doEvent const QString ,
int 
[private, slot]
 

Definition at line 184 of file KeyHelperWidget.cpp.

References Qt::AltButton, Qt::ControlButton, doEvent(), FALSE, QString::find(), KeyNames::getCode(), keycode, keyMap, QString::length(), pos, QString::remove(), Qt::ShiftButton, and QString::unicode().

void KeyHelperWidget::doEvent int  ,
int  ,
int  ,
int  ,
int 
[private, slot]
 

Definition at line 170 of file KeyHelperWidget.cpp.

References KeyAction::doAction(), KeyHelper::m_oAction, m_pHelper, and KeyAction::setAction().

Referenced by doEvent(), and receiveMessage().

void KeyHelperWidget::doReload bool  showstatus = true  )  [private, slot]
 

Definition at line 155 of file KeyHelperWidget.cpp.

References ConfigEx::getGroup(), ConfigEx::getInstance(), m_status, Config::readNumEntry(), reload(), Config::setGroup(), and version().

Referenced by receiveMessage().

void KeyHelperWidget::enable  )  [private]
 

Definition at line 314 of file KeyHelperWidget.cpp.

References KeyHelper::enable(), m_enable, m_pHelper, and set().

Referenced by init(), receiveMessage(), and restart().

bool KeyHelperWidget::eventFilter QObject *  o,
QEvent *  e
[virtual]
 

Definition at line 482 of file KeyHelperWidget.cpp.

void KeyHelperWidget::init  )  [protected, slot]
 

Definition at line 368 of file KeyHelperWidget.cpp.

References enable(), AppLnkManager::init(), loadUseFilterApps(), m_pHelper, and NULL.

Referenced by KeyHelperWidget(), and reload().

void KeyHelperWidget::initDebugLevel  )  [private]
 

Definition at line 288 of file KeyHelperWidget.cpp.

References ConfigEx::getInstance(), Config::readNumEntry(), setDebugLevel(), and Config::setGroup().

Referenced by KeyHelperWidget().

void KeyHelperWidget::loadUseFilterApps  )  [private]
 

Definition at line 393 of file KeyHelperWidget.cpp.

References QValueList< T >::append(), ConfigEx::getInstance(), QValueList< T >::isEmpty(), m_apps, Config::readListEntry(), and Config::setGroup().

Referenced by init().

void KeyHelperWidget::mouseReleaseEvent QMouseEvent *   )  [protected, slot]
 

Definition at line 65 of file KeyHelperWidget.cpp.

References ConfigEx::getInstance().

void KeyHelperWidget::pause  )  [private]
 

Definition at line 329 of file KeyHelperWidget.cpp.

References disable(), m_enable, and m_saved.

Referenced by receiveMessage().

int KeyHelperWidget::position  )  [static]
 

Definition at line 487 of file KeyHelperWidget.cpp.

void KeyHelperWidget::receiveMessage const QCString msg,
const QByteArray data
[protected, slot]
 

Definition at line 70 of file KeyHelperWidget.cpp.

References disable(), doEvent(), doReload(), KeyHelper::dumpkeymap(), enable(), g_level, ConfigEx::getInstance(), IO_ReadOnly, keycode, KeyHelper::m_oAction, KeyHelper::m_oRepeater, m_pHelper, m_xmlfile, name, QString::null, NULL, pause(), restart(), s, KeyAction::setCapture(), setDebugLevel(), KeyAction::setHook(), KeyRepeater::setMode(), KeyHelper::statistics(), stream, and version().

Referenced by KeyHelperWidget(), and ~KeyHelperWidget().

void KeyHelperWidget::reload  )  [protected, slot]
 

Definition at line 342 of file KeyHelperWidget.cpp.

References app, KHUtil::currentApp(), disable(), ConfigEx::getInstance(), init(), m_pHelper, m_status, m_xmlfile, KeyHelper::reload(), ConfigEx::reload(), and Global::statusMessage().

Referenced by doReload(), and sysMessage().

void KeyHelperWidget::restart  )  [private]
 

Definition at line 335 of file KeyHelperWidget.cpp.

References enable(), and m_saved.

Referenced by receiveMessage().

void KeyHelperWidget::set  )  [protected, slot]
 

Definition at line 380 of file KeyHelperWidget.cpp.

References m_enable, m_pHelper, m_useFilter, NULL, qWarning(), and KeyHelper::set().

Referenced by enable().

void KeyHelperWidget::setDebugLevel int  level  )  [private]
 

Definition at line 297 of file KeyHelperWidget.cpp.

References g_level, m_defHandler, and MsgHandler().

Referenced by initDebugLevel(), receiveMessage(), and ~KeyHelperWidget().

void KeyHelperWidget::sysMessage const QCString msg,
const QByteArray data
[protected, slot]
 

Definition at line 253 of file KeyHelperWidget.cpp.

References ConfigEx::getGroup(), ConfigEx::getInstance(), AppLnkManager::init(), IO_ReadOnly, Config::readNumEntry(), reload(), Config::setGroup(), and stream.

Referenced by KeyHelperWidget().

void KeyHelperWidget::unset  )  [protected, slot]
 

Definition at line 388 of file KeyHelperWidget.cpp.

References m_pHelper, and KeyHelper::unset().

Referenced by disable(), and ~KeyHelperWidget().

void KeyHelperWidget::version  )  [private]
 

Definition at line 361 of file KeyHelperWidget.cpp.

References _version_, QString::append(), and Global::statusMessage().

Referenced by doReload(), and receiveMessage().


Member Data Documentation

QPixmap KeyHelperWidget::disabled [protected]
 

Definition at line 39 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget().

QStringList KeyHelperWidget::m_apps [private]
 

Definition at line 67 of file KeyHelperWidget.h.

Referenced by loadUseFilterApps().

msg_handler KeyHelperWidget::m_defHandler [private]
 

Definition at line 64 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget(), and setDebugLevel().

bool KeyHelperWidget::m_enable [private]
 

Definition at line 65 of file KeyHelperWidget.h.

Referenced by disable(), enable(), pause(), and set().

QCopChannel* KeyHelperWidget::m_pChannel [protected]
 

Definition at line 37 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget(), and ~KeyHelperWidget().

KeyHelper* KeyHelperWidget::m_pHelper [private]
 

Definition at line 68 of file KeyHelperWidget.h.

Referenced by disable(), doEvent(), enable(), init(), KeyHelperWidget(), receiveMessage(), reload(), set(), unset(), and ~KeyHelperWidget().

QCopChannel* KeyHelperWidget::m_pSysChannel [protected]
 

Definition at line 38 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget(), and ~KeyHelperWidget().

bool KeyHelperWidget::m_reset [private]
 

Definition at line 60 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget().

bool KeyHelperWidget::m_saved [private]
 

Definition at line 66 of file KeyHelperWidget.h.

Referenced by pause(), and restart().

bool KeyHelperWidget::m_status [private]
 

Definition at line 62 of file KeyHelperWidget.h.

Referenced by doReload(), KeyHelperWidget(), and reload().

bool KeyHelperWidget::m_useFilter [private]
 

Definition at line 61 of file KeyHelperWidget.h.

Referenced by KeyHelperWidget(), and set().

QString KeyHelperWidget::m_xmlfile [private]
 

Definition at line 63 of file KeyHelperWidget.h.

Referenced by receiveMessage(), and reload().


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