author | alwin <alwin> | 2004-08-01 21:26:02 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-08-01 21:26:02 (UTC) |
commit | cd26bd549ac20b73039bab11662d627895f37c1a (patch) (side-by-side diff) | |
tree | a1840bf1e13ca4ff1b43572db8194eacdcbe091d /noncore/apps/keyz-cfg/zkbcfg.h | |
parent | 9084969d2d4fa39d4d2c185695f0c88739a0f95c (diff) | |
download | opie-cd26bd549ac20b73039bab11662d627895f37c1a.zip opie-cd26bd549ac20b73039bab11662d627895f37c1a.tar.gz opie-cd26bd549ac20b73039bab11662d627895f37c1a.tar.bz2 |
reorganized zkbapplet for easier packaging within OE
Diffstat (limited to 'noncore/apps/keyz-cfg/zkbcfg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/keyz-cfg/zkbcfg.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/noncore/apps/keyz-cfg/zkbcfg.h b/noncore/apps/keyz-cfg/zkbcfg.h deleted file mode 100644 index dc1ac07..0000000 --- a/noncore/apps/keyz-cfg/zkbcfg.h +++ b/dev/null @@ -1,69 +0,0 @@ -#ifndef ZKBCFG_H -#define ZKBCFG_H - -#include <qxml.h> -#include "zkb.h" -#include "zkbxml.h" - -class ZkbConfig : public QXmlErrorHandler { -public: - ZkbConfig(const QString& dir); - virtual ~ZkbConfig(); - - bool load(const QString& file, Keymap& keymap, const QString& prefix); - - virtual bool warning(const QXmlParseException& e); - virtual bool error(const QXmlParseException& e); - virtual bool fatalError(const QXmlParseException& e); - virtual QString errorString(); - -protected: - QString path; - QMap<QString, int> includedFiles; - QString err; -}; - -class ZkbHandler : public ZkbXmlHandler { -public: - ZkbHandler(ZkbConfig& zkc, Keymap& keymap, const QString& prefix); - virtual ~ZkbHandler(); - -protected: - ZkbConfig& zkc; - Keymap& keymap; - QString prefix; - - // stuff for keymap tag - int ardelay; - int arperiod; - - // stuff for state tag - QString currentStateName; - State* currentState; - - // stuff for map tag - Action* currentAction; - - 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(); -}; - -#endif |