Monotone-Parent: 3bb55594abc16b51ed95faf0b56f29ec191fe8ac

Monotone-Revision: d867fca614a430593c5bb3a8aa1f23aa075df98f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-18T22:53:54
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-18 22:53:54 +00:00
parent 69c04122ec
commit 4f4d69c21f
3 changed files with 57 additions and 41 deletions

View File

@@ -21,49 +21,11 @@
// $Id: UIxCalInlineMonthOverview.m 181 2004-08-11 15:13:25Z helge $
#include "UIxCalMonthOverview.h"
#include <NGExtensions/NGExtensions.h>
#import <NGExtensions/NSCalendarDate+misc.h>
#import "NSCalendarDate+Scheduler.h"
@interface UIxCalInlineMonthOverview : UIxCalMonthOverview
{
NSCalendarDate *selectedDate;
NSString *style;
NSString *headerStyle;
NSString *weekStyle;
NSString *todayWeekStyle;
NSString *dayHeaderStyle;
NSString *dayBodyStyle;
NSString *todayBodyStyle;
NSString *inactiveDayBodyStyle;
NSString *selectedDayExtraStyle;
NSString *daySelectionHref;
NSString *weekSelectionHref;
NSString *monthSelectionHref;
BOOL showWeekColumn;
BOOL showYear;
}
@end
@interface NSCalendarDate (UIxCalMonthOverviewExtensions)
- (BOOL)isDateInSameMonth:(NSCalendarDate *)_other;
@end
@implementation NSCalendarDate (UIxCalMonthOverviewExtensions)
- (BOOL)isDateInSameMonth:(NSCalendarDate *)_other {
if(_other == nil)
return NO;
if(([_other yearOfCommonEra] == [self yearOfCommonEra]) &&
([_other monthOfYear] == [self monthOfYear])) {
return YES;
}
return NO;
}
@end
#import "UIxCalInlineMonthOverview.h"
@implementation UIxCalInlineMonthOverview