Skip to content
Newer
Older
100644 36 lines (27 sloc) 749 Bytes
f1ecb58 @jessegrosjean new version of quick cursor
jessegrosjean authored Sep 3, 2009
1 //
2 // PTHotKeyCenter.h
3 // Protein
4 //
5 // Created by Quentin Carnicelli on Sat Aug 02 2003.
6 // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved.
7 //
8 // Contributors:
9 // Quentin D. Carnicelli
10 // Finlay Dobbie
11 // Vincent Pottier
12 // Andy Kim
13
14 #import <Cocoa/Cocoa.h>
15
16 @class PTHotKey;
17
18 @interface PTHotKeyCenter : NSObject
19 {
20 NSMutableDictionary* mHotKeys; //Keys are carbon hot key IDs
21 BOOL mEventHandlerInstalled;
22 UInt32 mHotKeyCount; // Used to assign new hot key ID
23 }
24
25 + (PTHotKeyCenter *)sharedCenter;
26
27 - (BOOL)registerHotKey: (PTHotKey*)hotKey;
28 - (void)unregisterHotKey: (PTHotKey*)hotKey;
29
30 - (NSArray*)allHotKeys;
31 - (PTHotKey*)hotKeyWithIdentifier: (id)ident;
32
33 - (void)sendEvent: (NSEvent*)event;
34
35 @end
Something went wrong with that request. Please try again.