1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
/**
AppKitEvents.m
NOTE: Do not edit this file, it is automaticaly generated.
Copyright (c) 2002 Free Software Foundation
This file is part of the StepTalk project.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import <Foundation/NSArray.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSString.h>
#import <AppKit/AppKit.h>
#import <AppKit/AppKitExceptions.h>
#import <AppKit/NSDocument.h>
#import <AppKit/NSHelpManager.h>
NSDictionary *STGetAppKitEvents(void)
{
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
Class numberClass = [NSNumber class];
IMP numberWithInteger;
IMP numberWithFloat;
IMP setObject_forKey;
SEL numberWithInteger_sel = @selector(numberWithInteger:);
SEL numberWithFloat_sel = @selector(numberWithFloat:);
SEL setObject_forKey_sel = @selector(setObject:forKey:);
numberWithInteger = [numberClass methodForSelector:numberWithInteger_sel];
numberWithFloat = [numberClass methodForSelector:numberWithFloat_sel];
setObject_forKey = [dict methodForSelector:setObject_forKey_sel];
#define ADD_id_OBJECT(obj, name) \
setObject_forKey(dict, setObject_forKey_sel, obj, name)
#define ADD_NSInteger_OBJECT(obj, name) \
setObject_forKey(dict, setObject_forKey_sel, \
numberWithInteger(numberClass, numberWithInteger_sel, obj), \
name)
#define ADD_float_OBJECT(obj, name) \
setObject_forKey(dict, setObject_forKey_sel, \
numberWithFloat(numberClass, numberWithFloat_sel, obj), \
name)
ADD_NSInteger_OBJECT(NSLeftMouseDown,@"NSLeftMouseDown");
ADD_NSInteger_OBJECT(NSLeftMouseUp,@"NSLeftMouseUp");
ADD_NSInteger_OBJECT(NSOtherMouseDown,@"NSOtherMouseDown");
ADD_NSInteger_OBJECT(NSOtherMouseUp,@"NSOtherMouseUp");
ADD_NSInteger_OBJECT(NSRightMouseDown,@"NSRightMouseDown");
ADD_NSInteger_OBJECT(NSRightMouseUp,@"NSRightMouseUp");
ADD_NSInteger_OBJECT(NSMouseMoved,@"NSMouseMoved");
ADD_NSInteger_OBJECT(NSLeftMouseDragged,@"NSLeftMouseDragged");
ADD_NSInteger_OBJECT(NSOtherMouseDragged,@"NSOtherMouseDragged");
ADD_NSInteger_OBJECT(NSRightMouseDragged,@"NSRightMouseDragged");
ADD_NSInteger_OBJECT(NSMouseEntered,@"NSMouseEntered");
ADD_NSInteger_OBJECT(NSMouseExited,@"NSMouseExited");
ADD_NSInteger_OBJECT(NSKeyDown,@"NSKeyDown");
ADD_NSInteger_OBJECT(NSKeyUp,@"NSKeyUp");
ADD_NSInteger_OBJECT(NSFlagsChanged,@"NSFlagsChanged");
ADD_NSInteger_OBJECT(NSAppKitDefined,@"NSAppKitDefined");
ADD_NSInteger_OBJECT(NSSystemDefined,@"NSSystemDefined");
ADD_NSInteger_OBJECT(NSApplicationDefined,@"NSApplicationDefined");
ADD_NSInteger_OBJECT(NSPeriodic,@"NSPeriodic");
ADD_NSInteger_OBJECT(NSCursorUpdate,@"NSCursorUpdate");
ADD_NSInteger_OBJECT(NSScrollWheel,@"NSScrollWheel");
ADD_NSInteger_OBJECT(NSBackspaceKey,@"NSBackspaceKey");
ADD_NSInteger_OBJECT(NSCarriageReturnKey,@"NSCarriageReturnKey");
ADD_NSInteger_OBJECT(NSDeleteKey,@"NSDeleteKey");
ADD_NSInteger_OBJECT(NSBacktabKey,@"NSBacktabKey");
ADD_NSInteger_OBJECT(NSUpArrowFunctionKey,@"NSUpArrowFunctionKey");
ADD_NSInteger_OBJECT(NSDownArrowFunctionKey,@"NSDownArrowFunctionKey");
ADD_NSInteger_OBJECT(NSLeftArrowFunctionKey,@"NSLeftArrowFunctionKey");
ADD_NSInteger_OBJECT(NSRightArrowFunctionKey,@"NSRightArrowFunctionKey");
ADD_NSInteger_OBJECT(NSF1FunctionKey,@"NSF1FunctionKey");
ADD_NSInteger_OBJECT(NSF2FunctionKey,@"NSF2FunctionKey");
ADD_NSInteger_OBJECT(NSF3FunctionKey,@"NSF3FunctionKey");
ADD_NSInteger_OBJECT(NSF4FunctionKey,@"NSF4FunctionKey");
ADD_NSInteger_OBJECT(NSF5FunctionKey,@"NSF5FunctionKey");
ADD_NSInteger_OBJECT(NSF6FunctionKey,@"NSF6FunctionKey");
ADD_NSInteger_OBJECT(NSF7FunctionKey,@"NSF7FunctionKey");
ADD_NSInteger_OBJECT(NSF8FunctionKey,@"NSF8FunctionKey");
ADD_NSInteger_OBJECT(NSF9FunctionKey,@"NSF9FunctionKey");
ADD_NSInteger_OBJECT(NSF10FunctionKey,@"NSF10FunctionKey");
ADD_NSInteger_OBJECT(NSF11FunctionKey,@"NSF11FunctionKey");
ADD_NSInteger_OBJECT(NSF12FunctionKey,@"NSF12FunctionKey");
ADD_NSInteger_OBJECT(NSF13FunctionKey,@"NSF13FunctionKey");
ADD_NSInteger_OBJECT(NSF14FunctionKey,@"NSF14FunctionKey");
ADD_NSInteger_OBJECT(NSF15FunctionKey,@"NSF15FunctionKey");
ADD_NSInteger_OBJECT(NSF16FunctionKey,@"NSF16FunctionKey");
ADD_NSInteger_OBJECT(NSF17FunctionKey,@"NSF17FunctionKey");
ADD_NSInteger_OBJECT(NSF18FunctionKey,@"NSF18FunctionKey");
ADD_NSInteger_OBJECT(NSF19FunctionKey,@"NSF19FunctionKey");
ADD_NSInteger_OBJECT(NSF20FunctionKey,@"NSF20FunctionKey");
ADD_NSInteger_OBJECT(NSF21FunctionKey,@"NSF21FunctionKey");
ADD_NSInteger_OBJECT(NSF22FunctionKey,@"NSF22FunctionKey");
ADD_NSInteger_OBJECT(NSF23FunctionKey,@"NSF23FunctionKey");
ADD_NSInteger_OBJECT(NSF24FunctionKey,@"NSF24FunctionKey");
ADD_NSInteger_OBJECT(NSF25FunctionKey,@"NSF25FunctionKey");
ADD_NSInteger_OBJECT(NSF26FunctionKey,@"NSF26FunctionKey");
ADD_NSInteger_OBJECT(NSF27FunctionKey,@"NSF27FunctionKey");
ADD_NSInteger_OBJECT(NSF28FunctionKey,@"NSF28FunctionKey");
ADD_NSInteger_OBJECT(NSF29FunctionKey,@"NSF29FunctionKey");
ADD_NSInteger_OBJECT(NSF30FunctionKey,@"NSF30FunctionKey");
ADD_NSInteger_OBJECT(NSF31FunctionKey,@"NSF31FunctionKey");
ADD_NSInteger_OBJECT(NSF32FunctionKey,@"NSF32FunctionKey");
ADD_NSInteger_OBJECT(NSF33FunctionKey,@"NSF33FunctionKey");
ADD_NSInteger_OBJECT(NSF34FunctionKey,@"NSF34FunctionKey");
ADD_NSInteger_OBJECT(NSF35FunctionKey,@"NSF35FunctionKey");
ADD_NSInteger_OBJECT(NSInsertFunctionKey,@"NSInsertFunctionKey");
ADD_NSInteger_OBJECT(NSDeleteFunctionKey,@"NSDeleteFunctionKey");
ADD_NSInteger_OBJECT(NSHomeFunctionKey,@"NSHomeFunctionKey");
ADD_NSInteger_OBJECT(NSBeginFunctionKey,@"NSBeginFunctionKey");
ADD_NSInteger_OBJECT(NSEndFunctionKey,@"NSEndFunctionKey");
ADD_NSInteger_OBJECT(NSPageUpFunctionKey,@"NSPageUpFunctionKey");
ADD_NSInteger_OBJECT(NSPageDownFunctionKey,@"NSPageDownFunctionKey");
ADD_NSInteger_OBJECT(NSPrintScreenFunctionKey,@"NSPrintScreenFunctionKey");
ADD_NSInteger_OBJECT(NSScrollLockFunctionKey,@"NSScrollLockFunctionKey");
ADD_NSInteger_OBJECT(NSPauseFunctionKey,@"NSPauseFunctionKey");
ADD_NSInteger_OBJECT(NSSysReqFunctionKey,@"NSSysReqFunctionKey");
ADD_NSInteger_OBJECT(NSBreakFunctionKey,@"NSBreakFunctionKey");
ADD_NSInteger_OBJECT(NSResetFunctionKey,@"NSResetFunctionKey");
ADD_NSInteger_OBJECT(NSStopFunctionKey,@"NSStopFunctionKey");
ADD_NSInteger_OBJECT(NSMenuFunctionKey,@"NSMenuFunctionKey");
ADD_NSInteger_OBJECT(NSUserFunctionKey,@"NSUserFunctionKey");
ADD_NSInteger_OBJECT(NSSystemFunctionKey,@"NSSystemFunctionKey");
ADD_NSInteger_OBJECT(NSPrintFunctionKey,@"NSPrintFunctionKey");
ADD_NSInteger_OBJECT(NSClearLineFunctionKey,@"NSClearLineFunctionKey");
ADD_NSInteger_OBJECT(NSClearDisplayFunctionKey,@"NSClearDisplayFunctionKey");
ADD_NSInteger_OBJECT(NSInsertLineFunctionKey,@"NSInsertLineFunctionKey");
ADD_NSInteger_OBJECT(NSDeleteLineFunctionKey,@"NSDeleteLineFunctionKey");
ADD_NSInteger_OBJECT(NSInsertCharFunctionKey,@"NSInsertCharFunctionKey");
ADD_NSInteger_OBJECT(NSDeleteCharFunctionKey,@"NSDeleteCharFunctionKey");
ADD_NSInteger_OBJECT(NSPrevFunctionKey,@"NSPrevFunctionKey");
ADD_NSInteger_OBJECT(NSNextFunctionKey,@"NSNextFunctionKey");
ADD_NSInteger_OBJECT(NSSelectFunctionKey,@"NSSelectFunctionKey");
ADD_NSInteger_OBJECT(NSExecuteFunctionKey,@"NSExecuteFunctionKey");
ADD_NSInteger_OBJECT(NSUndoFunctionKey,@"NSUndoFunctionKey");
ADD_NSInteger_OBJECT(NSRedoFunctionKey,@"NSRedoFunctionKey");
ADD_NSInteger_OBJECT(NSFindFunctionKey,@"NSFindFunctionKey");
ADD_NSInteger_OBJECT(NSHelpFunctionKey,@"NSHelpFunctionKey");
ADD_NSInteger_OBJECT(NSModeSwitchFunctionKey,@"NSModeSwitchFunctionKey");
ADD_NSInteger_OBJECT(NSLeftMouseDownMask,@"NSLeftMouseDownMask");
ADD_NSInteger_OBJECT(NSLeftMouseUpMask,@"NSLeftMouseUpMask");
ADD_NSInteger_OBJECT(NSOtherMouseDownMask,@"NSOtherMouseDownMask");
ADD_NSInteger_OBJECT(NSOtherMouseUpMask,@"NSOtherMouseUpMask");
ADD_NSInteger_OBJECT(NSRightMouseDownMask,@"NSRightMouseDownMask");
ADD_NSInteger_OBJECT(NSRightMouseUpMask,@"NSRightMouseUpMask");
ADD_NSInteger_OBJECT(NSMouseMovedMask,@"NSMouseMovedMask");
ADD_NSInteger_OBJECT(NSLeftMouseDraggedMask,@"NSLeftMouseDraggedMask");
ADD_NSInteger_OBJECT(NSOtherMouseDraggedMask,@"NSOtherMouseDraggedMask");
ADD_NSInteger_OBJECT(NSRightMouseDraggedMask,@"NSRightMouseDraggedMask");
ADD_NSInteger_OBJECT(NSMouseEnteredMask,@"NSMouseEnteredMask");
ADD_NSInteger_OBJECT(NSMouseExitedMask,@"NSMouseExitedMask");
ADD_NSInteger_OBJECT(NSFlagsChangedMask,@"NSFlagsChangedMask");
ADD_NSInteger_OBJECT(NSAppKitDefinedMask,@"NSAppKitDefinedMask");
ADD_NSInteger_OBJECT(NSSystemDefinedMask,@"NSSystemDefinedMask");
ADD_NSInteger_OBJECT(NSApplicationDefinedMask,@"NSApplicationDefinedMask");
ADD_NSInteger_OBJECT(NSPeriodicMask,@"NSPeriodicMask");
ADD_NSInteger_OBJECT(NSCursorUpdateMask,@"NSCursorUpdateMask");
ADD_NSInteger_OBJECT(NSScrollWheelMask,@"NSScrollWheelMask");
ADD_NSInteger_OBJECT(NSAnyEventMask,@"NSAnyEventMask");
ADD_NSInteger_OBJECT(NSAlphaShiftKeyMask,@"NSAlphaShiftKeyMask");
ADD_NSInteger_OBJECT(NSAlternateKeyMask,@"NSAlternateKeyMask");
ADD_NSInteger_OBJECT(NSCommandKeyMask,@"NSCommandKeyMask");
ADD_NSInteger_OBJECT(NSControlKeyMask,@"NSControlKeyMask");
ADD_NSInteger_OBJECT(NSFunctionKeyMask,@"NSFunctionKeyMask");
ADD_NSInteger_OBJECT(NSHelpKeyMask,@"NSHelpKeyMask");
ADD_NSInteger_OBJECT(NSKeyDownMask,@"NSKeyDownMask");
ADD_NSInteger_OBJECT(NSKeyUpMask,@"NSKeyUpMask");
ADD_NSInteger_OBJECT(NSNumericPadKeyMask,@"NSNumericPadKeyMask");
ADD_NSInteger_OBJECT(NSShiftKeyMask,@"NSShiftKeyMask");
return dict;
}
/* -- End of file -- */
|