forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PointerPrefsController.h
105 lines (91 loc) · 3.77 KB
/
PointerPrefsController.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//
// PointerPrefsController.h
// iTerm
//
// Created by George Nachman on 11/7/11.
// Copyright (c) 2011 George Nachman. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern NSString *kPasteFromClipboardPointerAction;
extern NSString *kPasteFromSelectionPointerAction;
extern NSString *kOpenTargetPointerAction;
extern NSString *kOpenTargetInBackgroundPointerAction;
extern NSString *kSmartSelectionPointerAction;
extern NSString *kSmartSelectionIgnoringNewlinesPointerAction;
extern NSString *kContextMenuPointerAction;
extern NSString *kNextTabPointerAction;
extern NSString *kPrevTabPointerAction;
extern NSString *kNextWindowPointerAction;
extern NSString *kPrevWindowPointerAction;
extern NSString *kMovePanePointerAction;
extern NSString *kSendEscapeSequencePointerAction;
extern NSString *kSendHexCodePointerAction;
extern NSString *kSendTextPointerAction;
extern NSString *kSelectPaneLeftPointerAction;
extern NSString *kSelectPaneRightPointerAction;
extern NSString *kSelectPaneAbovePointerAction;
extern NSString *kSelectPaneBelowPointerAction;
extern NSString *kNewWindowWithProfilePointerAction;
extern NSString *kNewTabWithProfilePointerAction;
extern NSString *kNewVerticalSplitWithProfilePointerAction;
extern NSString *kNewHorizontalSplitWithProfilePointerAction;
extern NSString *kSelectNextPanePointerAction;
extern NSString *kSelectPreviousPanePointerAction;
extern NSString *kExtendSelectionPointerAction;
extern NSString *kThreeFingerClickGesture;
extern NSString *kThreeFingerSwipeRight;
extern NSString *kThreeFingerSwipeLeft;
extern NSString *kThreeFingerSwipeUp;
extern NSString *kThreeFingerSwipeDown;
extern NSString *kPointerPrefsChangedNotification;
@interface PointerPrefsController : NSObject {
IBOutlet NSTableView *tableView_;
IBOutlet NSTableColumn *buttonColumn_;
IBOutlet NSTableColumn *actionColumn_;
IBOutlet NSPanel *panel_;
IBOutlet NSTextField *editButtonLabel_;
IBOutlet NSPopUpButton *editButton_;
IBOutlet NSTextField *editModifiersLabel_;
IBOutlet NSButton *editModifiersCommand_;
IBOutlet NSButton *editModifiersOption_;
IBOutlet NSButton *editModifiersShift_;
IBOutlet NSButton *editModifiersControl_;
IBOutlet NSTextField *editActionLabel_;
IBOutlet NSPopUpButton *editAction_;
IBOutlet NSTextField *editClickTypeLabel_;
IBOutlet NSPopUpButton *editClickType_;
IBOutlet NSTextField *editArgumentLabel_;
IBOutlet NSPopUpButton *editArgumentButton_;
IBOutlet NSTextField *editArgumentField_;
IBOutlet NSButton *ok_;
IBOutlet NSButton *remove_;
NSString *origKey_;
BOOL hasSelection_;
}
@property (nonatomic, assign) BOOL hasSelection;
+ (NSString *)actionWithButton:(int)buttonNumber
numClicks:(int)numClicks
modifiers:(int)modMask;
+ (NSString *)argumentWithButton:(int)buttonNumber
numClicks:(int)numClicks
modifiers:(int)modMask;
+ (NSString *)actionForTapWithTouches:(int)numTouches
modifiers:(int)modMask;
+ (NSString *)argumentForTapWithTouches:(int)numTouches
modifiers:(int)modMask;
+ (NSString *)actionForGesture:(NSString *)gesture
modifiers:(int)modMask;
+ (NSString *)argumentForGesture:(NSString *)gesture
modifiers:(int)modMask;
+ (BOOL)haveThreeFingerTapEvents;
- (void)setButtonNumber:(int)buttonNumber clickCount:(int)clickCount modifiers:(int)modMask;
- (void)setGesture:(NSString *)gesture modifiers:(int)modMask;
- (IBAction)buttonOrGestureChanged:(id)sender;
- (IBAction)ok:(id)sender;
- (IBAction)cancel:(id)sender;
- (IBAction)add:(id)sender;
- (IBAction)remove:(id)sender;
- (IBAction)actionChanged:(id)sender;
- (IBAction)clicksChanged:(id)sender;
- (IBAction)loadDefaults:(id)sender;
@end