From 2b64a84d39eeed5681d0ee5068c7d11a01527750 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 28 Feb 2005 09:40:30 +0000 Subject: other keymapping tool - not working this moment, I have to check it out - the reason is that the config file is somewhat easier to understand than from zkbapplet and has a nice config tool. Please don't put it into any repositories this moment. --- (limited to 'noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelperWidget.h') diff --git a/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelperWidget.h b/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelperWidget.h new file mode 100644 index 0000000..4798c5c --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelperWidget.h @@ -0,0 +1,75 @@ +#ifndef _KEY_HELPER_WIDGET_H_ +#define _KEY_HELPER_WIDGET_H_ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include "KeyHelper.h" +#include "AppLnkManager.h" +#include "ConfigEx.h" + +#include + +Q_EXPORT void MsgHandler(QtMsgType type, const char* msg); + +class KeyHelperWidget : public QLabel +{ + Q_OBJECT +public: + KeyHelperWidget(QWidget* parent = 0, const char* name=0); + ~KeyHelperWidget(); + static int position(); + + virtual bool eventFilter(QObject* o, QEvent* e); + +public slots: + //void windowEvent(QWSWindow* w, QWSServer::WindowEvent e); +protected: + QCopChannel* m_pChannel; + QCopChannel* m_pSysChannel; + QPixmap disabled; + +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*); + +private: + void loadUseFilterApps(); + void enable(); + void disable(); + void pause(); + void restart(); + void version(); + void setDebugLevel(int level); + void initDebugLevel(); + + 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; + KeyHelper* m_pHelper; +private slots: + void doReload(bool showstatus=true); + void doEvent(int,int,int,int,int); + void doEvent(const QString&, int); +}; + +#endif /* _KEY_HELPER_WIDGET_H_ */ -- cgit v0.9.0.2