Changed the NSMenu category from NSMenuItem * to id <NSMenuItem>
[ITKit.git] / ITKeyComboPanel.h
1 /*
2  *      ITKit
3  *  ITKeyComboPanel
4  *
5  *  Original Author : Quentin Carnicelli <...>
6  *   Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2002 - 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <AppKit/AppKit.h>
16
17
18 @class ITKeyBroadcaster;
19 @class ITKeyCombo;
20 @class ITHotKey;
21
22
23 @interface ITKeyComboPanel : NSWindowController
24 {
25         IBOutlet NSTextField*           mTitleField;
26         IBOutlet NSTextField*           mComboField;
27         IBOutlet ITKeyBroadcaster*      mKeyBcaster;
28
29         NSString*                               mTitleFormat;
30         NSString*                               mKeyName;
31         ITKeyCombo*                             mKeyCombo;
32 }
33
34 + (id)sharedPanel;
35
36 - (int)runModal;
37 - (void)runModalForHotKey: (ITHotKey*)hotKey;
38
39 - (void)setKeyCombo: (ITKeyCombo*)combo;
40 - (ITKeyCombo*)keyCombo;
41
42 - (void)setKeyBindingName: (NSString*)name;
43 - (NSString*)keyBindingName;
44
45 - (IBAction)ok: (id)sender;
46 - (IBAction)cancel: (id)sender;
47 - (IBAction)clear: (id)sender;
48
49
50 @end