-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUserInterface.h
62 lines (46 loc) · 1.64 KB
/
BUserInterface.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
//
// BUserInterface.h
// BUserInterface
//
// Created by Jesse Grosjean on 7/22/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Blocks/Blocks.h>
#import <QuartzCore/QuartzCore.h>
#import "BUserInterfaceController.h"
#import "BToolbarController.h"
@interface NSApplication (BUserInterfaceAdditions)
+ (NSUInteger)applicationLaunchCount;
+ (SEL)doubleTapShiftKeyAction;
+ (void)setDoubleTapShiftKeyAction:(SEL)action;
+ (SEL)doubleTapControlKeyAction;
+ (void)setDoubleTapControlKeyAction:(SEL)action;
+ (SEL)doubleTapAlternateKeyAction;
+ (void)setDoubleTapAlternateKeyAction:(SEL)action;
+ (SEL)doubleTapCommandKeyAction;
+ (void)setDoubleTapCommandKeyAction:(SEL)action;
+ (void)skipNextActiviation;
@end
@interface NSImage (BUserInterfaceAdditions)
- (NSImage *)coreImageTintedImageWithColor:(NSColor *)inTint;
- (NSImage *)tintedImageWithColor:(NSColor *)inTint;
- (NSImage *)tintedImageWithColor:(NSColor *)inTint operation:(NSCompositingOperation)inOperation;
@end
@interface NSMenu (BUserInterfaceAdditions)
+ (NSAttributedString *)mainMenuKeyEquivalentsReport;
+ (NSMenu *)menuForMenuExtensionPoint:(NSString *)extensionPoint;
+ (NSMenuItem *)menuItemForMenuItemExtensionPoint:(NSString *)extensionPoint;
- (NSArray *)allItems:(BOOL)includeSubmenus;
- (NSMenuItem *)itemWithRepresentedObject:(id)representedObject;
@end
@interface BFontNameToDisplayNameTransformer : NSValueTransformer {
}
@end
@interface BTextFieldFontChooser : NSTextField {
NSString *fontDefaultsKey;
}
@property(retain) NSString *fontDefaultsKey;
@property(readonly) NSFont *selectedFont;
- (IBAction)chooseFont:(id)sender;
@end