home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnusmalltalk / examples / cfuncs.st next >
Text File  |  1992-02-15  |  23KB  |  482 lines

  1. "======================================================================
  2. |
  3. |   SystemDictionary Method Definitions
  4. |
  5.  ======================================================================"
  6.  
  7.  
  8. "======================================================================
  9. |
  10. | Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  11. | Written by Steve Byrne.
  12. |
  13. | This file is part of GNU Smalltalk.
  14. |
  15. | GNU Smalltalk is free software; you can redistribute it and/or modify it
  16. | under the terms of the GNU General Public License as published by the Free
  17. | Software Foundation; either version 1, or (at your option) any later version.
  18. | GNU Smalltalk is distributed in the hope that it will be useful, but WITHOUT
  19. | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  20. | FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  21. | details.
  22. | You should have received a copy of the GNU General Public License along with
  23. | GNU Smalltalk; see the file LICENSE.  If not, write to the Free Software
  24. | Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  
  25. |
  26.  ======================================================================"
  27.  
  28.  
  29. "
  30. |     Change Log
  31. | ============================================================================
  32. | Author       Date       Change 
  33. | sbyrne      8 Jul 89      Created.
  34. |
  35. "
  36.  
  37. Behavior defineCFunc: 'system'
  38.          withSelectorArgs: 'system: aString'
  39.      forClass: SystemDictionary
  40.      returning: #int
  41.      args: #(string)!
  42.  
  43. Behavior defineCFunc: 'getenv'
  44.          withSelectorArgs: 'getenv: aString'
  45.      forClass: SystemDictionary
  46.      returning: #string
  47.      args: #(string)!
  48.  
  49. "Below are object and method definitions used to create a simple interface
  50. to SunView windws from GNU Smalltalk."
  51.  
  52. Smalltalk at: #SuntoolObjectTypes put: Dictionary new!
  53.  
  54. Behavior defineCFunc: 'lookupCAddr'
  55.          withSelectorArgs: 'lookupCAddr: aString'
  56.      forClass: SystemDictionary
  57.      returning: #cObject
  58.      args: #(string)!
  59.  
  60. !Dictionary methodsFor: 'testing'!
  61.  
  62. findDefsFor: anArray
  63.     anArray do:
  64.     [ :elt | self at: (elt at: 1)
  65.               put: (Smalltalk lookupCAddr: (elt at: 2)) ]
  66. !!
  67.  
  68. Smalltalk addInit:
  69.     [ SuntoolObjectTypes findDefsFor: #(
  70.         (FrameType            'FRAME')
  71.         (PanelType            'PANEL')
  72.         (PanelMessageType    'PANEL_MESSAGE')
  73.         (PanelButtonType    'PANEL_BUTTON')
  74.         (PanelChoiceType    'PANEL_CHOICE')
  75.         (PanelSliderType    'PANEL_SLIDER')
  76.         (PanelTextType        'PANEL_TEXT')
  77.         (PanelToggleType    'PANEL_TOGGLE')
  78.         (PanelLineType        'PANEL_LINE')
  79.         )
  80.     ] !
  81.  
  82.  
  83. Smalltalk at: #PanelAttrs put: Dictionary new!
  84.  
  85. PanelAttrs findDefsFor: #(
  86.     (panelItemX                     'PANEL_ITEM_X')
  87.     (panelItemXGap                  'PANEL_ITEM_X_GAP')
  88.     (panelLabelX                    'PANEL_LABEL_X')
  89.     (panelValueX                    'PANEL_VALUE_X')
  90.     (panelSliderWidth               'PANEL_SLIDER_WIDTH')
  91.     (panelWidth                     'PANEL_WIDTH')
  92.     (panelChoiceX                   'PANEL_CHOICE_X')
  93.     (panelMarkX                     'PANEL_MARK_X')
  94.     (panelChoiceXs                  'PANEL_CHOICE_XS')
  95.     (panelMarkXs                    'PANEL_MARK_XS')
  96.     (panelItemY                     'PANEL_ITEM_Y')
  97.     (panelItemYGap                  'PANEL_ITEM_Y_GAP')
  98.     (panelLabelY                    'PANEL_LABEL_Y')
  99.     (panelValueY                    'PANEL_VALUE_Y')
  100.     (panelHeight                    'PANEL_HEIGHT')
  101.     (panelChoiceY                   'PANEL_CHOICE_Y')
  102.     (panelMarkY                     'PANEL_MARK_Y')
  103.     (panelChoiceYs                  'PANEL_CHOICE_YS')
  104.     (panelMarkYs                    'PANEL_MARK_YS')
  105.     (panelValue                     'PANEL_VALUE')
  106.     (panelLabelDisplayLength        'PANEL_LABEL_DISPLAY_LENGTH')
  107.     (panelValueDisplayLength        'PANEL_VALUE_DISPLAY_LENGTH')
  108.     (panelValueStoredLength         'PANEL_VALUE_STORED_LENGTH')
  109.     (panelMinValue                  'PANEL_MIN_VALUE')
  110.     (panelMaxValue                  'PANEL_MAX_VALUE')
  111.     (panelChoiceOffset              'PANEL_CHOICE_OFFSET')
  112.     (panelTimerSecs                 'PANEL_TIMER_SECS')
  113.     (panelTimerUsecs                'PANEL_TIMER_USECS')
  114.     (panelMenuChoiceValues          'PANEL_MENU_CHOICE_VALUES')
  115.     (panelValueUnderlined           'PANEL_VALUE_UNDERLINED')
  116.     (panelItemBoxed                 'PANEL_ITEM_BOXED')
  117.     (panelLabelBold                 'PANEL_LABEL_BOLD')
  118.     (panelChoicesBold               'PANEL_CHOICES_BOLD')
  119.     (panelShowItem                  'PANEL_SHOW_ITEM')
  120.     (panelShowValue                 'PANEL_SHOW_VALUE')
  121.     (panelShowRange                 'PANEL_SHOW_RANGE')
  122.     (panelShowMenu                  'PANEL_SHOW_MENU')
  123.     (panelShowMenuMark              'PANEL_SHOW_MENU_MARK')
  124.     (panelChooseOne                 'PANEL_CHOOSE_ONE')
  125.     (panelAdjustable                'PANEL_ADJUSTABLE')
  126.     (panelBlinkCaret                'PANEL_BLINK_CARET')
  127.     (panelAcceptKeystroke           'PANEL_ACCEPT_KEYSTROKE')
  128.     (panelLabelShaded               'PANEL_LABEL_SHADED')
  129.     (panelToggleValue               'PANEL_TOGGLE_VALUE')
  130.     (panelNotifyLevel               'PANEL_NOTIFY_LEVEL')
  131.     (panelDisplayLevel              'PANEL_DISPLAY_LEVEL')
  132.     (panelLayout                    'PANEL_LAYOUT')
  133.     (panelFeedback                  'PANEL_FEEDBACK')
  134.     (panelPaint                     'PANEL_PAINT')
  135.     (panelMouseState                'PANEL_MOUSE_STATE')
  136.     (panelMaskChar                  'PANEL_MASK_CHAR')
  137.     (panelLabelString               'PANEL_LABEL_STRING')
  138.     (panelValueString               'PANEL_VALUE_STRING')
  139.     (panelNotifyString              'PANEL_NOTIFY_STRING')
  140.     (panelMenuTitleString           'PANEL_MENU_TITLE_STRING')
  141.     (panelName                      'PANEL_NAME')
  142.     (panelChoiceStrings             'PANEL_CHOICE_STRINGS')
  143.     (panelMenuChoiceStrings         'PANEL_MENU_CHOICE_STRINGS')
  144.     (panelChoiceString              'PANEL_CHOICE_STRING')
  145.     (panelLabelImage                'PANEL_LABEL_IMAGE')
  146.     (panelMenuTitleImage            'PANEL_MENU_TITLE_IMAGE')
  147.     (panelMenuMarkImage             'PANEL_MENU_MARK_IMAGE')
  148.     (panelMenuNomarkImage           'PANEL_MENU_NOMARK_IMAGE')
  149.     (panelTypeImage                 'PANEL_TYPE_IMAGE')
  150.     (panelChoiceImages              'PANEL_CHOICE_IMAGES')
  151.     (panelMenuChoiceImages          'PANEL_MENU_CHOICE_IMAGES')
  152.     (panelMarkImages                'PANEL_MARK_IMAGES')
  153.     (panelNomarkImages              'PANEL_NOMARK_IMAGES')
  154.     (panelChoiceImage               'PANEL_CHOICE_IMAGE')
  155.     (panelMarkImage                 'PANEL_MARK_IMAGE')
  156.     (panelNomarkImage               'PANEL_NOMARK_IMAGE')
  157.     (panelLabelFont                 'PANEL_LABEL_FONT')
  158.     (panelValueFont                 'PANEL_VALUE_FONT')
  159.     (panelMenuTitleFont             'PANEL_MENU_TITLE_FONT')
  160.     (panelFont                      'PANEL_FONT')
  161.     (panelChoiceFonts               'PANEL_CHOICE_FONTS')
  162.     (panelMenuChoiceFonts           'PANEL_MENU_CHOICE_FONTS')
  163.     (panelNotifyProc                'PANEL_NOTIFY_PROC')
  164.     (panelTimerProc                 'PANEL_TIMER_PROC')
  165.     (panelEventProc                 'PANEL_EVENT_PROC')
  166.     (panelBackgroundProc            'PANEL_BACKGROUND_PROC')
  167.     (panelItemRect                  'PANEL_ITEM_RECT')
  168.     (panelPixwin                    'PANEL_PIXWIN')
  169.     (panelClientData                'PANEL_CLIENT_DATA')
  170.     (panelVerticalScrollbar         'PANEL_VERTICAL_SCROLLBAR')
  171.     (panelHorizontalScrollbar       'PANEL_HORIZONTAL_SCROLLBAR')
  172.     (panelCursor                    'PANEL_CURSOR')
  173.     (panelCaretItem                 'PANEL_CARET_ITEM')
  174.     (panelFirstItem                 'PANEL_FIRST_ITEM')
  175.     (panelNextItem                  'PANEL_NEXT_ITEM')
  176.     (panelParentPanel               'PANEL_PARENT_PANEL')
  177. )
  178. !
  179.  
  180. Smalltalk at: #FrameAttrs put: Dictionary new!
  181.  
  182. FrameAttrs findDefsFor: #(
  183.     (frameClosed                    'FRAME_CLOSED')
  184.     (frameInheritColors             'FRAME_INHERIT_COLORS')
  185.     (frameShowLabel                 'FRAME_SHOW_LABEL')
  186.     (frameSubwindowsAdjustable      'FRAME_SUBWINDOWS_ADJUSTABLE')
  187.     (frameLabel                     'FRAME_LABEL')
  188.     (frameForegroundColor           'FRAME_FOREGROUND_COLOR')
  189.     (frameBackgroundColor           'FRAME_BACKGROUND_COLOR')
  190.     (frameIcon                      'FRAME_ICON')
  191.     (frameClosedX                   'FRAME_CLOSED_X')
  192.     (frameClosedY                   'FRAME_CLOSED_Y')
  193.     (frameClosedRect                'FRAME_CLOSED_RECT')
  194.     (frameCurrentRect               'FRAME_CURRENT_RECT')
  195.     (frameOpenRect                  'FRAME_OPEN_RECT')
  196.     (frameArgs                      'FRAME_ARGS')
  197.     (frameArgcPtrArgv               'FRAME_ARGC_PTR_ARGV')
  198.     (frameCmdlineHelpProc           'FRAME_CMDLINE_HELP_PROC')
  199.     (frameBorderStyle               'FRAME_BORDER_STYLE')
  200.     (frameEmboldenLabel             'FRAME_EMBOLDEN_LABEL')
  201.     (frameNthWindow                 'FRAME_NTH_WINDOW')
  202.     (frameNthSubwindow              'FRAME_NTH_SUBWINDOW')
  203.     (frameNthSubframe               'FRAME_NTH_SUBFRAME')
  204.     (frameDoneProc                  'FRAME_DONE_PROC')
  205.     (frameDefaultDoneProc           'FRAME_DEFAULT_DONE_PROC')
  206.     (frameNoConfirm                 'FRAME_NO_CONFIRM')
  207.     (frameNullAttr                  'FRAME_NULL_ATTR')
  208. )
  209. !
  210.  
  211. Smalltalk at: #CanvasAttrs put: Dictionary new!
  212.  
  213. CanvasAttrs findDefsFor: #(
  214.     (canvasPixwin                   'CANVAS_PIXWIN')
  215.     (canvasLeft                     'CANVAS_LEFT')
  216.     (canvasTop                      'CANVAS_TOP')
  217.     (canvasWidth                    'CANVAS_WIDTH')
  218.     (canvasHeight                   'CANVAS_HEIGHT')
  219.     (canvasDepth                    'CANVAS_DEPTH')
  220.     (canvasMargin                   'CANVAS_MARGIN')
  221.     (canvasRetained                 'CANVAS_RETAINED')
  222.     (canvasFixedImage               'CANVAS_FIXED_IMAGE')
  223.     (canvasRepaintProc              'CANVAS_REPAINT_PROC')
  224.     (canvasResizeProc               'CANVAS_RESIZE_PROC')
  225.     (canvasAutoClear                'CANVAS_AUTO_CLEAR')
  226.     (canvasAutoExpand               'CANVAS_AUTO_EXPAND')
  227.     (canvasAutoShrink               'CANVAS_AUTO_SHRINK')
  228.     (canvasFastMono                 'CANVAS_FAST_MONO')
  229. )
  230. !
  231.  
  232. Smalltalk at: #WindowAttrs put: Dictionary new!
  233.  
  234. WindowAttrs findDefsFor: #(
  235.     (winErrorMsg                    'WIN_ERROR_MSG')
  236.     (winX                           'WIN_X')
  237.     (winY                           'WIN_Y')
  238.     (winRightOf                     'WIN_RIGHT_OF')
  239.     (winBelow                       'WIN_BELOW')
  240.     (winWidth                       'WIN_WIDTH')
  241.     (winHeight                      'WIN_HEIGHT')
  242.     (winPercentWidth                'WIN_PERCENT_WIDTH')
  243.     (winPercentHeight               'WIN_PERCENT_HEIGHT')
  244.     (winColumns                     'WIN_COLUMNS')
  245.     (winRows                        'WIN_ROWS')
  246.     (winRect                        'WIN_RECT')
  247.     (winScreenRect                  'WIN_SCREEN_RECT')
  248.     (winFitHeight                   'WIN_FIT_HEIGHT')
  249.     (winFitWidth                    'WIN_FIT_WIDTH')
  250.     (winShow                        'WIN_SHOW')
  251.     (winMenu                        'WIN_MENU')
  252.     (winCursor                      'WIN_CURSOR')
  253.     (winHorizontalScrollbar         'WIN_HORIZONTAL_SCROLLBAR')
  254.     (winVerticalScrollbar           'WIN_VERTICAL_SCROLLBAR')
  255.     (winEventProc                   'WIN_EVENT_PROC')
  256.     (winInputDesignee               'WIN_INPUT_DESIGNEE')
  257.     (winGrabAllInput                'WIN_GRAB_ALL_INPUT')
  258.     (winKbdInputMask                'WIN_KBD_INPUT_MASK')
  259.     (winConsumeKbdEvent             'WIN_CONSUME_KBD_EVENT')
  260.     (winIgnoreKbdEvent              'WIN_IGNORE_KBD_EVENT')
  261.     (winConsumeKbdEvents            'WIN_CONSUME_KBD_EVENTS')
  262.     (winIgnoreKbdEvents             'WIN_IGNORE_KBD_EVENTS')
  263.     (winPickInputMask               'WIN_PICK_INPUT_MASK')
  264.     (winConsumePickEvent            'WIN_CONSUME_PICK_EVENT')
  265.     (winIgnorePickEvent             'WIN_IGNORE_PICK_EVENT')
  266.     (winConsumePickEvents           'WIN_CONSUME_PICK_EVENTS')
  267.     (winIgnorePickEvents            'WIN_IGNORE_PICK_EVENTS')
  268.     (winFont                        'WIN_FONT')
  269.     (winTopMargin                   'WIN_TOP_MARGIN')
  270.     (winBottomMargin                'WIN_BOTTOM_MARGIN')
  271.     (winLeftMargin                  'WIN_LEFT_MARGIN')
  272.     (winRightMargin                 'WIN_RIGHT_MARGIN')
  273.     (winRowHeight                   'WIN_ROW_HEIGHT')
  274.     (winColumnWidth                 'WIN_COLUMN_WIDTH')
  275.     (winRowGap                      'WIN_ROW_GAP')
  276.     (winColumnGap                   'WIN_COLUMN_GAP')
  277.     (winType                        'WIN_TYPE')
  278.     (winOwner                       'WIN_OWNER')
  279.     (winName                        'WIN_NAME')
  280.     (winClientData                  'WIN_CLIENT_DATA')
  281.     (winImplData                    'WIN_IMPL_DATA')
  282.     (winFd                          'WIN_FD')
  283.     (winDeviceName                  'WIN_DEVICE_NAME')
  284.     (winDeviceNumber                'WIN_DEVICE_NUMBER')
  285.     (winPixwin                      'WIN_PIXWIN')
  286.     (winMouseXy                     'WIN_MOUSE_XY')
  287.     (winShowUpdates                 'WIN_SHOW_UPDATES')
  288.     (winObject                      'WIN_OBJECT')
  289.     (winGetProc                     'WIN_GET_PROC')
  290.     (winSetProc                     'WIN_SET_PROC')
  291.     (winPresetProc                  'WIN_PRESET_PROC')
  292.     (winPostsetProc                 'WIN_POSTSET_PROC')
  293.     (winLayoutProc                  'WIN_LAYOUT_PROC')
  294.     (winNotifyDestroyProc           'WIN_NOTIFY_DESTROY_PROC')
  295.     (winNotifyEventProc             'WIN_NOTIFY_EVENT_PROC')
  296.     (winDefaultEventProc            'WIN_DEFAULT_EVENT_PROC')
  297.     (winCreated                     'WIN_CREATED')
  298.     (winCompatibility               'WIN_COMPATIBILITY')
  299.     (winCompatibilityInfo           'WIN_COMPATIBILITY_INFO')
  300.     (winRegister                    'WIN_REGISTER')
  301.     (winNotifyInfo                  'WIN_NOTIFY_INFO')
  302.     (winNullAttr                    'WIN_NULL_ATTR')
  303.     (winKbdFocus                    'WIN_KBD_FOCUS')
  304.     (winEventState                  'WIN_EVENT_STATE')
  305. )
  306. !
  307.  
  308. Smalltalk at: #TextswAttrs put: Dictionary new!
  309.  
  310. TextswAttrs findDefsFor: #(
  311.     (textswAdjustIsPendingDelete    'TEXTSW_ADJUST_IS_PENDING_DELETE')
  312.     (textswAgainLimit               'TEXTSW_AGAIN_LIMIT')
  313.     (textswAgainRecording           'TEXTSW_AGAIN_RECORDING')
  314.     (textswAutoIndent               'TEXTSW_AUTO_INDENT')
  315.     (textswAutoScrollBy             'TEXTSW_AUTO_SCROLL_BY')
  316.     (textswBlinkCaret               'TEXTSW_BLINK_CARET')
  317.     (textswBrowsing                 'TEXTSW_BROWSING')
  318.     (textswCheckpointFrequency      'TEXTSW_CHECKPOINT_FREQUENCY')
  319.     (textswClientData               'TEXTSW_CLIENT_DATA')
  320.     (textswConfirmOverwrite         'TEXTSW_CONFIRM_OVERWRITE')
  321.     (textswContents                 'TEXTSW_CONTENTS')
  322.     (textswControlCharsUseFont      'TEXTSW_CONTROL_CHARS_USE_FONT')
  323.     (textswDestroyAllViews          'TEXTSW_DESTROY_ALL_VIEWS')
  324.     (textswDisableCd                'TEXTSW_DISABLE_CD')
  325.     (textswDisableLoad              'TEXTSW_DISABLE_LOAD')
  326.     (textswEditBackChar             'TEXTSW_EDIT_BACK_CHAR')
  327.     (textswEditBackLine             'TEXTSW_EDIT_BACK_LINE')
  328.     (textswEditBackWord             'TEXTSW_EDIT_BACK_WORD')
  329.     (textswEditCount                'TEXTSW_EDIT_COUNT')
  330.     (textswErrorMsg                 'TEXTSW_ERROR_MSG')
  331.     (textswEsCreateProc             'TEXTSW_ES_CREATE_PROC')
  332.     (textswFile                     'TEXTSW_FILE')
  333.     (textswFont                     'TEXTSW_FONT')
  334.     (textswHeight                   'TEXTSW_HEIGHT')
  335.     (textswHistoryLimit             'TEXTSW_HISTORY_LIMIT')
  336.     (textswIgnoreLimit              'TEXTSW_IGNORE_LIMIT')
  337.     (textswInsertMakesVisible       'TEXTSW_INSERT_MAKES_VISIBLE')
  338.     (textswInsertOnly               'TEXTSW_INSERT_ONLY')
  339.     (textswInsertionPoint           'TEXTSW_INSERTION_POINT')
  340.     (textswLength                   'TEXTSW_LENGTH')
  341.     (textswLoadDirIsCd              'TEXTSW_LOAD_DIR_IS_CD')
  342.     (textswLowerContext             'TEXTSW_LOWER_CONTEXT')
  343.     (textswMemoryMaximum            'TEXTSW_MEMORY_MAXIMUM')
  344.     (textswMenu                     'TEXTSW_MENU')
  345.     (textswModified                 'TEXTSW_MODIFIED')
  346.     (textswMultiClickSpace          'TEXTSW_MULTI_CLICK_SPACE')
  347.     (textswMultiClickTimeout        'TEXTSW_MULTI_CLICK_TIMEOUT')
  348.     (textswMustShowCaret            'TEXTSW_MUST_SHOW_CARET')
  349.     (textswName                     'TEXTSW_NAME')
  350.     (textswNameToUse                'TEXTSW_NAME_TO_USE')
  351.     (textswNoResetToScratch         'TEXTSW_NO_RESET_TO_SCRATCH')
  352.     (textswNoSelectionService       'TEXTSW_NO_SELECTION_SERVICE')
  353.     (textswNotifyLevel              'TEXTSW_NOTIFY_LEVEL')
  354.     (textswNotifyProc               'TEXTSW_NOTIFY_PROC')
  355.     (textswPixwin                   'TEXTSW_PIXWIN')
  356.     (textswReadOnly                 'TEXTSW_READ_ONLY')
  357.     (textswResetMode                'TEXTSW_RESET_MODE')
  358.     (textswStatus                   'TEXTSW_STATUS')
  359.     (textswStoreChangesFile         'TEXTSW_STORE_CHANGES_FILE')
  360.     (textswStoreSelfIsSave          'TEXTSW_STORE_SELF_IS_SAVE')
  361.     (textswTabWidth                 'TEXTSW_TAB_WIDTH')
  362.     (textswTool                     'TEXTSW_TOOL')
  363.     (textswUpperContext             'TEXTSW_UPPER_CONTEXT')
  364.     (textswWidth                    'TEXTSW_WIDTH')
  365.     (textswCoalesceWith             'TEXTSW_COALESCE_WITH')
  366.     (textswEndAllViews              'TEXTSW_END_ALL_VIEWS')
  367.     (textswForAllViews              'TEXTSW_FOR_ALL_VIEWS')
  368.     (textswFirst                    'TEXTSW_FIRST')
  369.     (textswFirstLine                'TEXTSW_FIRST_LINE')
  370.     (textswLeftMargin               'TEXTSW_LEFT_MARGIN')
  371.     (textswLineBreakAction          'TEXTSW_LINE_BREAK_ACTION')
  372.     (textswRightMargin              'TEXTSW_RIGHT_MARGIN')
  373.     (textswScrollbar                'TEXTSW_SCROLLBAR')
  374.     (textswUpdateScrollbar          'TEXTSW_UPDATE_SCROLLBAR')
  375.     (textswSpare1                   'TEXTSW_SPARE_1')
  376.     (textswSpare2                   'TEXTSW_SPARE_2')
  377. )
  378. !
  379.  
  380. Smalltalk at: #MenuAttrs put: Dictionary new!
  381.  
  382. MenuAttrs findDefsFor: #(
  383.     (menuActionProc                 'MENU_ACTION_PROC')
  384.     (menuAction                     'MENU_ACTION')
  385.     (menuActionImage                'MENU_ACTION_IMAGE')
  386.     (menuActionItem                 'MENU_ACTION_ITEM')
  387.     (menuAppendItem                 'MENU_APPEND_ITEM')
  388.     (menuAppend                     'MENU_APPEND')
  389.     (menuBoxed                      'MENU_BOXED')
  390.     (menuCenter                     'MENU_CENTER')
  391.     (menuClientData                 'MENU_CLIENT_DATA')
  392.     (menuColumnMajor                'MENU_COLUMN_MAJOR')
  393.     (menuDefault                    'MENU_DEFAULT')
  394.     (menuDefaultItem                'MENU_DEFAULT_ITEM')
  395.     (menuDefaultImage               'MENU_DEFAULT_IMAGE')
  396.     (menuDisableItem                'MENU_DISABLE_ITEM')
  397.     (menuDefaultSelection           'MENU_DEFAULT_SELECTION')
  398.     (menuDescendFirst               'MENU_DESCEND_FIRST')
  399.     (menuFeedback                   'MENU_FEEDBACK')
  400.     (menuFirstEvent                 'MENU_FIRST_EVENT')
  401.     (menuFont                       'MENU_FONT')
  402.     (menuGenPullright               'MENU_GEN_PULLRIGHT')
  403.     (menuGenPullrightImage          'MENU_GEN_PULLRIGHT_IMAGE')
  404.     (menuGenPullrightItem           'MENU_GEN_PULLRIGHT_ITEM')
  405.     (menuGenProc                    'MENU_GEN_PROC')
  406.     (menuGenProcImage               'MENU_GEN_PROC_IMAGE')
  407.     (menuGenProcItem                'MENU_GEN_PROC_ITEM')
  408.     (menuHeight                     'MENU_HEIGHT')
  409.     (menuImage                      'MENU_IMAGE')
  410.     (menuImageItem                  'MENU_IMAGE_ITEM')
  411.     (menuImages                     'MENU_IMAGES')
  412.     (menuInitialSelection           'MENU_INITIAL_SELECTION')
  413.     (menuInitialSelectionSelected   'MENU_INITIAL_SELECTION_SELECTED')
  414.     (menuInitialSelectionExpanded   'MENU_INITIAL_SELECTION_EXPANDED')
  415.     (menuInactive                   'MENU_INACTIVE')
  416.     (menuInsert                     'MENU_INSERT')
  417.     (menuInsertItem                 'MENU_INSERT_ITEM')
  418.     (menuItem                       'MENU_ITEM')
  419.     (menuInvert                     'MENU_INVERT')
  420.     (menuJumpAfterSelection         'MENU_JUMP_AFTER_SELECTION')
  421.     (menuJumpAfterNoSelection       'MENU_JUMP_AFTER_NO_SELECTION')
  422.     (menuLastEvent                  'MENU_LAST_EVENT')
  423.     (menuLeftMargin                 'MENU_LEFT_MARGIN')
  424.     (menuLike                       'MENU_LIKE')
  425.     (menuMargin                     'MENU_MARGIN')
  426.     (menuMenu                       'MENU_MENU')
  427.     (menuNitems                     'MENU_NITEMS')
  428.     (menuNotifyProc                 'MENU_NOTIFY_PROC')
  429.     (menuNthItem                    'MENU_NTH_ITEM')
  430.     (menuNcols                      'MENU_NCOLS')
  431.     (menuNrows                      'MENU_NROWS')
  432.     (menuParent                     'MENU_PARENT')
  433.     (menuPullright                  'MENU_PULLRIGHT')
  434.     (menuPullrightDelta             'MENU_PULLRIGHT_DELTA')
  435.     (menuPullrightImage             'MENU_PULLRIGHT_IMAGE')
  436.     (menuPullrightItem              'MENU_PULLRIGHT_ITEM')
  437.     (menuRelease                    'MENU_RELEASE')
  438.     (menuReleaseImage               'MENU_RELEASE_IMAGE')
  439.     (menuRemove                     'MENU_REMOVE')
  440.     (menuRemoveItem                 'MENU_REMOVE_ITEM')
  441.     (menuReplace                    'MENU_REPLACE')
  442.     (menuReplaceItem                'MENU_REPLACE_ITEM')
  443.     (menuRightMargin                'MENU_RIGHT_MARGIN')
  444.     (menuSelected                   'MENU_SELECTED')
  445.     (menuSelectedItem               'MENU_SELECTED_ITEM')
  446.     (menuShadow                     'MENU_SHADOW')
  447.     (menuStayUp                     'MENU_STAY_UP')
  448.     (menuString                     'MENU_STRING')
  449.     (menuStringItem                 'MENU_STRING_ITEM')
  450.     (menuStrings                    'MENU_STRINGS')
  451.     (menuTitleItem                  'MENU_TITLE_ITEM')
  452.     (menuTitleImage                 'MENU_TITLE_IMAGE')
  453.     (menuType                       'MENU_TYPE')
  454.     (menuValidResult                'MENU_VALID_RESULT')
  455.     (menuValue                      'MENU_VALUE')
  456.     (menuWidth                      'MENU_WIDTH')
  457.     (menuNop                        'MENU_NOP')
  458.     (menuButton                     'MENU_BUTTON')
  459.     (menuFd                         'MENU_FD')
  460.     (menuIe                         'MENU_IE')
  461.     (menuPos                        'MENU_POS')
  462. )
  463. !
  464.  
  465. Smalltalk at: #IconAttrs put: Dictionary new!
  466.  
  467. IconAttrs findDefsFor: #(
  468.     (iconX                          'ICON_X')
  469.     (iconY                          'ICON_Y')
  470.     (iconWidth                      'ICON_WIDTH')
  471.     (iconHeight                     'ICON_HEIGHT')
  472.     (iconImageRect                  'ICON_IMAGE_RECT')
  473.     (iconLabelRect                  'ICON_LABEL_RECT')
  474.     (iconImage                      'ICON_IMAGE')
  475.     (iconLabel                      'ICON_LABEL')
  476.     (iconFont                       'ICON_FONT')
  477. )
  478. !
  479.  
  480.