X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/4f3da8543caacbaf1ce219e547e24a5490bee090..HEAD:/ITHotKeyCenter.h diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h old mode 100755 new mode 100644 index 3c8bb4c..e0ab5e0 --- a/ITHotKeyCenter.h +++ b/ITHotKeyCenter.h @@ -1,37 +1,31 @@ /* * ITKit - * ITHotKeyCenter + * ITHotKeyCenter.h * - * Original Author : Quentin Carnicelli <...> - * Responsibility : Kent Sutherland - * Responsibility : Matthew Judy - * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * 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; +- (void)sendEvent:(NSEvent *)event; -@end +@end \ No newline at end of file