/**
    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 -- */
