summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog2
-rw-r--r--core/pim/today/plugins/datebook/datebookevent.cpp8
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 967e68a..b917c4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,101 +1,103 @@
1 2005-??-??Opie 1.2.1 1 2005-??-??Opie 1.2.1
2 2
3 Fixed Bugs 3 Fixed Bugs
4 ---------- 4 ----------
5 * n.a.- scale O-Menu-Applets appropriately (mickeyl) 5 * n.a.- scale O-Menu-Applets appropriately (mickeyl)
6 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller)
7 * n.a.- always show volume and wireless applet popups inside visible screen (deller)
6 8
7 2005-03-25Opie 1.2.0 9 2005-03-25Opie 1.2.0
8 10
9 Fixed Bugs 11 Fixed Bugs
10 ---------- 12 ----------
11 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) 13 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw)
12 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) 14 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin)
13 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) 15 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke)
14 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) 16 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw)
15 * n.a. - make qpeglobal.h include qglobal.h (zecke) 17 * n.a. - make qpeglobal.h include qglobal.h (zecke)
16 18
17 2005-03-20Opie 1.2.0-rc1 19 2005-03-20Opie 1.2.0-rc1
18 20
19 21
20 New Features 22 New Features
21 ------------ 23 ------------
22 * Launcher: Support a static background pixmap (mickeyl) 24 * Launcher: Support a static background pixmap (mickeyl)
23 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) 25 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl)
24 * PackageManager supports the 'lists_dir' ipkg configuration option (drw) 26 * PackageManager supports the 'lists_dir' ipkg configuration option (drw)
25 * Added hi-res inline images for large resolution devices (drw) 27 * Added hi-res inline images for large resolution devices (drw)
26 * Improved launcher icons for consistency (ar) 28 * Improved launcher icons for consistency (ar)
27 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) 29 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin)
28 30
29 Fixed Bugs 31 Fixed Bugs
30 ---------- 32 ----------
31 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) 33 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers)
32 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) 34 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw)
33 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) 35 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp)
34 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) 36 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke)
35 * #1482 - Fix double '/' in paths (zecke) 37 * #1482 - Fix double '/' in paths (zecke)
36 * #1536 - Autosave of custom locations in opie backup (ar) 38 * #1536 - Autosave of custom locations in opie backup (ar)
37 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) 39 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke)
38 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) 40 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke)
39 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) 41 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw)
40 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) 42 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke)
41 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) 43 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl)
42 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) 44 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke)
43 * #1558 - Fixed opie-login breaking opie startup (mickeyl) 45 * #1558 - Fixed opie-login breaking opie startup (mickeyl)
44 * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning) 46 * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning)
45 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) 47 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar)
46 * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers) 48 * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers)
47 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) 49 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints)
48 * #1604 - Checkbook crashed on startup (drw) 50 * #1604 - Checkbook crashed on startup (drw)
49 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) 51 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers)
50 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) 52 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers)
51 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) 53 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw)
52 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) 54 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw)
53 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) 55 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw)
54 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) 56 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw)
55 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) 57 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw)
56 * n.a. - AddressBook - fixed sorting by 'File As' name (drw) 58 * n.a. - AddressBook - fixed sorting by 'File As' name (drw)
57 * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) 59 * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers)
58 * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) 60 * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw)
59 61
60 Internal 62 Internal
61 -------- 63 --------
62 * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) 64 * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl)
63 * Killed the need for weak symbols in QtE (zecke) 65 * Killed the need for weak symbols in QtE (zecke)
64 * Added optional building libqpe without inline images (mickeyl) 66 * Added optional building libqpe without inline images (mickeyl)
65 * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) 67 * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw)
66 68
67 2005-02-03Opie 1.1.9 69 2005-02-03Opie 1.1.9
68 70
69 New Features 71 New Features
70 ------------ 72 ------------
71 * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) 73 * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl)
72 * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) 74 * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl)
73 * Usability enhancements in OpieIRC (skyhusker) 75 * Usability enhancements in OpieIRC (skyhusker)
74 76
75 Fixed Bugs 77 Fixed Bugs
76 ---------- 78 ----------
77 * #1501 - Fixed bug in todo sql backend (eilers) 79 * #1501 - Fixed bug in todo sql backend (eilers)
78 * #1505 - Added more Swap sizes in memoryapplet (mickeyl) 80 * #1505 - Added more Swap sizes in memoryapplet (mickeyl)
79 * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) 81 * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke)
80 * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) 82 * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke)
81 * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) 83 * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl)
82 * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) 84 * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl)
83 * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) 85 * n.a. - Fixed numerous buglets in OpieIRC (skyhusker)
84 86
85 Internal 87 Internal
86 -------- 88 --------
87 * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) 89 * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl)
88 * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) 90 * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl)
89 * Made Opie compilable with Qt/Embedded 2.3.10 (ar) 91 * Made Opie compilable with Qt/Embedded 2.3.10 (ar)
90 * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) 92 * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl)
91 * Build tree cleanups (mickeyl) 93 * Build tree cleanups (mickeyl)
92 94
93 2004-11-26Opie 1.1.8 95 2004-11-26Opie 1.1.8
94 96
95 New Features 97 New Features
96 ------------ 98 ------------
97 * PackageManager supports installation of local ipkg files (drw) 99 * PackageManager supports installation of local ipkg files (drw)
98 * PackageManager supports linking of applications to root (drw) 100 * PackageManager supports linking of applications to root (drw)
99 * PackageManager supports src/gz feeds (drw,wimpie) 101 * PackageManager supports src/gz feeds (drw,wimpie)
100 * Added a syslog information tab to sysinfo (mickeyl) 102 * Added a syslog information tab to sysinfo (mickeyl)
101 * Added new, more consistent, PIM icons + a GIMP teplate (ar) 103 * Added new, more consistent, PIM icons + a GIMP teplate (ar)
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp
index f5b0d0a..a540327 100644
--- a/core/pim/today/plugins/datebook/datebookevent.cpp
+++ b/core/pim/today/plugins/datebook/datebookevent.cpp
@@ -1,148 +1,150 @@
1/* 1/*
2 * datebookevent.cpp 2 * datebookevent.cpp
3 * 3 *
4 * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß 4 * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "datebookevent.h" 17#include "datebookevent.h"
18 18
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/qcopenvelope_qws.h> 20#include <qpe/qcopenvelope_qws.h>
21#include <qpe/calendar.h> 21#include <qpe/calendar.h>
22 22
23#include <opie2/odevice.h> 23#include <opie2/odevice.h>
24 24
25using namespace Opie::Ui; 25using namespace Opie::Ui;
26using namespace Opie::Core; 26using namespace Opie::Core;
27 27
28DateBookEvent::DateBookEvent(const EffectiveEvent &ev, 28DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
29 QWidget* parent, 29 QWidget* parent,
30 bool show_location, 30 bool show_location,
31 bool show_notes, 31 bool show_notes,
32 bool timeExtraLine, 32 bool timeExtraLine,
33 int maxCharClip, 33 int maxCharClip,
34 const char* name, 34 const char* name,
35 WFlags fl) : 35 WFlags fl) :
36 OClickableLabel(parent,name,fl), event(ev) { 36 OClickableLabel(parent,name,fl), event(ev) {
37 37
38 // setAlignment( AlignTop ); 38 // setAlignment( AlignTop );
39 39
40 QString msg; 40 QString msg;
41 41
42 Config config( "qpe" ); 42 Config config( "qpe" );
43 config.setGroup( "Time" ); 43 config.setGroup( "Time" );
44 // if 24 h format 44 // if 24 h format
45 ampm = config.readBoolEntry( "AMPM", TRUE ); 45 ampm = config.readBoolEntry( "AMPM", TRUE );
46 46
47 msg += "<B>" + (ev).description() + "</B>"; 47 msg += "<B>" + (ev).description() + "</B>";
48 if ( (ev).event().hasAlarm() ) { 48 if ( (ev).event().hasAlarm() ) {
49 msg += " <b>" + tr("[with alarm]") +"</b>"; 49 msg += " <b>" + tr("[with alarm]") +"</b>";
50 } 50 }
51 51
52 // include location or not 52 // include location or not
53 if ( show_location ) { 53 if ( show_location && !(ev).location().isEmpty() ) {
54 msg += "<BR><i>" + (ev).location() + "</i>"; 54 if ( (ev).location() != tr("(Unknown)") )
55 msg += "<BR><i>" + (ev).location() + "</i>";
55 } 56 }
56 57
57 QString timeSpacer = " "; 58 QString timeSpacer = " ";
58 if ( timeExtraLine ) { 59 if ( timeExtraLine ) {
59 timeSpacer = "<br>"; 60 timeSpacer = "<br>";
60 } 61 }
61 62
63 msg += timeSpacer;
64
62 if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" ) 65 if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" )
63 && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) { 66 && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) {
64 msg += tr ( "All day" ); 67 msg += tr ( "All day" );
65 } else { 68 } else {
66 // start time of event 69 // start time of event
67// QDate tempDate = (ev).event().start().date(); 70// QDate tempDate = (ev).event().start().date();
68 msg += timeSpacer;
69 msg += ampmTime( QTime( (ev).event().start().time() ) ) 71 msg += ampmTime( QTime( (ev).event().start().time() ) )
70 // end time of event 72 // end time of event
71 + "<b> - </b>" + ampmTime( QTime( (ev).event().end().time() ) ); 73 + "<b> - </b>" + ampmTime( QTime( (ev).event().end().time() ) );
72 } 74 }
73 75
74 if ( (ev).date() != QDate::currentDate() ) { 76 if ( (ev).date() != QDate::currentDate() ) {
75 msg += differDate( (ev).date() /* tempDate*/ ); 77 msg += differDate( (ev).date() /* tempDate*/ );
76 } 78 }
77 79
78 // include possible note or not 80 // include possible note or not
79 if ( show_notes ) { 81 if ( show_notes ) {
80 msg += "<br> <i>" + tr("note") + "</i>:" +( (ev).notes() ).mid( 0, maxCharClip ); 82 msg += "<br> <i>" + tr("note") + "</i>:" +( (ev).notes() ).mid( 0, maxCharClip );
81 } 83 }
82 setText( msg ); 84 setText( msg );
83 connect( this, SIGNAL( clicked() ), this, SLOT( editMe() ) ); 85 connect( this, SIGNAL( clicked() ), this, SLOT( editMe() ) );
84} 86}
85 87
86DateBookEvent::~DateBookEvent() { 88DateBookEvent::~DateBookEvent() {
87} 89}
88 90
89/** 91/**
90 * AM/PM timestring conversion. 92 * AM/PM timestring conversion.
91 * @param tm the timestring 93 * @param tm the timestring
92 * @return formatted to am/pm is system is set to it 94 * @return formatted to am/pm is system is set to it
93 */ 95 */
94QString DateBookEvent::ampmTime( QTime tm ) { 96QString DateBookEvent::ampmTime( QTime tm ) {
95 QString s; 97 QString s;
96 if( ampm ) { 98 if( ampm ) {
97 int hour = tm.hour(); 99 int hour = tm.hour();
98 if ( hour == 0 ) { 100 if ( hour == 0 ) {
99 hour = 12; 101 hour = 12;
100 } 102 }
101 if ( hour > 12 ) { 103 if ( hour > 12 ) {
102 hour -= 12; 104 hour -= 12;
103 } 105 }
104 s.sprintf( "%2d:%02d %s", hour, tm.minute(), 106 s.sprintf( "%2d:%02d %s", hour, tm.minute(),
105 (tm.hour() >= 12) ? "PM" : "AM" ); 107 (tm.hour() >= 12) ? "PM" : "AM" );
106 return s; 108 return s;
107 } else { 109 } else {
108 s.sprintf( "%2d:%02d", tm.hour(), tm.minute() ); 110 s.sprintf( "%2d:%02d", tm.hour(), tm.minute() );
109 return s; 111 return s;
110 } 112 }
111} 113}
112 114
113QString DateBookEvent::differDate( QDate date ) { 115QString DateBookEvent::differDate( QDate date ) {
114// QDate currentDate = QDate::currentDate(); 116// QDate currentDate = QDate::currentDate();
115 QString returnText = "<font color = #407DD9><b> "; 117 QString returnText = "<font color = #407DD9><b> ";
116// int differDate = currentDate.daysTo( date ); 118// int differDate = currentDate.daysTo( date );
117// if ( currentDate.dayOfWeek() == date.dayOfWeek() ) { 119// if ( currentDate.dayOfWeek() == date.dayOfWeek() ) {
118// returnText += "" ; 120// returnText += "" ;
119// // not working right for recurring events 121// // not working right for recurring events
120// //} else if ( differDate == 1 ) { 122// //} else if ( differDate == 1 ) {
121// //returnText += tr( "tomorrow" ); 123// //returnText += tr( "tomorrow" );
122// } else { 124// } else {
123// returnText += " [ " + Calendar::nameOfDay( date.dayOfWeek() ) + " ] "; 125// returnText += " [ " + Calendar::nameOfDay( date.dayOfWeek() ) + " ] ";
124// } 126// }
125 returnText += " [ " + Calendar::nameOfDay( date.dayOfWeek() ) + " ] "; 127 returnText += " [ " + Calendar::nameOfDay( date.dayOfWeek() ) + " ] ";
126 returnText += "</b></font>"; 128 returnText += "</b></font>";
127 return returnText; 129 return returnText;
128} 130}
129 131
130 132
131/** 133/**
132 * starts the edit dialog as known from datebook 134 * starts the edit dialog as known from datebook
133 */ 135 */
134void DateBookEvent::editEventSlot( const Event &e ) { 136void DateBookEvent::editEventSlot( const Event &e ) {
135 137
136 if ( ODevice::inst()->system() == System_Zaurus ) { 138 if ( ODevice::inst()->system() == System_Zaurus ) {
137 QCopEnvelope env( "QPE/Application/datebook", "raise()" ); 139 QCopEnvelope env( "QPE/Application/datebook", "raise()" );
138 } else { 140 } else {
139 QCopEnvelope env( "QPE/Application/datebook", "editEvent(int)" ); 141 QCopEnvelope env( "QPE/Application/datebook", "editEvent(int)" );
140 env << e.uid(); 142 env << e.uid();
141 } 143 }
142} 144}
143 145
144 146
145void DateBookEvent::editMe() { 147void DateBookEvent::editMe() {
146 emit editEvent( event.event() ); 148 emit editEvent( event.event() );
147} 149}
148 150