Another cleanup that doesn't seem to actually help
[ITKit.git] / ITKeyCombo.h
1 /*
2  *      ITKit
3  *  ITKeyCombo
4  *
5  *  Original Author : Quentin Carnicelli <...>
6  *   Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2002 - 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <Foundation/Foundation.h>
16
17
18 @interface ITKeyCombo : NSObject <NSCopying>
19 {
20         int     mKeyCode;
21         int     mModifiers;
22 }
23
24 + (id)clearKeyCombo;
25 + (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers;
26 + (id)keyComboWithPlistRepresentation: (id)plist;
27 - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers;
28
29 - (id)initWithPlistRepresentation: (id)plist;
30 - (id)plistRepresentation;
31
32 - (BOOL)isEqual: (ITKeyCombo*)combo;
33
34 - (int)keyCode;
35 - (int)modifiers;
36
37 - (BOOL)isClearCombo;
38 - (BOOL)isValidHotKeyCombo;
39
40
41 @end
42
43
44 @interface ITKeyCombo (UserDisplayAdditions)
45
46 - (NSString*)description;
47
48 @end