// // 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 #import #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