mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
Monotone-Parent: 2338a6c35427b6ff10e22c3431c2efc72aea29d2
Monotone-Revision: b16d3e768a1190817b3b58f91b78ac06b1d30248 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-02-12T23:24:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#import <NGExtensions/NSCalendarDate+misc.h>
|
||||
#import <EOControl/EOQualifier.h>
|
||||
|
||||
#import <SOGo/NSCalendarDate+SOGo.h>
|
||||
#import <SOGo/SOGoDateFormatter.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
@@ -143,9 +144,9 @@
|
||||
return hoursToDisplay;
|
||||
}
|
||||
|
||||
- (NSString *) currentHourLineId
|
||||
- (NSString *) currentHourId
|
||||
{
|
||||
return [NSString stringWithFormat: @"hourLine%d", [currentTableHour intValue]];
|
||||
return [NSString stringWithFormat: @"hour%d", [currentTableHour intValue]];
|
||||
}
|
||||
|
||||
- (NSArray *) daysToDisplay
|
||||
@@ -200,6 +201,21 @@
|
||||
return formatted;
|
||||
}
|
||||
|
||||
- (NSString *) currentAllDayId
|
||||
{
|
||||
return [NSString stringWithFormat: @"allDay%@", [currentTableDay shortDateString]];
|
||||
}
|
||||
|
||||
- (NSString *) currentDayId
|
||||
{
|
||||
return [NSString stringWithFormat: @"day%@", [currentTableDay shortDateString]];
|
||||
}
|
||||
|
||||
- (int) currentDayNumber
|
||||
{
|
||||
return [daysToDisplay indexOfObject: currentTableDay];
|
||||
}
|
||||
|
||||
- (NSString *) currentAppointmentHour
|
||||
{
|
||||
return [NSString stringWithFormat: @"%.2d00", [currentTableHour intValue]];
|
||||
@@ -326,8 +342,6 @@
|
||||
[classes appendString: @" weekEndDay"];
|
||||
if ([currentTableDay isToday])
|
||||
[classes appendString: @" dayOfToday"];
|
||||
if ([[self selectedDate] isDateOnSameDay: currentTableDay])
|
||||
[classes appendString: @" selectedDay"];
|
||||
}
|
||||
|
||||
return classes;
|
||||
|
||||
Reference in New Issue
Block a user