mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-12 10:21:22 +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:
@@ -1,5 +1,8 @@
|
||||
2006-08-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalInlineMonthOverview.h: interface extracted
|
||||
from its .m file.
|
||||
|
||||
* UI/Scheduler/UIxCalFilterPanel.[hm]: new class designed to
|
||||
display a widget to handle the information displayed in the
|
||||
appointments list. Not currently used, lacks implementation.
|
||||
|
||||
51
UI/Scheduler/UIxCalInlineMonthOverview.h
Normal file
51
UI/Scheduler/UIxCalInlineMonthOverview.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
Copyright (C) 2004 SKYRIX Software AG
|
||||
|
||||
This file is part of OpenGroupware.org.
|
||||
|
||||
OGo is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU Lesser General Public License as published by the
|
||||
Free Software Foundation; either version 2, or (at your option) any
|
||||
later version.
|
||||
|
||||
OGo is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with OGo; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef UIXCALINLINEMONTHOVERVIEW_H
|
||||
#define UIXCALINLINEMONTHOVERVIEW_H
|
||||
|
||||
#import "UIxCalMonthOverview.h"
|
||||
|
||||
@class NSCalendarDate;
|
||||
@class NSString;
|
||||
|
||||
@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
|
||||
|
||||
#endif /* UIXCALINLINEMONTHOVERVIEW_H */
|
||||
@@ -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