X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/1d5525ced75adc1fe1508e8c19fcc31af129464e..5815231d5a35ca9ff5fbdb33b1ec2819850afde2:/ITHotKeyCenter.h?ds=inline diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h old mode 100755 new mode 100644 index 347110f..153b2ca --- a/ITHotKeyCenter.h +++ b/ITHotKeyCenter.h @@ -1,28 +1,22 @@ /* * ITKit - * ITHotKeyCenter + * ITHotKeyCenter.h * - * Original Author : Quentin Carnicelli <...> - * Responsibility : Kent Sutherland - * Responsibility : Matthew Judy + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * $Id$ * */ - -#import - +#import @class ITHotKey; - -@interface ITHotKeyCenter : NSObject -{ - NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef - BOOL mEventHandlerInstalled; - BOOL _enabled; +@interface ITHotKeyCenter : NSObject { + NSMutableDictionary *mHotKeys; //Keys are NSValue of EventHotKeyRef + BOOL mEventHandlerInstalled; + BOOL _enabled; } + (id)sharedCenter; @@ -30,12 +24,11 @@ - (BOOL)isEnabled; - (void)setEnabled:(BOOL)flag; -- (BOOL)registerHotKey: (ITHotKey*)hotKey; -- (void)unregisterHotKey: (ITHotKey*)hotKey; - -- (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