MenuEditor.st
changeset 959 96728cae02c4
parent 955 f4f7d2ebd3ce
child 968 f52b5744063b
equal deleted inserted replaced
958:14088f998b72 959:96728cae02c4
   169 
   169 
   170 #basicsArgument
   170 #basicsArgument
   171 'An argument passed to above selector, if it is a 1 or a 2 argument selector.'
   171 'An argument passed to above selector, if it is a 1 or a 2 argument selector.'
   172 
   172 
   173 #basicsIndication
   173 #basicsIndication
   174 'A boolean value holder, a boolean evaluating block, or a boolean returning selector for specifying indication state.'
   174 'A boolean holder, a boolean block, or a boolean method, specifying the indication state.'
       
   175 
       
   176 #basicsChoice
       
   177 'A boolean holder, a boolean block, or a boolean method, specifying the choices state.'
       
   178 
       
   179 #basicsChoiceValue
       
   180 'That choices value (typically number or symbol).'
   175 
   181 
   176 #basicsIsButton
   182 #basicsIsButton
   177 'Turns on/off a button behavior.'
   183 'Turns on/off a button behavior.'
   178 
   184 
   179 #basicsLabel
   185 #basicsLabel
   180 'Label of the item.'
   186 'Label of the item.'
   181 
   187 
       
   188 #basicsKey
       
   189 'Internal key of the item (optional, for programmed accesses).'
       
   190 
   182 #basicsMenu
   191 #basicsMenu
   183 'A value holder providing the sub menu to be opened if item is selected.'
   192 'A value holder providing the sub menu to be opened if item is selected.'
   184 
   193 
   185 #basicsMenuArgument
   194 #basicsMenuArgument
   186 'An argument passed with the menu selector.'
   195 'An argument passed with the menu selector.'
   204 'Index of the access character position of the textual label (optional).'
   213 'Index of the access character position of the textual label (optional).'
   205 
   214 
   206 #detailsEnabled
   215 #detailsEnabled
   207 'Aspect or binding providing a boolean value holder for the enable-state of the menu item.'
   216 'Aspect or binding providing a boolean value holder for the enable-state of the menu item.'
   208 
   217 
       
   218 #detailsStartGroup
       
   219 'Specify start of a right-aligned item group.'
       
   220 
   209 #detailsVisibility
   221 #detailsVisibility
   210 'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.'
   222 'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.'
   211 
   223 
   212 #fileLoad
   224 #fileLoad
   213 'Opens a dialog to select and load a menu spec from a class.'
   225 'Opens a dialog to select and load a menu spec from a class.'
   235 
   247 
   236 #imageRetriever
   248 #imageRetriever
   237 'Class implementing the image resource method. If no class is given, the current application class will be taken.'
   249 'Class implementing the image resource method. If no class is given, the current application class will be taken.'
   238 
   250 
   239 #imageSelector
   251 #imageSelector
   240 'Selector returning an image.'
   252 'Selector returning an image (sent to above or the application).'
       
   253 
       
   254 #imageImageList
       
   255 'Currently existing image resources.'
   241 
   256 
   242 #test
   257 #test
   243 'Displays the current menu (layout test).'
   258 'Displays the current menu (layout test).'
   244 )
   259 )
   245 
   260 
   246     "Modified: / 8.8.1998 / 02:37:32 / cg"
   261     "Modified: / 18.8.1998 / 16:19:13 / cg"
   247 ! !
   262 ! !
   248 
   263 
   249 !MenuEditor class methodsFor:'image specs'!
   264 !MenuEditor class methodsFor:'image specs'!
   250 
   265 
   251 linkSubmenuImage
   266 linkSubmenuImage
   350               #collection: 
   365               #collection: 
   351                #(
   366                #(
   352                  #(#LabelSpec
   367                  #(#LabelSpec
   353                     #name: 'nameKeyLabel'
   368                     #name: 'nameKeyLabel'
   354                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
   369                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
       
   370                     #activeHelpKey: #basicsKey
   355                     #label: 'Name Key:'
   371                     #label: 'Name Key:'
   356                     #adjust: #right
   372                     #adjust: #right
   357                     #resizeForLabel: true
   373                     #resizeForLabel: true
   358                 )
   374                 )
   359                  #(#InputFieldSpec
   375                  #(#InputFieldSpec
   360                     #name: 'nameKeyField'
   376                     #name: 'nameKeyField'
   361                     #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
   377                     #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
       
   378                     #activeHelpKey: #basicsKey
   362                     #tabable: true
   379                     #tabable: true
   363                     #model: #nameKey
   380                     #model: #nameKey
   364                     #group: #inputGroup
   381                     #group: #inputGroup
   365                     #type: #symbolOrNil
   382                     #type: #symbolOrNil
   366                     #acceptOnReturn: false
   383                     #acceptOnReturn: false
   367                     #acceptOnTab: false
   384                     #acceptOnTab: false
   368                 )
   385                 )
   369                  #(#LabelSpec
   386                  #(#LabelSpec
   370                     #name: 'labelLabel'
   387                     #name: 'labelLabel'
   371                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
   388                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
       
   389                     #activeHelpKey: #basicsLabel
   372                     #label: 'Label:'
   390                     #label: 'Label:'
   373                     #adjust: #right
   391                     #adjust: #right
   374                     #resizeForLabel: true
   392                     #resizeForLabel: true
   375                 )
   393                 )
   376                  #(#InputFieldSpec
   394                  #(#InputFieldSpec
   383                     #acceptOnReturn: false
   401                     #acceptOnReturn: false
   384                     #acceptOnTab: false
   402                     #acceptOnTab: false
   385                 )
   403                 )
   386                  #(#LabelSpec
   404                  #(#LabelSpec
   387                     #name: 'valueLabel'
   405                     #name: 'valueLabel'
       
   406                     #activeHelpKey: #basicsAction
   388                     #layout: #(#AlignmentOrigin 107 0 90 0 1 0.5)
   407                     #layout: #(#AlignmentOrigin 107 0 90 0 1 0.5)
   389                     #label: 'Action:'
   408                     #label: 'Action:'
   390                     #adjust: #right
   409                     #adjust: #right
   391                     #resizeForLabel: true
   410                     #resizeForLabel: true
   392                 )
   411                 )
   402                     #acceptOnTab: false
   421                     #acceptOnTab: false
   403                 )
   422                 )
   404                  #(#LabelSpec
   423                  #(#LabelSpec
   405                     #name: 'argumentLabel'
   424                     #name: 'argumentLabel'
   406                     #layout: #(#AlignmentOrigin 107 0 115 0 1 0.5)
   425                     #layout: #(#AlignmentOrigin 107 0 115 0 1 0.5)
       
   426                     #activeHelpKey: #basicsArgument
   407                     #label: 'Argument:'
   427                     #label: 'Argument:'
   408                     #adjust: #right
   428                     #adjust: #right
   409                     #resizeForLabel: true
   429                     #resizeForLabel: true
   410                 )
   430                 )
   411                  #(#InputFieldSpec
   431                  #(#InputFieldSpec
   420                     #acceptOnTab: false
   440                     #acceptOnTab: false
   421                 )
   441                 )
   422                  #(#LabelSpec
   442                  #(#LabelSpec
   423                     #name: 'indicationLabel'
   443                     #name: 'indicationLabel'
   424                     #layout: #(#AlignmentOrigin 107 0 155 0 1 0.5)
   444                     #layout: #(#AlignmentOrigin 107 0 155 0 1 0.5)
       
   445                     #activeHelpKey: #basicsIndication
   425                     #label: 'Indication:'
   446                     #label: 'Indication:'
   426                     #adjust: #right
   447                     #adjust: #right
   427                     #resizeForLabel: true
   448                     #resizeForLabel: true
   428                 )
   449                 )
   429                  #(#InputFieldSpec
   450                  #(#InputFieldSpec
   455                     #label: 'Is Button'
   476                     #label: 'Is Button'
   456                 )
   477                 )
   457                  #(#LabelSpec
   478                  #(#LabelSpec
   458                     #name: 'choiceLabel'
   479                     #name: 'choiceLabel'
   459                     #layout: #(#AlignmentOrigin 107 0 180 0 1 0.5)
   480                     #layout: #(#AlignmentOrigin 107 0 180 0 1 0.5)
       
   481                     #activeHelpKey: #basicsChoice
   460                     #label: 'Choice:'
   482                     #label: 'Choice:'
   461                     #translateLabel: true
   483                     #translateLabel: true
   462                     #adjust: #right
   484                     #adjust: #right
   463                     #resizeForLabel: true
   485                     #resizeForLabel: true
   464                 )
   486                 )
   465                  #(#InputFieldSpec
   487                  #(#InputFieldSpec
   466                     #name: 'choiceField'
   488                     #name: 'choiceField'
   467                     #layout: #(#LayoutFrame 110 0 169 0 -5 1.0 191 0)
   489                     #layout: #(#LayoutFrame 110 0 169 0 -5 1.0 191 0)
   468                     #activeHelpKey: #basicsIndication
   490                     #activeHelpKey: #basicsChoice
   469                     #enableChannel: #choiceEnabled
   491                     #enableChannel: #choiceEnabled
   470                     #tabable: true
   492                     #tabable: true
   471                     #model: #choice
   493                     #model: #choice
   472                     #group: #inputGroup
   494                     #group: #inputGroup
   473                     #type: #symbolOrNil
   495                     #type: #symbolOrNil
   474                     #acceptOnReturn: false
   496                     #acceptOnReturn: false
   475                     #acceptOnTab: false
   497                     #acceptOnTab: false
   476                 )
   498                 )
   477                  #(#LabelSpec
   499                  #(#LabelSpec
   478                     #name: 'choiceValueLabel'
   500                     #name: 'choiceValueLabel'
       
   501                     #activeHelpKey: #basicsChoiceValue
   479                     #layout: #(#AlignmentOrigin 107 0 205 0 1 0.5)
   502                     #layout: #(#AlignmentOrigin 107 0 205 0 1 0.5)
   480                     #label: 'Value:'
   503                     #label: 'Value:'
   481                     #translateLabel: true
   504                     #translateLabel: true
   482                     #adjust: #right
   505                     #adjust: #right
   483                     #resizeForLabel: true
   506                     #resizeForLabel: true
   484                 )
   507                 )
   485                  #(#InputFieldSpec
   508                  #(#InputFieldSpec
   486                     #name: 'choiceValueField'
   509                     #name: 'choiceValueField'
   487                     #layout: #(#LayoutFrame 110 0 194 0 -5 1.0 216 0)
   510                     #layout: #(#LayoutFrame 110 0 194 0 -5 1.0 216 0)
   488                     #activeHelpKey: #basicsIndication
   511                     #activeHelpKey: #basicsChoiceValue
   489                     #enableChannel: #choiceValueEnabled
   512                     #enableChannel: #choiceValueEnabled
   490                     #tabable: true
   513                     #tabable: true
   491                     #model: #choiceValue
   514                     #model: #choiceValue
   492                     #group: #inputGroup
   515                     #group: #inputGroup
   493                     #type: #smalltalkObject
   516                     #type: #smalltalkObject
   499                 )
   522                 )
   500               )
   523               )
   501           )
   524           )
   502       )
   525       )
   503 
   526 
   504     "Modified: / 14.8.1998 / 15:43:35 / cg"
   527     "Modified: / 18.8.1998 / 16:20:26 / cg"
   505 !
   528 !
   506 
   529 
   507 basicsLinkSpec
   530 basicsLinkSpec
   508     "This resource specification was automatically generated
   531     "This resource specification was automatically generated
   509      by the UIPainter of ST/X."
   532      by the UIPainter of ST/X."
   857               #collection: 
   880               #collection: 
   858                #(
   881                #(
   859                  #(#LabelSpec
   882                  #(#LabelSpec
   860                     #name: 'shortcutKeyLabel'
   883                     #name: 'shortcutKeyLabel'
   861                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
   884                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
       
   885                     #activeHelpKey: #detailsAccelerator
   862                     #label: 'Accelerator:'
   886                     #label: 'Accelerator:'
   863                     #adjust: #right
   887                     #adjust: #right
   864                     #resizeForLabel: true
   888                     #resizeForLabel: true
   865                 )
   889                 )
   866                  #(#InputFieldSpec
   890                  #(#InputFieldSpec
   875                     #group: #inputGroup
   899                     #group: #inputGroup
   876                 )
   900                 )
   877                  #(#LabelSpec
   901                  #(#LabelSpec
   878                     #name: 'enabledLabel'
   902                     #name: 'enabledLabel'
   879                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
   903                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
       
   904                     #activeHelpKey: #detailsEnabled
   880                     #label: 'Enabled:'
   905                     #label: 'Enabled:'
   881                     #adjust: #right
   906                     #adjust: #right
   882                     #resizeForLabel: true
   907                     #resizeForLabel: true
   883                 )
   908                 )
   884                  #(#InputFieldSpec
   909                  #(#InputFieldSpec
   893                     #group: #inputGroup
   918                     #group: #inputGroup
   894                 )
   919                 )
   895                  #(#LabelSpec
   920                  #(#LabelSpec
   896                     #name: 'visibilityLabel'
   921                     #name: 'visibilityLabel'
   897                     #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
   922                     #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
       
   923                     #activeHelpKey: #detailsVisibility
   898                     #label: 'Visibility:'
   924                     #label: 'Visibility:'
   899                     #adjust: #right
   925                     #adjust: #right
   900                     #resizeForLabel: true
   926                     #resizeForLabel: true
   901                 )
   927                 )
   902                  #(#InputFieldSpec
   928                  #(#InputFieldSpec
   911                     #group: #inputGroup
   937                     #group: #inputGroup
   912                 )
   938                 )
   913                  #(#LabelSpec
   939                  #(#LabelSpec
   914                     #name: 'StartGroupLabel'
   940                     #name: 'StartGroupLabel'
   915                     #layout: #(#AlignmentOrigin 107 0 111 0 1 0.5)
   941                     #layout: #(#AlignmentOrigin 107 0 111 0 1 0.5)
       
   942                     #activeHelpKey: #detailsStartGroup
   916                     #label: 'Start Group:'
   943                     #label: 'Start Group:'
   917                     #adjust: #right
   944                     #adjust: #right
   918                     #resizeForLabel: true
   945                     #resizeForLabel: true
   919                 )
   946                 )
   920                  #(#PopUpListSpec
   947                  #(#PopUpListSpec
   921                     #name: 'StartGroupPopUp'
   948                     #name: 'StartGroupPopUp'
       
   949                     #activeHelpKey: #detailsStartGroup
   922                     #layout: #(#LayoutFrame 110 0 100 0 -5 1.0 122 0)
   950                     #layout: #(#LayoutFrame 110 0 100 0 -5 1.0 122 0)
   923                     #label: 'PopUpList'
   951                     #label: 'PopUpList'
   924                     #tabable: true
   952                     #tabable: true
   925                     #model: #startGroup
   953                     #model: #startGroup
   926                     #menu: 
   954                     #menu: 
   930                     #useIndex: false
   958                     #useIndex: false
   931                 )
   959                 )
   932                  #(#LabelSpec
   960                  #(#LabelSpec
   933                     #name: 'accessCharLabel'
   961                     #name: 'accessCharLabel'
   934                     #layout: #(#AlignmentOrigin 217 0 142 0 1 0.5)
   962                     #layout: #(#AlignmentOrigin 217 0 142 0 1 0.5)
       
   963                     #activeHelpKey: #detailsAccessCharaterPosition
   935                     #label: 'Access Character Position:'
   964                     #label: 'Access Character Position:'
   936                     #adjust: #right
   965                     #adjust: #right
   937                     #resizeForLabel: true
   966                     #resizeForLabel: true
   938                 )
   967                 )
   939                  #(#InputFieldSpec
   968                  #(#InputFieldSpec
   949                 )
   978                 )
   950               )
   979               )
   951           )
   980           )
   952       )
   981       )
   953 
   982 
   954     "Modified: / 31.7.1998 / 01:18:43 / cg"
   983     "Modified: / 18.8.1998 / 16:16:46 / cg"
   955 !
   984 !
   956 
   985 
   957 imageEditSpec
   986 imageEditSpec
   958     "This resource specification was automatically generated
   987     "This resource specification was automatically generated
   959      by the UIPainter of ST/X."
   988      by the UIPainter of ST/X."
   994                     #label: 'Image & Label'
  1023                     #label: 'Image & Label'
   995                 )
  1024                 )
   996                  #(#LabelSpec
  1025                  #(#LabelSpec
   997                     #name: 'retrieverLabel'
  1026                     #name: 'retrieverLabel'
   998                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
  1027                     #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
       
  1028                     #activeHelpKey: #imageRetriever
   999                     #label: 'Retriever:'
  1029                     #label: 'Retriever:'
  1000                     #adjust: #right
  1030                     #adjust: #right
  1001                     #resizeForLabel: true
  1031                     #resizeForLabel: true
  1002                 )
  1032                 )
  1003                  #(#InputFieldSpec
  1033                  #(#InputFieldSpec
  1012                     #group: #inputGroup
  1042                     #group: #inputGroup
  1013                 )
  1043                 )
  1014                  #(#LabelSpec
  1044                  #(#LabelSpec
  1015                     #name: 'iconLabel'
  1045                     #name: 'iconLabel'
  1016                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
  1046                     #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
       
  1047                     #activeHelpKey: #imageSelector
  1017                     #label: 'Selector:'
  1048                     #label: 'Selector:'
  1018                     #adjust: #right
  1049                     #adjust: #right
  1019                     #resizeForLabel: true
  1050                     #resizeForLabel: true
  1020                 )
  1051                 )
  1021                  #(#InputFieldSpec
  1052                  #(#InputFieldSpec
  1037                     #tabable: true
  1068                     #tabable: true
  1038                     #model: #doEditImage
  1069                     #model: #doEditImage
  1039                 )
  1070                 )
  1040                  #(#SequenceViewSpec
  1071                  #(#SequenceViewSpec
  1041                     #name: 'systemOrUserImagesList'
  1072                     #name: 'systemOrUserImagesList'
       
  1073                     #activeHelpKey: #imageImageList
  1042                     #layout: #(#LayoutFrame 110 0 67 0 0 0.6 200 0)
  1074                     #layout: #(#LayoutFrame 110 0 67 0 0 0.6 200 0)
  1043                     #model: #selectionOfImage
  1075                     #model: #selectionOfImage
  1044                     #menu: #menuEditImage
  1076                     #menu: #menuEditImage
  1045                     #hasHorizontalScrollBar: true
  1077                     #hasHorizontalScrollBar: true
  1046                     #hasVerticalScrollBar: true
  1078                     #hasVerticalScrollBar: true
  1052                 )
  1084                 )
  1053               )
  1085               )
  1054           )
  1086           )
  1055       )
  1087       )
  1056 
  1088 
  1057     "Modified: / 31.7.1998 / 01:18:50 / cg"
  1089     "Modified: / 18.8.1998 / 16:17:59 / cg"
  1058 !
  1090 !
  1059 
  1091 
  1060 windowSpec
  1092 windowSpec
  1061     "This resource specification was automatically generated
  1093     "This resource specification was automatically generated
  1062      by the UIPainter of ST/X."
  1094      by the UIPainter of ST/X."