Changed controlKey display character, per Alex's request.
[ITKit.git] / ITHotKeyCenter.h
1 /*
2  *      ITKit
3  *      ITHotKeyCenter.h
4  *
5  *      Copyright (c) 2005 by iThink Software.
6  *      All Rights Reserved.
7  *
8  *      $Id$
9  *
10  */
11
12 #import <Cocoa/Cocoa.h>
13
14 @class ITHotKey;
15
16 @interface ITHotKeyCenter : NSObject {
17         NSMutableDictionary *mHotKeys; //Keys are NSValue of EventHotKeyRef
18         BOOL mEventHandlerInstalled;
19         BOOL _enabled;
20 }
21
22 + (id)sharedCenter;
23
24 - (BOOL)isEnabled;
25 - (void)setEnabled:(BOOL)flag;
26
27 - (BOOL)registerHotKey:(ITHotKey *)hotKey;
28 - (void)unregisterHotKey:(ITHotKey *)hotKey;
29
30 - (NSArray *)allHotKeys;
31
32 - (void)sendEvent:(NSEvent *)event;
33
34 @end