Blame view

BT Vendor/DateRangePickerViewController.h 1.52 KB
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  DateRangePickerViewController.h
//  DUREX Vendor Control
//
//  Created by Imanol Barba on 9/13/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.
//

//
//  DatePickerViewController.h
//  DUREX Vendor Control
//
//  Created by Imanol Barba on 03/09/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.
//

@class DateRangePickerViewController;

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
21
#import "BTAppDelegate.h" 
Imanol-Mikel Barba Sabariego authored
22
#import "ChildViewController.h"
Imanol-Mikel Barba Sabariego authored
23
24
25
26
27
28

@protocol DateRangePickerViewControllerDelegate <NSObject>
- (void)passDateRangeViewController:(DateRangePickerViewController*)controller didFinishEnteringItem:(NSDate*) from : (NSDate*) to;

@end
Imanol-Mikel Barba Sabariego authored
29
@interface DateRangePickerViewController : ChildViewController
Imanol-Mikel Barba Sabariego authored
30
31
32
33
34
35

@property (strong, nonatomic) IBOutlet UIView *dateRangePickerView;
@property (strong, nonatomic) IBOutlet UIDatePicker *fromDate;
@property (strong, nonatomic) IBOutlet UIDatePicker *toDate;
@property (strong, nonatomic) IBOutlet UISwitch *fromToggler;
@property (strong, nonatomic) IBOutlet UISwitch *toToggler;
Imanol-Mikel Barba Sabariego authored
36
37
38
39
@property (strong, nonatomic) IBOutlet UIButton *doneButton;
@property (strong, nonatomic) IBOutlet UILabel *toLabel;
@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet UIView *scrolledView;
Imanol-Mikel Barba Sabariego authored
40
41
42
43
44
45
46
47
@property (nonatomic, strong) id <DateRangePickerViewControllerDelegate> delegate;

- (void)showInView:(UIView *)aView animated:(BOOL)animated;
- (IBAction)toggleFromDate:(id)sender;
- (IBAction)toggleToDate:(id)sender;
- (IBAction)closePopup:(id)sender;

@end