+2004-12-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * SOGoAptFormatter.[hm]: added ability to set custom title for private
+ appointments. (v0.9.20)
+
2004-12-10 Marcus Mueller <znek@mulle-kybernetik.com>
* SOGoAptFormatter.[hm]: added formatting for private apts, additional
{
NSTimeZone *tz;
SEL formatAction;
+ NSString *privateTitle;
}
- (id)initWithDisplayTimeZone:(NSTimeZone *)_tz;
- (void)setPrivateTooltip;
- (void)setPrivateDetails;
- (void)setPrivateSuppressAll;
+
+- (void)setPrivateTitle:(NSString *)_privateTitle;
+- (NSString *)privateTitle;
@end
}
- (void)dealloc {
- [self->tz release];
+ [self->tz release];
+ [self->privateTitle release];
[super dealloc];
}
self->formatAction = @selector(suppressApt:);
}
+- (void)setPrivateTitle:(NSString *)_privateTitle {
+ ASSIGN(self->privateTitle, _privateTitle);
+}
+- (NSString *)privateTitle {
+ return self->privateTitle;
+}
+
- (NSString *)stringForObjectValue:(id)_obj {
return [self performSelector:self->formatAction withObject:_obj];
}
- (NSString *)detailsForPrivateApt:(id)_apt {
NSMutableString *aptDescr;
+ NSString *s;
- aptDescr = [NSMutableString stringWithCapacity:25];
+ aptDescr = [NSMutableString stringWithCapacity:40];
[self appendTimeInfoFromApt:_apt toBuffer:aptDescr];
+ if ((s = [self privateTitle]) != nil)
+ [aptDescr appendFormat:@"<br />%@", s];
return aptDescr;
}
- (NSString *)tooltipForApt:(id)_apt {
- NSCalendarDate *startDate, *endDate;
+ NSCalendarDate *startDate, *endDate;
NSMutableString *aptDescr;
- NSString *s;
- BOOL spansRange;
+ NSString *s;
+ BOOL spansRange;
spansRange = NO;
startDate = [_apt valueForKey:@"startDate"];
}
- (NSString *)tooltipForPrivateApt:(id)_apt {
- NSCalendarDate *startDate, *endDate;
+ NSCalendarDate *startDate, *endDate;
NSMutableString *aptDescr;
- BOOL spansRange;
+ NSString *s;
+ BOOL spansRange;
spansRange = NO;
startDate = [_apt valueForKey:@"startDate"];
[endDate hourOfDay],
[endDate minuteOfHour]];
}
+
+ if ((s = [self privateTitle]) != nil)
+ [aptDescr appendFormat:@"\n%@", s];
+
return aptDescr;
}
# $Id$
-SUBMINOR_VERSION:=19
+SUBMINOR_VERSION:=20
# v0.9.18 requires NGExtensions v4.5.136
+2004-12-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.99
+
+ * {English,French}.lproj/default.strings: new label
+ "private appointment", requested by Laurent for agenor.
+
+ * UIxCalWeekPrintview.m, UIxCalMonthPrintview.m: add label
+ "private appointment" if apt is not accessible.
+
+ * UIxCalView.m: set label "private appointment" as privateTitle of
+ private formatters.
+
2004-12-10 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.98
/* classification */
"Public" = "Public";
"Private" = "Private";
+/* text used in overviews and tooltips */
+"private appointment" = "Private appointment";
/* Searching */
"Comment" ="Notes"
"Save" ="Sauvegarder"
"Cancel" ="Annuler"
-"Test" ="Test"
\ No newline at end of file
+"Test" ="Test"
+
+
+/* text used in overviews and tooltips */
+"private appointment" = "Rendez-vous privé";
[aptDescr appendFormat:@"<br />%@", s];
}
}
+ else {
+ [aptDescr appendFormat:@"<br />%@",
+ [self labelForKey:@"private appointment"]];
+ }
if(!isMyApt)
[aptDescr appendString:@"</span>"];
return [aptDescr autorelease];
/* subclasses should override this */
- (void)configureFormatters {
+ NSString *title;
+
[self->aptFormatter setFullDetails];
[self->aptTooltipFormatter setTooltip];
[self->privateAptFormatter setPrivateDetails];
[self->privateAptTooltipFormatter setPrivateTooltip];
+
+ title = [self labelForKey:@"private appointment"];
+ [self->privateAptFormatter setPrivateTitle:title];
+ [self->privateAptTooltipFormatter setPrivateTitle:title];
}
/* accessors */
[aptDescr appendFormat:@"<br />%@", s];
}
}
+ else {
+ [aptDescr appendFormat:@"<br />%@",
+ [self labelForKey:@"private appointment"]];
+ }
+
if(!isMyApt)
[aptDescr appendString:@"</span>"];
return [aptDescr autorelease];
# $Id$
-SUBMINOR_VERSION:=98
+SUBMINOR_VERSION:=99
+# v0.9.99 requires SOGoUI v0.9.20
# v0.9.98 requires SOGoUI v0.9.19
# v0.9.96 requires SOGoLogic v0.9.27
# v0.9.94 requires NGExtensions v4.5.136