Monotone-Parent: 94a876e445d85c07068605284844c8c23125a590

Monotone-Revision: a2a755bb974fa1ddef5662d996422c2b90023444

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-07-17T17:26:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-07-17 17:26:15 +00:00
parent 24c6a21e37
commit 475c60ce7f
3 changed files with 19 additions and 2 deletions
+3
View File
@@ -1,5 +1,8 @@
2006-07-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailFormatter.m ([UIxMailDateFormatter
-setTimeZone:newTimeZone]): new accessor to specify the timezone.
* UI/MailerUI/UIxMailFilterPanel.m ([UIxMailFilterPanel -setSearchCriteria:])
([UIxMailFilterPanel -searchCriteria]): new methods, similar to
s/Criteria/Text/ to handle the "criteria" form parameter.
+2
View File
@@ -56,6 +56,8 @@
/* configuration */
- (NSTimeZone *)timeZone;
- (void) setTimeZone: (NSTimeZone *) newTimeZone;
- (BOOL)showOnlyTimeForToday;
- (BOOL)showLabelsForNearDays;
+14 -2
View File
@@ -71,10 +71,22 @@ static BOOL debugOn = YES;
/* configuration */
- (NSTimeZone *)timeZone {
- (NSTimeZone *)timeZone
{
return self->timeZone;
}
- (void) setTimeZone: (NSTimeZone *) newTimeZone
{
if (timeZone)
[timeZone release];
timeZone = newTimeZone;
if (timeZone)
[timeZone retain];
}
- (BOOL)showOnlyTimeForToday {
return self->dfFlags.showOnlyTimeForToday ? YES : NO;
}
@@ -101,7 +113,7 @@ static BOOL debugOn = YES;
[self->now setTimeZone:[self timeZone]];
}
[_date setTimeZone:[self timeZone]];
if ([self showOnlyTimeForToday] && [_date isDateOnSameDay:self->now])
return [self stringForTime:_date prefix:NULL];