Huge audit of ITKit, mostly everything has been updated to current coding
[ITKit.git] / ITKeyCombo.h
1 /*
2  *      ITKit
3  *      ITKeyCombo.h
4  *
5  *      Copyright (c) 2005 by iThink Software.
6  *      All Rights Reserved.
7  *
8  *      $Id$
9  *
10  */
11
12 #import <Cocoa/Cocoa.h>
13
14 @interface ITKeyCombo : NSObject <NSCopying> {
15         int mKeyCode;
16         int mModifiers;
17 }
18
19 + (id)clearKeyCombo;
20 + (id)keyComboWithKeyCode:(int)keyCode modifiers:(int)modifiers;
21 + (id)keyComboWithPlistRepresentation:(id)plist;
22 - (id)initWithKeyCode:(int)keyCode modifiers:(int)modifiers;
23
24 - (id)initWithPlistRepresentation:(id)plist;
25 - (id)plistRepresentation;
26
27 - (BOOL)isEqual:(ITKeyCombo *)combo;
28
29 - (int)keyCode;
30 - (int)modifiers;
31
32 - (BOOL)isClearCombo;
33 - (BOOL)isValidHotKeyCombo;
34
35 @end
36
37 @interface ITKeyCombo (UserDisplayAdditions)
38
39 - (NSString *)description;
40
41 @end