// // CalendarView.h // ZhangBen // // Created by tinyfool on 08-10-26. // Copyright 2008 __MyCompanyName__. All rights reserved. // #import @protocol CalendarViewDelegate; @interface TdCalendarView : UIView { CFGregorianDate currentMonthDate; CFGregorianDate currentSelectDate; CFAbsoluteTime currentTime; UIImageView* viewImageView; id calendarViewDelegate; int *monthFlagArray; } @property CFGregorianDate currentMonthDate; @property CFGregorianDate currentSelectDate; @property CFAbsoluteTime currentTime; @property (nonatomic, retain) UIImageView* viewImageView; @property (nonatomic, assign) id calendarViewDelegate; -(int)getDayCountOfaMonth:(CFGregorianDate)date; -(int)getMonthWeekday:(CFGregorianDate)date; -(int)getDayFlag:(int)day; -(void)setDayFlag:(int)day flag:(int)flag; -(void)clearAllDayFlag; @end @protocol CalendarViewDelegate @optional - (void) selectDateChanged:(CFGregorianDate) selectDate; - (void) monthChanged:(CFGregorianDate) currentMonth viewLeftTop:(CGPoint)viewLeftTop height:(float)height; - (void) beforeMonthChange:(TdCalendarView*) calendarView willto:(CFGregorianDate) currentMonth; @end