You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
// |
|
// PTHotKey.h |
|
// Protein |
|
// |
|
// Created by Quentin Carnicelli on Sat Aug 02 2003. |
|
// Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. |
|
// |
|
// Contributors: |
|
// Andy Kim |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <Carbon/Carbon.h> |
|
#import "PTKeyCombo.h" |
|
|
|
@interface PTHotKey : NSObject |
|
{ |
|
NSString* mIdentifier; |
|
NSString* mName; |
|
PTKeyCombo* mKeyCombo; |
|
id mTarget; |
|
id mObject; |
|
SEL mAction; |
|
SEL mKeyUpAction; |
|
|
|
UInt32 mCarbonHotKeyID; |
|
EventHotKeyRef mCarbonEventHotKeyRef; |
|
} |
|
|
|
- (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo; |
|
- (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo withObject: (id)object; |
|
- (id)init; |
|
|
|
- (void)setIdentifier: (id)ident; |
|
- (id)identifier; |
|
|
|
- (void)setName: (NSString*)name; |
|
- (NSString*)name; |
|
|
|
- (void)setKeyCombo: (PTKeyCombo*)combo; |
|
- (PTKeyCombo*)keyCombo; |
|
|
|
- (void)setTarget: (id)target; |
|
- (id)target; |
|
- (void)setObject: (id)object; |
|
- (id)object; |
|
- (void)setAction: (SEL)action; |
|
- (SEL)action; |
|
- (void)setKeyUpAction: (SEL)action; |
|
- (SEL)keyUpAction; |
|
|
|
- (UInt32)carbonHotKeyID; |
|
- (void)setCarbonHotKeyID: (UInt32)hotKeyID; |
|
|
|
- (EventHotKeyRef)carbonEventHotKeyRef; |
|
- (void)setCarbonEventHotKeyRef:(EventHotKeyRef)hotKeyRef; |
|
|
|
- (void)invoke; |
|
- (void)uninvoke; |
|
|
|
@end
|
|
|