-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewEventViewController.h
More file actions
58 lines (43 loc) · 1.72 KB
/
NewEventViewController.h
File metadata and controls
58 lines (43 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// NewEventViewController.h
// Metasome
//
// Created by Omar Metwally on 8/26/13.
// Copyright (c) 2013 Logisome. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "MetasomeEvent.h"
#import "GAITrackedViewController.h"
@interface NewEventViewController : GAITrackedViewController <UITextFieldDelegate>
{
NSString *hintText;
int offset;
}
-(void)saveEvent;
-(BOOL)textFieldShouldReturn:(UITextField *)textField;
- (IBAction)backgroundTouched:(id)sender;
-(void)switchChanged:(id)sender;
-(void)enterTextView:(NSNotification *)note;
-(void)exitTextView:(NSNotification *)note;
- (IBAction)changeDate:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITextField *titleTextField;
@property (weak, nonatomic) IBOutlet UITextView *descriptionTextView;
@property (weak, nonatomic) IBOutlet UISwitch *visibilitySwitch;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UIButton *dateButton;
@property (weak, nonatomic) IBOutlet UILabel *visibilityLabel;
@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;
@property (nonatomic, strong) NSDate *dateSelected;
@property (nonatomic, strong) UIColor *initialColor;
@property (nonatomic) CGPoint originalPoint, toPoint;
@property (nonatomic, strong) NSMutableString *oldText;
@property (nonatomic, strong) MetasomeEvent *eventSelected;
@end
// New protocol 'NewEventViewControllerDelegate' to return date from date picker
@protocol NewEventViewControllerDelegate <NSObject>
-(void)newEventViewController:(NewEventViewController *)nevc handleObject:(id)object;
-(void)formatTextView:(UITextView *)tv;
-(void)formatLabel:(UILabel *)label;
@end