mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
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:
@@ -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".
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user