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