# HG changeset patch # User tz # Date 886599312 -3600 # Node ID d9f9745572b2b3f670fee8bcaaf52d9c1d5478b0 # Parent c357919e636fa9d98141e2de5e8e47f33902e52f help texts revised diff -r c357919e636f -r d9f9745572b2 MenuEditor.st --- a/MenuEditor.st Wed Feb 04 12:44:36 1998 +0100 +++ b/MenuEditor.st Wed Feb 04 14:35:12 1998 +0100 @@ -119,8 +119,7 @@ ^ super helpSpec addPairsFrom:#( -#accessCharaterPos -'Index of the access character position into the textual label (optional).' + #addMenuItem 'Adds a new menu item.' @@ -134,11 +133,56 @@ #addSubMenuLink 'Adds a new linked submenu.' -#argument -'An argument passed to the value method, if the value selector is a one- or two-arg selector (i.e. ends with '':''). The argument is passed as a string.' - -#enbled -'This enabled field specifies the name of the aspect (-method or binding) in your application, which returns a value holder holding a boolean, a block which evaluates to either true or false, a selector which returns either true or false or simply true or false. The value, true or false, specifies whether the respective field can be selected, a value of true, or not, a value of false.' +#basicsAction +'A block or a selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' + +#basicsArgument +'An argument passed to above selector, if it is a 1- or a 2-argument selector.' + +#basicsIndication +'A boolean value holder, a boolean evaluating block, or a boolean returning selector for specifying indication state.' + +#basicsIsButton +'Toggles on/off a button behavior.' + +#basicsLabel +'Label of the item.' + +#basicsMenu +'A value holder providing the submenu to be opened if item is selected.' + +#basicsMenuArgument +'An argument passes with menu selector.' + +#basicsNameKey +'Unique identifier of the item (optional).' + +#basicsSelector +'Selector for the generated menu should be installed.' + +#basicsSeparatorType +'List of valid separators.' + +#basicsTranslateLabel +'Toggles on/off translation behavior of the label via class resource file.' + +#detailsAccelerator +'Key to be pressed to select the menu item from the keyboard (accelerator key).' + +#detailsAccessCharaterPosition +'Index of the access character position of the textual label (optional).' + +#detailsEnabled +'A boolean value holder providing en- or disabling of the menu item..' + +#detailsVisibility +'A boolean value holder providing visibility of the menu item.' + +#fileBrowseMenuClass +'Opens a System Browser on current menu class and selector.' + +#fileDefineMenuClass +'Opens a dialog to define current menu class.' #fileLoad 'Opens a dialog for selecting a menu spec.' @@ -146,44 +190,25 @@ #fileNew 'Creates a new menu spec.' +#filePickAMenu +'Changes the cursor for moving it over another menu view to load its menu spec.' + #fileSave 'Saves current menu spec and if modified the help spec.' -#icon -'Selector which returns an image to be displayed.' - -#iconAndLabel -'Specifies that both image and textual label shall be shown.' - -#indication -'Indication field specifying the name of the aspect (-method or binding) in your application, a value holder holding a boolean, a block which evaluates to either true or false, a selector which returns either true or false or simply true or false. The value, true or false, specifies whether the shown indicator is switched on or off.' - -#isVisible -'A value holder providing visibility of the menu item.' - -#label -'Label of the item. If the ''retriever/selector'' is set, and returns an image, the image is used as the displayed label. Dependent on the state of the ''Image & Label'' flag, both the image and the label are shown.' - -#menuSelector -'Name of the selector under which the generated menu should be installed and is accessable.' - -#nameKey -'Unique identifier of the item (optional).' - -#retriever -'Name of the class implementing the image selector. This selector is specified by ''selector''. If no class is given, the current application should implement the specified image selector.' - -#seperatorList -'List of valid separators.' - -#shortcutKey -'Key to be pressed to select the menu item from the keyboard (accelerator key).' - -#submenuChannel -'A value holder providing the submenu to be opened if item is selected.' - -#value -'An action being either a block or a selector. Depending on the number of arguments to the action, the action will be called with the respective arguments. There can either zero, one or two arguments. The first argument to the action is the argument derived from the argument field and the second argument the selected item.' + + +#imageImageAndLabel +'Toggles on/off displaying both image and textual label.' + +#imageImageEditor +'Opens an Image Editor on retriever and selector.' + +#imageRetriever +'Class implementing the image resource method. If no class is given, the current application class will be taken.' + +#imageSelector +'Selector which returns an image.' ) ! ! @@ -209,11 +234,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 219 0 193 0 485 0 511 0) + #'layout:' #(#LayoutFrame 73 0 152 0 339 0 470 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1160 870) - #'bounds:' #(#Rectangle 219 193 486 512) + #'bounds:' #(#Rectangle 73 152 340 471) #'usePreferredExtent:' false ) #'component:' @@ -223,14 +248,14 @@ #(#LabelSpec #'name:' 'nameKeyLabel' #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5) - #'label:' 'NameKey:' + #'label:' 'Name Key:' #'adjust:' #right #'resizeForLabel:' true ) #(#InputFieldSpec #'name:' 'nameKeyField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #nameKey + #'activeHelpKey:' #basicsNameKey #'tabable:' true #'model:' #nameKey #'type:' #symbolOrNil @@ -247,7 +272,7 @@ #(#InputFieldSpec #'name:' 'labelField' #'layout:' #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) - #'activeHelpKey:' #label + #'activeHelpKey:' #basicsLabel #'tabable:' true #'model:' #label #'acceptOnReturn:' false @@ -256,14 +281,14 @@ #(#LabelSpec #'name:' 'valueLabel' #'layout:' #(#AlignmentOrigin 107 0 90 0 1 0.5) - #'label:' 'Value:' + #'label:' 'Action:' #'adjust:' #right #'resizeForLabel:' true ) #(#InputFieldSpec #'name:' 'valueField' #'layout:' #(#LayoutFrame 110 0 79 0 -5 1.0 101 0) - #'activeHelpKey:' #value + #'activeHelpKey:' #basicsAction #'tabable:' true #'model:' #value #'type:' #symbolOrNil @@ -280,7 +305,7 @@ #(#InputFieldSpec #'name:' 'argumentField' #'layout:' #(#LayoutFrame 110 0 104 0 -5 1.0 126 0) - #'activeHelpKey:' #argument + #'activeHelpKey:' #basicsArgument #'tabable:' true #'model:' #argument #'type:' #string @@ -297,7 +322,7 @@ #(#InputFieldSpec #'name:' 'indicationField' #'layout:' #(#LayoutFrame 110 0 144 0 -5 1.0 166 0) - #'activeHelpKey:' #indication + #'activeHelpKey:' #basicsIndication #'tabable:' true #'model:' #indication #'type:' #symbolOrNil @@ -307,7 +332,7 @@ #(#CheckBoxSpec #'name:' 'translateLabelCheckBox' #'layout:' #(#Point 20 192) - #'activeHelpKey:' #translateLabel + #'activeHelpKey:' #basicsTranslateLabel #'tabable:' true #'model:' #translateLabel #'label:' 'Translate Label' @@ -315,7 +340,7 @@ #(#CheckBoxSpec #'name:' 'isButtonCheckBox' #'layout:' #(#Point 20 221) - #'activeHelpKey:' #translateLabel + #'activeHelpKey:' #basicsIsButton #'tabable:' true #'model:' #isButton #'label:' 'Is Button' @@ -344,11 +369,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 374 0 432 0 640 0 750 0) + #'layout:' #(#LayoutFrame 73 0 152 0 339 0 470 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1280 1024) - #'bounds:' #(#Rectangle 374 432 641 751) + #'bounds:' #(#Rectangle 73 152 340 471) #'usePreferredExtent:' false ) #'component:' @@ -359,14 +384,14 @@ #'name:' 'nameKeyLabel' #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5) #'activeHelpKey:' #nameKey - #'label:' 'NameKey:' + #'label:' 'Name Key:' #'adjust:' #right #'resizeForLabel:' true ) #(#InputFieldSpec #'name:' 'nameKeyField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #nameKey + #'activeHelpKey:' #basicsNameKey #'tabable:' true #'model:' #nameKey #'type:' #symbolOrNil @@ -382,7 +407,7 @@ #(#InputFieldSpec #'name:' 'labelField' #'layout:' #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) - #'activeHelpKey:' #label + #'activeHelpKey:' #basicsLabel #'tabable:' true #'model:' #label #'acceptOnReturn:' false @@ -397,7 +422,7 @@ #(#InputFieldSpec #'name:' 'menuField' #'layout:' #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) - #'activeHelpKey:' #submenuChannel + #'activeHelpKey:' #basicsMenu #'tabable:' true #'model:' #submenuChannel #'type:' #symbolOrNil @@ -413,7 +438,7 @@ #(#InputFieldSpec #'name:' 'argumentField' #'layout:' #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) - #'activeHelpKey:' #submenuChannel + #'activeHelpKey:' #basicsMenuArgument #'tabable:' true #'model:' #argument #'acceptOnReturn:' false @@ -422,7 +447,7 @@ #(#CheckBoxSpec #'name:' 'translateLabelCheckBox' #'layout:' #(#Point 20 128) - #'activeHelpKey:' #translateLabel + #'activeHelpKey:' #basicsTranslateLabel #'tabable:' true #'model:' #translateLabel #'label:' 'Translate Label' @@ -451,11 +476,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 456 0 430 0 722 0 748 0) + #'layout:' #(#LayoutFrame 73 0 152 0 339 0 470 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1280 1024) - #'bounds:' #(#Rectangle 456 430 723 749) + #'bounds:' #(#Rectangle 73 152 340 471) #'usePreferredExtent:' false ) #'component:' @@ -465,14 +490,14 @@ #(#LabelSpec #'name:' 'nameKeyLabel' #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5) - #'label:' 'NameKey:' + #'label:' 'Name Key:' #'adjust:' #right #'resizeForLabel:' true ) #(#InputFieldSpec #'name:' 'nameKeyField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #nameKey + #'activeHelpKey:' #basicsNameKey #'tabable:' true #'model:' #nameKey #'type:' #symbolOrNil @@ -489,7 +514,7 @@ #(#InputFieldSpec #'name:' 'labelField' #'layout:' #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) - #'activeHelpKey:' #label + #'activeHelpKey:' #basicsLabel #'tabable:' true #'model:' #label #'acceptOnReturn:' false @@ -498,7 +523,7 @@ #(#CheckBoxSpec #'name:' 'translateLabelCheckBox' #'layout:' #(#Point 20 100) - #'activeHelpKey:' #translateLabel + #'activeHelpKey:' #basicsTranslateLabel #'tabable:' true #'model:' #translateLabel #'label:' 'Translate Label' @@ -527,11 +552,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 230 0 231 0 496 0 549 0) + #'layout:' #(#LayoutFrame 73 0 152 0 339 0 470 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1280 1024) - #'bounds:' #(#Rectangle 230 231 497 550) + #'bounds:' #(#Rectangle 73 152 340 471) #'usePreferredExtent:' false ) #'component:' @@ -548,7 +573,7 @@ #(#InputFieldSpec #'name:' 'selectorField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #menuSelector + #'activeHelpKey:' #basicsSelector #'tabable:' true #'model:' #label #'acceptOnReturn:' false @@ -578,11 +603,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 359 0 319 0 625 0 637 0) + #'layout:' #(#LayoutFrame 73 0 152 0 339 0 470 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1160 870) - #'bounds:' #(#Rectangle 359 319 626 638) + #'bounds:' #(#Rectangle 73 152 340 471) #'usePreferredExtent:' false ) #'component:' @@ -599,7 +624,7 @@ #(#ComboListSpec #'name:' 'seperatorList' #'layout:' #(#LayoutFrame 132 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #seperatorList + #'activeHelpKey:' #basicsSeparatorType #'tabable:' true #'model:' #seperatorSelection #'useIndex:' true @@ -684,11 +709,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 219 0 193 0 477 0 480 0) + #'layout:' #(#LayoutFrame 73 0 152 0 331 0 439 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1280 1024) - #'bounds:' #(#Rectangle 219 193 478 481) + #'bounds:' #(#Rectangle 73 152 332 440) #'usePreferredExtent:' false ) #'component:' @@ -705,7 +730,7 @@ #(#InputFieldSpec #'name:' 'shortcutKeyField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #shortcutKey + #'activeHelpKey:' #detailsAccelerator #'tabable:' true #'model:' #shortcutKey #'type:' #symbolOrNil @@ -722,7 +747,7 @@ #(#InputFieldSpec #'name:' 'enabledField' #'layout:' #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) - #'activeHelpKey:' #enbled + #'activeHelpKey:' #detailsEnabled #'tabable:' true #'model:' #enabled #'type:' #symbolOrNil @@ -739,7 +764,7 @@ #(#InputFieldSpec #'name:' 'isVisibleInputField' #'layout:' #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) - #'activeHelpKey:' #isVisible + #'activeHelpKey:' #detailsVisibility #'tabable:' true #'model:' #isVisible #'type:' #symbolOrNil @@ -774,7 +799,7 @@ #(#InputFieldSpec #'name:' 'accessCharField' #'layout:' #(#LayoutFrame 220 0 131 0 -5 1.0 153 0) - #'activeHelpKey:' #accessCharaterPos + #'activeHelpKey:' #detailsAccessCharaterPosition #'tabable:' true #'model:' #accessCharacterPos #'type:' #numberOrNil @@ -805,11 +830,11 @@ #'window:' #(#WindowSpec #'name:' 'unnamed canvas' - #'layout:' #(#LayoutFrame 104 0 316 0 348 0 457 0) + #'layout:' #(#LayoutFrame 238 0 321 0 482 0 462 0) #'label:' 'unnamed canvas' #'min:' #(#Point 10 10) #'max:' #(#Point 1280 1024) - #'bounds:' #(#Rectangle 104 316 349 458) + #'bounds:' #(#Rectangle 238 321 483 463) #'usePreferredExtent:' false ) #'component:' @@ -826,7 +851,7 @@ #(#InputFieldSpec #'name:' 'retrieverField' #'layout:' #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) - #'activeHelpKey:' #retriever + #'activeHelpKey:' #imageRetriever #'tabable:' true #'model:' #retriever #'type:' #symbolOrNil @@ -843,7 +868,7 @@ #(#InputFieldSpec #'name:' 'iconField' #'layout:' #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) - #'activeHelpKey:' #icon + #'activeHelpKey:' #imageSelector #'tabable:' true #'model:' #icon #'type:' #symbolOrNil @@ -853,6 +878,7 @@ #(#ActionButtonSpec #'name:' 'imageEditorButton' #'layout:' #(#LayoutFrame 110 0 66 0 -5 1 90 0) + #'activeHelpKey:' #imageImageEditor #'label:' 'Image Editor' #'tabable:' true #'model:' #doEditImage @@ -860,7 +886,7 @@ #(#CheckBoxSpec #'name:' 'iconAndLabel' #'layout:' #(#LayoutOrigin 20 0 104 0) - #'activeHelpKey:' #iconAndLabel + #'activeHelpKey:' #imageImageAndLabel #'tabable:' true #'model:' #iconAndLabel #'label:' 'Image & Label' @@ -985,6 +1011,7 @@ #( #(#MenuItem #'label:' 'About' + #'activeHelpKey:' #about #'accessCharacterPosition:' 1 #'labelImage:' #(#ResourceRetriever nil #menuIcon) #'submenuChannel:' #menuAbout @@ -993,6 +1020,7 @@ #'label:' 'File' #'translateLabel:' true #'value:' #file + #'activeHelpKey:' #file #'submenu:' #(#Menu @@ -1026,16 +1054,19 @@ #(#MenuItem #'label:' 'Pick A Menu' #'value:' #doPickAMenu + #'activeHelpKey:' #filePickAMenu #'enabled:' #isStandAlone ) #(#MenuItem #'label:' 'Define Menu Class...' #'value:' #doDefineClass + #'activeHelpKey:' #fileDefineMenuClass #'enabled:' #isStandAlone ) #(#MenuItem #'label:' 'Browse Menu Class' #'value:' #doBrowseAppClass + #'activeHelpKey:' #fileBrowseMenuClass ) #(#MenuItem #'label:' '-' @@ -1052,23 +1083,28 @@ ) #(#MenuItem #'label:' 'Edit' + #'activeHelpKey:' #edit #'submenuChannel:' #menuEdit ) #(#MenuItem #'label:' 'Add' + #'activeHelpKey:' #add #'submenuChannel:' #menuAdd ) #(#MenuItem #'label:' 'Test' + #'activeHelpKey:' #test #'submenuChannel:' #submenuTest ) #(#MenuItem #'label:' 'History' + #'activeHelpKey:' #history #'submenuChannel:' #menuHistory ) #(#MenuItem #'label:' 'Help' #'startGroup:' #right + #'activeHelpKey:' #help #'submenuChannel:' #menuHelp ) ) nil @@ -1112,12 +1148,13 @@ #(#MenuItem #'label:' 'Submenu' #'value:' #doCreateMenu - #'activeHelpKey:' #addSubMenuLink + #'activeHelpKey:' #addSubMenu #'labelImage:' #(#ResourceRetriever #MenuEditor #submenuImage 'Submenu') ) #(#MenuItem #'label:' 'Submenu Link' #'value:' #doCreateLink + #'activeHelpKey:' #addSubMenuLink #'labelImage:' #(#ResourceRetriever #MenuEditor #linkSubmenuImage 'Submenu Link') ) ) nil