-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdvancedWindowController.h
90 lines (72 loc) · 3.28 KB
/
AdvancedWindowController.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//
// AdvancedWindowController.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
#import "ConfigWindowController.h"
NS_ASSUME_NONNULL_BEGIN
@interface AdvancedWindowController : NSWindowController<NSTableViewDelegate, NSTableViewDataSource, NSTextViewDelegate>
- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(ConfigWindowController*)parent;
@property (weak) IBOutlet NSTextField *checkLabel;
@property (weak) IBOutlet NSTabView *mainTabView;
//outbounds
@property (weak) IBOutlet NSTableView *outboundTable;
@property (unsafe_unretained) IBOutlet NSTextView *outboundJsonView;
@property (weak) IBOutlet NSSegmentedControl *outboundAddControl;
@property NSMutableArray* outbounds;
// subscription
@property (weak) IBOutlet NSTableView *subscriptionTable;
@property (weak) IBOutlet NSSegmentedControl *subscriptionAddControl;
@property NSMutableArray* subscriptions;
//rules
@property (strong) IBOutlet NSView *domainListEditView;
@property (strong) IBOutlet NSView *ipListEditView;
@property (strong) IBOutlet NSView *routingTagHelpView;
@property (strong) IBOutlet NSView *domainIpHelpView;
@property (weak) IBOutlet NSTableView *ruleSetTable;
@property (weak) IBOutlet NSSegmentedControl *ruleSetAddControl;
@property (weak) IBOutlet NSTextField *ruleSetNameField;
@property (weak) IBOutlet NSPopUpButton *domainStrategyButton;
@property (weak) IBOutlet NSTableView *ruleTable;
@property (weak) IBOutlet NSSegmentedControl *ruleAddControl;
@property (weak) IBOutlet NSButton *domainIpHelpButton;
// enbale buttons
@property (weak) IBOutlet NSButton *domainEnableButton;
@property (weak) IBOutlet NSButton *ipEnableButton;
@property (weak) IBOutlet NSButton *inboundEnableButton;
@property (weak) IBOutlet NSButton *protocolEnableButton;
@property (weak) IBOutlet NSButton *portEnableButton;
@property (weak) IBOutlet NSButton *networkEnableButton;
// fields
@property (weak) IBOutlet NSButton *editDomainButton;
@property (unsafe_unretained) IBOutlet NSTextView *domainTextView;
@property (weak) IBOutlet NSButton *editIpButton;
@property (unsafe_unretained) IBOutlet NSTextView *ipTextView;
@property (weak) IBOutlet NSComboBox *inboundTagBox;
@property (weak) IBOutlet NSPopUpButton *protocolButton;
@property (weak) IBOutlet NSTextField *portField;
@property (weak) IBOutlet NSPopUpButton *networkListButton;
@property (weak) IBOutlet NSButton *saveIPListButton;
@property (weak) IBOutlet NSButton *saveDomainListButton;
@property (weak) IBOutlet NSButton *routeToHelpButton;
@property (weak) IBOutlet NSComboBox *routeToBox;
@property NSMutableArray* routingRuleSets;
//config
@property (weak) IBOutlet NSTableView *configTable;
@property (weak) IBOutlet NSSegmentedControl *configAddControl;
@property NSMutableArray* configs;
// v2ray core
@property (weak) IBOutlet NSTextField *corePathField;
@property (weak) IBOutlet NSTextField *coreFileListField;
@property (weak) IBOutlet NSPopUpButton *enableRestoreButton;
@property BOOL enableRestore;
// encryption
@property (weak) IBOutlet NSButton *enableEncryptionButton;
@property (weak) IBOutlet NSSecureTextField *encryptionKeyField;
@property (weak) IBOutlet NSSecureTextField *encryptionKeyConfirmField;
@property BOOL enableEncryption;
@property NSString* encryptionKey;
@property (weak) IBOutlet NSTextField *changeIndicatorField;
@end
NS_ASSUME_NONNULL_END