forked from drdrang/jumpcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSRRecorderControl.h
80 lines (58 loc) · 1.91 KB
/
SRRecorderControl.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
//
// SRRecorderControl.h
// ShortcutRecorder
//
// Copyright 2006-2007 Contributors. All rights reserved.
//
// License: BSD
//
// Contributors:
// David Dauer
// Jesper
// Jamie Kirkpatrick
#import <Cocoa/Cocoa.h>
#import "SRRecorderCell.h"
@interface SRRecorderControl : NSControl
{
IBOutlet id delegate;
}
#pragma mark *** Aesthetics ***
- (BOOL)animates;
- (void)setAnimates:(BOOL)an;
- (SRRecorderStyle)style;
- (void)setStyle:(SRRecorderStyle)nStyle;
#pragma mark *** Delegate ***
- (id)delegate;
- (void)setDelegate:(id)aDelegate;
#pragma mark *** Key Combination Control ***
- (unsigned int)allowedFlags;
- (void)setAllowedFlags:(unsigned int)flags;
- (BOOL)allowsKeyOnly;
- (void)setAllowsKeyOnly:(BOOL)nAllowsKeyOnly escapeKeysRecord:(BOOL)nEscapeKeysRecord;
- (BOOL)escapeKeysRecord;
- (BOOL)canCaptureGlobalHotKeys;
- (void)setCanCaptureGlobalHotKeys:(BOOL)inState;
- (unsigned int)requiredFlags;
- (void)setRequiredFlags:(unsigned int)flags;
- (KeyCombo)keyCombo;
- (void)setKeyCombo:(KeyCombo)aKeyCombo;
- (NSString *)keyChars;
- (NSString *)keyCharsIgnoringModifiers;
#pragma mark *** Deprecated ***
- (NSString *)autosaveName SR_DEPRECATED_ATTRIBUTE;
- (void)setAutosaveName:(NSString *)aName SR_DEPRECATED_ATTRIBUTE;
#pragma mark -
#pragma mark IB3 tomfoolery
- (void)forIBuse__nilOutDeprecatedAutosaveName:(id)sender;
#pragma mark -
// Returns the displayed key combination if set
- (NSString *)keyComboString;
#pragma mark *** Conversion Methods ***
- (unsigned int)cocoaToCarbonFlags:(unsigned int)cocoaFlags;
- (unsigned int)carbonToCocoaFlags:(unsigned int)carbonFlags;
@end
// Delegate Methods
@interface NSObject (SRRecorderDelegate)
- (BOOL)shortcutRecorder:(SRRecorderControl *)aRecorder isKeyCode:(signed short)keyCode andFlagsTaken:(unsigned int)flags reason:(NSString **)aReason;
- (void)shortcutRecorder:(SRRecorderControl *)aRecorder keyComboDidChange:(KeyCombo)newKeyCombo;
@end