|
Revision 28, 0.8 kB
(checked in by ssilver, 2 weeks ago)
|
Importing new code.
|
| Line | |
|---|
| 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 |
|
|---|
| 9 |
#import <AppKit/AppKit.h> |
|---|
| 10 |
|
|---|
| 11 |
@class PTHotKey; |
|---|
| 12 |
|
|---|
| 13 |
@interface PTHotKeyCenter : NSObject |
|---|
| 14 |
{ |
|---|
| 15 |
NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef |
|---|
| 16 |
BOOL mEventHandlerInstalled; |
|---|
| 17 |
} |
|---|
| 18 |
|
|---|
| 19 |
+ (id)sharedCenter; |
|---|
| 20 |
|
|---|
| 21 |
//- (void) enterHotKeyWithName:(NSString *)name enable:(BOOL)ena; |
|---|
| 22 |
- (BOOL)registerHotKey: (PTHotKey*)hotKey; |
|---|
| 23 |
- (void)unregisterHotKey: (PTHotKey*)hotKey; |
|---|
| 24 |
- (void) unregisterHotKeyForName:(NSString *)name; |
|---|
| 25 |
- (void) unregisterAllHotKeys; |
|---|
| 26 |
- (void) setHotKeyRegistrationForName:(NSString *)name enable:(BOOL)ena; |
|---|
| 27 |
- (PTHotKey *) hotKeyForName:(NSString *)name; |
|---|
| 28 |
- (void) updateHotKey:(PTHotKey *)hk; |
|---|
| 29 |
|
|---|
| 30 |
- (NSArray*)allHotKeys; |
|---|
| 31 |
|
|---|
| 32 |
@end |
|---|