/**
    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 numberWithInt;
    IMP numberWithFloat;
    IMP setObject_forKey;

    SEL numberWithInt_sel = @selector(numberWithInt:);
    SEL numberWithFloat_sel = @selector(numberWithFloat:);
    SEL setObject_forKey_sel = @selector(setObject:forKey:);

    numberWithInt = [NSNumber methodForSelector:numberWithInt_sel];
    numberWithFloat = [NSNumber 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_int_OBJECT(obj, name) \
            setObject_forKey(dict, setObject_forKey_sel, \
                            numberWithInt(numberClass, numberWithInt_sel, obj), \
                            name)

#define ADD_float_OBJECT(obj, name) \
            setObject_forKey(dict, setObject_forKey_sel, \
                            numberWithFloat(numberClass, numberWithInt_sel, obj), \
                            name)

    ADD_int_OBJECT(NSLeftMouseDown,@"NSLeftMouseDown");
    ADD_int_OBJECT(NSLeftMouseUp,@"NSLeftMouseUp");
    ADD_int_OBJECT(NSOtherMouseDown,@"NSOtherMouseDown");
    ADD_int_OBJECT(NSOtherMouseUp,@"NSOtherMouseUp");
    ADD_int_OBJECT(NSRightMouseDown,@"NSRightMouseDown");
    ADD_int_OBJECT(NSRightMouseUp,@"NSRightMouseUp");
    ADD_int_OBJECT(NSMouseMoved,@"NSMouseMoved");
    ADD_int_OBJECT(NSLeftMouseDragged,@"NSLeftMouseDragged");
    ADD_int_OBJECT(NSOtherMouseDragged,@"NSOtherMouseDragged");
    ADD_int_OBJECT(NSRightMouseDragged,@"NSRightMouseDragged");
    ADD_int_OBJECT(NSMouseEntered,@"NSMouseEntered");
    ADD_int_OBJECT(NSMouseExited,@"NSMouseExited");
    ADD_int_OBJECT(NSKeyDown,@"NSKeyDown");
    ADD_int_OBJECT(NSKeyUp,@"NSKeyUp");
    ADD_int_OBJECT(NSFlagsChanged,@"NSFlagsChanged");
    ADD_int_OBJECT(NSAppKitDefined,@"NSAppKitDefined");
    ADD_int_OBJECT(NSSystemDefined,@"NSSystemDefined");
    ADD_int_OBJECT(NSApplicationDefined,@"NSApplicationDefined");
    ADD_int_OBJECT(NSPeriodic,@"NSPeriodic");
    ADD_int_OBJECT(NSCursorUpdate,@"NSCursorUpdate");
    ADD_int_OBJECT(NSScrollWheel,@"NSScrollWheel");
    ADD_int_OBJECT(NSBackspaceKey,@"NSBackspaceKey");
    ADD_int_OBJECT(NSCarriageReturnKey,@"NSCarriageReturnKey");
    ADD_int_OBJECT(NSDeleteKey,@"NSDeleteKey");
    ADD_int_OBJECT(NSBacktabKey,@"NSBacktabKey");
    ADD_int_OBJECT(NSUpArrowFunctionKey,@"NSUpArrowFunctionKey");
    ADD_int_OBJECT(NSDownArrowFunctionKey,@"NSDownArrowFunctionKey");
    ADD_int_OBJECT(NSLeftArrowFunctionKey,@"NSLeftArrowFunctionKey");
    ADD_int_OBJECT(NSRightArrowFunctionKey,@"NSRightArrowFunctionKey");
    ADD_int_OBJECT(NSF1FunctionKey,@"NSF1FunctionKey");
    ADD_int_OBJECT(NSF2FunctionKey,@"NSF2FunctionKey");
    ADD_int_OBJECT(NSF3FunctionKey,@"NSF3FunctionKey");
    ADD_int_OBJECT(NSF4FunctionKey,@"NSF4FunctionKey");
    ADD_int_OBJECT(NSF5FunctionKey,@"NSF5FunctionKey");
    ADD_int_OBJECT(NSF6FunctionKey,@"NSF6FunctionKey");
    ADD_int_OBJECT(NSF7FunctionKey,@"NSF7FunctionKey");
    ADD_int_OBJECT(NSF8FunctionKey,@"NSF8FunctionKey");
    ADD_int_OBJECT(NSF9FunctionKey,@"NSF9FunctionKey");
    ADD_int_OBJECT(NSF10FunctionKey,@"NSF10FunctionKey");
    ADD_int_OBJECT(NSF11FunctionKey,@"NSF11FunctionKey");
    ADD_int_OBJECT(NSF12FunctionKey,@"NSF12FunctionKey");
    ADD_int_OBJECT(NSF13FunctionKey,@"NSF13FunctionKey");
    ADD_int_OBJECT(NSF14FunctionKey,@"NSF14FunctionKey");
    ADD_int_OBJECT(NSF15FunctionKey,@"NSF15FunctionKey");
    ADD_int_OBJECT(NSF16FunctionKey,@"NSF16FunctionKey");
    ADD_int_OBJECT(NSF17FunctionKey,@"NSF17FunctionKey");
    ADD_int_OBJECT(NSF18FunctionKey,@"NSF18FunctionKey");
    ADD_int_OBJECT(NSF19FunctionKey,@"NSF19FunctionKey");
    ADD_int_OBJECT(NSF20FunctionKey,@"NSF20FunctionKey");
    ADD_int_OBJECT(NSF21FunctionKey,@"NSF21FunctionKey");
    ADD_int_OBJECT(NSF22FunctionKey,@"NSF22FunctionKey");
    ADD_int_OBJECT(NSF23FunctionKey,@"NSF23FunctionKey");
    ADD_int_OBJECT(NSF24FunctionKey,@"NSF24FunctionKey");
    ADD_int_OBJECT(NSF25FunctionKey,@"NSF25FunctionKey");
    ADD_int_OBJECT(NSF26FunctionKey,@"NSF26FunctionKey");
    ADD_int_OBJECT(NSF27FunctionKey,@"NSF27FunctionKey");
    ADD_int_OBJECT(NSF28FunctionKey,@"NSF28FunctionKey");
    ADD_int_OBJECT(NSF29FunctionKey,@"NSF29FunctionKey");
    ADD_int_OBJECT(NSF30FunctionKey,@"NSF30FunctionKey");
    ADD_int_OBJECT(NSF31FunctionKey,@"NSF31FunctionKey");
    ADD_int_OBJECT(NSF32FunctionKey,@"NSF32FunctionKey");
    ADD_int_OBJECT(NSF33FunctionKey,@"NSF33FunctionKey");
    ADD_int_OBJECT(NSF34FunctionKey,@"NSF34FunctionKey");
    ADD_int_OBJECT(NSF35FunctionKey,@"NSF35FunctionKey");
    ADD_int_OBJECT(NSInsertFunctionKey,@"NSInsertFunctionKey");
    ADD_int_OBJECT(NSDeleteFunctionKey,@"NSDeleteFunctionKey");
    ADD_int_OBJECT(NSHomeFunctionKey,@"NSHomeFunctionKey");
    ADD_int_OBJECT(NSBeginFunctionKey,@"NSBeginFunctionKey");
    ADD_int_OBJECT(NSEndFunctionKey,@"NSEndFunctionKey");
    ADD_int_OBJECT(NSPageUpFunctionKey,@"NSPageUpFunctionKey");
    ADD_int_OBJECT(NSPageDownFunctionKey,@"NSPageDownFunctionKey");
    ADD_int_OBJECT(NSPrintScreenFunctionKey,@"NSPrintScreenFunctionKey");
    ADD_int_OBJECT(NSScrollLockFunctionKey,@"NSScrollLockFunctionKey");
    ADD_int_OBJECT(NSPauseFunctionKey,@"NSPauseFunctionKey");
    ADD_int_OBJECT(NSSysReqFunctionKey,@"NSSysReqFunctionKey");
    ADD_int_OBJECT(NSBreakFunctionKey,@"NSBreakFunctionKey");
    ADD_int_OBJECT(NSResetFunctionKey,@"NSResetFunctionKey");
    ADD_int_OBJECT(NSStopFunctionKey,@"NSStopFunctionKey");
    ADD_int_OBJECT(NSMenuFunctionKey,@"NSMenuFunctionKey");
    ADD_int_OBJECT(NSUserFunctionKey,@"NSUserFunctionKey");
    ADD_int_OBJECT(NSSystemFunctionKey,@"NSSystemFunctionKey");
    ADD_int_OBJECT(NSPrintFunctionKey,@"NSPrintFunctionKey");
    ADD_int_OBJECT(NSClearLineFunctionKey,@"NSClearLineFunctionKey");
    ADD_int_OBJECT(NSClearDisplayFunctionKey,@"NSClearDisplayFunctionKey");
    ADD_int_OBJECT(NSInsertLineFunctionKey,@"NSInsertLineFunctionKey");
    ADD_int_OBJECT(NSDeleteLineFunctionKey,@"NSDeleteLineFunctionKey");
    ADD_int_OBJECT(NSInsertCharFunctionKey,@"NSInsertCharFunctionKey");
    ADD_int_OBJECT(NSDeleteCharFunctionKey,@"NSDeleteCharFunctionKey");
    ADD_int_OBJECT(NSPrevFunctionKey,@"NSPrevFunctionKey");
    ADD_int_OBJECT(NSNextFunctionKey,@"NSNextFunctionKey");
    ADD_int_OBJECT(NSSelectFunctionKey,@"NSSelectFunctionKey");
    ADD_int_OBJECT(NSExecuteFunctionKey,@"NSExecuteFunctionKey");
    ADD_int_OBJECT(NSUndoFunctionKey,@"NSUndoFunctionKey");
    ADD_int_OBJECT(NSRedoFunctionKey,@"NSRedoFunctionKey");
    ADD_int_OBJECT(NSFindFunctionKey,@"NSFindFunctionKey");
    ADD_int_OBJECT(NSHelpFunctionKey,@"NSHelpFunctionKey");
    ADD_int_OBJECT(NSModeSwitchFunctionKey,@"NSModeSwitchFunctionKey");
    ADD_int_OBJECT(NSLeftMouseDownMask,@"NSLeftMouseDownMask");
    ADD_int_OBJECT(NSLeftMouseUpMask,@"NSLeftMouseUpMask");
    ADD_int_OBJECT(NSOtherMouseDownMask,@"NSOtherMouseDownMask");
    ADD_int_OBJECT(NSOtherMouseUpMask,@"NSOtherMouseUpMask");
    ADD_int_OBJECT(NSRightMouseDownMask,@"NSRightMouseDownMask");
    ADD_int_OBJECT(NSRightMouseUpMask,@"NSRightMouseUpMask");
    ADD_int_OBJECT(NSMouseMovedMask,@"NSMouseMovedMask");
    ADD_int_OBJECT(NSLeftMouseDraggedMask,@"NSLeftMouseDraggedMask");
    ADD_int_OBJECT(NSOtherMouseDraggedMask,@"NSOtherMouseDraggedMask");
    ADD_int_OBJECT(NSRightMouseDraggedMask,@"NSRightMouseDraggedMask");
    ADD_int_OBJECT(NSMouseEnteredMask,@"NSMouseEnteredMask");
    ADD_int_OBJECT(NSMouseExitedMask,@"NSMouseExitedMask");
    ADD_int_OBJECT(NSFlagsChangedMask,@"NSFlagsChangedMask");
    ADD_int_OBJECT(NSAppKitDefinedMask,@"NSAppKitDefinedMask");
    ADD_int_OBJECT(NSSystemDefinedMask,@"NSSystemDefinedMask");
    ADD_int_OBJECT(NSApplicationDefinedMask,@"NSApplicationDefinedMask");
    ADD_int_OBJECT(NSPeriodicMask,@"NSPeriodicMask");
    ADD_int_OBJECT(NSCursorUpdateMask,@"NSCursorUpdateMask");
    ADD_int_OBJECT(NSScrollWheelMask,@"NSScrollWheelMask");
    ADD_int_OBJECT(NSAnyEventMask,@"NSAnyEventMask");
    ADD_int_OBJECT(NSAlphaShiftKeyMask,@"NSAlphaShiftKeyMask");
    ADD_int_OBJECT(NSAlternateKeyMask,@"NSAlternateKeyMask");
    ADD_int_OBJECT(NSCommandKeyMask,@"NSCommandKeyMask");
    ADD_int_OBJECT(NSControlKeyMask,@"NSControlKeyMask");
    ADD_int_OBJECT(NSFunctionKeyMask,@"NSFunctionKeyMask");
    ADD_int_OBJECT(NSHelpKeyMask,@"NSHelpKeyMask");
    ADD_int_OBJECT(NSKeyDownMask,@"NSKeyDownMask");
    ADD_int_OBJECT(NSKeyUpMask,@"NSKeyUpMask");
    ADD_int_OBJECT(NSNumericPadKeyMask,@"NSNumericPadKeyMask");
    ADD_int_OBJECT(NSShiftKeyMask,@"NSShiftKeyMask");

    return dict;
}

/* -- End of file -- */
