-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilterViewController.h
More file actions
executable file
·60 lines (47 loc) · 1.67 KB
/
FilterViewController.h
File metadata and controls
executable file
·60 lines (47 loc) · 1.67 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
59
60
//
// FilterViewController.h
// Junction
//
// Created by Bobby Ren on 3/5/13.
//
//
#import <UIKit/UIKit.h>
#import "IndustryFilterTableViewController.h"
enum FILTER_INPUT_FIELDS {
INPUT_FILTER_POSITION = 0,
INPUT_FILTER_COMPANY,
INPUT_FILTER_INDUSTRY,
INPUT_FILTER_FRIENDS
};
#define FILTER_ROW_HEIGHT 35
@protocol FilterDelegate <NSObject>
-(int)doFilter;
-(void)closeFilter;
@end
@interface FilterViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, IndustryFilterDelegate, UITextFieldDelegate>
{
IBOutlet UIButton * buttonClearPosition;
IBOutlet UIButton * buttonClearCompany;
IBOutlet UIView * noResultsView;
IBOutlet UIButton * noResultsButton;
IBOutlet UILabel * noResultsLabel;
}
@property (nonatomic, weak) id delegate;
@property (nonatomic, weak) IBOutlet UITableView * tableView;
@property (nonatomic, weak) IBOutlet UIButton * buttonFilter;
@property (nonatomic, weak) IBOutlet UILabel * labelTitle;
@property (nonatomic, strong) NSMutableArray * viewsForCell;
@property (nonatomic, strong) NSString * industryFilter;
@property (nonatomic, strong) UITextField * industryField;
@property (nonatomic, strong) NSString * companyFilter;
@property (nonatomic, strong) UITextField * companyField;
@property (nonatomic, strong) NSString * positionFilter;
@property (nonatomic, strong) UITextField * positionField;
@property (nonatomic, assign) BOOL friendsFilter;
@property (nonatomic, strong) UISwitch * friendsSwitch;
-(IBAction)didClickFilter:(id)sender;
-(IBAction)didClickClear:(id)sender;
-(IBAction)didClickClearAll:(id)sender;
-(void)showEmptyResultsMessage;
-(IBAction)didClickEmptyResultsButton:(id)sender;
@end