-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSequenceViewController.h
61 lines (47 loc) · 1.52 KB
/
SequenceViewController.h
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
59
60
//
// SequenceViewController.h
// KnockOnD
//
// Created by Oleksandr Tymoshenko on 09-09-11.
// Copyright 2009 BluezBox. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol SequenceViewControllerDelegate;
@interface NameCell : UITableViewCell
{
UITextField *textField;
}
@property (nonatomic,strong) UITextField *textField;
@end
@interface PortCell : UITableViewCell
{
UITextField *portField;
UISegmentedControl *protoSegment;
}
@property (nonatomic,strong) UITextField *portField;
@property (nonatomic,strong) UISegmentedControl *protoSegment;
@end
@interface SequenceViewController : UIViewController<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate> {
IBOutlet UITableView *seqTableView;
UITextField *activeTextField;
NSMutableArray *ports;
NSString *name;
NSString *host;
NSUInteger delay;
id <SequenceViewControllerDelegate> __weak delegate;
}
@property (nonatomic, weak) id <SequenceViewControllerDelegate> delegate;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *host;
@property (nonatomic, strong) NSMutableArray *ports;
@property (nonatomic, assign) NSUInteger delay;
- (IBAction) save: (id)sender;
- (IBAction) cancel: (id)sender;
- (void) keyboardWillShow: (id)sender;
- (void) keyboardWillHide: (id)sender;
- (void) protoChanged: (id)sender;
- (void) alert: (NSString*)msg;
@end
@protocol SequenceViewControllerDelegate
- (void)sequenceViewControllerDidFinish:(SequenceViewController *)controller accepted:(BOOL)accepted;
@end