blob: afd6c6edb86e6a8d45c0621a7dbdb0a032713a1c (
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
25
26
27
28
29
30
31
|
//
// MenuProxy.h
// MacGap
//
// Created by Joe Hildebrand on 1/14/12.
// Copyright (c) 2012 Twitter. All rights reserved.
//
#import "Command.h"
@class MenuItemProxy;
@interface MenuProxy : Command {
NSMenu *menu;
}
+ (MenuProxy*)proxyWithContext:(JSContextRef)aContext andMenu:(NSMenu*)aMenu;
- (MenuItemProxy*)addItemWithTitle:(NSString*)title
keyEquivalent:(NSString*)aKey
callback:(WebScriptObject*)aCallback
atIndex:(NSInteger)index;
- (MenuItemProxy*)addSeparator;
- (MenuItemProxy*)itemForKey:(id)key;
- (MenuProxy*)removeItem:(id)key;
+ (NSString*)getKeyFromString:(NSString*)keyCommand;
+ (NSUInteger*)getModifiersFromString:(NSString*)keyCommand;
@end
|