X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/29eb1a7ef6ff49cace92432b1813845fd3a7d1e9..d9649564199a7220e70716aa0999c6fddb0efadc:/ITKeyCombo.h diff --git a/ITKeyCombo.h b/ITKeyCombo.h new file mode 100755 index 0000000..e6d1be0 --- /dev/null +++ b/ITKeyCombo.h @@ -0,0 +1,38 @@ +// +// ITKeyCombo.h +// +// Created by Quentin Carnicelli on Sat Aug 02 2003. +// Copyright (c) 2003 iThink Software. All rights reserved. +// + +#import + + +@interface ITKeyCombo : NSObject +{ + 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