-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp index 0a98481..0fce355 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.cpp +++ b/x11/libqpe-x11/qpe/qpeapplication.cpp | |||
@@ -1,85 +1,86 @@ | |||
1 | #define QTOPIA_INTERNAL_LANGLIST | 1 | #define QTOPIA_INTERNAL_LANGLIST |
2 | 2 | ||
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <unistd.h> | 5 | #include <unistd.h> |
6 | #include <sys/file.h> | 6 | #include <sys/file.h> |
7 | 7 | ||
8 | 8 | ||
9 | #include <qdir.h> | 9 | #include <qdir.h> |
10 | #include <qdialog.h> | 10 | #include <qdialog.h> |
11 | #include <qdragobject.h> | 11 | #include <qdragobject.h> |
12 | #include <qevent.h> | 12 | #include <qevent.h> |
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qlist.h> | 14 | #include <qlist.h> |
15 | #include <qtextstream.h> | 15 | #include <qtextstream.h> |
16 | #include <qtextcodec.h> | 16 | #include <qtextcodec.h> |
17 | #include <qpalette.h> | 17 | #include <qpalette.h> |
18 | #include <qptrdict.h> | 18 | #include <qptrdict.h> |
19 | #include <qregexp.h> | 19 | #include <qregexp.h> |
20 | #include <qtimer.h> | 20 | #include <qtimer.h> |
21 | 21 | ||
22 | #include <qpe/custom.h> | ||
22 | #include <qpe/alarmserver.h> | 23 | #include <qpe/alarmserver.h> |
23 | #include <qpe/applnk.h> | 24 | #include <qpe/applnk.h> |
24 | #include <qpe/qpemenubar.h> | 25 | #include <qpe/qpemenubar.h> |
25 | #include <qpe/textcodecinterface.h> | 26 | #include <qpe/textcodecinterface.h> |
26 | #include <qpe/imagecodecinterface.h> | 27 | #include <qpe/imagecodecinterface.h> |
27 | #include <qpe/qlibrary.h> | 28 | #include <qpe/qlibrary.h> |
28 | #include <qpe/qpestyle.h> | 29 | #include <qpe/qpestyle.h> |
29 | #include <qpe/styleinterface.h> | 30 | #include <qpe/styleinterface.h> |
30 | #include <qpe/global.h> | 31 | #include <qpe/global.h> |
31 | #include <qpe/resource.h> | 32 | #include <qpe/resource.h> |
32 | #include <qpe/config.h> | 33 | #include <qpe/config.h> |
33 | #include <qpe/network.h> | 34 | #include <qpe/network.h> |
34 | 35 | ||
35 | #include <qpe/qpeapplication.h> | 36 | #include <qpe/qpeapplication.h> |
36 | #include <qpe/timestring.h> | 37 | #include <qpe/timestring.h> |
37 | #include <qpe/qcopenvelope_qws.h> | 38 | #include <qpe/qcopenvelope_qws.h> |
38 | 39 | ||
39 | 40 | ||
40 | #include <X11/Xlib.h> | 41 | #include <X11/Xlib.h> |
41 | #include <X11/Xutil.h> | 42 | #include <X11/Xutil.h> |
42 | 43 | ||
43 | const int XKeyPress = KeyPress; | 44 | const int XKeyPress = KeyPress; |
44 | const int XKeyRelease = KeyRelease; | 45 | const int XKeyRelease = KeyRelease; |
45 | #undef KeyPress | 46 | #undef KeyPress |
46 | #undef KeyRelease | 47 | #undef KeyRelease |
47 | 48 | ||
48 | namespace { | 49 | namespace { |
49 | struct QCopRec{ | 50 | struct QCopRec{ |
50 | QCopRec( const QCString& ch, const QCString& msg, const QByteArray& ar ) | 51 | QCopRec( const QCString& ch, const QCString& msg, const QByteArray& ar ) |
51 | : channel(ch), message(msg), data(ar) { | 52 | : channel(ch), message(msg), data(ar) { |
52 | 53 | ||
53 | } | 54 | } |
54 | QCString channel; | 55 | QCString channel; |
55 | QCString message; | 56 | QCString message; |
56 | QByteArray data; | 57 | QByteArray data; |
57 | }; | 58 | }; |
58 | }; | 59 | }; |
59 | 60 | ||
60 | 61 | ||
61 | class QPEApplication::Private { | 62 | class QPEApplication::Private { |
62 | public: | 63 | public: |
63 | Private(); | 64 | Private(); |
64 | ~Private(); | 65 | ~Private(); |
65 | void enqueueQCop( const QCString& ch, const QCString& msg, | 66 | void enqueueQCop( const QCString& ch, const QCString& msg, |
66 | const QByteArray& ); | 67 | const QByteArray& ); |
67 | void sendQCopQ(); | 68 | void sendQCopQ(); |
68 | static void show_mx(QWidget* mw, bool nomaximize ); | 69 | static void show_mx(QWidget* mw, bool nomaximize ); |
69 | void show( QWidget* mw, bool nomax ); | 70 | void show( QWidget* mw, bool nomax ); |
70 | void loadTextCodecs(); | 71 | void loadTextCodecs(); |
71 | void loadImageCodecs(); | 72 | void loadImageCodecs(); |
72 | 73 | ||
73 | int kbgrabber; | 74 | int kbgrabber; |
74 | int presstimer; | 75 | int presstimer; |
75 | 76 | ||
76 | bool rightpressed : 1; | 77 | bool rightpressed : 1; |
77 | bool kbregrab : 1; | 78 | bool kbregrab : 1; |
78 | bool notbusysent : 1; | 79 | bool notbusysent : 1; |
79 | bool preloaded : 1; | 80 | bool preloaded : 1; |
80 | bool forceshow : 1; | 81 | bool forceshow : 1; |
81 | bool nomaximize : 1; | 82 | bool nomaximize : 1; |
82 | bool keep_running : 1; | 83 | bool keep_running : 1; |
83 | 84 | ||
84 | QWidget* presswidget; | 85 | QWidget* presswidget; |
85 | QPoint presspos; | 86 | QPoint presspos; |