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

ZkbHandler Class Reference

#include </home/clem/local/src/opie/noncore/applets/zkbapplet/keyzcfg/zkbcfg.h>

Inheritance diagram for ZkbHandler:

Inheritance graph
[legend]
Collaboration diagram for ZkbHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ZkbHandler (ZkbConfig &zkc, Keymap &keymap, const QString &prefix)
virtual ~ZkbHandler ()

Protected Member Functions

virtual bool startKeymapElement (int ardelay, int arperiod, const QString &author)
virtual bool startIncludeElement (const QString &file, const QString &prfix)
virtual bool startLabelElement (const QString &label, const QString &state)
virtual bool startStateElement (const QString &name, const QString &parent, bool dflt)
virtual bool startMapElement (int key, bool pressed)
virtual bool startEventElement (int keycode, int unicode, int modifiers, bool pressed, bool autorepeat)
virtual bool startNextStateElement (const QString &state)
virtual bool endKeymapElement ()
virtual bool endIncludeElement ()
virtual bool endLabelElement ()
virtual bool endStateElement ()
virtual bool endMapElement ()
virtual bool endEventElement ()
virtual bool endNextStateElement ()

Protected Attributes

ZkbConfigzkc
Keymapkeymap
QString prefix
int ardelay
int arperiod
QString currentStateName
StatecurrentState
ActioncurrentAction

Constructor & Destructor Documentation

ZkbHandler::ZkbHandler ZkbConfig zkc,
Keymap keymap,
const QString prefix
 

Definition at line 88 of file zkbcfg.cpp.

ZkbHandler::~ZkbHandler  )  [virtual]
 

Definition at line 92 of file zkbcfg.cpp.


Member Function Documentation

bool ZkbHandler::endEventElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 234 of file zkbcfg.cpp.

bool ZkbHandler::endIncludeElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 216 of file zkbcfg.cpp.

bool ZkbHandler::endKeymapElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 204 of file zkbcfg.cpp.

References ardelay, arperiod, keymap, Keymap::setAutorepeatDelay(), and Keymap::setAutorepeatPeriod().

bool ZkbHandler::endLabelElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 220 of file zkbcfg.cpp.

bool ZkbHandler::endMapElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 229 of file zkbcfg.cpp.

References currentAction.

bool ZkbHandler::endNextStateElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 238 of file zkbcfg.cpp.

bool ZkbHandler::endStateElement  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 224 of file zkbcfg.cpp.

References currentState.

bool ZkbHandler::startEventElement int  keycode,
int  unicode,
int  modifiers,
bool  pressed,
bool  autorepeat
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 179 of file zkbcfg.cpp.

References currentAction, Action::setAutorepeat(), Action::setEvent(), Action::setKeycode(), Action::setModifiers(), Action::setPressed(), and Action::setUnicode().

bool ZkbHandler::startIncludeElement const QString file,
const QString prfix
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 102 of file zkbcfg.cpp.

References QString::isNull(), keymap, ZkbConfig::load(), p, prefix, ZkbXmlHandler::setError(), and zkc.

bool ZkbHandler::startKeymapElement int  ardelay,
int  arperiod,
const QString author
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 95 of file zkbcfg.cpp.

References ardelay, and arperiod.

bool ZkbHandler::startLabelElement const QString label,
const QString state
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 120 of file zkbcfg.cpp.

References Keymap::addLabel(), ZkbXmlHandler::err, keymap, and prefix.

bool ZkbHandler::startMapElement int  key,
bool  pressed
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 166 of file zkbcfg.cpp.

References currentAction, currentState, State::get(), QString::number(), ZkbXmlHandler::setError(), Action::setEvent(), and Action::setState().

bool ZkbHandler::startNextStateElement const QString state  )  [protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 192 of file zkbcfg.cpp.

References currentAction, Keymap::getStateByName(), keymap, prefix, s, ZkbXmlHandler::setError(), and Action::setState().

bool ZkbHandler::startStateElement const QString name,
const QString parent,
bool  dflt
[protected, virtual]
 

Reimplemented from ZkbXmlHandler.

Definition at line 131 of file zkbcfg.cpp.

References Keymap::addState(), currentState, currentStateName, ZkbXmlHandler::err, Keymap::getStateByName(), QString::isEmpty(), keymap, prefix, Keymap::setCurrentState(), and State::setParent().


Member Data Documentation

int ZkbHandler::ardelay [protected]
 

Definition at line 37 of file zkbcfg.h.

Referenced by endKeymapElement(), and startKeymapElement().

int ZkbHandler::arperiod [protected]
 

Definition at line 38 of file zkbcfg.h.

Referenced by endKeymapElement(), and startKeymapElement().

Action* ZkbHandler::currentAction [protected]
 

Definition at line 45 of file zkbcfg.h.

Referenced by endMapElement(), startEventElement(), startMapElement(), and startNextStateElement().

State* ZkbHandler::currentState [protected]
 

Definition at line 42 of file zkbcfg.h.

Referenced by endStateElement(), startMapElement(), and startStateElement().

QString ZkbHandler::currentStateName [protected]
 

Definition at line 41 of file zkbcfg.h.

Referenced by startStateElement().

Keymap& ZkbHandler::keymap [protected]
 

Definition at line 33 of file zkbcfg.h.

Referenced by endKeymapElement(), startIncludeElement(), startLabelElement(), startNextStateElement(), and startStateElement().

QString ZkbHandler::prefix [protected]
 

Definition at line 34 of file zkbcfg.h.

Referenced by startIncludeElement(), startLabelElement(), startNextStateElement(), and startStateElement().

ZkbConfig& ZkbHandler::zkc [protected]
 

Definition at line 32 of file zkbcfg.h.

Referenced by startIncludeElement().


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