forked from qnblackcat/iSponsorBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSponsorBlockSettingsController.h
51 lines (42 loc) · 1.67 KB
/
SponsorBlockSettingsController.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
#import <UIKit/UIKit.h>
#include <RemoteLog.h>
#import <objc/runtime.h>
@protocol HBColorPickerDelegate <NSObject>
@optional -(void)colorPicker:(id)colorPicker didSelectColor:(UIColor *)color;
@end
@interface UIView ()
-(UIViewController *)_viewControllerForAncestor;
@end
@interface UITableViewCell ()
-(UITextField *)editableTextField;
-(id)_indexPath;
@end
@interface UISegment : UIView
@end
@interface HBColorPickerConfiguration
@property (nonatomic, assign) BOOL supportsAlpha;
@end
@interface HBColorPickerViewController : UIViewController
@property (strong, nonatomic) NSObject <HBColorPickerDelegate> *delegate;
@property (strong, nonatomic) HBColorPickerConfiguration *configuration;
@end
@interface HBColorWell : UIControl
@property (nonatomic, assign) BOOL isDragInteractionEnabled;
@property (nonatomic, assign) BOOL isDropInteractionEnabled;
@property (strong, nonatomic) UIColor *color;
@end
@interface SponsorBlockTableCell : UITableViewCell <HBColorPickerDelegate>
@property (strong, nonatomic) NSString *category;
@property (strong, nonatomic) UIColor *color;
@property (strong, nonatomic) HBColorWell *colorWell;
@end
@interface SponsorBlockSettingsController : UIViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>
@property (strong, nonatomic) UITableView *tableView;
@property (strong, nonatomic) NSArray *sectionTitles;
@property (strong, nonatomic) NSMutableDictionary *settings;
@property (strong, nonatomic) NSString *settingsPath;
-(void)enabledSwitchToggled:(UISwitch *)sender;
-(void)switchToggled:(UISwitch *)sender;
-(void)categorySegmentSelected:(UISegmentedControl *)segmentedControl;
-(void)writeSettings:(NSDictionary *)settings;
@end