From ba310e8b58d686ee9897b26a7edab5b778a8d96f Mon Sep 17 00:00:00 2001 From: jnj Date: Thu, 13 Nov 2008 18:59:12 +0000 Subject: Add remaining plugins git-svn-id: https://blacktree-elements-public.googlecode.com/svn/trunk@41 57e2f9b5-c12c-0410-8e95-a1ee7272c91a --- .../Versions/A/PrivateHeaders/NDHotKeyControl.h | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 QSFoundation.framework/Versions/A/PrivateHeaders/NDHotKeyControl.h (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NDHotKeyControl.h') diff --git a/QSFoundation.framework/Versions/A/PrivateHeaders/NDHotKeyControl.h b/QSFoundation.framework/Versions/A/PrivateHeaders/NDHotKeyControl.h new file mode 100755 index 0000000..511d37f --- /dev/null +++ b/QSFoundation.framework/Versions/A/PrivateHeaders/NDHotKeyControl.h @@ -0,0 +1,59 @@ +/*! + @header NDHotKeyControl.h + @abstract Header file for a subclass of NSTextField for getting hot key combinations from the user. + @discussion The NDHotKeyControl can be used to get a NDHotKeyEvent for the last key combination pressed by the user. + + Created by Nathan Day on Wed Mar 05 2003. + Copyright (c) 2002 Nathan Day. All rights reserved. + */ + +#import + +@class NDHotKeyEvent; + +/*! + @class NDHotKeyControl + @abstract Subclass of NSTextField for getting hot key combinations from the user. + @discussion The NDHotKeyControl can be used to get a NDHotKeyEvent for the last key combination pressed by the user. + */ +@interface NDHotKeyControl : NSTextField +{ +@private + unsigned short keyCode; + unichar character; + unsigned long modifierFlags; +} + +/*! + @method keyCode + @abstract Get key code. + @discussion Returns the key code for the last key combination the user pressed while the reciever was active. + @result A unsigned short containing key code. + */ +- (unsigned short)keyCode; + +/*! + @method character + @abstract Get unicode character. + @discussion Returns the unicode character for the last key combination the user pressed while the reciever was active. + @result A unichar containing character. + */ +- (unichar)character; + +/*! + @method modifierFlags + @abstract Get modifer flags. + @discussion Returns the modifer flags for the last key combination the user pressed while the reciever was active. + @result A unsigned long containing modifer flags. + */ +- (unsigned long)modifierFlags; + +/*! + @method hotKeyEvent + @abstract Get NDHotKeyEvent + @discussion Returns the NDHotKeyEvent instance for the last key combination the user pressed while the reciever was active. The NDHotKeyEvent returned will either be one that has already been created or a newly created one otherwise. + @result A NDHotKeyEvent for the hot key event. + */ +- (NDHotKeyEvent *)hotKeyEvent; + +@end -- cgit