// // VRGCalendarView.h // Vurig // // Created by in 't Veen Tjeerd on 5/8/12. // Copyright (c) 2012 Vurig Media. All rights reserved. // #import #import "UIColor+expanded.h" #define kVRGCalendarViewTopBarHeight 80 #define kVRGCalendarViewWidth [UIScreen mainScreen].bounds.size.width #define kVRGCalendarViewDayWidth (self.frame.size.width-14)/7 #define kVRGCalendarViewDayHeight (self.frame.size.width-14)/7 @protocol VRGCalendarViewDelegate; @interface VRGCalendarView : UIView { id delegate; NSDate *currentMonth; UILabel *labelCurrentMonth; BOOL isAnimating; BOOL prepAnimationPreviousMonth; BOOL prepAnimationNextMonth; UIImageView *animationView_A; UIImageView *animationView_B; NSArray *markedDates; NSArray *markedColors; } @property (nonatomic, retain) id delegate; @property (nonatomic, retain) NSDate *currentMonth; @property (nonatomic, retain) UILabel *labelCurrentMonth; @property (nonatomic, retain) UIImageView *animationView_A; @property (nonatomic, retain) UIImageView *animationView_B; @property (nonatomic, retain) NSArray *markedDates; @property (nonatomic, retain) NSArray *markedColors; @property (nonatomic, getter = calendarHeight) float calendarHeight; @property (nonatomic, retain, getter = selectedDate) NSDate *selectedDate; // dateLimit setting ------SL @property (nonatomic) NSInteger limitDay; // dateLimit setting ------SL -(void)selectDate:(int)date; -(void)reset; -(void)markDates:(NSArray *)dates; -(void)markDates:(NSArray *)dates withColors:(NSArray *)colors; -(void)showNextMonth; -(void)showPreviousMonth; -(int)numRows; -(void)updateSize; -(UIImage *)drawCurrentState; @end @protocol VRGCalendarViewDelegate -(void)calendarView:(VRGCalendarView *)calendarView switchedToMonth:(int)month targetHeight:(float)targetHeight animated:(BOOL)animated; -(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date; @end