You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

70 lines
2.0 KiB

//
// VRGCalendarView.h
// Vurig
//
// Created by in 't Veen Tjeerd on 5/8/12.
// Copyright (c) 2012 Vurig Media. All rights reserved.
//
#import <UIKit/UIKit.h>
#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 <VRGCalendarViewDelegate> 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 <VRGCalendarViewDelegate> 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 <NSObject>
-(void)calendarView:(VRGCalendarView *)calendarView switchedToMonth:(int)month targetHeight:(float)targetHeight animated:(BOOL)animated;
-(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date;
@end