3df295ac4e539c15cfe657fac69f3bc18757e6ed
[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*                               mKeyName;
30         ITKeyCombo*                             mKeyCombo;
31 }
32
33 + (id)sharedPanel;
34
35 - (int)runModal;
36 - (void)runModalForHotKey: (ITHotKey*)hotKey;
37
38 - (void)setKeyCombo: (ITKeyCombo*)combo;
39 - (ITKeyCombo*)keyCombo;
40
41 - (void)setKeyBindingName: (NSString*)name;
42 - (NSString*)keyBindingName;
43
44 - (IBAction)ok: (id)sender;
45 - (IBAction)cancel: (id)sender;
46 - (IBAction)clear: (id)sender;
47
48
49 @end