Adding HotKeys to ITKit... This is the new HotKey code by Quentin of
[ITKit.git] / ITKeyCombo.h
diff --git a/ITKeyCombo.h b/ITKeyCombo.h
new file mode 100755 (executable)
index 0000000..e6d1be0
--- /dev/null
@@ -0,0 +1,38 @@
+//
+//  ITKeyCombo.h
+//
+//  Created by Quentin Carnicelli on Sat Aug 02 2003.
+//  Copyright (c) 2003 iThink Software. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+
+@interface ITKeyCombo : NSObject <NSCopying>
+{
+       int     mKeyCode;
+       int     mModifiers;
+}
+
++ (id)clearKeyCombo;
++ (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers;
+- (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers;
+
+- (id)initWithPlistRepresentation: (id)plist;
+- (id)plistRepresentation;
+
+- (BOOL)isEqual: (ITKeyCombo*)combo;
+
+- (int)keyCode;
+- (int)modifiers;
+
+- (BOOL)isClearCombo;
+- (BOOL)isValidHotKeyCombo;
+
+@end
+
+@interface ITKeyCombo (UserDisplayAdditions)
+
+- (NSString*)description;
+
+@end
\ No newline at end of file