author | mickeyl <mickeyl> | 2005-01-02 15:20:41 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-02 15:20:41 (UTC) |
commit | 71232a4e45f78041c2ab138edf45903bbf2b34ce (patch) (unidiff) | |
tree | 6c51dc86163e656c7ac6a3cd6ea7e7e0f1ab89c0 | |
parent | 226a83c4b4334648de408249dba61bd1f7e6dba3 (diff) | |
download | opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.zip opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.tar.gz opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.tar.bz2 |
Add the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | library/qpeapplication.h | 13 |
2 files changed, 17 insertions, 3 deletions
@@ -1,80 +1,81 @@ | |||
1 | 2005-??-??Opie 1.2.0 | 1 | 2005-??-??Opie 1.2.0 |
2 | 2 | ||
3 | New Features | 3 | New Features |
4 | ------------ | 4 | ------------ |
5 | 5 | ||
6 | Fixed Bugs | 6 | Fixed Bugs |
7 | ---------- | 7 | ---------- |
8 | * #1501 - Fixing bug in todo sql backend (eilers) | 8 | * #1501 - Fixing bug in todo sql backend (eilers) |
9 | 9 | ||
10 | Internal | 10 | Internal |
11 | -------- | 11 | -------- |
12 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) | ||
12 | 13 | ||
13 | 2004-11-26Opie 1.1.8 | 14 | 2004-11-26Opie 1.1.8 |
14 | 15 | ||
15 | New Features | 16 | New Features |
16 | ------------ | 17 | ------------ |
17 | * PackageManager supports installation of local ipkg files (drw) | 18 | * PackageManager supports installation of local ipkg files (drw) |
18 | * PackageManager supports linking of applications to root (drw) | 19 | * PackageManager supports linking of applications to root (drw) |
19 | * PackageManager supports src/gz feeds (drw,wimpie) | 20 | * PackageManager supports src/gz feeds (drw,wimpie) |
20 | * Add a syslog information tab to sysinfo (mickeyl) | 21 | * Added a syslog information tab to sysinfo (mickeyl) |
21 | * Add new, more consistent, PIM icons + a GIMP teplate (ar) | 22 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) |
22 | 23 | ||
23 | Fixed Bugs | 24 | Fixed Bugs |
24 | ---------- | 25 | ---------- |
25 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) | 26 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) |
26 | * #1269 - VCards were imported into personal area if it was activated (eilers) | 27 | * #1269 - VCards were imported into personal area if it was activated (eilers) |
27 | * #1464 - Packagemanager dont set active filter after install a package (drw) | 28 | * #1464 - Packagemanager dont set active filter after install a package (drw) |
28 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) | 29 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) |
29 | * #1493 - Fixed one column layout bug of the launcher (hrw) | 30 | * #1493 - Fixed one column layout bug of the launcher (hrw) |
30 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) | 31 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) |
31 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) | 32 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) |
32 | * n.a. - Battery Applet - fix sizing of battery info popup | 33 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) |
33 | 34 | ||
34 | Internal | 35 | Internal |
35 | -------- | 36 | -------- |
36 | * Moved libopie1 to unsupported (mickeyl) | 37 | * Moved libopie1 to unsupported (mickeyl) |
37 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) | 38 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) |
38 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) | 39 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) |
39 | 40 | ||
40 | 2004-11-14Opie 1.1.7 | 41 | 2004-11-14Opie 1.1.7 |
41 | 42 | ||
42 | New Features | 43 | New Features |
43 | ------------ | 44 | ------------ |
44 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) | 45 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) |
45 | * Backup now uses the busy indicator when backing up and restore (ar) | 46 | * Backup now uses the busy indicator when backing up and restore (ar) |
46 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) | 47 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) |
47 | * OpiePlayer2 better error handling (zecke) | 48 | * OpiePlayer2 better error handling (zecke) |
48 | * OpiePlayer2 progress indication while streaming (zecke) | 49 | * OpiePlayer2 progress indication while streaming (zecke) |
49 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) | 50 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) |
50 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) | 51 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) |
51 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) | 52 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) |
52 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) | 53 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) |
53 | * Opie-Console use Custom Font and Size in a Profile (harlekin) | 54 | * Opie-Console use Custom Font and Size in a Profile (harlekin) |
54 | * Opie-Console transparently log the Output and Input to a file (harlekin) | 55 | * Opie-Console transparently log the Output and Input to a file (harlekin) |
55 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) | 56 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) |
56 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) | 57 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) |
57 | * Opie-Security gained a 'test authentication' button (clem) | 58 | * Opie-Security gained a 'test authentication' button (clem) |
58 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults | 59 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults |
59 | * Opie-Mail improve the handling of POP mail boxes (alwin) | 60 | * Opie-Mail improve the handling of POP mail boxes (alwin) |
60 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) | 61 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) |
61 | * Opie IRC - backports of the 'NeIRC fork' (zecke) | 62 | * Opie IRC - backports of the 'NeIRC fork' (zecke) |
62 | 63 | ||
63 | Fixed Bugs | 64 | Fixed Bugs |
64 | ---------- | 65 | ---------- |
65 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) | 66 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) |
66 | * #608 - Make Opie usable for left handed users (zecke) | 67 | * #608 - Make Opie usable for left handed users (zecke) |
67 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) | 68 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) |
68 | * #1245 - Opie-Go 'paused' (zecke) | 69 | * #1245 - Opie-Go 'paused' (zecke) |
69 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) | 70 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) |
70 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) | 71 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) |
71 | * #1395 - Build VNC Backend with gcc3.4 | 72 | * #1395 - Build VNC Backend with gcc3.4 |
72 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) | 73 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) |
73 | * #1426 - Add missing opie-bartender Icon (CoreDump) | 74 | * #1426 - Add missing opie-bartender Icon (CoreDump) |
74 | * #1445 - Opie-Sheet Has No Icon (CoreDump) | 75 | * #1445 - Opie-Sheet Has No Icon (CoreDump) |
75 | * #1448 - Brightness Applet added (mickeyl) | 76 | * #1448 - Brightness Applet added (mickeyl) |
76 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) | 77 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) |
77 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) | 78 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) |
78 | * n.a. - Opie-mail: fixed some crasher, some layout-problems | 79 | * n.a. - Opie-mail: fixed some crasher, some layout-problems |
79 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) | 80 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) |
80 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) | 81 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) |
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 00d3d31..849d5b3 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -175,57 +175,70 @@ private: | |||
175 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); | 175 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); |
176 | void processQCopFile(); | 176 | void processQCopFile(); |
177 | 177 | ||
178 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 178 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
179 | QCopChannel *sysChannel; | 179 | QCopChannel *sysChannel; |
180 | QCopChannel *pidChannel; | 180 | QCopChannel *pidChannel; |
181 | #endif | 181 | #endif |
182 | QPEApplicationData *d; | 182 | QPEApplicationData *d; |
183 | 183 | ||
184 | bool reserved_sh; | 184 | bool reserved_sh; |
185 | 185 | ||
186 | }; | 186 | }; |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ | 190 | enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ |
191 | 191 | ||
192 | inline int TransToDeg ( Transformation t ) | 192 | inline int TransToDeg ( Transformation t ) |
193 | { | 193 | { |
194 | int d = static_cast<int>( t ); | 194 | int d = static_cast<int>( t ); |
195 | return d * 90; | 195 | return d * 90; |
196 | } | 196 | } |
197 | 197 | ||
198 | inline Transformation DegToTrans ( int d ) | 198 | inline Transformation DegToTrans ( int d ) |
199 | { | 199 | { |
200 | Transformation t = static_cast<Transformation>( d / 90 ); | 200 | Transformation t = static_cast<Transformation>( d / 90 ); |
201 | return t; | 201 | return t; |
202 | } | 202 | } |
203 | 203 | ||
204 | /* | 204 | /* |
205 | * Set current rotation of Opie, and rotation for newly started apps. | 205 | * Set current rotation of Opie, and rotation for newly started apps. |
206 | * Differs from setDefaultRotation in that 1) it rotates currently running apps, | 206 | * Differs from setDefaultRotation in that 1) it rotates currently running apps, |
207 | * and 2) does not set deforient or save orientation to qpe.conf. | 207 | * and 2) does not set deforient or save orientation to qpe.conf. |
208 | */ | 208 | */ |
209 | 209 | ||
210 | inline void QPEApplication::setCurrentRotation( int r ) | 210 | inline void QPEApplication::setCurrentRotation( int r ) |
211 | { | 211 | { |
212 | // setTransformation has been introduced in Qt/Embedded 2.3.4 snapshots | 212 | // setTransformation has been introduced in Qt/Embedded 2.3.4 snapshots |
213 | // for compatibility with the SharpROM use fallback to setDefaultTransformation() | 213 | // for compatibility with the SharpROM use fallback to setDefaultTransformation() |
214 | #if QT_VERSION > 233 | 214 | #if QT_VERSION > 233 |
215 | Transformation e = DegToTrans( r ); | 215 | Transformation e = DegToTrans( r ); |
216 | ::setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); | 216 | ::setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); |
217 | qApp->desktop()->qwsDisplay()->setTransformation( e ); | 217 | qApp->desktop()->qwsDisplay()->setTransformation( e ); |
218 | #else | 218 | #else |
219 | setDefaultRotation( r ); | 219 | setDefaultRotation( r ); |
220 | #endif | 220 | #endif |
221 | } | 221 | } |
222 | 222 | ||
223 | /* | ||
224 | * Qtopia 1.7 SDK compatibility macros | ||
225 | * FIXME: Support Opie Quicklaunch Interface | ||
226 | */ | ||
227 | #define QTOPIA_ADD_APPLICATION(NAME,IMPLEMENTATION) \ | ||
228 | int main( int argc, char** argv ) \ | ||
229 | { \ | ||
230 | QPEApplication app = QPEApplication( argc, argv );\ | ||
231 | IMPLEMENTATION* mw = new IMPLEMENTATION(); \ | ||
232 | app.showMainWidget( mw ); \ | ||
233 | app.exec(); \ | ||
234 | } | ||
235 | #define QTOPIA_MAIN // Bee-Bop-Alula | ||
223 | 236 | ||
224 | /* | 237 | /* |
225 | * -remove me | 238 | * -remove me |
226 | */ | 239 | */ |
227 | #ifdef Q_WS_QWS | 240 | #ifdef Q_WS_QWS |
228 | extern Q_EXPORT QRect qt_maxWindowRect; | 241 | extern Q_EXPORT QRect qt_maxWindowRect; |
229 | #endif | 242 | #endif |
230 | 243 | ||
231 | #endif | 244 | #endif |