aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASShortcutView.h
blob: 8cff0ca78b59a3995fa4050e6c2fe4c73c914392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@class MASShortcut, MASShortcutValidator;

extern NSString *const MASShortcutBinding;

typedef enum {
    MASShortcutViewAppearanceDefault = 0,  // Height = 19 px
    MASShortcutViewAppearanceTexturedRect, // Height = 25 px
    MASShortcutViewAppearanceRounded,      // Height = 43 px
    MASShortcutViewAppearanceFlat
} MASShortcutViewAppearance;

@interface MASShortcutView : NSView

@property (nonatomic, strong) MASShortcut *shortcutValue;
@property (nonatomic, strong) MASShortcutValidator *shortcutValidator;
@property (nonatomic, getter = isRecording) BOOL recording;
@property (nonatomic, getter = isEnabled) BOOL enabled;
@property (nonatomic, copy) void (^shortcutValueChange)(MASShortcutView *sender);
@property (nonatomic) MASShortcutViewAppearance appearance;

/// Returns custom class for drawing control.
+ (Class)shortcutCellClass;

@end