blob: 090108184b6ffc409ddb41194bc385ed1281ec01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#ifndef _KEY_HELPER_WIDGET_H_
#define _KEY_HELPER_WIDGET_H_
#include <qwidget.h>
#include <qlabel.h>
#include <qpixmap.h>
#include <qtimer.h>
#include <qaccel.h>
#include <opie2/otaskbarapplet.h>
#include <opie2/okeyfilter.h>
#include <opie2/oresource.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpeapplication.h>
#include <qpe/global.h>
#include "KeyHelper.h"
#include "AppLnkManager.h"
#include "ConfigEx.h"
#include <syslog.h>
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_ */
|