X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/d9649564199a7220e70716aa0999c6fddb0efadc..HEAD:/ITHotKeyCenter.h diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h old mode 100755 new mode 100644 index e984bc5..e0ab5e0 --- a/ITHotKeyCenter.h +++ b/ITHotKeyCenter.h @@ -1,27 +1,31 @@ -// -// ITHotKeyCenter.h -// -// Created by Quentin Carnicelli on Sat Aug 02 2003. -// Copyright (c) 2003 iThink Software. All rights reserved. -// +/* + * ITKit + * ITHotKeyCenter.h + * + * Copyright (c) 2005 iThink Software + * + */ -#import +#import @class ITHotKey; -@interface ITHotKeyCenter : NSObject -{ - NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef - BOOL mEventHandlerInstalled; +@interface ITHotKeyCenter : NSObject { + NSMutableDictionary *mHotKeys; //Keys are NSValue of EventHotKeyRef + BOOL mEventHandlerInstalled; + BOOL _enabled; } + (id)sharedCenter; -- (BOOL)registerHotKey: (ITHotKey*)hotKey; -- (void)unregisterHotKey: (ITHotKey*)hotKey; +- (BOOL)isEnabled; +- (void)setEnabled:(BOOL)flag; -- (NSArray*)allHotKeys; +- (BOOL)registerHotKey:(ITHotKey *)hotKey; +- (void)unregisterHotKey:(ITHotKey *)hotKey; -- (void)sendEvent: (NSEvent*)event; +- (NSArray *)allHotKeys; -@end +- (void)sendEvent:(NSEvent *)event; + +@end \ No newline at end of file