Adding HotKeys to ITKit... This is the new HotKey code by Quentin of
[ITKit.git] / ITHotKey.h
diff --git a/ITHotKey.h b/ITHotKey.h
new file mode 100755 (executable)
index 0000000..d654bbc
--- /dev/null
@@ -0,0 +1,35 @@
+//
+//  ITHotKey.h
+//
+//  Created by Quentin Carnicelli on Sat Aug 02 2003.
+//  Copyright (c) 2003 iThink Software. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import "ITKeyCombo.h"
+
+@interface ITHotKey : NSObject
+{
+       NSString*               mName;
+       ITKeyCombo*             mKeyCombo;
+       id                              mTarget;
+       SEL                             mAction;
+}
+
+- (id)init;
+
+- (void)setName: (NSString*)name;
+- (NSString*)name;
+
+- (void)setKeyCombo: (ITKeyCombo*)combo;
+- (ITKeyCombo*)keyCombo;
+
+- (void)setTarget: (id)target;
+- (id)target;
+- (void)setAction: (SEL)action;
+- (SEL)action;
+
+- (void)invoke;
+
+@end