Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (40 sloc) 1.035 kb
f1ecb58 @jessegrosjean new version of quick cursor
authored
1 //
2 // PTHotKey.h
3 // Protein
4 //
5 // Created by Quentin Carnicelli on Sat Aug 02 2003.
6 // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved.
7 //
8 // Contributors:
9 // Andy Kim
10
11 #import <Foundation/Foundation.h>
12 #import <Carbon/Carbon.h>
13 #import "PTKeyCombo.h"
14
15 @interface PTHotKey : NSObject
16 {
17 NSString* mIdentifier;
18 NSString* mName;
19 PTKeyCombo* mKeyCombo;
20 id mTarget;
21 SEL mAction;
22
23 NSUInteger mCarbonHotKeyID;
24 EventHotKeyRef mCarbonEventHotKeyRef;
25 }
26
27 - (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo;
28 - (id)init;
29
30 - (void)setIdentifier: (id)ident;
31 - (id)identifier;
32
33 - (void)setName: (NSString*)name;
34 - (NSString*)name;
35
36 - (void)setKeyCombo: (PTKeyCombo*)combo;
37 - (PTKeyCombo*)keyCombo;
38
39 - (void)setTarget: (id)target;
40 - (id)target;
41 - (void)setAction: (SEL)action;
42 - (SEL)action;
43
44 - (NSUInteger)carbonHotKeyID;
45 - (void)setCarbonHotKeyID: (NSUInteger)hotKeyID;
46
47 - (EventHotKeyRef)carbonEventHotKeyRef;
48 - (void)setCarbonEventHotKeyRef:(EventHotKeyRef)hotKeyRef;
49
50 - (void)invoke;
51
52 @end
Something went wrong with that request. Please try again.