author | mickeyl <mickeyl> | 2005-02-07 15:00:36 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-07 15:00:36 (UTC) |
commit | 0bc169b13ad563819b6483beef775be26016832b (patch) (unidiff) | |
tree | 004ef63126b46ce1b9a18bf5403fe9ce9c256465 | |
parent | 896d2e77ebafd09ee58d6148e31365f47a3668b4 (diff) | |
download | opie-0bc169b13ad563819b6483beef775be26016832b.zip opie-0bc169b13ad563819b6483beef775be26016832b.tar.gz opie-0bc169b13ad563819b6483beef775be26016832b.tar.bz2 |
work around qt_version() bug in Qt/Embedded 2.3.10
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | libopie2/opieui/ofontselector.cpp | 2 | ||||
-rw-r--r-- | libopie2/opieui/opieui.pro | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -1,212 +1,213 @@ | |||
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 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) | 8 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) |
9 | * #1536 - Autosave of custom locations in opie backup (ar) | 9 | * #1536 - Autosave of custom locations in opie backup (ar) |
10 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) | 10 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) |
11 | * #1540 - Implemented deletion of DocLnks in opie-eye | 11 | * #1540 - Implemented deletion of DocLnks in opie-eye |
12 | 12 | ||
13 | Internal | 13 | Internal |
14 | -------- | 14 | -------- |
15 | * Work around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) | ||
15 | 16 | ||
16 | 2005-02-03Opie 1.1.9 | 17 | 2005-02-03Opie 1.1.9 |
17 | 18 | ||
18 | New Features | 19 | New Features |
19 | ------------ | 20 | ------------ |
20 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) | 21 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) |
21 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) | 22 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) |
22 | * Usability enhancements in OpieIRC (skyhusker) | 23 | * Usability enhancements in OpieIRC (skyhusker) |
23 | 24 | ||
24 | Fixed Bugs | 25 | Fixed Bugs |
25 | ---------- | 26 | ---------- |
26 | * #1501 - Fixed bug in todo sql backend (eilers) | 27 | * #1501 - Fixed bug in todo sql backend (eilers) |
27 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) | 28 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) |
28 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) | 29 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) |
29 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) | 30 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) |
30 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) | 31 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) |
31 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) | 32 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) |
32 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) | 33 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) |
33 | 34 | ||
34 | Internal | 35 | Internal |
35 | -------- | 36 | -------- |
36 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) | 37 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) |
37 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) | 38 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) |
38 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) | 39 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) |
39 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) | 40 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) |
40 | * Build tree cleanups (mickeyl) | 41 | * Build tree cleanups (mickeyl) |
41 | 42 | ||
42 | 2004-11-26Opie 1.1.8 | 43 | 2004-11-26Opie 1.1.8 |
43 | 44 | ||
44 | New Features | 45 | New Features |
45 | ------------ | 46 | ------------ |
46 | * PackageManager supports installation of local ipkg files (drw) | 47 | * PackageManager supports installation of local ipkg files (drw) |
47 | * PackageManager supports linking of applications to root (drw) | 48 | * PackageManager supports linking of applications to root (drw) |
48 | * PackageManager supports src/gz feeds (drw,wimpie) | 49 | * PackageManager supports src/gz feeds (drw,wimpie) |
49 | * Added a syslog information tab to sysinfo (mickeyl) | 50 | * Added a syslog information tab to sysinfo (mickeyl) |
50 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) | 51 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) |
51 | 52 | ||
52 | Fixed Bugs | 53 | Fixed Bugs |
53 | ---------- | 54 | ---------- |
54 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) | 55 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) |
55 | * #1269 - VCards were imported into personal area if it was activated (eilers) | 56 | * #1269 - VCards were imported into personal area if it was activated (eilers) |
56 | * #1464 - Packagemanager dont set active filter after install a package (drw) | 57 | * #1464 - Packagemanager dont set active filter after install a package (drw) |
57 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) | 58 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) |
58 | * #1493 - Fixed one column layout bug of the launcher (hrw) | 59 | * #1493 - Fixed one column layout bug of the launcher (hrw) |
59 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) | 60 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) |
60 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) | 61 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) |
61 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) | 62 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) |
62 | 63 | ||
63 | Internal | 64 | Internal |
64 | -------- | 65 | -------- |
65 | * Moved libopie1 to unsupported (mickeyl) | 66 | * Moved libopie1 to unsupported (mickeyl) |
66 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) | 67 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) |
67 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) | 68 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) |
68 | 69 | ||
69 | 2004-11-14Opie 1.1.7 | 70 | 2004-11-14Opie 1.1.7 |
70 | 71 | ||
71 | New Features | 72 | New Features |
72 | ------------ | 73 | ------------ |
73 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) | 74 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) |
74 | * Backup now uses the busy indicator when backing up and restore (ar) | 75 | * Backup now uses the busy indicator when backing up and restore (ar) |
75 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) | 76 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) |
76 | * OpiePlayer2 better error handling (zecke) | 77 | * OpiePlayer2 better error handling (zecke) |
77 | * OpiePlayer2 progress indication while streaming (zecke) | 78 | * OpiePlayer2 progress indication while streaming (zecke) |
78 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) | 79 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) |
79 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) | 80 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) |
80 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) | 81 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) |
81 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) | 82 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) |
82 | * Opie-Console use Custom Font and Size in a Profile (harlekin) | 83 | * Opie-Console use Custom Font and Size in a Profile (harlekin) |
83 | * Opie-Console transparently log the Output and Input to a file (harlekin) | 84 | * Opie-Console transparently log the Output and Input to a file (harlekin) |
84 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) | 85 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) |
85 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) | 86 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) |
86 | * Opie-Security gained a 'test authentication' button (clem) | 87 | * Opie-Security gained a 'test authentication' button (clem) |
87 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults | 88 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults |
88 | * Opie-Mail improve the handling of POP mail boxes (alwin) | 89 | * Opie-Mail improve the handling of POP mail boxes (alwin) |
89 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) | 90 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) |
90 | * Opie IRC - backports of the 'NeIRC fork' (zecke) | 91 | * Opie IRC - backports of the 'NeIRC fork' (zecke) |
91 | 92 | ||
92 | Fixed Bugs | 93 | Fixed Bugs |
93 | ---------- | 94 | ---------- |
94 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) | 95 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) |
95 | * #608 - Make Opie usable for left handed users (zecke) | 96 | * #608 - Make Opie usable for left handed users (zecke) |
96 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) | 97 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) |
97 | * #1245 - Opie-Go 'paused' (zecke) | 98 | * #1245 - Opie-Go 'paused' (zecke) |
98 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) | 99 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) |
99 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) | 100 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) |
100 | * #1395 - Build VNC Backend with gcc3.4 | 101 | * #1395 - Build VNC Backend with gcc3.4 |
101 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) | 102 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) |
102 | * #1426 - Add missing opie-bartender Icon (CoreDump) | 103 | * #1426 - Add missing opie-bartender Icon (CoreDump) |
103 | * #1445 - Opie-Sheet Has No Icon (CoreDump) | 104 | * #1445 - Opie-Sheet Has No Icon (CoreDump) |
104 | * #1448 - Brightness Applet added (mickeyl) | 105 | * #1448 - Brightness Applet added (mickeyl) |
105 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) | 106 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) |
106 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) | 107 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) |
107 | * n.a. - Opie-mail: fixed some crasher, some layout-problems | 108 | * n.a. - Opie-mail: fixed some crasher, some layout-problems |
108 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) | 109 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) |
109 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) | 110 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) |
110 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) | 111 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) |
111 | * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) | 112 | * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) |
112 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) | 113 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) |
113 | 114 | ||
114 | Internal | 115 | Internal |
115 | -------- | 116 | -------- |
116 | * Opie-Qashmoney has been moved to unsupported (mickeyl) | 117 | * Opie-Qashmoney has been moved to unsupported (mickeyl) |
117 | * Opie-Ubrowser has been moved to unsupported (mickeyl) | 118 | * Opie-Ubrowser has been moved to unsupported (mickeyl) |
118 | 119 | ||
119 | 2004-09-17Opie 1.1.6 | 120 | 2004-09-17Opie 1.1.6 |
120 | 121 | ||
121 | New Features | 122 | New Features |
122 | ------------ | 123 | ------------ |
123 | * Fifteen gained configurable number of items (zecke) | 124 | * Fifteen gained configurable number of items (zecke) |
124 | * Fifteen can have custom background images (zecke) | 125 | * Fifteen can have custom background images (zecke) |
125 | * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) | 126 | * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) |
126 | * Integrated the new security framework into libopie2 (zecke,clem) | 127 | * Integrated the new security framework into libopie2 (zecke,clem) |
127 | * Converted the launcher to use the new security framework (zecke) | 128 | * Converted the launcher to use the new security framework (zecke) |
128 | * Backup can now handle custom locations for backup and restore (ar) | 129 | * Backup can now handle custom locations for backup and restore (ar) |
129 | * Implemented right-on-hold feedback (wimpie,zecke) | 130 | * Implemented right-on-hold feedback (wimpie,zecke) |
130 | * Lots of new features in opie-reader (tim,pohly) | 131 | * Lots of new features in opie-reader (tim,pohly) |
131 | * Build system cleanups (schurig) | 132 | * Build system cleanups (schurig) |
132 | 133 | ||
133 | Fixed Bugs | 134 | Fixed Bugs |
134 | -------- | 135 | -------- |
135 | * #1005 - Fixed backup to CompactFlash (ar) | 136 | * #1005 - Fixed backup to CompactFlash (ar) |
136 | * #1167 - Fixed Opie write crashing on more text than one page (ar) | 137 | * #1167 - Fixed Opie write crashing on more text than one page (ar) |
137 | * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) | 138 | * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) |
138 | * #1359 - Fixed bookmarks in Gutenbrowser (ljp) | 139 | * #1359 - Fixed bookmarks in Gutenbrowser (ljp) |
139 | * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) | 140 | * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) |
140 | * #1370 - Pimconverter now reacts on cancel key (eilers) | 141 | * #1370 - Pimconverter now reacts on cancel key (eilers) |
141 | * #1376 - Bring back the capslock/numlock display (zecke) | 142 | * #1376 - Bring back the capslock/numlock display (zecke) |
142 | * #1383 - Language settings now warns about losing open apps (Markus Litz) | 143 | * #1383 - Language settings now warns about losing open apps (Markus Litz) |
143 | * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl) | 144 | * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl) |
144 | * #1394 - Fixed oversized headline in opie-login (coredump) | 145 | * #1394 - Fixed oversized headline in opie-login (coredump) |
145 | * #1396 - Opie-console captures the escape key and vim is working (zecke) | 146 | * #1396 - Opie-console captures the escape key and vim is working (zecke) |
146 | * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl) | 147 | * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl) |
147 | 148 | ||
148 | 2004-07-06Opie 1.1.4 | 149 | 2004-07-06Opie 1.1.4 |
149 | 150 | ||
150 | New Features | 151 | New Features |
151 | ------------ | 152 | ------------ |
152 | * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) | 153 | * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) |
153 | * Added Conversion tool for pim-data (eilers) | 154 | * Added Conversion tool for pim-data (eilers) |
154 | * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) | 155 | * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) |
155 | * Modified the PIM API for providing generic use of OPimRecords (eilers) | 156 | * Modified the PIM API for providing generic use of OPimRecords (eilers) |
156 | * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) | 157 | * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) |
157 | 158 | ||
158 | Fixed Bugs | 159 | Fixed Bugs |
159 | -------- | 160 | -------- |
160 | * #1068 - Country Drop Down Box Off Screen | 161 | * #1068 - Country Drop Down Box Off Screen |
161 | * #1291 - Opie tinykate does not open .desktop files (ar) | 162 | * #1291 - Opie tinykate does not open .desktop files (ar) |
162 | * #1291 - Opie sheet not saving correctly (ar) | 163 | * #1291 - Opie sheet not saving correctly (ar) |
163 | * #1294 - Opie does not know about British Summer Time | 164 | * #1294 - Opie does not know about British Summer Time |
164 | * #1314 - Drawpad initialization (mickeyl) | 165 | * #1314 - Drawpad initialization (mickeyl) |
165 | * #1317 - Packagemanager crashes on hold-down or install (chicken) | 166 | * #1317 - Packagemanager crashes on hold-down or install (chicken) |
166 | * #1321 - Batteryapplet graphic glitch (harlekin) | 167 | * #1321 - Batteryapplet graphic glitch (harlekin) |
167 | * #1324 - ZSafe not starting up (mickeyl) | 168 | * #1324 - ZSafe not starting up (mickeyl) |
168 | * #1328 - Personal Home Address fields is trimmed to 1char (eilers) | 169 | * #1328 - Personal Home Address fields is trimmed to 1char (eilers) |
169 | * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) | 170 | * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) |
170 | * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) | 171 | * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) |
171 | * #1348 - Datebook dependency on libopiedb2 (chicken) | 172 | * #1348 - Datebook dependency on libopiedb2 (chicken) |
172 | * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) | 173 | * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) |
173 | 174 | ||
174 | 2004-04-25Opie 1.1.3 | 175 | 2004-04-25Opie 1.1.3 |
175 | 176 | ||
176 | * Introduced first implementation of SQL-Support using SQLite (eilers) | 177 | * Introduced first implementation of SQL-Support using SQLite (eilers) |
177 | * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) | 178 | * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) |
178 | * Added a real system graffiti character set (brad) | 179 | * Added a real system graffiti character set (brad) |
179 | * Added Generic Keyconfig Widget (zecke) | 180 | * Added Generic Keyconfig Widget (zecke) |
180 | * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) | 181 | * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) |
181 | * Added new Bible reader app - opie-dagger (drw) | 182 | * Added new Bible reader app - opie-dagger (drw) |
182 | * Added a new Image Viewer. Work is ongoing (zecke,alwin) | 183 | * Added a new Image Viewer. Work is ongoing (zecke,alwin) |
183 | * Added namespace usage in libopie2 and everywhere (zecke,alwin) | 184 | * Added namespace usage in libopie2 and everywhere (zecke,alwin) |
184 | * Enabled the possibility to pass command line arguments to applications (mickeyl) | 185 | * Enabled the possibility to pass command line arguments to applications (mickeyl) |
185 | * Added an about applet showing some credits and information about Opie (mickeyl) | 186 | * Added an about applet showing some credits and information about Opie (mickeyl) |
186 | * Added benchmarking functionality to sysinfo (mickeyl) | 187 | * Added benchmarking functionality to sysinfo (mickeyl) |
187 | * Added applet and configuration application for switching hardware keyboard layouts (alwin) | 188 | * Added applet and configuration application for switching hardware keyboard layouts (alwin) |
188 | * Ported applications from libopie1 to libopie2* (drw,ar,alwin) | 189 | * Ported applications from libopie1 to libopie2* (drw,ar,alwin) |
189 | * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) | 190 | * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) |
190 | * Clean-up of package information in control files (drw) | 191 | * Clean-up of package information in control files (drw) |
191 | * Repaired mediummount which was broken since integrating the quicklauncher (alwin) | 192 | * Repaired mediummount which was broken since integrating the quicklauncher (alwin) |
192 | * Improved big-screen support (zecke,ar) | 193 | * Improved big-screen support (zecke,ar) |
193 | * Improved multikeyboard support, added keyboard layout switching applet (mouse) | 194 | * Improved multikeyboard support, added keyboard layout switching applet (mouse) |
194 | * Added a new mail client based on libetpan (harlekin,alwin,jgf) | 195 | * Added a new mail client based on libetpan (harlekin,alwin,jgf) |
195 | * Added new package manager - opie-packagemanager (drw) | 196 | * Added new package manager - opie-packagemanager (drw) |
196 | * Improved light-n-power for C7x0 (mickeyl) | 197 | * Improved light-n-power for C7x0 (mickeyl) |
197 | * Added automatic rotation support for C7x0 (treke) | 198 | * Added automatic rotation support for C7x0 (treke) |
198 | * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) | 199 | * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) |
199 | * Added scanning the wireless network neighbourhood to networksettings (mickeyl) | 200 | * Added scanning the wireless network neighbourhood to networksettings (mickeyl) |
200 | 201 | ||
201 | 2003-11-29Opie 1.0.3 | 202 | 2003-11-29Opie 1.0.3 |
202 | 203 | ||
203 | * Released as Version 1.0.3 | 204 | * Released as Version 1.0.3 |
204 | * Improved i18n (various contributors) | 205 | * Improved i18n (various contributors) |
205 | * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) | 206 | * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) |
206 | * Made the Documents Tab optional (mickeyl) | 207 | * Made the Documents Tab optional (mickeyl) |
207 | * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) | 208 | * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) |
208 | 209 | ||
209 | 2003-08-04Opie 1.0.0 | 210 | 2003-08-04Opie 1.0.0 |
210 | 211 | ||
211 | * Released as Version 1.0.0 | 212 | * Released as Version 1.0.0 |
212 | * Including a PPP module for easy dial up (tille,harlekin,zecke) | 213 | * Including a PPP module for easy dial up (tille,harlekin,zecke) |
diff --git a/libopie2/opieui/ofontselector.cpp b/libopie2/opieui/ofontselector.cpp index 6c24f14..8b679c8 100644 --- a/libopie2/opieui/ofontselector.cpp +++ b/libopie2/opieui/ofontselector.cpp | |||
@@ -1,433 +1,433 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | Copyright (C) Robert Griebl <sandman@handhelds.org> | 3 | Copyright (C) Robert Griebl <sandman@handhelds.org> |
4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> | 4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> |
5 | .=l. | 5 | .=l. |
6 | .>+-= | 6 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | /* OPIE */ | 30 | /* OPIE */ |
31 | #include <opie2/ofontselector.h> | 31 | #include <opie2/ofontselector.h> |
32 | #include <qpe/fontdatabase.h> | 32 | #include <qpe/fontdatabase.h> |
33 | 33 | ||
34 | /* QT */ | 34 | /* QT */ |
35 | #include <qlayout.h> | 35 | #include <qlayout.h> |
36 | #include <qlistbox.h> | 36 | #include <qlistbox.h> |
37 | #include <qcombobox.h> | 37 | #include <qcombobox.h> |
38 | #include <qlabel.h> | 38 | #include <qlabel.h> |
39 | #include <qmultilineedit.h> | 39 | #include <qmultilineedit.h> |
40 | 40 | ||
41 | 41 | ||
42 | /* TRANSLATOR Opie::Ui::OFontSelector */ | 42 | /* TRANSLATOR Opie::Ui::OFontSelector */ |
43 | 43 | ||
44 | 44 | ||
45 | namespace Opie { | 45 | namespace Opie { |
46 | namespace Ui { | 46 | namespace Ui { |
47 | namespace Internal { | 47 | namespace Internal { |
48 | 48 | ||
49 | class OFontSelectorPrivate | 49 | class OFontSelectorPrivate |
50 | { | 50 | { |
51 | public: | 51 | public: |
52 | QListBox * m_font_family_list; | 52 | QListBox * m_font_family_list; |
53 | QComboBox * m_font_style_list; | 53 | QComboBox * m_font_style_list; |
54 | QComboBox * m_font_size_list; | 54 | QComboBox * m_font_size_list; |
55 | QMultiLineEdit *m_preview; | 55 | QMultiLineEdit *m_preview; |
56 | 56 | ||
57 | bool m_pointbug : 1; | 57 | bool m_pointbug : 1; |
58 | 58 | ||
59 | FontDatabase m_fdb; | 59 | FontDatabase m_fdb; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | class FontListItem : public QListBoxText | 62 | class FontListItem : public QListBoxText |
63 | { | 63 | { |
64 | public: | 64 | public: |
65 | FontListItem ( const QString &t, const QStringList &styles, const QValueList<int> &sizes ) : QListBoxText() | 65 | FontListItem ( const QString &t, const QStringList &styles, const QValueList<int> &sizes ) : QListBoxText() |
66 | { | 66 | { |
67 | m_name = t; | 67 | m_name = t; |
68 | m_styles = styles; | 68 | m_styles = styles; |
69 | m_sizes = sizes; | 69 | m_sizes = sizes; |
70 | 70 | ||
71 | QString str = t; | 71 | QString str = t; |
72 | str [0] = str [0]. upper(); | 72 | str [0] = str [0]. upper(); |
73 | setText ( str ); | 73 | setText ( str ); |
74 | } | 74 | } |
75 | 75 | ||
76 | QString family() const | 76 | QString family() const |
77 | { | 77 | { |
78 | return m_name; | 78 | return m_name; |
79 | } | 79 | } |
80 | 80 | ||
81 | const QStringList &styles() const | 81 | const QStringList &styles() const |
82 | { | 82 | { |
83 | return m_styles; | 83 | return m_styles; |
84 | } | 84 | } |
85 | 85 | ||
86 | const QValueList<int> &sizes() const | 86 | const QValueList<int> &sizes() const |
87 | { | 87 | { |
88 | return m_sizes; | 88 | return m_sizes; |
89 | } | 89 | } |
90 | 90 | ||
91 | private: | 91 | private: |
92 | QStringList m_styles; | 92 | QStringList m_styles; |
93 | QValueList<int> m_sizes; | 93 | QValueList<int> m_sizes; |
94 | QString m_name; | 94 | QString m_name; |
95 | }; | 95 | }; |
96 | } | 96 | } |
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | 100 | ||
101 | using namespace Opie::Ui; | 101 | using namespace Opie::Ui; |
102 | using namespace Opie::Ui::Internal; | 102 | using namespace Opie::Ui::Internal; |
103 | 103 | ||
104 | static int findItemCB( QComboBox *box, const QString &str ) | 104 | static int findItemCB( QComboBox *box, const QString &str ) |
105 | { | 105 | { |
106 | for ( int i = 0; i < box->count(); i++ ) | 106 | for ( int i = 0; i < box->count(); i++ ) |
107 | { | 107 | { |
108 | if ( box->text ( i ) == str ) | 108 | if ( box->text ( i ) == str ) |
109 | return i; | 109 | return i; |
110 | } | 110 | } |
111 | return -1; | 111 | return -1; |
112 | } | 112 | } |
113 | 113 | ||
114 | /* static same as anon. namespace */ | 114 | /* static same as anon. namespace */ |
115 | static int qt_version() | 115 | static int qt_version() |
116 | { | 116 | { |
117 | const char *qver = qVersion(); | 117 | const char *qver = qVersion(); |
118 | 118 | ||
119 | return ( qver [0] - '0' ) * 100 + ( qver [2] - '0' ) * 10 + ( qver [4] - '0' ); | 119 | return ( qver [0] - '0' ) * 100 + ( qver [2] - '0' ) * 10 + ( qver [4] - '0' ); |
120 | } | 120 | } |
121 | 121 | ||
122 | /** | 122 | /** |
123 | * Constructs the Selector object | 123 | * Constructs the Selector object |
124 | * @param withpreview If a font preview should be given | 124 | * @param withpreview If a font preview should be given |
125 | * @param parent The parent of the Font Selector | 125 | * @param parent The parent of the Font Selector |
126 | * @param name The name of the object | 126 | * @param name The name of the object |
127 | * @param fl WidgetFlags | 127 | * @param fl WidgetFlags |
128 | */ | 128 | */ |
129 | OFontSelector::OFontSelector( bool withpreview, QWidget *parent, const char *name, WFlags fl ) : QWidget ( parent, name, fl ) | 129 | OFontSelector::OFontSelector( bool withpreview, QWidget *parent, const char *name, WFlags fl ) : QWidget ( parent, name, fl ) |
130 | { | 130 | { |
131 | d = new OFontSelectorPrivate(); | 131 | d = new OFontSelectorPrivate(); |
132 | 132 | ||
133 | QGridLayout *gridLayout = new QGridLayout( this, 0, 0, 4, 4 ); | 133 | QGridLayout *gridLayout = new QGridLayout( this, 0, 0, 4, 4 ); |
134 | gridLayout->setRowStretch( 4, 10 ); | 134 | gridLayout->setRowStretch( 4, 10 ); |
135 | 135 | ||
136 | d->m_font_family_list = new QListBox( this, "FontListBox" ); | 136 | d->m_font_family_list = new QListBox( this, "FontListBox" ); |
137 | gridLayout->addMultiCellWidget( d->m_font_family_list, 0, 4, 0, 0 ); | 137 | gridLayout->addMultiCellWidget( d->m_font_family_list, 0, 4, 0, 0 ); |
138 | connect( d->m_font_family_list, SIGNAL( highlighted(int) ), this, SLOT( fontFamilyClicked(int) ) ); | 138 | connect( d->m_font_family_list, SIGNAL( highlighted(int) ), this, SLOT( fontFamilyClicked(int) ) ); |
139 | 139 | ||
140 | QLabel *label = new QLabel( tr( "Style" ), this ); | 140 | QLabel *label = new QLabel( tr( "Style" ), this ); |
141 | gridLayout->addWidget( label, 0, 1 ); | 141 | gridLayout->addWidget( label, 0, 1 ); |
142 | 142 | ||
143 | d->m_font_style_list = new QComboBox( this, "StyleListBox" ); | 143 | d->m_font_style_list = new QComboBox( this, "StyleListBox" ); |
144 | connect( d->m_font_style_list, SIGNAL( activated(int) ), this, SLOT( fontStyleClicked(int) ) ); | 144 | connect( d->m_font_style_list, SIGNAL( activated(int) ), this, SLOT( fontStyleClicked(int) ) ); |
145 | gridLayout->addWidget( d->m_font_style_list, 1, 1 ); | 145 | gridLayout->addWidget( d->m_font_style_list, 1, 1 ); |
146 | 146 | ||
147 | label = new QLabel( tr( "Size" ), this ); | 147 | label = new QLabel( tr( "Size" ), this ); |
148 | gridLayout->addWidget( label, 2, 1 ); | 148 | gridLayout->addWidget( label, 2, 1 ); |
149 | 149 | ||
150 | d->m_font_size_list = new QComboBox( this, "SizeListBox" ); | 150 | d->m_font_size_list = new QComboBox( this, "SizeListBox" ); |
151 | connect( d->m_font_size_list, SIGNAL( activated(int) ), | 151 | connect( d->m_font_size_list, SIGNAL( activated(int) ), |
152 | this, SLOT( fontSizeClicked(int) ) ); | 152 | this, SLOT( fontSizeClicked(int) ) ); |
153 | gridLayout->addWidget( d->m_font_size_list, 3, 1 ); | 153 | gridLayout->addWidget( d->m_font_size_list, 3, 1 ); |
154 | 154 | ||
155 | d->m_pointbug = ( qt_version() <= 233 ); | 155 | d->m_pointbug = ( qt_version() == 232 || qt_version() == 233 ); // SharpROM uses 2.3.2 |
156 | 156 | ||
157 | if ( withpreview ) | 157 | if ( withpreview ) |
158 | { | 158 | { |
159 | d->m_preview = new QMultiLineEdit ( this, "Preview" ); | 159 | d->m_preview = new QMultiLineEdit ( this, "Preview" ); |
160 | d->m_preview->setAlignment ( AlignCenter ); | 160 | d->m_preview->setAlignment ( AlignCenter ); |
161 | d->m_preview->setWordWrap ( QMultiLineEdit::WidgetWidth ); | 161 | d->m_preview->setWordWrap ( QMultiLineEdit::WidgetWidth ); |
162 | d->m_preview->setMargin ( 3 ); | 162 | d->m_preview->setMargin ( 3 ); |
163 | d->m_preview->setText ( tr( "The Quick Brown Fox Jumps Over The Lazy Dog" )); | 163 | d->m_preview->setText ( tr( "The Quick Brown Fox Jumps Over The Lazy Dog" )); |
164 | gridLayout->addRowSpacing ( 5, 4 ); | 164 | gridLayout->addRowSpacing ( 5, 4 ); |
165 | gridLayout->addMultiCellWidget ( d->m_preview, 6, 6, 0, 1 ); | 165 | gridLayout->addMultiCellWidget ( d->m_preview, 6, 6, 0, 1 ); |
166 | gridLayout->setRowStretch ( 6, 5 ); | 166 | gridLayout->setRowStretch ( 6, 5 ); |
167 | } | 167 | } |
168 | else | 168 | else |
169 | d->m_preview = 0; | 169 | d->m_preview = 0; |
170 | 170 | ||
171 | loadFonts ( d->m_font_family_list ); | 171 | loadFonts ( d->m_font_family_list ); |
172 | } | 172 | } |
173 | 173 | ||
174 | OFontSelector::~OFontSelector() | 174 | OFontSelector::~OFontSelector() |
175 | { | 175 | { |
176 | delete d; | 176 | delete d; |
177 | } | 177 | } |
178 | 178 | ||
179 | /** | 179 | /** |
180 | * This methods tries to set the font | 180 | * This methods tries to set the font |
181 | * @param f The wishes font | 181 | * @param f The wishes font |
182 | * @return success or failure | 182 | * @return success or failure |
183 | */ | 183 | */ |
184 | bool OFontSelector::setSelectedFont ( const QFont &f ) | 184 | bool OFontSelector::setSelectedFont ( const QFont &f ) |
185 | { | 185 | { |
186 | return setSelectedFont ( f. family(), d->m_fdb. styleString ( f ), f. pointSize(), QFont::encodingName ( f. charSet())); | 186 | return setSelectedFont ( f. family(), d->m_fdb. styleString ( f ), f. pointSize(), QFont::encodingName ( f. charSet())); |
187 | } | 187 | } |
188 | 188 | ||
189 | 189 | ||
190 | /** | 190 | /** |
191 | * This is an overloaded method @see setSelectedFont | 191 | * This is an overloaded method @see setSelectedFont |
192 | * @param familyStr The family of the font | 192 | * @param familyStr The family of the font |
193 | * @param styleStr The style of the font | 193 | * @param styleStr The style of the font |
194 | * @param sizeVal The size of font | 194 | * @param sizeVal The size of font |
195 | * @param charset The charset to be used. Will be deprecated by QT3 | 195 | * @param charset The charset to be used. Will be deprecated by QT3 |
196 | */ | 196 | */ |
197 | bool OFontSelector::setSelectedFont( const QString &familyStr, const QString &styleStr, int sizeVal, const QString & charset ) | 197 | bool OFontSelector::setSelectedFont( const QString &familyStr, const QString &styleStr, int sizeVal, const QString & charset ) |
198 | { | 198 | { |
199 | Q_CONST_UNUSED( charset ) | 199 | Q_CONST_UNUSED( charset ) |
200 | QString sizeStr = QString::number ( sizeVal ); | 200 | QString sizeStr = QString::number ( sizeVal ); |
201 | 201 | ||
202 | QListBoxItem *family = d->m_font_family_list->findItem ( familyStr ); | 202 | QListBoxItem *family = d->m_font_family_list->findItem ( familyStr ); |
203 | if ( !family ) | 203 | if ( !family ) |
204 | family = d->m_font_family_list->findItem ( "Helvetica" ); | 204 | family = d->m_font_family_list->findItem ( "Helvetica" ); |
205 | if ( !family ) | 205 | if ( !family ) |
206 | family = d->m_font_family_list->firstItem(); | 206 | family = d->m_font_family_list->firstItem(); |
207 | d->m_font_family_list->setCurrentItem ( family ); | 207 | d->m_font_family_list->setCurrentItem ( family ); |
208 | fontFamilyClicked ( d->m_font_family_list->index ( family )); | 208 | fontFamilyClicked ( d->m_font_family_list->index ( family )); |
209 | 209 | ||
210 | int style = findItemCB ( d->m_font_style_list, styleStr ); | 210 | int style = findItemCB ( d->m_font_style_list, styleStr ); |
211 | if ( style < 0 ) | 211 | if ( style < 0 ) |
212 | style = findItemCB ( d->m_font_style_list, "Regular" ); | 212 | style = findItemCB ( d->m_font_style_list, "Regular" ); |
213 | if ( style < 0 && d->m_font_style_list->count() > 0 ) | 213 | if ( style < 0 && d->m_font_style_list->count() > 0 ) |
214 | style = 0; | 214 | style = 0; |
215 | d->m_font_style_list->setCurrentItem ( style ); | 215 | d->m_font_style_list->setCurrentItem ( style ); |
216 | fontStyleClicked ( style ); | 216 | fontStyleClicked ( style ); |
217 | 217 | ||
218 | int size = findItemCB ( d->m_font_size_list, sizeStr ); | 218 | int size = findItemCB ( d->m_font_size_list, sizeStr ); |
219 | if ( size < 0 ) | 219 | if ( size < 0 ) |
220 | size = findItemCB ( d->m_font_size_list, "10" ); | 220 | size = findItemCB ( d->m_font_size_list, "10" ); |
221 | if ( size < 0 && d->m_font_size_list->count() > 0 ) | 221 | if ( size < 0 && d->m_font_size_list->count() > 0 ) |
222 | size = 0; | 222 | size = 0; |
223 | d->m_font_size_list->setCurrentItem ( size ); | 223 | d->m_font_size_list->setCurrentItem ( size ); |
224 | fontSizeClicked ( size ); | 224 | fontSizeClicked ( size ); |
225 | 225 | ||
226 | return (( family ) && ( style >= 0 ) && ( size >= 0 )); | 226 | return (( family ) && ( style >= 0 ) && ( size >= 0 )); |
227 | } | 227 | } |
228 | 228 | ||
229 | /** | 229 | /** |
230 | * This method returns the name, style and size of the currently selected | 230 | * This method returns the name, style and size of the currently selected |
231 | * font or false if no font is selected | 231 | * font or false if no font is selected |
232 | * @param family The font family will be written there | 232 | * @param family The font family will be written there |
233 | * @param style The style will be written there | 233 | * @param style The style will be written there |
234 | * @param size The size will be written there | 234 | * @param size The size will be written there |
235 | * @return success or failure | 235 | * @return success or failure |
236 | */ | 236 | */ |
237 | bool OFontSelector::selectedFont ( QString &family, QString &style, int &size ) | 237 | bool OFontSelector::selectedFont ( QString &family, QString &style, int &size ) |
238 | { | 238 | { |
239 | QString dummy; | 239 | QString dummy; |
240 | return selectedFont ( family, style, size, dummy ); | 240 | return selectedFont ( family, style, size, dummy ); |
241 | } | 241 | } |
242 | 242 | ||
243 | 243 | ||
244 | /** | 244 | /** |
245 | * This method does return the font family or QString::null if there is | 245 | * This method does return the font family or QString::null if there is |
246 | * no font item selected | 246 | * no font item selected |
247 | * @return the font family | 247 | * @return the font family |
248 | */ | 248 | */ |
249 | QString OFontSelector::fontFamily() const | 249 | QString OFontSelector::fontFamily() const |
250 | { | 250 | { |
251 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); | 251 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); |
252 | 252 | ||
253 | return fli ? fli->family() : QString::null; | 253 | return fli ? fli->family() : QString::null; |
254 | } | 254 | } |
255 | 255 | ||
256 | /** | 256 | /** |
257 | * This method will return the style of the font or QString::null | 257 | * This method will return the style of the font or QString::null |
258 | * @return the style of the font | 258 | * @return the style of the font |
259 | */ | 259 | */ |
260 | QString OFontSelector::fontStyle() const | 260 | QString OFontSelector::fontStyle() const |
261 | { | 261 | { |
262 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); | 262 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); |
263 | int fst = d->m_font_style_list->currentItem(); | 263 | int fst = d->m_font_style_list->currentItem(); |
264 | 264 | ||
265 | return ( fli && fst >= 0 ) ? fli->styles() [fst] : QString::null; | 265 | return ( fli && fst >= 0 ) ? fli->styles() [fst] : QString::null; |
266 | } | 266 | } |
267 | 267 | ||
268 | /** | 268 | /** |
269 | * This method will return the font size or 10 if no font size is available | 269 | * This method will return the font size or 10 if no font size is available |
270 | */ | 270 | */ |
271 | int OFontSelector::fontSize() const | 271 | int OFontSelector::fontSize() const |
272 | { | 272 | { |
273 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); | 273 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); |
274 | int fsi = d->m_font_size_list->currentItem(); | 274 | int fsi = d->m_font_size_list->currentItem(); |
275 | 275 | ||
276 | return ( fli && fsi >= 0 ) ? fli->sizes() [fsi] : 10; | 276 | return ( fli && fsi >= 0 ) ? fli->sizes() [fsi] : 10; |
277 | } | 277 | } |
278 | 278 | ||
279 | /** | 279 | /** |
280 | * returns the charset of the font or QString::null | 280 | * returns the charset of the font or QString::null |
281 | */ | 281 | */ |
282 | QString OFontSelector::fontCharSet() const | 282 | QString OFontSelector::fontCharSet() const |
283 | { | 283 | { |
284 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); | 284 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( d->m_font_family_list->currentItem()); |
285 | 285 | ||
286 | return fli ? d->m_fdb. charSets ( fli->family()) [0] : QString::null; | 286 | return fli ? d->m_fdb. charSets ( fli->family()) [0] : QString::null; |
287 | } | 287 | } |
288 | 288 | ||
289 | /** | 289 | /** |
290 | * Overloaded member function see above | 290 | * Overloaded member function see above |
291 | * @see selectedFont | 291 | * @see selectedFont |
292 | */ | 292 | */ |
293 | bool OFontSelector::selectedFont ( QString &family, QString &style, int &size, QString &charset ) | 293 | bool OFontSelector::selectedFont ( QString &family, QString &style, int &size, QString &charset ) |
294 | { | 294 | { |
295 | int ffa = d->m_font_family_list->currentItem(); | 295 | int ffa = d->m_font_family_list->currentItem(); |
296 | int fst = d->m_font_style_list->currentItem(); | 296 | int fst = d->m_font_style_list->currentItem(); |
297 | int fsi = d->m_font_size_list->currentItem(); | 297 | int fsi = d->m_font_size_list->currentItem(); |
298 | 298 | ||
299 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( ffa ); | 299 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( ffa ); |
300 | 300 | ||
301 | if ( fli ) | 301 | if ( fli ) |
302 | { | 302 | { |
303 | family = fli->family(); | 303 | family = fli->family(); |
304 | style = fst >= 0 ? fli->styles() [fst] : QString::null; | 304 | style = fst >= 0 ? fli->styles() [fst] : QString::null; |
305 | size = fsi >= 0 ? fli->sizes() [fsi] : 10; | 305 | size = fsi >= 0 ? fli->sizes() [fsi] : 10; |
306 | charset = d->m_fdb. charSets ( fli->family()) [0]; | 306 | charset = d->m_fdb. charSets ( fli->family()) [0]; |
307 | 307 | ||
308 | return true; | 308 | return true; |
309 | } | 309 | } |
310 | else | 310 | else |
311 | return false; | 311 | return false; |
312 | } | 312 | } |
313 | 313 | ||
314 | void OFontSelector::loadFonts ( QListBox *list ) | 314 | void OFontSelector::loadFonts ( QListBox *list ) |
315 | { | 315 | { |
316 | QStringList f = d->m_fdb. families(); | 316 | QStringList f = d->m_fdb. families(); |
317 | 317 | ||
318 | for ( QStringList::ConstIterator it = f. begin(); it != f. end(); ++it ) | 318 | for ( QStringList::ConstIterator it = f. begin(); it != f. end(); ++it ) |
319 | { | 319 | { |
320 | QValueList <int> ps = d->m_fdb. pointSizes ( *it ); | 320 | QValueList <int> ps = d->m_fdb. pointSizes ( *it ); |
321 | 321 | ||
322 | if ( d->m_pointbug ) | 322 | if ( d->m_pointbug ) |
323 | { | 323 | { |
324 | for ( QValueList <int>::Iterator it = ps. begin(); it != ps. end(); it++ ) | 324 | for ( QValueList <int>::Iterator it = ps. begin(); it != ps. end(); it++ ) |
325 | *it /= 10; | 325 | *it /= 10; |
326 | } | 326 | } |
327 | 327 | ||
328 | list->insertItem ( new FontListItem ( *it, d->m_fdb. styles ( *it ), ps )); | 328 | list->insertItem ( new FontListItem ( *it, d->m_fdb. styles ( *it ), ps )); |
329 | } | 329 | } |
330 | } | 330 | } |
331 | 331 | ||
332 | void OFontSelector::fontFamilyClicked ( int index ) | 332 | void OFontSelector::fontFamilyClicked ( int index ) |
333 | { | 333 | { |
334 | QString oldstyle = d->m_font_style_list->currentText(); | 334 | QString oldstyle = d->m_font_style_list->currentText(); |
335 | QString oldsize = d->m_font_size_list->currentText(); | 335 | QString oldsize = d->m_font_size_list->currentText(); |
336 | 336 | ||
337 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( index ); | 337 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( index ); |
338 | 338 | ||
339 | d->m_font_style_list->clear(); | 339 | d->m_font_style_list->clear(); |
340 | d->m_font_style_list->insertStringList ( fli->styles()); | 340 | d->m_font_style_list->insertStringList ( fli->styles()); |
341 | d->m_font_style_list->setEnabled ( !fli->styles(). isEmpty()); | 341 | d->m_font_style_list->setEnabled ( !fli->styles(). isEmpty()); |
342 | 342 | ||
343 | int i; | 343 | int i; |
344 | 344 | ||
345 | i = findItemCB ( d->m_font_style_list, oldstyle ); | 345 | i = findItemCB ( d->m_font_style_list, oldstyle ); |
346 | if ( i < 0 ) | 346 | if ( i < 0 ) |
347 | i = findItemCB ( d->m_font_style_list, "Regular" ); | 347 | i = findItemCB ( d->m_font_style_list, "Regular" ); |
348 | if (( i < 0 ) && ( d->m_font_style_list->count() > 0 )) | 348 | if (( i < 0 ) && ( d->m_font_style_list->count() > 0 )) |
349 | i = 0; | 349 | i = 0; |
350 | 350 | ||
351 | if ( i >= 0 ) | 351 | if ( i >= 0 ) |
352 | { | 352 | { |
353 | d->m_font_style_list->setCurrentItem ( i ); | 353 | d->m_font_style_list->setCurrentItem ( i ); |
354 | fontStyleClicked ( i ); | 354 | fontStyleClicked ( i ); |
355 | } | 355 | } |
356 | 356 | ||
357 | d->m_font_size_list->clear(); | 357 | d->m_font_size_list->clear(); |
358 | QValueList<int> sl = fli->sizes(); | 358 | QValueList<int> sl = fli->sizes(); |
359 | 359 | ||
360 | for ( QValueList<int>::Iterator it = sl. begin(); it != sl. end(); ++it ) | 360 | for ( QValueList<int>::Iterator it = sl. begin(); it != sl. end(); ++it ) |
361 | d->m_font_size_list->insertItem ( QString::number ( *it )); | 361 | d->m_font_size_list->insertItem ( QString::number ( *it )); |
362 | 362 | ||
363 | i = findItemCB ( d->m_font_size_list, oldsize ); | 363 | i = findItemCB ( d->m_font_size_list, oldsize ); |
364 | if ( i < 0 ) | 364 | if ( i < 0 ) |
365 | i = findItemCB ( d->m_font_size_list, "10" ); | 365 | i = findItemCB ( d->m_font_size_list, "10" ); |
366 | if (( i < 0 ) && ( d->m_font_size_list->count() > 0 )) | 366 | if (( i < 0 ) && ( d->m_font_size_list->count() > 0 )) |
367 | i = 0; | 367 | i = 0; |
368 | 368 | ||
369 | if ( i >= 0 ) | 369 | if ( i >= 0 ) |
370 | { | 370 | { |
371 | d->m_font_size_list->setCurrentItem ( i ); | 371 | d->m_font_size_list->setCurrentItem ( i ); |
372 | fontSizeClicked ( i ); | 372 | fontSizeClicked ( i ); |
373 | } | 373 | } |
374 | changeFont(); | 374 | changeFont(); |
375 | } | 375 | } |
376 | 376 | ||
377 | void OFontSelector::fontStyleClicked ( int /*index*/ ) | 377 | void OFontSelector::fontStyleClicked ( int /*index*/ ) |
378 | { | 378 | { |
379 | changeFont(); | 379 | changeFont(); |
380 | } | 380 | } |
381 | 381 | ||
382 | void OFontSelector::fontSizeClicked ( int /*index*/ ) | 382 | void OFontSelector::fontSizeClicked ( int /*index*/ ) |
383 | { | 383 | { |
384 | changeFont(); | 384 | changeFont(); |
385 | } | 385 | } |
386 | 386 | ||
387 | void OFontSelector::changeFont() | 387 | void OFontSelector::changeFont() |
388 | { | 388 | { |
389 | QFont f = selectedFont(); | 389 | QFont f = selectedFont(); |
390 | 390 | ||
391 | if ( d->m_preview ) | 391 | if ( d->m_preview ) |
392 | d->m_preview->setFont ( f ); | 392 | d->m_preview->setFont ( f ); |
393 | 393 | ||
394 | emit fontSelected ( f ); | 394 | emit fontSelected ( f ); |
395 | } | 395 | } |
396 | 396 | ||
397 | /** | 397 | /** |
398 | * Return the selected font | 398 | * Return the selected font |
399 | */ | 399 | */ |
400 | QFont OFontSelector::selectedFont() | 400 | QFont OFontSelector::selectedFont() |
401 | { | 401 | { |
402 | int ffa = d->m_font_family_list->currentItem(); | 402 | int ffa = d->m_font_family_list->currentItem(); |
403 | int fst = d->m_font_style_list->currentItem(); | 403 | int fst = d->m_font_style_list->currentItem(); |
404 | int fsi = d->m_font_size_list->currentItem(); | 404 | int fsi = d->m_font_size_list->currentItem(); |
405 | 405 | ||
406 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( ffa ); | 406 | FontListItem *fli = (FontListItem *) d->m_font_family_list->item ( ffa ); |
407 | 407 | ||
408 | if ( fli ) | 408 | if ( fli ) |
409 | { | 409 | { |
410 | return d->m_fdb. font ( fli->family(), \ | 410 | return d->m_fdb. font ( fli->family(), \ |
411 | fst >= 0 ? fli->styles() [fst] : QString::null, \ | 411 | fst >= 0 ? fli->styles() [fst] : QString::null, \ |
412 | fsi >= 0 ? fli->sizes() [fsi] : 10, \ | 412 | fsi >= 0 ? fli->sizes() [fsi] : 10, \ |
413 | d->m_fdb. charSets ( fli->family()) [0] ); | 413 | d->m_fdb. charSets ( fli->family()) [0] ); |
414 | } | 414 | } |
415 | else | 415 | else |
416 | return QFont(); | 416 | return QFont(); |
417 | } | 417 | } |
418 | 418 | ||
419 | void OFontSelector::resizeEvent ( QResizeEvent *re ) | 419 | void OFontSelector::resizeEvent ( QResizeEvent *re ) |
420 | { | 420 | { |
421 | if ( d->m_preview ) | 421 | if ( d->m_preview ) |
422 | { | 422 | { |
423 | d->m_preview->setMinimumHeight ( 1 ); | 423 | d->m_preview->setMinimumHeight ( 1 ); |
424 | d->m_preview->setMaximumHeight ( 32767 ); | 424 | d->m_preview->setMaximumHeight ( 32767 ); |
425 | } | 425 | } |
426 | 426 | ||
427 | QWidget::resizeEvent ( re ); | 427 | QWidget::resizeEvent ( re ); |
428 | 428 | ||
429 | if ( d->m_preview ) | 429 | if ( d->m_preview ) |
430 | d->m_preview->setFixedHeight ( d->m_preview->height()); | 430 | d->m_preview->setFixedHeight ( d->m_preview->height()); |
431 | 431 | ||
432 | } | 432 | } |
433 | 433 | ||
diff --git a/libopie2/opieui/opieui.pro b/libopie2/opieui/opieui.pro index ffa8b83..5525ea2 100644 --- a/libopie2/opieui/opieui.pro +++ b/libopie2/opieui/opieui.pro | |||
@@ -1,65 +1,65 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | DESTDIR = $(OPIEDIR)/lib | 3 | DESTDIR = $(OPIEDIR)/lib |
4 | HEADERS = oclickablelabel.h \ | 4 | HEADERS = oclickablelabel.h \ |
5 | odialog.h \ | 5 | odialog.h \ |
6 | ofontselector.h \ | 6 | ofontselector.h \ |
7 | oimageeffect.h \ | 7 | oimageeffect.h \ |
8 | okeyconfigwidget.h \ | 8 | okeyconfigwidget.h \ |
9 | oledbox.h \ | 9 | oledbox.h \ |
10 | olistview.h \ | 10 | olistview.h \ |
11 | opixmapeffect.h \ | 11 | opixmapeffect.h \ |
12 | opopupmenu.h \ | 12 | opopupmenu.h \ |
13 | opixmapprovider.h \ | 13 | opixmapprovider.h \ |
14 | oselector.h \ | 14 | oselector.h \ |
15 | oseparator.h \ | 15 | oseparator.h \ |
16 | otabinfo.h \ | 16 | otabinfo.h \ |
17 | otabbar.h \ | 17 | otabbar.h \ |
18 | otabwidget.h \ | 18 | otabwidget.h \ |
19 | otaskbarapplet.h \ | 19 | otaskbarapplet.h \ |
20 | otimepicker.h \ | 20 | otimepicker.h \ |
21 | oversatileview.h \ | 21 | oversatileview.h \ |
22 | oversatileviewitem.h \ | 22 | oversatileviewitem.h \ |
23 | owait.h | 23 | owait.h |
24 | 24 | ||
25 | SOURCES = oclickablelabel.cpp \ | 25 | SOURCES = oclickablelabel.cpp \ |
26 | odialog.cpp \ | 26 | odialog.cpp \ |
27 | ofontselector.cpp \ | 27 | ofontselector.cpp \ |
28 | oimageeffect.cpp \ | 28 | oimageeffect.cpp \ |
29 | okeyconfigwidget.cpp \ | 29 | okeyconfigwidget.cpp \ |
30 | oledbox.cpp \ | 30 | oledbox.cpp \ |
31 | olistview.cpp \ | 31 | olistview.cpp \ |
32 | opixmapeffect.cpp \ | 32 | opixmapeffect.cpp \ |
33 | opopupmenu.cpp \ | 33 | opopupmenu.cpp \ |
34 | opixmapprovider.cpp \ | 34 | opixmapprovider.cpp \ |
35 | oselector.cpp \ | 35 | oselector.cpp \ |
36 | oseparator.cpp \ | 36 | oseparator.cpp \ |
37 | otabbar.cpp \ | 37 | otabbar.cpp \ |
38 | otabwidget.cpp \ | 38 | otabwidget.cpp \ |
39 | otaskbarapplet.cpp \ | 39 | otaskbarapplet.cpp \ |
40 | otimepicker.cpp \ | 40 | otimepicker.cpp \ |
41 | oversatileview.cpp \ | 41 | oversatileview.cpp \ |
42 | oversatileviewitem.cpp \ | 42 | oversatileviewitem.cpp \ |
43 | owait.cpp | 43 | owait.cpp |
44 | 44 | ||
45 | include( big-screen/big-screen.pro ) | 45 | include( big-screen/big-screen.pro ) |
46 | include( fileselector/fileselector.pro ) | 46 | include( fileselector/fileselector.pro ) |
47 | 47 | ||
48 | INTERFACES = otimepickerbase.ui | 48 | INTERFACES = otimepickerbase.ui |
49 | 49 | ||
50 | TARGET = opieui2 | 50 | TARGET = opieui2 |
51 | VERSION = 1.9.0 | 51 | VERSION = 1.9.1 |
52 | 52 | ||
53 | INCLUDEPATH += $(OPIEDIR)/include | 53 | INCLUDEPATH += $(OPIEDIR)/include |
54 | DEPENDPATH += $(OPIEDIR)/include | 54 | DEPENDPATH += $(OPIEDIR)/include |
55 | 55 | ||
56 | LIBS += -lopiecore2 | 56 | LIBS += -lopiecore2 |
57 | 57 | ||
58 | !contains( platform, x11 ) { | 58 | !contains( platform, x11 ) { |
59 | include( $(OPIEDIR)/include.pro ) | 59 | include( $(OPIEDIR)/include.pro ) |
60 | } | 60 | } |
61 | 61 | ||
62 | contains( platform, x11 ) { | 62 | contains( platform, x11 ) { |
63 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | 63 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib |
64 | } | 64 | } |
65 | 65 | ||