//
//  RulesTriggerOptionViewController.h
//  kneet
//
//  Created by Jason Lee on 5/11/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JDTableViewController.h"

@class ItemModel;
@class ModeModel;
@class CustomCheckBox;

@class CustomButton;
@class TimePickerButton;
@class DatePickerButton;

@interface RulesTriggerOptionViewController : JDTableViewController


#pragma mark - Properties
@property (weak, nonatomic) ItemModel *tmpItem;
@property (strong, nonatomic) NSMutableArray<ItemModel> *conditions;

@property (assign, nonatomic) BOOL hasCondition;

@property (strong, nonatomic) ItemModel *dueDateCondition;
@property (strong, nonatomic) ItemModel *daysOfWeekCondition;
@property (strong, nonatomic) ItemModel *dueTimeCondition;
@property (strong, nonatomic) ItemModel *homeModeCondition;
@property (strong, nonatomic) ItemModel *exterHeatCondition;

@property (weak, nonatomic) IBOutlet CustomCheckBox *chkDueDate;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkDaysOfWeek;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkDueTime;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkModes;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkExternHeat;

@property (weak, nonatomic) IBOutlet DatePickerButton *btnDueDateFrom;
@property (weak, nonatomic) IBOutlet DatePickerButton *btnDueDateTo;

@property (weak, nonatomic) IBOutlet CustomButton *btnDaysOfWeek;

@property (weak, nonatomic) IBOutlet TimePickerButton *btnDueTimeFrom;
@property (weak, nonatomic) IBOutlet TimePickerButton *btnDueTimeTo;

@property (weak, nonatomic) IBOutlet CustomButton *btnModes;

@property (weak, nonatomic) IBOutlet CustomButton *btnExternHeat;

#pragma mark - Instance Methods
- (CGFloat)heightForTriggerOptions;

- (IBAction)chkDueDateTouched:(id)sender;
- (IBAction)chkDaysTouched:(id)sender;
- (IBAction)chkDueTimeTouched:(id)sender;
- (IBAction)chkModesTouched:(id)sender;
- (IBAction)chkExternHeatTouched:(id)sender;

- (IBAction)btnDueDateFromTouched:(id)sender;
- (IBAction)btnDueDateToTouched:(id)sender;

- (IBAction)btnDaysToTouched:(id)sender;

- (IBAction)btnDueTimeFromToTouched:(id)sender;
- (IBAction)btnDueTimeToTouched:(id)sender;

- (IBAction)btnModesTouched:(id)sender;
- (IBAction)btnExternHeatTouched:(id)sender;


@end
