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

KeyHelperWidget.h

Go to the documentation of this file.
00001 #ifndef _KEY_HELPER_WIDGET_H_
00002 #define _KEY_HELPER_WIDGET_H_
00003 
00004 #include <qwidget.h>
00005 #include <qlabel.h>
00006 #include <qpixmap.h>
00007 #include <qtimer.h>
00008 #include <qaccel.h>
00009 #include <opie2/otaskbarapplet.h>
00010 #include <opie2/okeyfilter.h>
00011 #include <opie2/oresource.h>
00012 
00013 #include <qpe/qcopenvelope_qws.h>
00014 #include <qpe/qpeapplication.h>
00015 #include <qpe/global.h>
00016 #include "KeyHelper.h"
00017 #include "AppLnkManager.h"
00018 #include "ConfigEx.h"
00019 
00020 #include <syslog.h>
00021 
00022 Q_EXPORT void MsgHandler(QtMsgType type, const char* msg);
00023 
00024 class KeyHelperWidget : public QLabel
00025 {
00026     Q_OBJECT
00027 public:
00028     KeyHelperWidget(QWidget* parent = 0, const char* name=0);
00029     ~KeyHelperWidget();
00030     static int position();
00031 
00032     virtual bool eventFilter(QObject* o, QEvent* e);
00033 
00034 public slots:
00035     //void windowEvent(QWSWindow* w, QWSServer::WindowEvent e);
00036 protected:
00037     QCopChannel* m_pChannel;
00038     QCopChannel* m_pSysChannel;
00039     QPixmap disabled;
00040 
00041 protected slots:
00042     void receiveMessage(const QCString& msg, const QByteArray& data);
00043     void sysMessage(const QCString& msg, const QByteArray& data);
00044     void reload();
00045     void set();
00046     void unset();
00047     void init();
00048     void mouseReleaseEvent(QMouseEvent*);
00049 
00050 private:
00051     void loadUseFilterApps();
00052     void enable();
00053     void disable();
00054     void pause();
00055     void restart();
00056     void version();
00057     void setDebugLevel(int level);
00058     void initDebugLevel();
00059 
00060     bool m_reset;
00061     bool m_useFilter;
00062     bool m_status;
00063     QString m_xmlfile;
00064     msg_handler m_defHandler;
00065     bool m_enable;
00066     bool m_saved;
00067     QStringList m_apps;
00068     KeyHelper* m_pHelper;
00069 private slots:
00070     void doReload(bool showstatus=true);
00071     void doEvent(int,int,int,int,int);
00072     void doEvent(const QString&, int);
00073 };
00074 
00075 #endif /* _KEY_HELPER_WIDGET_H_ */

Generated on Sat Nov 5 16:16:42 2005 for OPIE by  doxygen 1.4.2