Monotone-Parent: 02eb29bbfbe92d0cd5172a05dce7bc7c9875da19

Monotone-Revision: c031eac1b4bb520b8e0c717803ed8eb38fedd4c5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-11-02T21:55:55
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-11-02 21:55:55 +00:00
parent 5cb14f538f
commit 1aed9d1e6d
2 changed files with 25 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
2006-11-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/SOGoUI/SOGoAptFormatter.m: added code to handle the display
of events in the day boxes of the calendar's monthly view.
* SoObjects/Appointments/SOGoTaskObject.m ([SOGoTaskObject
-davContentType]): declare "text/calendar".

View File

@@ -88,6 +88,10 @@
self->formatAction = @selector(shortTitleForApt::);
}
- (void)setShortMonthTitleOnly {
self->formatAction = @selector(shortMonthTitleForApt::);
}
- (void)setPrivateSuppressAll {
self->formatAction = @selector(suppressApt::);
}
@@ -227,6 +231,24 @@
return title;
}
- (NSString *)shortMonthTitleForApt:(id)_apt :(NSCalendarDate *)_refDate {
NSMutableString *title;
NSCalendarDate *startDate;
NSTimeZone *dtz;
title = [NSMutableString new];
[title autorelease];
dtz = [self displayTZ];
startDate = [_apt valueForKey: @"startDate"];
[startDate setTimeZone:dtz];
[self appendTimeInfoForDate: startDate usingReferenceDate: nil
toBuffer: title];
[title appendFormat: @" %@", [self titleForApt:_apt :_refDate]];
return title;
}
- (NSString *)singleLineFullDetailsForApt:(id)_apt :(NSCalendarDate *)_refDate {
NSMutableString *aptDescr;
NSString *s;