author | zecke <zecke> | 2003-10-07 13:04:51 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-07 13:04:51 (UTC) |
commit | e125e425d7c25b32527726c416b347902294bfdf (patch) (unidiff) | |
tree | 8c0b8e09b121745cebb54a088c9ea3141a1a99e8 | |
parent | 2ffa87f9e7f7f5c3db3f18880aa1040e870b2ba7 (diff) | |
download | opie-e125e425d7c25b32527726c416b347902294bfdf.zip opie-e125e425d7c25b32527726c416b347902294bfdf.tar.gz opie-e125e425d7c25b32527726c416b347902294bfdf.tar.bz2 |
Include custom.h as well
-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,117 +1,118 @@ | |||
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; |
86 | QWidget* qpe_main_widget; | 87 | QWidget* qpe_main_widget; |
87 | QString appName; | 88 | QString appName; |
88 | QString styleName; | 89 | QString styleName; |
89 | QString decorationName; | 90 | QString decorationName; |
90 | Atom wm_delete_window; | 91 | Atom wm_delete_window; |
91 | Atom wm_take_focus; | 92 | Atom wm_take_focus; |
92 | Atom wm_context_help; | 93 | Atom wm_context_help; |
93 | Atom wm_context_accept; | 94 | Atom wm_context_accept; |
94 | Atom wm_protocols; | 95 | Atom wm_protocols; |
95 | 96 | ||
96 | private: | 97 | private: |
97 | QList<QCopRec> qcopq; | 98 | QList<QCopRec> qcopq; |
98 | }; | 99 | }; |
99 | QPEApplication::Private::~Private() { | 100 | QPEApplication::Private::~Private() { |
100 | } | 101 | } |
101 | QPEApplication::Private::Private() | 102 | QPEApplication::Private::Private() |
102 | : kbgrabber(0 ), presstimer(0 ), rightpressed( FALSE ), kbregrab( FALSE ), notbusysent( FALSE ), | 103 | : kbgrabber(0 ), presstimer(0 ), rightpressed( FALSE ), kbregrab( FALSE ), notbusysent( FALSE ), |
103 | preloaded( FALSE ), forceshow( FALSE ), nomaximize( FALSE ), keep_running( TRUE ), | 104 | preloaded( FALSE ), forceshow( FALSE ), nomaximize( FALSE ), keep_running( TRUE ), |
104 | presswidget( 0 ), qpe_main_widget(0 ) { | 105 | presswidget( 0 ), qpe_main_widget(0 ) { |
105 | 106 | ||
106 | qcopq.setAutoDelete( TRUE ); | 107 | qcopq.setAutoDelete( TRUE ); |
107 | } | 108 | } |
108 | void QPEApplication::Private::enqueueQCop( const QCString& chan, const QCString& msg, | 109 | void QPEApplication::Private::enqueueQCop( const QCString& chan, const QCString& msg, |
109 | const QByteArray& ar ) { | 110 | const QByteArray& ar ) { |
110 | qcopq.append( new QCopRec(chan, msg, ar ) ); | 111 | qcopq.append( new QCopRec(chan, msg, ar ) ); |
111 | } | 112 | } |
112 | void QPEApplication::Private::sendQCopQ() { | 113 | void QPEApplication::Private::sendQCopQ() { |
113 | QCopRec* r; | 114 | QCopRec* r; |
114 | for ( r = qcopq.first(); r; r = qcopq.next() ) { | 115 | for ( r = qcopq.first(); r; r = qcopq.next() ) { |
115 | QCopChannel::sendLocally( r->channel, r->message, r->data ); | 116 | QCopChannel::sendLocally( r->channel, r->message, r->data ); |
116 | } | 117 | } |
117 | qcopq.clear(); | 118 | qcopq.clear(); |