X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/d9649564199a7220e70716aa0999c6fddb0efadc..d0c948a9b9eabfd30e05da6b445dfd504b097740:/ITHotKeyCenter.h diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h old mode 100755 new mode 100644 index e984bc5..153b2ca --- a/ITHotKeyCenter.h +++ b/ITHotKeyCenter.h @@ -1,27 +1,34 @@ -// -// ITHotKeyCenter.h -// -// Created by Quentin Carnicelli on Sat Aug 02 2003. -// Copyright (c) 2003 iThink Software. All rights reserved. -// - -#import +/* + * ITKit + * ITHotKeyCenter.h + * + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ + * + */ + +#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; + +- (BOOL)registerHotKey:(ITHotKey *)hotKey; +- (void)unregisterHotKey:(ITHotKey *)hotKey; -- (NSArray*)allHotKeys; +- (NSArray *)allHotKeys; -- (void)sendEvent: (NSEvent*)event; +- (void)sendEvent:(NSEvent *)event; -@end +@end \ No newline at end of file