author | mickeyl <mickeyl> | 2005-06-11 12:22:30 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-06-11 12:22:30 (UTC) |
commit | d13a1a3345270ea71215d421627665a40f16454c (patch) (unidiff) | |
tree | 58aa21f57fd6d08547756a9e68e78282ce554568 | |
parent | 9fe80ebf4fbe9b31d9f91a33e4cfc163b7236a62 (diff) | |
download | opie-d13a1a3345270ea71215d421627665a40f16454c.zip opie-d13a1a3345270ea71215d421627665a40f16454c.tar.gz opie-d13a1a3345270ea71215d421627665a40f16454c.tar.bz2 |
- read default profile fixed font specs from qpe.conf, if profile doesn't exist
- fix initial background color
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 20 |
2 files changed, 18 insertions, 3 deletions
@@ -1,300 +1,301 @@ | |||
1 | 2005-??-??Opie 1.2.1 | 1 | 2005-??-??Opie 1.2.1 |
2 | 2 | ||
3 | 3 | ||
4 | New Features | 4 | New Features |
5 | ------------ | 5 | ------------ |
6 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 6 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
7 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 7 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
8 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 8 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
9 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 9 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
10 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 10 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
11 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 11 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
12 | * Checkbook - added configuration option to use smaller font for checkbook transaction tab (hrw) | 12 | * Checkbook - added configuration option to use smaller font for checkbook transaction tab (hrw) |
13 | * ZSafe - make UI conform to Opie standards (drw) | 13 | * ZSafe - make UI conform to Opie standards (drw) |
14 | * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 14 | * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
15 | * Opie-Console: read initial fixed font configuration from qpe.conf (mickeyl) | ||
15 | 16 | ||
16 | Fixed Bugs | 17 | Fixed Bugs |
17 | ---------- | 18 | ---------- |
18 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) | 19 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) |
19 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) | 20 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) |
20 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) | 21 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) |
21 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) | 22 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) |
22 | * #1665 - Opie-IRC diplays the host prepended to the message when peer is using and ipv6 address (skyhusker) | 23 | * #1665 - Opie-IRC diplays the host prepended to the message when peer is using and ipv6 address (skyhusker) |
23 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) | 24 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) |
24 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) | 25 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) |
25 | * n.a.- always show volume and wireless applet popups inside visible screen (deller) | 26 | * n.a.- always show volume and wireless applet popups inside visible screen (deller) |
26 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) | 27 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) |
27 | * n.a.- libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) | 28 | * n.a.- libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) |
28 | * n.a.- Wellenreiter: relax WE version matching test a bit (mickeyl) | 29 | * n.a.- Wellenreiter: relax WE version matching test a bit (mickeyl) |
29 | * n.a.- scale BluezApplet appropriately and use larger icons (mickeyl) | 30 | * n.a.- scale BluezApplet appropriately and use larger icons (mickeyl) |
30 | * n.a.- memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) | 31 | * n.a.- memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) |
31 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) | 32 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) |
32 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 33 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
33 | 34 | ||
34 | Internal | 35 | Internal |
35 | -------- | 36 | -------- |
36 | * Make BluezApplet use OTaskbarApplet (mickeyl) | 37 | * Make BluezApplet use OTaskbarApplet (mickeyl) |
37 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) | 38 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) |
38 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) | 39 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) |
39 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) | 40 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) |
40 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) | 41 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) |
41 | * libopienet: Miscellaneous API cleanups (mickeyl) | 42 | * libopienet: Miscellaneous API cleanups (mickeyl) |
42 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) | 43 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) |
43 | 44 | ||
44 | 2005-03-25Opie 1.2.0 | 45 | 2005-03-25Opie 1.2.0 |
45 | 46 | ||
46 | Fixed Bugs | 47 | Fixed Bugs |
47 | ---------- | 48 | ---------- |
48 | * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) | 49 | * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) |
49 | * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) | 50 | * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) |
50 | * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) | 51 | * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) |
51 | * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) | 52 | * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) |
52 | * n.a.- make qpeglobal.h include qglobal.h (zecke) | 53 | * n.a.- make qpeglobal.h include qglobal.h (zecke) |
53 | 54 | ||
54 | 2005-03-20Opie 1.2.0-rc1 | 55 | 2005-03-20Opie 1.2.0-rc1 |
55 | 56 | ||
56 | 57 | ||
57 | New Features | 58 | New Features |
58 | ------------ | 59 | ------------ |
59 | * Launcher: Support a static background pixmap (mickeyl) | 60 | * Launcher: Support a static background pixmap (mickeyl) |
60 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) | 61 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) |
61 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) | 62 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) |
62 | * Added hi-res inline images for large resolution devices (drw) | 63 | * Added hi-res inline images for large resolution devices (drw) |
63 | * Improved launcher icons for consistency (ar) | 64 | * Improved launcher icons for consistency (ar) |
64 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) | 65 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) |
65 | 66 | ||
66 | Fixed Bugs | 67 | Fixed Bugs |
67 | ---------- | 68 | ---------- |
68 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) | 69 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) |
69 | * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) | 70 | * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) |
70 | * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) | 71 | * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) |
71 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) | 72 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) |
72 | * #1482 - Fix double '/' in paths (zecke) | 73 | * #1482 - Fix double '/' in paths (zecke) |
73 | * #1536 - Autosave of custom locations in opie backup (ar) | 74 | * #1536 - Autosave of custom locations in opie backup (ar) |
74 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) | 75 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) |
75 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) | 76 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) |
76 | * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) | 77 | * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) |
77 | * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) | 78 | * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) |
78 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) | 79 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) |
79 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) | 80 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) |
80 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) | 81 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) |
81 | * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning) | 82 | * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning) |
82 | * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) | 83 | * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) |
83 | * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers) | 84 | * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers) |
84 | * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) | 85 | * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) |
85 | * #1604 - Checkbook crashed on startup (drw) | 86 | * #1604 - Checkbook crashed on startup (drw) |
86 | * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) | 87 | * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) |
87 | * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) | 88 | * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) |
88 | * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) | 89 | * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) |
89 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) | 90 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) |
90 | * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) | 91 | * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) |
91 | * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) | 92 | * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) |
92 | * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) | 93 | * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) |
93 | * n.a. - AddressBook - fixed sorting by 'File As' name (drw) | 94 | * n.a. - AddressBook - fixed sorting by 'File As' name (drw) |
94 | * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) | 95 | * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) |
95 | * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) | 96 | * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) |
96 | 97 | ||
97 | Internal | 98 | Internal |
98 | -------- | 99 | -------- |
99 | * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) | 100 | * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) |
100 | * Killed the need for weak symbols in QtE (zecke) | 101 | * Killed the need for weak symbols in QtE (zecke) |
101 | * Added optional building libqpe without inline images (mickeyl) | 102 | * Added optional building libqpe without inline images (mickeyl) |
102 | * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) | 103 | * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) |
103 | 104 | ||
104 | 2005-02-03Opie 1.1.9 | 105 | 2005-02-03Opie 1.1.9 |
105 | 106 | ||
106 | New Features | 107 | New Features |
107 | ------------ | 108 | ------------ |
108 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) | 109 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) |
109 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) | 110 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) |
110 | * Usability enhancements in OpieIRC (skyhusker) | 111 | * Usability enhancements in OpieIRC (skyhusker) |
111 | 112 | ||
112 | Fixed Bugs | 113 | Fixed Bugs |
113 | ---------- | 114 | ---------- |
114 | * #1501 - Fixed bug in todo sql backend (eilers) | 115 | * #1501 - Fixed bug in todo sql backend (eilers) |
115 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) | 116 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) |
116 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) | 117 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) |
117 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) | 118 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) |
118 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) | 119 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) |
119 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) | 120 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) |
120 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) | 121 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) |
121 | 122 | ||
122 | Internal | 123 | Internal |
123 | -------- | 124 | -------- |
124 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) | 125 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) |
125 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) | 126 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) |
126 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) | 127 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) |
127 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) | 128 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) |
128 | * Build tree cleanups (mickeyl) | 129 | * Build tree cleanups (mickeyl) |
129 | 130 | ||
130 | 2004-11-26Opie 1.1.8 | 131 | 2004-11-26Opie 1.1.8 |
131 | 132 | ||
132 | New Features | 133 | New Features |
133 | ------------ | 134 | ------------ |
134 | * PackageManager supports installation of local ipkg files (drw) | 135 | * PackageManager supports installation of local ipkg files (drw) |
135 | * PackageManager supports linking of applications to root (drw) | 136 | * PackageManager supports linking of applications to root (drw) |
136 | * PackageManager supports src/gz feeds (drw,wimpie) | 137 | * PackageManager supports src/gz feeds (drw,wimpie) |
137 | * Added a syslog information tab to sysinfo (mickeyl) | 138 | * Added a syslog information tab to sysinfo (mickeyl) |
138 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) | 139 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) |
139 | 140 | ||
140 | Fixed Bugs | 141 | Fixed Bugs |
141 | ---------- | 142 | ---------- |
142 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) | 143 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) |
143 | * #1269 - VCards were imported into personal area if it was activated (eilers) | 144 | * #1269 - VCards were imported into personal area if it was activated (eilers) |
144 | * #1464 - Packagemanager dont set active filter after install a package (drw) | 145 | * #1464 - Packagemanager dont set active filter after install a package (drw) |
145 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) | 146 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) |
146 | * #1493 - Fixed one column layout bug of the launcher (hrw) | 147 | * #1493 - Fixed one column layout bug of the launcher (hrw) |
147 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) | 148 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) |
148 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) | 149 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) |
149 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) | 150 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) |
150 | 151 | ||
151 | Internal | 152 | Internal |
152 | -------- | 153 | -------- |
153 | * Moved libopie1 to unsupported (mickeyl) | 154 | * Moved libopie1 to unsupported (mickeyl) |
154 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) | 155 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) |
155 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) | 156 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) |
156 | 157 | ||
157 | 2004-11-14Opie 1.1.7 | 158 | 2004-11-14Opie 1.1.7 |
158 | 159 | ||
159 | New Features | 160 | New Features |
160 | ------------ | 161 | ------------ |
161 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) | 162 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) |
162 | * Backup now uses the busy indicator when backing up and restore (ar) | 163 | * Backup now uses the busy indicator when backing up and restore (ar) |
163 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) | 164 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) |
164 | * OpiePlayer2 better error handling (zecke) | 165 | * OpiePlayer2 better error handling (zecke) |
165 | * OpiePlayer2 progress indication while streaming (zecke) | 166 | * OpiePlayer2 progress indication while streaming (zecke) |
166 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) | 167 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) |
167 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) | 168 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) |
168 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) | 169 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) |
169 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) | 170 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) |
170 | * Opie-Console use Custom Font and Size in a Profile (harlekin) | 171 | * Opie-Console use Custom Font and Size in a Profile (harlekin) |
171 | * Opie-Console transparently log the Output and Input to a file (harlekin) | 172 | * Opie-Console transparently log the Output and Input to a file (harlekin) |
172 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) | 173 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) |
173 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) | 174 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) |
174 | * Opie-Security gained a 'test authentication' button (clem) | 175 | * Opie-Security gained a 'test authentication' button (clem) |
175 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults | 176 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults |
176 | * Opie-Mail improve the handling of POP mail boxes (alwin) | 177 | * Opie-Mail improve the handling of POP mail boxes (alwin) |
177 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) | 178 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) |
178 | * Opie IRC - backports of the 'NeIRC fork' (zecke) | 179 | * Opie IRC - backports of the 'NeIRC fork' (zecke) |
179 | 180 | ||
180 | Fixed Bugs | 181 | Fixed Bugs |
181 | ---------- | 182 | ---------- |
182 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) | 183 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) |
183 | * #608 - Make Opie usable for left handed users (zecke) | 184 | * #608 - Make Opie usable for left handed users (zecke) |
184 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) | 185 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) |
185 | * #1245 - Opie-Go 'paused' (zecke) | 186 | * #1245 - Opie-Go 'paused' (zecke) |
186 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) | 187 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) |
187 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) | 188 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) |
188 | * #1395 - Build VNC Backend with gcc3.4 | 189 | * #1395 - Build VNC Backend with gcc3.4 |
189 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) | 190 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) |
190 | * #1426 - Add missing opie-bartender Icon (CoreDump) | 191 | * #1426 - Add missing opie-bartender Icon (CoreDump) |
191 | * #1445 - Opie-Sheet Has No Icon (CoreDump) | 192 | * #1445 - Opie-Sheet Has No Icon (CoreDump) |
192 | * #1448 - Brightness Applet added (mickeyl) | 193 | * #1448 - Brightness Applet added (mickeyl) |
193 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) | 194 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) |
194 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) | 195 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) |
195 | * n.a. - Opie-mail: fixed some crasher, some layout-problems | 196 | * n.a. - Opie-mail: fixed some crasher, some layout-problems |
196 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) | 197 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) |
197 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) | 198 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) |
198 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) | 199 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) |
199 | * 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) | 200 | * 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) |
200 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) | 201 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) |
201 | 202 | ||
202 | Internal | 203 | Internal |
203 | -------- | 204 | -------- |
204 | * Opie-Qashmoney has been moved to unsupported (mickeyl) | 205 | * Opie-Qashmoney has been moved to unsupported (mickeyl) |
205 | * Opie-Ubrowser has been moved to unsupported (mickeyl) | 206 | * Opie-Ubrowser has been moved to unsupported (mickeyl) |
206 | 207 | ||
207 | 2004-09-17Opie 1.1.6 | 208 | 2004-09-17Opie 1.1.6 |
208 | 209 | ||
209 | New Features | 210 | New Features |
210 | ------------ | 211 | ------------ |
211 | * Fifteen gained configurable number of items (zecke) | 212 | * Fifteen gained configurable number of items (zecke) |
212 | * Fifteen can have custom background images (zecke) | 213 | * Fifteen can have custom background images (zecke) |
213 | * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) | 214 | * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) |
214 | * Integrated the new security framework into libopie2 (zecke,clem) | 215 | * Integrated the new security framework into libopie2 (zecke,clem) |
215 | * Converted the launcher to use the new security framework (zecke) | 216 | * Converted the launcher to use the new security framework (zecke) |
216 | * Backup can now handle custom locations for backup and restore (ar) | 217 | * Backup can now handle custom locations for backup and restore (ar) |
217 | * Implemented right-on-hold feedback (wimpie,zecke) | 218 | * Implemented right-on-hold feedback (wimpie,zecke) |
218 | * Lots of new features in opie-reader (tim,pohly) | 219 | * Lots of new features in opie-reader (tim,pohly) |
219 | * Build system cleanups (schurig) | 220 | * Build system cleanups (schurig) |
220 | 221 | ||
221 | Fixed Bugs | 222 | Fixed Bugs |
222 | -------- | 223 | -------- |
223 | * #1005 - Fixed backup to CompactFlash (ar) | 224 | * #1005 - Fixed backup to CompactFlash (ar) |
224 | * #1167 - Fixed Opie write crashing on more text than one page (ar) | 225 | * #1167 - Fixed Opie write crashing on more text than one page (ar) |
225 | * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) | 226 | * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) |
226 | * #1359 - Fixed bookmarks in Gutenbrowser (ljp) | 227 | * #1359 - Fixed bookmarks in Gutenbrowser (ljp) |
227 | * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) | 228 | * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) |
228 | * #1370 - Pimconverter now reacts on cancel key (eilers) | 229 | * #1370 - Pimconverter now reacts on cancel key (eilers) |
229 | * #1376 - Bring back the capslock/numlock display (zecke) | 230 | * #1376 - Bring back the capslock/numlock display (zecke) |
230 | * #1383 - Language settings now warns about losing open apps (Markus Litz) | 231 | * #1383 - Language settings now warns about losing open apps (Markus Litz) |
231 | * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl) | 232 | * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl) |
232 | * #1394 - Fixed oversized headline in opie-login (coredump) | 233 | * #1394 - Fixed oversized headline in opie-login (coredump) |
233 | * #1396 - Opie-console captures the escape key and vim is working (zecke) | 234 | * #1396 - Opie-console captures the escape key and vim is working (zecke) |
234 | * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl) | 235 | * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl) |
235 | 236 | ||
236 | 2004-07-06Opie 1.1.4 | 237 | 2004-07-06Opie 1.1.4 |
237 | 238 | ||
238 | New Features | 239 | New Features |
239 | ------------ | 240 | ------------ |
240 | * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) | 241 | * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) |
241 | * Added Conversion tool for pim-data (eilers) | 242 | * Added Conversion tool for pim-data (eilers) |
242 | * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) | 243 | * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) |
243 | * Modified the PIM API for providing generic use of OPimRecords (eilers) | 244 | * Modified the PIM API for providing generic use of OPimRecords (eilers) |
244 | * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) | 245 | * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) |
245 | 246 | ||
246 | Fixed Bugs | 247 | Fixed Bugs |
247 | -------- | 248 | -------- |
248 | * #1068 - Country Drop Down Box Off Screen | 249 | * #1068 - Country Drop Down Box Off Screen |
249 | * #1291 - Opie tinykate does not open .desktop files (ar) | 250 | * #1291 - Opie tinykate does not open .desktop files (ar) |
250 | * #1291 - Opie sheet not saving correctly (ar) | 251 | * #1291 - Opie sheet not saving correctly (ar) |
251 | * #1294 - Opie does not know about British Summer Time | 252 | * #1294 - Opie does not know about British Summer Time |
252 | * #1314 - Drawpad initialization (mickeyl) | 253 | * #1314 - Drawpad initialization (mickeyl) |
253 | * #1317 - Packagemanager crashes on hold-down or install (chicken) | 254 | * #1317 - Packagemanager crashes on hold-down or install (chicken) |
254 | * #1321 - Batteryapplet graphic glitch (harlekin) | 255 | * #1321 - Batteryapplet graphic glitch (harlekin) |
255 | * #1324 - ZSafe not starting up (mickeyl) | 256 | * #1324 - ZSafe not starting up (mickeyl) |
256 | * #1328 - Personal Home Address fields is trimmed to 1char (eilers) | 257 | * #1328 - Personal Home Address fields is trimmed to 1char (eilers) |
257 | * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) | 258 | * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) |
258 | * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) | 259 | * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) |
259 | * #1348 - Datebook dependency on libopiedb2 (chicken) | 260 | * #1348 - Datebook dependency on libopiedb2 (chicken) |
260 | * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) | 261 | * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) |
261 | 262 | ||
262 | 2004-04-25Opie 1.1.3 | 263 | 2004-04-25Opie 1.1.3 |
263 | 264 | ||
264 | * Introduced first implementation of SQL-Support using SQLite (eilers) | 265 | * Introduced first implementation of SQL-Support using SQLite (eilers) |
265 | * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) | 266 | * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) |
266 | * Added a real system graffiti character set (brad) | 267 | * Added a real system graffiti character set (brad) |
267 | * Added Generic Keyconfig Widget (zecke) | 268 | * Added Generic Keyconfig Widget (zecke) |
268 | * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) | 269 | * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) |
269 | * Added new Bible reader app - opie-dagger (drw) | 270 | * Added new Bible reader app - opie-dagger (drw) |
270 | * Added a new Image Viewer. Work is ongoing (zecke,alwin) | 271 | * Added a new Image Viewer. Work is ongoing (zecke,alwin) |
271 | * Added namespace usage in libopie2 and everywhere (zecke,alwin) | 272 | * Added namespace usage in libopie2 and everywhere (zecke,alwin) |
272 | * Enabled the possibility to pass command line arguments to applications (mickeyl) | 273 | * Enabled the possibility to pass command line arguments to applications (mickeyl) |
273 | * Added an about applet showing some credits and information about Opie (mickeyl) | 274 | * Added an about applet showing some credits and information about Opie (mickeyl) |
274 | * Added benchmarking functionality to sysinfo (mickeyl) | 275 | * Added benchmarking functionality to sysinfo (mickeyl) |
275 | * Added applet and configuration application for switching hardware keyboard layouts (alwin) | 276 | * Added applet and configuration application for switching hardware keyboard layouts (alwin) |
276 | * Ported applications from libopie1 to libopie2* (drw,ar,alwin) | 277 | * Ported applications from libopie1 to libopie2* (drw,ar,alwin) |
277 | * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) | 278 | * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) |
278 | * Clean-up of package information in control files (drw) | 279 | * Clean-up of package information in control files (drw) |
279 | * Repaired mediummount which was broken since integrating the quicklauncher (alwin) | 280 | * Repaired mediummount which was broken since integrating the quicklauncher (alwin) |
280 | * Improved big-screen support (zecke,ar) | 281 | * Improved big-screen support (zecke,ar) |
281 | * Improved multikeyboard support, added keyboard layout switching applet (mouse) | 282 | * Improved multikeyboard support, added keyboard layout switching applet (mouse) |
282 | * Added a new mail client based on libetpan (harlekin,alwin,jgf) | 283 | * Added a new mail client based on libetpan (harlekin,alwin,jgf) |
283 | * Added new package manager - opie-packagemanager (drw) | 284 | * Added new package manager - opie-packagemanager (drw) |
284 | * Improved light-n-power for C7x0 (mickeyl) | 285 | * Improved light-n-power for C7x0 (mickeyl) |
285 | * Added automatic rotation support for C7x0 (treke) | 286 | * Added automatic rotation support for C7x0 (treke) |
286 | * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) | 287 | * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) |
287 | * Added scanning the wireless network neighbourhood to networksettings (mickeyl) | 288 | * Added scanning the wireless network neighbourhood to networksettings (mickeyl) |
288 | 289 | ||
289 | 2003-11-29Opie 1.0.3 | 290 | 2003-11-29Opie 1.0.3 |
290 | 291 | ||
291 | * Released as Version 1.0.3 | 292 | * Released as Version 1.0.3 |
292 | * Improved i18n (various contributors) | 293 | * Improved i18n (various contributors) |
293 | * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) | 294 | * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) |
294 | * Made the Documents Tab optional (mickeyl) | 295 | * Made the Documents Tab optional (mickeyl) |
295 | * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) | 296 | * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) |
296 | 297 | ||
297 | 2003-08-04Opie 1.0.0 | 298 | 2003-08-04Opie 1.0.0 |
298 | 299 | ||
299 | * Released as Version 1.0.0 | 300 | * Released as Version 1.0.0 |
300 | * Including a PPP module for easy dial up (tille,harlekin,zecke) | 301 | * Including a PPP module for easy dial up (tille,harlekin,zecke) |
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 986ae8d..2087f57 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -1,238 +1,252 @@ | |||
1 | #include "TEmuVt102.h" | 1 | #include "TEmuVt102.h" |
2 | #include "profile.h" | 2 | #include "profile.h" |
3 | #include "emulation_handler.h" | 3 | #include "emulation_handler.h" |
4 | #include "script.h" | 4 | #include "script.h" |
5 | #include "logger.h" | 5 | #include "logger.h" |
6 | 6 | ||
7 | /* OPIE */ | ||
8 | #include <qpe/config.h> | ||
9 | |||
10 | /* QT */ | ||
7 | #include <qfile.h> | 11 | #include <qfile.h> |
8 | #include <qtextstream.h> | 12 | #include <qtextstream.h> |
9 | 13 | ||
10 | EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const char* name ) | 14 | EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const char* name ) |
11 | : QObject(0, name ) | 15 | : QObject(0, name ) |
12 | { | 16 | { |
13 | m_teWid = new TEWidget( parent, "TerminalMain"); | 17 | m_teWid = new TEWidget( parent, "TerminalMain"); |
14 | // use setWrapAt(0) for classic behaviour (wrap at screen width, no scrollbar) | 18 | // use setWrapAt(0) for classic behaviour (wrap at screen width, no scrollbar) |
15 | // use setWrapAt(80) for normal console with scrollbar | 19 | // use setWrapAt(80) for normal console with scrollbar |
16 | setWrap(prof.readNumEntry("Wrap", 80) ? 0 : 80); | 20 | setWrap(prof.readNumEntry("Wrap", 80) ? 0 : 80); |
17 | m_teWid->setMinimumSize(150, 70 ); | 21 | m_teWid->setMinimumSize(150, 70 ); |
18 | m_script = 0; | 22 | m_script = 0; |
19 | m_log = 0; | 23 | m_log = 0; |
20 | parent->resize( m_teWid->calcSize(80, 24 ) ); | 24 | parent->resize( m_teWid->calcSize(80, 24 ) ); |
21 | m_teEmu = new TEmuVt102(m_teWid ); | 25 | m_teEmu = new TEmuVt102(m_teWid ); |
22 | 26 | ||
23 | connect(m_teEmu,SIGNAL(ImageSizeChanged(int,int) ), | 27 | connect(m_teEmu,SIGNAL(ImageSizeChanged(int,int) ), |
24 | this, SIGNAL(changeSize(int,int) ) ); | 28 | this, SIGNAL(changeSize(int,int) ) ); |
25 | connect(m_teEmu, SIGNAL(sndBlock(const char*,int) ), | 29 | connect(m_teEmu, SIGNAL(sndBlock(const char*,int) ), |
26 | this, SLOT(recvEmulation(const char*,int) ) ); | 30 | this, SLOT(recvEmulation(const char*,int) ) ); |
27 | m_teEmu->setConnect( true ); | 31 | m_teEmu->setConnect( true ); |
28 | m_teEmu->setHistory( TRUE ); | 32 | m_teEmu->setHistory( TRUE ); |
29 | load( prof ); | 33 | load( prof ); |
30 | 34 | ||
31 | 35 | ||
32 | 36 | ||
33 | } | 37 | } |
34 | TEmulation* EmulationHandler::emulation() { | 38 | TEmulation* EmulationHandler::emulation() { |
35 | return m_teEmu; | 39 | return m_teEmu; |
36 | } | 40 | } |
37 | EmulationHandler::~EmulationHandler() { | 41 | EmulationHandler::~EmulationHandler() { |
38 | if (isRecording()) | 42 | if (isRecording()) |
39 | clearScript(); | 43 | clearScript(); |
40 | delete m_teEmu; | 44 | delete m_teEmu; |
41 | delete m_teWid; | 45 | delete m_teWid; |
42 | delete m_log; | 46 | delete m_log; |
43 | } | 47 | } |
44 | 48 | ||
45 | void EmulationHandler::load( const Profile& prof) { | 49 | void EmulationHandler::load( const Profile& prof) { |
46 | 50 | ||
47 | // m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); | 51 | // try to read the fontconfig from the profile |
48 | QFont font( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal ); | 52 | QString aFont = prof.readEntry( "Font" ); |
53 | int aFontSize = prof.readNumEntry( "FontSize" ); | ||
54 | // use defaults from qpe.conf if no profile yet | ||
55 | if ( ( aFontSize == -1 ) || ( aFont == QString::null ) ) | ||
56 | { | ||
57 | Config c( "qpe" ); | ||
58 | c.setGroup( "Appearance" ); | ||
59 | aFont = c.readEntry( "FixedFontFamily", "Fixed" ); | ||
60 | aFontSize = c.readNumEntry( "FixedFontSize", 7 ); | ||
61 | } | ||
62 | QFont font( aFont, aFontSize ); | ||
49 | font.setFixedPitch( TRUE ); | 63 | font.setFixedPitch( TRUE ); |
50 | m_teWid->setVTFont( font ); | 64 | m_teWid->setVTFont( font ); |
51 | 65 | ||
52 | int num = prof.readNumEntry("Color"); | 66 | int num = prof.readNumEntry("Color", 0); |
53 | setColor( foreColor(num), backColor(num) ); | 67 | setColor( foreColor(num), backColor(num) ); |
54 | m_teWid->setBackgroundColor(backColor(num) ); | 68 | m_teWid->setBackgroundColor(backColor(num) ); |
55 | 69 | ||
56 | int term = prof.readNumEntry("Terminal", 0) ; | 70 | int term = prof.readNumEntry("Terminal", 0) ; |
57 | switch(term) { | 71 | switch(term) { |
58 | default: | 72 | default: |
59 | case Profile::VT102: | 73 | case Profile::VT102: |
60 | case Profile::VT100: | 74 | case Profile::VT100: |
61 | m_teEmu->setKeytrans("vt100.keytab"); | 75 | m_teEmu->setKeytrans("vt100.keytab"); |
62 | break; | 76 | break; |
63 | case Profile::Linux: | 77 | case Profile::Linux: |
64 | m_teEmu->setKeytrans("linux.keytab"); | 78 | m_teEmu->setKeytrans("linux.keytab"); |
65 | break; | 79 | break; |
66 | case Profile::XTerm: | 80 | case Profile::XTerm: |
67 | m_teEmu->setKeytrans("default.Keytab"); | 81 | m_teEmu->setKeytrans("default.Keytab"); |
68 | break; | 82 | break; |
69 | } | 83 | } |
70 | } | 84 | } |
71 | void EmulationHandler::recv( const QByteArray& ar) { | 85 | void EmulationHandler::recv( const QByteArray& ar) { |
72 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); | 86 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); |
73 | if ( isLogging() ) { | 87 | if ( isLogging() ) { |
74 | m_log->append( ar ); | 88 | m_log->append( ar ); |
75 | } | 89 | } |
76 | } | 90 | } |
77 | 91 | ||
78 | void EmulationHandler::recvEmulation(const char* src, int len ) { | 92 | void EmulationHandler::recvEmulation(const char* src, int len ) { |
79 | QByteArray ar(len); | 93 | QByteArray ar(len); |
80 | 94 | ||
81 | memcpy(ar.data(), src, sizeof(char) * len ); | 95 | memcpy(ar.data(), src, sizeof(char) * len ); |
82 | if (isRecording()) | 96 | if (isRecording()) |
83 | m_script->append(ar); | 97 | m_script->append(ar); |
84 | emit send(ar); | 98 | emit send(ar); |
85 | } | 99 | } |
86 | 100 | ||
87 | 101 | ||
88 | QWidget* EmulationHandler::widget() { | 102 | QWidget* EmulationHandler::widget() { |
89 | return m_teWid; | 103 | return m_teWid; |
90 | } | 104 | } |
91 | /* | 105 | /* |
92 | * allocate a new table of colors | 106 | * allocate a new table of colors |
93 | */ | 107 | */ |
94 | void EmulationHandler::setColor( const QColor& fore, const QColor& back ) { | 108 | void EmulationHandler::setColor( const QColor& fore, const QColor& back ) { |
95 | ColorEntry table[TABLE_COLORS]; | 109 | ColorEntry table[TABLE_COLORS]; |
96 | const ColorEntry *defaultCt = m_teWid->getdefaultColorTable(); | 110 | const ColorEntry *defaultCt = m_teWid->getdefaultColorTable(); |
97 | 111 | ||
98 | for (int i = 0; i < TABLE_COLORS; i++ ) { | 112 | for (int i = 0; i < TABLE_COLORS; i++ ) { |
99 | if ( i == 0 || i == 10 ) { | 113 | if ( i == 0 || i == 10 ) { |
100 | table[i].color = fore; | 114 | table[i].color = fore; |
101 | }else if ( i == 1 || i == 11 ) { | 115 | }else if ( i == 1 || i == 11 ) { |
102 | table[i].color = back; | 116 | table[i].color = back; |
103 | table[i].transparent = 0; | 117 | table[i].transparent = 0; |
104 | }else { | 118 | }else { |
105 | table[i].color = defaultCt[i].color; | 119 | table[i].color = defaultCt[i].color; |
106 | } | 120 | } |
107 | } | 121 | } |
108 | m_teWid->setColorTable(table ); | 122 | m_teWid->setColorTable(table ); |
109 | m_teWid->update(); | 123 | m_teWid->update(); |
110 | } | 124 | } |
111 | QFont EmulationHandler::font( int id ) { | 125 | QFont EmulationHandler::font( int id ) { |
112 | QString name; | 126 | QString name; |
113 | int size = 0; | 127 | int size = 0; |
114 | switch(id ) { | 128 | switch(id ) { |
115 | default: // fall through | 129 | default: // fall through |
116 | case 0: | 130 | case 0: |
117 | name = QString::fromLatin1("Micro"); | 131 | name = QString::fromLatin1("Micro"); |
118 | size = 4; | 132 | size = 4; |
119 | break; | 133 | break; |
120 | case 1: | 134 | case 1: |
121 | name = QString::fromLatin1("Fixed"); | 135 | name = QString::fromLatin1("Fixed"); |
122 | size = 7; | 136 | size = 7; |
123 | break; | 137 | break; |
124 | case 2: | 138 | case 2: |
125 | name = QString::fromLatin1("Fixed"); | 139 | name = QString::fromLatin1("Fixed"); |
126 | size = 12; | 140 | size = 12; |
127 | break; | 141 | break; |
128 | } | 142 | } |
129 | QFont font(name, size, QFont::Normal ); | 143 | QFont font(name, size, QFont::Normal ); |
130 | font.setFixedPitch(TRUE ); | 144 | font.setFixedPitch(TRUE ); |
131 | return font; | 145 | return font; |
132 | } | 146 | } |
133 | QColor EmulationHandler::foreColor(int col) { | 147 | QColor EmulationHandler::foreColor(int col) { |
134 | QColor co; | 148 | QColor co; |
135 | /* we need to switch it */ | 149 | /* we need to switch it */ |
136 | switch( col ) { | 150 | switch( col ) { |
137 | default: | 151 | default: |
138 | case Profile::White: | 152 | case Profile::White: |
139 | /* color is black */ | 153 | /* color is black */ |
140 | co = Qt::white; | 154 | co = Qt::white; |
141 | break; | 155 | break; |
142 | case Profile::Black: | 156 | case Profile::Black: |
143 | co = Qt::black; | 157 | co = Qt::black; |
144 | break; | 158 | break; |
145 | case Profile::Green: | 159 | case Profile::Green: |
146 | co = Qt::green; | 160 | co = Qt::green; |
147 | break; | 161 | break; |
148 | case Profile::Orange: | 162 | case Profile::Orange: |
149 | co.setRgb( 231, 184, 98 ); | 163 | co.setRgb( 231, 184, 98 ); |
150 | break; | 164 | break; |
151 | } | 165 | } |
152 | 166 | ||
153 | return co; | 167 | return co; |
154 | } | 168 | } |
155 | QColor EmulationHandler::backColor(int col ) { | 169 | QColor EmulationHandler::backColor(int col ) { |
156 | QColor co; | 170 | QColor co; |
157 | /* we need to switch it */ | 171 | /* we need to switch it */ |
158 | switch( col ) { | 172 | switch( col ) { |
159 | default: | 173 | default: |
160 | case Profile::White: | 174 | case Profile::White: |
161 | /* color is white */ | 175 | /* color is white */ |
162 | co = Qt::black; | 176 | co = Qt::black; |
163 | break; | 177 | break; |
164 | case Profile::Black: | 178 | case Profile::Black: |
165 | co = Qt::white; | 179 | co = Qt::white; |
166 | break; | 180 | break; |
167 | case Profile::Green: | 181 | case Profile::Green: |
168 | co = Qt::black; | 182 | co = Qt::black; |
169 | break; | 183 | break; |
170 | case Profile::Orange: | 184 | case Profile::Orange: |
171 | co = Qt::black; | 185 | co = Qt::black; |
172 | break; | 186 | break; |
173 | } | 187 | } |
174 | 188 | ||
175 | return co; | 189 | return co; |
176 | } | 190 | } |
177 | 191 | ||
178 | QPushButton* EmulationHandler::cornerButton() { | 192 | QPushButton* EmulationHandler::cornerButton() { |
179 | return m_teWid->cornerButton(); | 193 | return m_teWid->cornerButton(); |
180 | } | 194 | } |
181 | 195 | ||
182 | 196 | ||
183 | Script *EmulationHandler::script() { | 197 | Script *EmulationHandler::script() { |
184 | return m_script; | 198 | return m_script; |
185 | } | 199 | } |
186 | 200 | ||
187 | bool EmulationHandler::isRecording() { | 201 | bool EmulationHandler::isRecording() { |
188 | return (m_script != 0); | 202 | return (m_script != 0); |
189 | } | 203 | } |
190 | 204 | ||
191 | bool EmulationHandler::isLogging() { | 205 | bool EmulationHandler::isLogging() { |
192 | return (m_log != 0); | 206 | return (m_log != 0); |
193 | } | 207 | } |
194 | 208 | ||
195 | void EmulationHandler::startRecording() { | 209 | void EmulationHandler::startRecording() { |
196 | if (!isRecording()) | 210 | if (!isRecording()) |
197 | m_script = new Script(); | 211 | m_script = new Script(); |
198 | } | 212 | } |
199 | 213 | ||
200 | void EmulationHandler::startLogging(const QString fileName) { | 214 | void EmulationHandler::startLogging(const QString fileName) { |
201 | m_logFileName = fileName; | 215 | m_logFileName = fileName; |
202 | if (!isLogging()) | 216 | if (!isLogging()) |
203 | m_log = new Logger(m_logFileName); | 217 | m_log = new Logger(m_logFileName); |
204 | } | 218 | } |
205 | 219 | ||
206 | QString EmulationHandler::logFileName() { | 220 | QString EmulationHandler::logFileName() { |
207 | return m_logFileName; | 221 | return m_logFileName; |
208 | } | 222 | } |
209 | 223 | ||
210 | void EmulationHandler::clearScript() { | 224 | void EmulationHandler::clearScript() { |
211 | if (isRecording()) { | 225 | if (isRecording()) { |
212 | delete m_script; | 226 | delete m_script; |
213 | m_script = 0; | 227 | m_script = 0; |
214 | } | 228 | } |
215 | } | 229 | } |
216 | 230 | ||
217 | void EmulationHandler::clearLog() { | 231 | void EmulationHandler::clearLog() { |
218 | if (isLogging()) { | 232 | if (isLogging()) { |
219 | delete m_log; | 233 | delete m_log; |
220 | m_log = 0; | 234 | m_log = 0; |
221 | } | 235 | } |
222 | } | 236 | } |
223 | 237 | ||
224 | void EmulationHandler::runScript(const Script *script) { | 238 | void EmulationHandler::runScript(const Script *script) { |
225 | emit send(script->script()); | 239 | emit send(script->script()); |
226 | } | 240 | } |
227 | 241 | ||
228 | void EmulationHandler::copy() { | 242 | void EmulationHandler::copy() { |
229 | m_teWid->emitSelection(); | 243 | m_teWid->emitSelection(); |
230 | } | 244 | } |
231 | void EmulationHandler::paste() { | 245 | void EmulationHandler::paste() { |
232 | m_teWid->pasteClipboard(); | 246 | m_teWid->pasteClipboard(); |
233 | } | 247 | } |
234 | 248 | ||
235 | void EmulationHandler::setWrap(int columns) { | 249 | void EmulationHandler::setWrap(int columns) { |
236 | m_teWid->setWrapAt(columns); | 250 | m_teWid->setWrapAt(columns); |
237 | } | 251 | } |
238 | 252 | ||