author | Claus Gittinger <cg@exept.de> |
Wed, 09 Jun 2004 19:10:07 +0200 | |
changeset 1853 | bd6900fa7f50 |
parent 1848 | 61d531486cf1 |
child 1867 | 08860770cd69 |
permissions | -rw-r--r-- |
199 | 1 |
" |
738 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
1606 | 3 |
All Rights Reserved |
199 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
738 | 7 |
inclusion of the above copyright notice. This software may not |
199 | 8 |
be provided or otherwise made available to, or used by, any |
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
1372 | 13 |
"{ Package: 'stx:libtool2' }" |
14 |
||
738 | 15 |
ResourceSpecEditor subclass:#MenuEditor |
1606 | 16 |
instanceVariableNames:'selectionHolder tabHolder listOfItems listOfTabs |
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
17 |
selectedSuperItems notifyDisabledCounter wizards listOfItemsView |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
18 |
dropOverLine' |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
19 |
classVariableNames:'ImageRetrieverClasses' |
220 | 20 |
poolDictionaries:'' |
21 |
category:'Interface-UIPainter' |
|
199 | 22 |
! |
23 |
||
1606 | 24 |
HierarchicalItem subclass:#Item |
25 |
instanceVariableNames:'menuItem' |
|
26 |
classVariableNames:'' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:MenuEditor |
|
29 |
! |
|
30 |
||
1631 | 31 |
MenuEditor::Item subclass:#ActionItem |
1606 | 32 |
instanceVariableNames:'' |
1407 | 33 |
classVariableNames:'' |
34 |
poolDictionaries:'' |
|
35 |
privateIn:MenuEditor |
|
36 |
! |
|
37 |
||
1631 | 38 |
MenuEditor::Item subclass:#LinkedMenuItem |
1606 | 39 |
instanceVariableNames:'' |
40 |
classVariableNames:'' |
|
41 |
poolDictionaries:'' |
|
42 |
privateIn:MenuEditor |
|
43 |
! |
|
44 |
||
1844 | 45 |
MenuEditor::Item subclass:#MenuSliceItem |
46 |
instanceVariableNames:'' |
|
47 |
classVariableNames:'' |
|
48 |
poolDictionaries:'' |
|
49 |
privateIn:MenuEditor |
|
50 |
! |
|
51 |
||
1633 | 52 |
MenuEditor::Item subclass:#RegularMenuItem |
1454 | 53 |
instanceVariableNames:'' |
54 |
classVariableNames:'' |
|
55 |
poolDictionaries:'' |
|
56 |
privateIn:MenuEditor |
|
57 |
! |
|
58 |
||
1606 | 59 |
ApplicationModel subclass:#ResourceEditor |
60 |
instanceVariableNames:'selectorHolder iconAndLabelHolder retrieverHolder imageHolder |
|
61 |
imageList imageViewer' |
|
62 |
classVariableNames:'' |
|
63 |
poolDictionaries:'' |
|
64 |
privateIn:MenuEditor |
|
65 |
! |
|
66 |
||
67 |
HierarchicalItem subclass:#ResourceEditorItem |
|
68 |
instanceVariableNames:'selector icon' |
|
69 |
classVariableNames:'' |
|
70 |
poolDictionaries:'' |
|
71 |
privateIn:MenuEditor |
|
72 |
! |
|
73 |
||
1633 | 74 |
MenuEditor::RegularMenuItem subclass:#RootItem |
1631 | 75 |
instanceVariableNames:'' |
76 |
classVariableNames:'' |
|
77 |
poolDictionaries:'' |
|
78 |
privateIn:MenuEditor |
|
79 |
! |
|
80 |
||
81 |
MenuEditor::Item subclass:#SeparatorItem |
|
82 |
instanceVariableNames:'' |
|
83 |
classVariableNames:'' |
|
84 |
poolDictionaries:'' |
|
85 |
privateIn:MenuEditor |
|
86 |
! |
|
87 |
||
199 | 88 |
!MenuEditor class methodsFor:'documentation'! |
89 |
||
90 |
copyright |
|
91 |
" |
|
738 | 92 |
COPYRIGHT (c) 1997 by eXept Software AG |
1606 | 93 |
All Rights Reserved |
199 | 94 |
|
95 |
This software is furnished under a license and may be used |
|
96 |
only in accordance with the terms of that license and with the |
|
738 | 97 |
inclusion of the above copyright notice. This software may not |
199 | 98 |
be provided or otherwise made available to, or used by, any |
99 |
other person. No title to or ownership of the software is |
|
100 |
hereby transferred. |
|
101 |
" |
|
102 |
! |
|
103 |
||
104 |
documentation |
|
105 |
" |
|
728 | 106 |
The MenuEditor allows you to create, modify or just inspect |
1606 | 107 |
menus. |
108 |
||
109 |
||
110 |
[Instance variables:] |
|
111 |
||
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
112 |
listOfItemsView <HierarcicalListView> the view which shows the list of items |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
113 |
listOfItems <HierarchicalList> hierarchical list of menu items |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
114 |
listOfTabs <List> list of current shown tab-labels |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
115 |
|
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
116 |
selectionHolder <ValueHolder> collection of current selected items |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
117 |
selectedSuperItems <Collection> collection of superItems derived from selection |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
118 |
|
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
119 |
tabHolder <ValueHolder> selected tab label holder |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
120 |
notifyDisabledCounter <SmallInteger> ~~ 0 than change notifications are discard |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
121 |
wizards <IdentityDictionary> keeps all created wizard dialogs |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
122 |
|
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
123 |
dropOverLine <nil or SmallInteger> nil: drop context not dropabel. |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
124 |
= 0: drop context dropable but no item specified |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
125 |
~ 0: drop context dropable for item at lineNumber |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
126 |
used t6o restore drop indication drawings |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
127 |
|
1606 | 128 |
[Class variables:] |
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
129 |
ImageRetrieverClasses <Collection> sorted collection of image receivers |
199 | 130 |
|
131 |
[start with:] |
|
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
132 |
MenuEditor open |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
133 |
MenuEditor openOnClass:MenuEditor andSelector:#menu |
199 | 134 |
|
135 |
[author:] |
|
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
136 |
Claus Atzkern, eXept Software AG |
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
137 |
Thomas Zwick, eXept Software AG |
199 | 138 |
" |
139 |
! ! |
|
140 |
||
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
141 |
!MenuEditor class methodsFor:'initialization'! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
142 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
143 |
initialize |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
144 |
ImageRetrieverClasses := #( |
1606 | 145 |
Icon |
146 |
SystemBrowser |
|
147 |
ToolbarIconLibrary |
|
148 |
). |
|
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
149 |
|
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
150 |
" |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
151 |
self initialize |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
152 |
" |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
153 |
! ! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
154 |
|
508 | 155 |
!MenuEditor class methodsFor:'instance creation'! |
156 |
||
728 | 157 |
openModalOnMenu: aMenu |
1606 | 158 |
"Open a MenuEditor modal on aMenu |
159 |
self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray |
|
734 | 160 |
" |
1606 | 161 |
^self new openModalOnMenu:aMenu |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
162 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
163 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
164 |
!MenuEditor class methodsFor:'accessing image retriever'! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
165 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
166 |
addNewImageRetriever:aSymbolOrClass |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
167 |
"add a class to the imageRetriever list" |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
168 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
169 |
|key| |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
170 |
|
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
171 |
aSymbolOrClass isBehavior ifTrue:[ |
1606 | 172 |
key := aSymbolOrClass nameWithNameSpacePrefix |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
173 |
] ifFalse:[ |
1606 | 174 |
key := aSymbolOrClass |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
175 |
]. |
1463 | 176 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
177 |
key size ~~ 0 ifTrue:[ |
1606 | 178 |
key := key asSymbol. |
179 |
||
180 |
(ImageRetrieverClasses includes:key) ifFalse:[ |
|
181 |
ImageRetrieverClasses := ImageRetrieverClasses asOrderedCollection. |
|
182 |
ImageRetrieverClasses add:key. |
|
183 |
ImageRetrieverClasses sort. |
|
184 |
] |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
185 |
]. |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
186 |
! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
187 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
188 |
imageRetrieverClasses |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
189 |
"returns a collection of image retrievers |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
190 |
" |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
191 |
^ ImageRetrieverClasses |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
192 |
! ! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
193 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
194 |
!MenuEditor class methodsFor:'aspects'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
195 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
196 |
aspects |
728 | 197 |
"get the aspects for the attributes of the menu components" |
198 |
||
199 |
^#( |
|
1629 | 200 |
rawLabel |
201 |
accessCharacterPosition |
|
202 |
showBusyCursorWhilePerforming |
|
203 |
horizontalLayout |
|
204 |
triggerOnDown |
|
205 |
font |
|
206 |
argument |
|
207 |
submenuChannel |
|
208 |
keepLinkedMenu |
|
209 |
enabled |
|
210 |
itemValue |
|
211 |
nameKey |
|
212 |
indication |
|
213 |
choice |
|
214 |
choiceValue |
|
215 |
translateLabel |
|
216 |
isButton |
|
217 |
shortcutKeyCharacter |
|
218 |
startGroup |
|
219 |
isVisible |
|
220 |
hideMenuOnActivated |
|
221 |
auxValue |
|
222 |
activeHelpKey |
|
223 |
resourceRetriever |
|
1634 | 224 |
sendToOriginator |
1778
32befdc61270
support ignoreShortcutKeys and ignoreMnemonicKeys in Editor
ca
parents:
1775
diff
changeset
|
225 |
ignoreMnemonicKeys |
32befdc61270
support ignoreShortcutKeys and ignoreMnemonicKeys in Editor
ca
parents:
1775
diff
changeset
|
226 |
ignoreShortcutKeys |
1844 | 227 |
isMenuSlice |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
228 |
) |
1606 | 229 |
! ! |
230 |
||
231 |
!MenuEditor class methodsFor:'defaults'! |
|
232 |
||
233 |
aboutImage |
|
234 |
"the image to be displayed in my about-box; |
|
235 |
If nil is returned, the ST/X default image is used. |
|
236 |
" |
|
237 |
^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_menus.xpm' |
|
238 |
! |
|
239 |
||
240 |
resourceType |
|
241 |
"get the type of the resource of the method generated by the MenuEditor |
|
242 |
" |
|
243 |
^ #menu |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
244 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
245 |
|
371 | 246 |
!MenuEditor class methodsFor:'help specs'! |
247 |
||
1545 | 248 |
flyByHelpSpec |
1629 | 249 |
^super flyByHelpSpec addPairsFrom:(self localFlyHelpSpecStrings) |
1545 | 250 |
! |
251 |
||
371 | 252 |
helpSpec |
1690 | 253 |
"This resource specification was automatically generated |
254 |
by the UIHelpTool of ST/X." |
|
255 |
||
256 |
"Do not manually edit this!! If it is corrupted, |
|
257 |
the UIHelpTool may not be able to read the specification." |
|
258 |
||
259 |
" |
|
260 |
UIHelpTool openOnClass:MenuEditor |
|
261 |
" |
|
262 |
||
263 |
<resource: #help> |
|
264 |
||
265 |
^ super helpSpec addPairsFrom:#( |
|
266 |
||
267 |
#addDelayedMenu |
|
268 |
'Add a new delayed menu to item.' |
|
269 |
||
270 |
#addDelayedSubMenuLink |
|
271 |
'Add a new linked delayed menu to item.' |
|
272 |
||
273 |
#addMenuItem |
|
274 |
'Add a new menu item.' |
|
275 |
||
276 |
#addMenuSeparator |
|
277 |
'Add a new menu separator.' |
|
278 |
||
1844 | 279 |
#addMenuSliceItem |
280 |
'Add a new menu slice.' |
|
281 |
||
1690 | 282 |
#addSubMenu |
283 |
'Add a new sub menu.' |
|
284 |
||
285 |
#addSubMenuLink |
|
286 |
'Add a new linked sub menu.' |
|
287 |
||
288 |
#basicsAction |
|
289 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
|
290 |
||
291 |
#basicsArgument |
|
292 |
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).' |
|
293 |
||
294 |
#basicsChoice |
|
295 |
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).' |
|
296 |
||
297 |
#basicsChoiceValue |
|
298 |
'That choices value (typically number or symbol).' |
|
299 |
||
300 |
#basicsIndication |
|
301 |
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).' |
|
302 |
||
303 |
#basicsIsButton |
|
304 |
'Button-like look and behavior.' |
|
305 |
||
306 |
#basicsKey |
|
307 |
'Internal key of the item (optional, for programmed accesses).' |
|
308 |
||
309 |
#basicsLabel |
|
310 |
'Label of the item.' |
|
311 |
||
312 |
#basicsMenu |
|
313 |
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).' |
|
314 |
||
315 |
#basicsMenuArgument |
|
316 |
'An argument passed with the menu selector.' |
|
317 |
||
318 |
#basicsNameKey |
|
319 |
'Unique identifier of the item (optional).' |
|
320 |
||
321 |
#basicsSelector |
|
322 |
'Selector under which the generated menu spec is saved.' |
|
323 |
||
324 |
#basicsSeparatorType |
|
325 |
'List of valid separators.' |
|
326 |
||
327 |
#basicsTranslateLabel |
|
328 |
'Translate the label via the classes resource file (internationalization).' |
|
329 |
||
330 |
#browseResource |
|
331 |
'Search for methods with image resource.' |
|
332 |
||
333 |
#detailsAccelerator |
|
334 |
'Accelerator key to select the menu item from the keyboard (Cmdx or Ctrlx).' |
|
335 |
||
336 |
#detailsAccessCharaterPosition |
|
337 |
'Index of the access character position of the textual label (obsolete, VW compatibility).' |
|
338 |
||
339 |
#detailsAuxValue |
|
340 |
'Some additional value - for arbitrary use by the program.' |
|
341 |
||
342 |
#detailsEnabled |
|
1702 | 343 |
'Aspect or binding providing a boolean value holder to enable/disable the menu item.' |
1690 | 344 |
|
1844 | 345 |
#detailsIgnoreAcceleratorKeys |
346 |
'Ignore accelerator keys in submenu(s).' |
|
347 |
||
348 |
#detailsIgnoreMnemonicKeys |
|
349 |
'Ignore mnemonic keys (access characters) in submenu(s).' |
|
350 |
||
1690 | 351 |
#detailsStartGroup |
352 |
'Specify start of a right-aligned item group.' |
|
353 |
||
354 |
#detailsVisibility |
|
355 |
'Boolean, or aspect or binding for a boolean holder controlling the visibility of the menu item.' |
|
356 |
||
357 |
#fileLoad |
|
358 |
'Load a menu spec from a class.' |
|
359 |
||
360 |
#fileNew |
|
361 |
'Create a new menu spec.' |
|
362 |
||
363 |
#filePickAMenu |
|
364 |
'Select a menu from an open view and read its specification' |
|
365 |
||
366 |
#fileSave |
|
367 |
'Save the menu spec (and the help spec, if modified).' |
|
368 |
||
369 |
#fileSaveAs |
|
370 |
'Open a dialog to save the menu spec (and the help spec, if modified).' |
|
371 |
||
372 |
#fileShowMenuSpec |
|
373 |
'Opens a Workspace showing the current menu spec.' |
|
374 |
||
375 |
#generateAspectMethods |
|
376 |
'Generates aspect methods for defined aspect selectors of the menu.' |
|
377 |
||
378 |
#hideMenuOnActivated |
|
1702 | 379 |
'If on, the menu hides itself after the item was activated (PopUp/PullDown-Menus only).' |
1690 | 380 |
|
381 |
#horizontalLayout |
|
382 |
'If on, the submenu organizes its items horizontal insteat of vertical (default).' |
|
383 |
||
384 |
#imageImageAndLabel |
|
385 |
'Toggle display of both image and textual label.' |
|
386 |
||
387 |
#imageImageEditor |
|
388 |
'Open an Image Editor on the resource method defined by retriever and selector.' |
|
389 |
||
390 |
#imageImageList |
|
391 |
'Currently existing image resources.' |
|
392 |
||
393 |
#imageRetriever |
|
1702 | 394 |
'Class implementing the image resource method. If unspecified, the application class is taken.' |
1690 | 395 |
|
396 |
#imageSelector |
|
397 |
'Selector returning an image (sent to above or the application).' |
|
398 |
||
399 |
#keepLinkedMenu |
|
400 |
'Keep the linked menu after activation (do not destroy).' |
|
401 |
||
402 |
#sendToOriginator |
|
1702 | 403 |
'Send action-Message to widget (instead of application); only valid for PopUpMenus.' |
1690 | 404 |
|
405 |
#settingsRedefineAspectMethods |
|
406 |
'Toggles the permission to overwrite existing aspect methods.' |
|
407 |
||
408 |
#showBusyCursorWhilePerforming |
|
409 |
'If on, a busy cursor is shown while the items action is performing.' |
|
410 |
||
411 |
#triggerOnDown |
|
1702 | 412 |
'If on, the items action is performed on mouse-button press (default is: on button-release).' |
1690 | 413 |
|
414 |
) |
|
1606 | 415 |
! |
416 |
||
1629 | 417 |
localFlyHelpSpecStrings |
418 |
"This resource specification was automatically generated |
|
419 |
by the UIHelpTool of ST/X." |
|
420 |
||
421 |
"Do not manually edit this!! If it is corrupted, |
|
422 |
the UIHelpTool may not be able to read the specification." |
|
423 |
||
424 |
" |
|
425 |
UIHelpTool openOnClass:MenuEditor |
|
426 |
" |
|
427 |
||
428 |
<resource: #help> |
|
429 |
||
430 |
^ #( |
|
431 |
||
1820 | 432 |
#editCut |
433 |
'Cut Item' |
|
434 |
||
435 |
#editCopy |
|
436 |
'Copy Item' |
|
437 |
||
438 |
#editPaste |
|
439 |
'Paste Item' |
|
440 |
||
1629 | 441 |
#fileLoad |
1820 | 442 |
'Load Spec from Method' |
1629 | 443 |
|
444 |
#fileSave |
|
1820 | 445 |
'Save Spec As Method' |
1629 | 446 |
|
447 |
#fileSaveAs |
|
448 |
'Save Spec As' |
|
449 |
||
450 |
#addMenuSeparator |
|
451 |
'Add Separator' |
|
452 |
||
453 |
#addMenuItem |
|
454 |
'Add Item' |
|
455 |
||
456 |
#addSubMenu |
|
457 |
'Add Submenu' |
|
458 |
||
459 |
#addDelayedMenu |
|
460 |
'Add Delayed Menu' |
|
461 |
||
462 |
#addDelayedSubMenuLink |
|
463 |
'Add linked Delayed Menu' |
|
464 |
||
465 |
#addSubMenuLink |
|
1656 | 466 |
'Add Linked Submenu' |
1629 | 467 |
|
468 |
#fileNew |
|
469 |
'New Spec' |
|
470 |
) |
|
371 | 471 |
! ! |
472 |
||
734 | 473 |
!MenuEditor class methodsFor:'image specs'! |
474 |
||
1606 | 475 |
iconUnknown |
476 |
"returns an image used for picked items containing an image |
|
734 | 477 |
" |
1606 | 478 |
<resource: #fileImage> |
479 |
||
480 |
^ MenuPanelSpec icon |
|
1425 | 481 |
! ! |
734 | 482 |
|
199 | 483 |
!MenuEditor class methodsFor:'interface specs'! |
484 |
||
525 | 485 |
windowSpec |
738 | 486 |
"This resource specification was automatically generated |
487 |
by the UIPainter of ST/X." |
|
488 |
||
489 |
"Do not manually edit this!! If it is corrupted, |
|
490 |
the UIPainter may not be able to read the specification." |
|
525 | 491 |
|
492 |
" |
|
493 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
494 |
MenuEditor new openInterface:#windowSpec |
|
738 | 495 |
MenuEditor open |
525 | 496 |
" |
497 |
||
498 |
<resource: #canvas> |
|
499 |
||
1244 | 500 |
^ |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
501 |
#(FullSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
502 |
name: windowSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
503 |
window: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
504 |
(WindowSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
505 |
label: 'Menu Editor' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
506 |
name: 'Menu Editor' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
507 |
min: (Point 550 385) |
1788 | 508 |
bounds: (Rectangle 12 22 588 497) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
509 |
menu: menu |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
510 |
returnIsOKInDialog: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
511 |
escapeIsCancelInDialog: false |
1244 | 512 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
513 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
514 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
515 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
516 |
(MenuPanelSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
517 |
name: 'toolbar' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
518 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
519 |
tabable: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
520 |
menu: toolbar |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
521 |
showSeparatingLines: true |
1244 | 522 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
523 |
(VariableHorizontalPanelSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
524 |
name: 'VariableHorizontalPanel' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
525 |
layout: (LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
526 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
527 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
528 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
529 |
(HierarchicalListViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
530 |
name: 'ListOfItemsView' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
531 |
model: selectionHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
532 |
menu: editMenu |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
533 |
hasHorizontalScrollBar: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
534 |
hasVerticalScrollBar: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
535 |
miniScrollerHorizontal: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
536 |
miniScrollerVertical: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
537 |
listModel: listOfItems |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
538 |
multipleSelectOk: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
539 |
useIndex: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
540 |
highlightMode: label |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
541 |
doubleClickSelector: indicatorClickedAt: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
542 |
selectConditionSelector: canSelect: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
543 |
showLeftIndicators: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
544 |
indicatorSelector: indicatorClickedAt: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
545 |
properties: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
546 |
(PropertyListDictionary |
1788 | 547 |
enterSelector: dropEnter: |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
548 |
dragArgument: nil |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
549 |
dropObjectSelector: dropObjects |
1788 | 550 |
overSelector: dropOver: |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
551 |
dropArgument: nil |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
552 |
canDropSelector: canDrop: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
553 |
leaveSelector: dropLeave: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
554 |
dropSelector: doDrop: |
1606 | 555 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
556 |
postBuildCallback: postBuildListOfItemsView: |
1244 | 557 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
558 |
(ViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
559 |
name: 'Box' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
560 |
level: -1 |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
561 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
562 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
563 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
564 |
(NoteBookViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
565 |
name: 'NoteBook' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
566 |
layout: (LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
567 |
enableChannel: hasSingleSelectionChannel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
568 |
tabable: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
569 |
model: tabHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
570 |
menu: listOfTabs |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
571 |
fitLastRow: false |
1788 | 572 |
translateLabel: true |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
573 |
canvas: wizardHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
574 |
keepCanvasAlive: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
575 |
postBuildCallback: postBuildNoteBook: |
1244 | 576 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
577 |
(UISubSpecification |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
578 |
name: 'SubSpecification' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
579 |
layout: (LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
580 |
majorKey: ToolApplicationModel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
581 |
minorKey: windowSpecForCommit |
525 | 582 |
) |
1244 | 583 |
) |
584 |
||
525 | 585 |
) |
1244 | 586 |
) |
587 |
) |
|
588 |
||
525 | 589 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
590 |
handles: (Any 0.300493 1.0) |
1244 | 591 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
592 |
(UISubSpecification |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
593 |
name: 'InfoBarSubSpec' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
594 |
layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
595 |
majorKey: ToolApplicationModel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
596 |
minorKey: windowSpecForInfoBar |
1244 | 597 |
) |
598 |
) |
|
599 |
||
600 |
) |
|
525 | 601 |
) |
602 |
! ! |
|
603 |
||
604 |
!MenuEditor class methodsFor:'menu specs'! |
|
605 |
||
1606 | 606 |
addMenu |
607 |
"This resource specification was automatically generated |
|
608 |
by the MenuEditor of ST/X." |
|
609 |
||
610 |
"Do not manually edit this!! If it is corrupted, |
|
611 |
the MenuEditor may not be able to read the specification." |
|
612 |
||
613 |
" |
|
614 |
MenuEditor new openOnClass:MenuEditor andSelector:#addMenu |
|
615 |
(Menu new fromLiteralArrayEncoding:(MenuEditor addMenu)) startUp |
|
616 |
" |
|
617 |
||
618 |
<resource: #menu> |
|
619 |
||
620 |
^ |
|
1844 | 621 |
#(Menu |
622 |
( |
|
623 |
(MenuItem |
|
624 |
activeHelpKey: addMenuSeparator |
|
625 |
label: 'Separator' |
|
626 |
itemValue: doCreateSep |
|
627 |
translateLabel: true |
|
628 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconSeparator '') |
|
1606 | 629 |
) |
1844 | 630 |
(MenuItem |
631 |
activeHelpKey: addMenuItem |
|
632 |
label: 'Item' |
|
633 |
itemValue: doCreateItem |
|
634 |
translateLabel: true |
|
635 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconItem '') |
|
1606 | 636 |
) |
1844 | 637 |
(MenuItem |
638 |
activeHelpKey: addMenuSliceItem |
|
639 |
label: 'Menu Slice' |
|
640 |
itemValue: doCreateMenuSliceItem |
|
641 |
translateLabel: true |
|
642 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconSliceMenu '') |
|
1606 | 643 |
) |
1844 | 644 |
(MenuItem |
645 |
activeHelpKey: addMenuItem |
|
646 |
label: 'Menu' |
|
647 |
itemValue: doCreateMenu |
|
648 |
translateLabel: true |
|
649 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconMenu '') |
|
1606 | 650 |
) |
1844 | 651 |
(MenuItem |
652 |
activeHelpKey: addSubMenuLink |
|
653 |
label: 'Linked Menu' |
|
654 |
itemValue: doCreateLinkedMenu |
|
655 |
translateLabel: true |
|
656 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconLinkedMenu '') |
|
1606 | 657 |
) |
1844 | 658 |
(MenuItem |
659 |
label: '-' |
|
1606 | 660 |
) |
1844 | 661 |
(MenuItem |
662 |
activeHelpKey: addDelayedMenu |
|
663 |
enabled: canCreateDelayedMenuChannel |
|
664 |
label: 'Delayed Menu' |
|
665 |
itemValue: doCreateDelayedMenu: |
|
666 |
translateLabel: true |
|
667 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedMenu '') |
|
668 |
argument: menu |
|
1606 | 669 |
) |
1844 | 670 |
(MenuItem |
671 |
activeHelpKey: addDelayedSubMenuLink |
|
672 |
enabled: canCreateDelayedMenuChannel |
|
673 |
label: 'Delayed Linked Menu' |
|
674 |
itemValue: doCreateDelayedMenu: |
|
675 |
translateLabel: true |
|
676 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedLinkedMenu '') |
|
677 |
argument: linkedMenu |
|
1606 | 678 |
) |
1844 | 679 |
(MenuItem |
680 |
label: '-' |
|
681 |
) |
|
682 |
(MenuItem |
|
683 |
label: 'Standard Menus' |
|
684 |
translateLabel: true |
|
685 |
submenuChannel: standardMenus |
|
686 |
keepLinkedMenu: true |
|
1606 | 687 |
) |
688 |
) |
|
689 |
nil |
|
690 |
nil |
|
691 |
) |
|
692 |
! |
|
693 |
||
694 |
editMenu |
|
695 |
"This resource specification was automatically generated |
|
696 |
by the MenuEditor of ST/X." |
|
697 |
||
698 |
"Do not manually edit this!! If it is corrupted, |
|
699 |
the MenuEditor may not be able to read the specification." |
|
700 |
||
701 |
" |
|
702 |
MenuEditor new openOnClass:MenuEditor andSelector:#editMenu |
|
703 |
(Menu new fromLiteralArrayEncoding:(MenuEditor editMenu)) startUp |
|
704 |
" |
|
705 |
||
706 |
<resource: #menu> |
|
707 |
||
708 |
^ |
|
709 |
#(#Menu |
|
1631 | 710 |
#( |
711 |
#(#MenuItem |
|
712 |
#activeHelpKey: #editCut |
|
713 |
#enabled: #hasSelectionChannel |
|
1632 | 714 |
#label: 'Cut' |
715 |
#itemValue: #doCut |
|
716 |
#translateLabel: true |
|
1631 | 717 |
) |
718 |
#(#MenuItem |
|
719 |
#activeHelpKey: #editCopy |
|
720 |
#enabled: #hasSelectionChannel |
|
1632 | 721 |
#label: 'Copy' |
722 |
#itemValue: #doCopy |
|
723 |
#translateLabel: true |
|
1631 | 724 |
) |
725 |
#(#MenuItem |
|
726 |
#activeHelpKey: #editPaste |
|
727 |
#enabled: #valueOfCanPaste |
|
1632 | 728 |
#label: 'Paste' |
729 |
#itemValue: #doPaste |
|
730 |
#translateLabel: true |
|
1631 | 731 |
) |
732 |
#(#MenuItem |
|
1632 | 733 |
#activeHelpKey: #editDelete |
734 |
#enabled: #hasSelectionChannel |
|
1631 | 735 |
#label: 'Delete' |
1632 | 736 |
#itemValue: #doDelete |
1631 | 737 |
#translateLabel: true |
738 |
#isVisible: false |
|
739 |
) |
|
740 |
#(#MenuItem |
|
741 |
#label: '-' |
|
742 |
) |
|
743 |
#(#MenuItem |
|
744 |
#activeHelpKey: #editMoveUp |
|
745 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 746 |
#label: 'Move Up' |
747 |
#itemValue: #doMoveUpOrDown: |
|
748 |
#translateLabel: true |
|
749 |
#startGroup: #right |
|
750 |
#labelImage: #(#ResourceRetriever #Icon #upIcon '') |
|
1631 | 751 |
#argument: #up |
752 |
) |
|
753 |
#(#MenuItem |
|
754 |
#activeHelpKey: #editMoveDown |
|
755 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 756 |
#label: 'Move Down' |
757 |
#itemValue: #doMoveUpOrDown: |
|
758 |
#translateLabel: true |
|
759 |
#labelImage: #(#ResourceRetriever #Icon #downIcon '') |
|
1631 | 760 |
#argument: #down |
761 |
) |
|
762 |
#(#MenuItem |
|
763 |
#activeHelpKey: #editMoveIn |
|
764 |
#enabled: #valueOfEnableMovingIn |
|
1632 | 765 |
#label: 'Move Into Next' |
766 |
#itemValue: #doMoveIn: |
|
767 |
#translateLabel: true |
|
768 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon '') |
|
1631 | 769 |
#argument: #inNext |
770 |
) |
|
771 |
#(#MenuItem |
|
772 |
#activeHelpKey: #editMoveInAbove |
|
773 |
#enabled: #valueOfEnableMovingInAbove |
|
1632 | 774 |
#label: 'Move Into Previous' |
775 |
#itemValue: #doMoveIn: |
|
776 |
#translateLabel: true |
|
777 |
#labelImage: #(#ResourceRetriever #Icon #upRightIcon '') |
|
1631 | 778 |
#argument: #inPrev |
779 |
) |
|
780 |
#(#MenuItem |
|
781 |
#activeHelpKey: #editMoveOut |
|
782 |
#enabled: #valueOfEnableMovingOut |
|
1632 | 783 |
#label: 'Move Out' |
784 |
#itemValue: #doMoveOut |
|
785 |
#translateLabel: true |
|
786 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon '') |
|
1631 | 787 |
) |
788 |
) |
|
789 |
nil |
|
790 |
nil |
|
1606 | 791 |
) |
792 |
! |
|
793 |
||
794 |
fileMenu |
|
795 |
"This resource specification was automatically generated |
|
796 |
by the MenuEditor of ST/X." |
|
797 |
||
798 |
"Do not manually edit this!! If it is corrupted, |
|
799 |
the MenuEditor may not be able to read the specification." |
|
800 |
||
801 |
" |
|
802 |
MenuEditor new openOnClass:MenuEditor andSelector:#fileMenu |
|
803 |
(Menu new fromLiteralArrayEncoding:(MenuEditor fileMenu)) startUp |
|
804 |
" |
|
805 |
||
806 |
<resource: #menu> |
|
807 |
||
808 |
^ |
|
809 |
#(#Menu |
|
810 |
#( |
|
811 |
#(#MenuItem |
|
1632 | 812 |
#activeHelpKey: #fileNew |
1606 | 813 |
#label: 'New' |
1632 | 814 |
#itemValue: #doNew |
1606 | 815 |
#translateLabel: true |
816 |
) |
|
817 |
#(#MenuItem |
|
818 |
#label: '-' |
|
819 |
) |
|
820 |
#(#MenuItem |
|
1632 | 821 |
#activeHelpKey: #fileLoad |
1606 | 822 |
#label: 'Load...' |
1632 | 823 |
#itemValue: #doLoad |
1606 | 824 |
#translateLabel: true |
825 |
) |
|
826 |
#(#MenuItem |
|
827 |
#label: '-' |
|
828 |
) |
|
829 |
#(#MenuItem |
|
1632 | 830 |
#activeHelpKey: #fileSave |
1606 | 831 |
#label: 'Save' |
1632 | 832 |
#itemValue: #doSave |
1606 | 833 |
#translateLabel: true |
834 |
) |
|
835 |
#(#MenuItem |
|
1632 | 836 |
#activeHelpKey: #fileSaveAs |
1606 | 837 |
#label: 'Save As...' |
1632 | 838 |
#itemValue: #doSaveAs |
1606 | 839 |
#translateLabel: true |
840 |
) |
|
841 |
#(#MenuItem |
|
842 |
#label: '-' |
|
843 |
) |
|
844 |
#(#MenuItem |
|
1632 | 845 |
#activeHelpKey: #filePickAMenu |
1606 | 846 |
#label: 'Pick a Menu...' |
1632 | 847 |
#itemValue: #doPickAMenu |
1606 | 848 |
#translateLabel: true |
849 |
) |
|
850 |
#(#MenuItem |
|
851 |
#label: '-' |
|
852 |
) |
|
853 |
#(#MenuItem |
|
1632 | 854 |
#activeHelpKey: #fileShowMenuSpec |
1606 | 855 |
#label: 'Show Menu Spec' |
1632 | 856 |
#itemValue: #doShowMenuSpec |
1606 | 857 |
#translateLabel: true |
858 |
) |
|
859 |
#(#MenuItem |
|
860 |
#activeHelpKey: #fileBrowseClass |
|
861 |
#enabled: #hasValidSpecClass |
|
1632 | 862 |
#label: 'Browse Class' |
863 |
#itemValue: #doBrowseClass |
|
864 |
#translateLabel: true |
|
1606 | 865 |
) |
866 |
#(#MenuItem |
|
867 |
#label: '-' |
|
868 |
) |
|
869 |
#(#MenuItem |
|
1632 | 870 |
#activeHelpKey: #fileExit |
1606 | 871 |
#label: 'Exit' |
1632 | 872 |
#itemValue: #closeRequest |
1606 | 873 |
#translateLabel: true |
874 |
) |
|
875 |
) |
|
876 |
nil |
|
877 |
nil |
|
878 |
) |
|
879 |
! |
|
880 |
||
1614 | 881 |
generateMenu |
882 |
"This resource specification was automatically generated |
|
883 |
by the MenuEditor of ST/X." |
|
884 |
||
885 |
"Do not manually edit this!! If it is corrupted, |
|
886 |
the MenuEditor may not be able to read the specification." |
|
887 |
||
888 |
" |
|
889 |
MenuEditor new openOnClass:MenuEditor andSelector:#generateMenu |
|
890 |
(Menu new fromLiteralArrayEncoding:(MenuEditor generateMenu)) startUp |
|
891 |
" |
|
892 |
||
893 |
<resource: #menu> |
|
894 |
||
895 |
^ |
|
896 |
#(#Menu |
|
897 |
#( |
|
898 |
#(#MenuItem |
|
899 |
#activeHelpKey: #generateAspectMethods |
|
900 |
#enabled: #hasValidSpecClass |
|
1632 | 901 |
#label: 'Aspect Methods' |
902 |
#itemValue: #doGenerateAspectMethods |
|
903 |
#translateLabel: true |
|
1614 | 904 |
) |
905 |
) |
|
906 |
nil |
|
907 |
nil |
|
908 |
) |
|
909 |
! |
|
910 |
||
1606 | 911 |
helpMenu |
912 |
"This resource specification was automatically generated |
|
913 |
by the MenuEditor of ST/X." |
|
914 |
||
915 |
"Do not manually edit this!! If it is corrupted, |
|
916 |
the MenuEditor may not be able to read the specification." |
|
917 |
||
918 |
" |
|
919 |
MenuEditor new openOnClass:MenuEditor andSelector:#helpMenu |
|
920 |
(Menu new fromLiteralArrayEncoding:(MenuEditor helpMenu)) startUp |
|
921 |
" |
|
922 |
||
923 |
<resource: #menu> |
|
924 |
||
925 |
^ |
|
926 |
#(#Menu |
|
927 |
#( |
|
928 |
#(#MenuItem |
|
1632 | 929 |
#activeHelpKey: #helpTutorial |
1606 | 930 |
#label: 'Documentation' |
1632 | 931 |
#itemValue: #openHTMLDocument: |
1606 | 932 |
#translateLabel: true |
933 |
#argument: 'tools/uipainter/MenuEditor.html' |
|
934 |
) |
|
935 |
#(#MenuItem |
|
936 |
#label: '-' |
|
937 |
) |
|
938 |
#(#MenuItem |
|
1632 | 939 |
#activeHelpKey: #helpHelpTool |
1606 | 940 |
#label: 'Help Tool' |
1632 | 941 |
#itemValue: #openHTMLDocument: |
1606 | 942 |
#translateLabel: true |
943 |
#argument: 'tools/uipainter/HelpTool.html' |
|
944 |
) |
|
945 |
#(#MenuItem |
|
946 |
#label: '-' |
|
947 |
) |
|
948 |
#(#MenuItem |
|
1632 | 949 |
#activeHelpKey: #helpShowHelp |
1606 | 950 |
#label: 'Show Help Texts' |
951 |
#translateLabel: true |
|
952 |
#indication: #showingHelp: |
|
953 |
) |
|
954 |
#(#MenuItem |
|
955 |
#label: '-' |
|
956 |
) |
|
957 |
#(#MenuItem |
|
1632 | 958 |
#activeHelpKey: #aboutThisAppliaction |
1606 | 959 |
#label: 'About MenuEditor...' |
1632 | 960 |
#itemValue: #openAboutThisApplication |
1606 | 961 |
#translateLabel: true |
962 |
) |
|
963 |
) |
|
964 |
nil |
|
965 |
nil |
|
966 |
) |
|
967 |
! |
|
968 |
||
525 | 969 |
menu |
738 | 970 |
"This resource specification was automatically generated |
971 |
by the MenuEditor of ST/X." |
|
972 |
||
973 |
"Do not manually edit this!! If it is corrupted, |
|
974 |
the MenuEditor may not be able to read the specification." |
|
525 | 975 |
|
976 |
" |
|
977 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
978 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
979 |
" |
|
980 |
||
981 |
<resource: #menu> |
|
982 |
||
1566 | 983 |
^ |
1775 | 984 |
#(Menu |
985 |
( |
|
986 |
(MenuItem |
|
987 |
label: '&File' |
|
988 |
translateLabel: true |
|
989 |
submenuChannel: fileMenu |
|
990 |
keepLinkedMenu: true |
|
1566 | 991 |
) |
1775 | 992 |
(MenuItem |
993 |
label: '&Edit' |
|
994 |
translateLabel: true |
|
995 |
submenuChannel: editMenu |
|
996 |
keepLinkedMenu: true |
|
1566 | 997 |
) |
1775 | 998 |
(MenuItem |
999 |
enabled: hasSingleSelectionChannel |
|
1000 |
label: 'Item' |
|
1001 |
translateLabel: true |
|
1002 |
submenuChannel: addMenu |
|
1003 |
keepLinkedMenu: true |
|
1566 | 1004 |
) |
1775 | 1005 |
(MenuItem |
1006 |
label: 'Generate' |
|
1007 |
translateLabel: true |
|
1008 |
submenuChannel: generateMenu |
|
1009 |
keepLinkedMenu: true |
|
1631 | 1010 |
) |
1775 | 1011 |
(MenuItem |
1012 |
label: 'Test' |
|
1013 |
translateLabel: true |
|
1014 |
submenuChannel: submenuTest |
|
1566 | 1015 |
) |
1775 | 1016 |
(MenuItem |
1017 |
label: 'Settings' |
|
1018 |
translateLabel: true |
|
1019 |
submenuChannel: settingsMenu |
|
1020 |
keepLinkedMenu: true |
|
1631 | 1021 |
) |
1775 | 1022 |
(MenuItem |
1023 |
label: 'History' |
|
1024 |
translateLabel: true |
|
1025 |
submenuChannel: menuHistory |
|
1566 | 1026 |
) |
1775 | 1027 |
(MenuItem |
1028 |
label: '&Help' |
|
1029 |
translateLabel: true |
|
1030 |
startGroup: right |
|
1031 |
submenuChannel: helpMenu |
|
1032 |
keepLinkedMenu: true |
|
1566 | 1033 |
) |
1034 |
) |
|
1035 |
nil |
|
1036 |
nil |
|
525 | 1037 |
) |
1038 |
! |
|
1039 |
||
1631 | 1040 |
settingsMenu |
1041 |
"This resource specification was automatically generated |
|
1042 |
by the MenuEditor of ST/X." |
|
1043 |
||
1044 |
"Do not manually edit this!! If it is corrupted, |
|
1045 |
the MenuEditor may not be able to read the specification." |
|
1046 |
||
1047 |
" |
|
1632 | 1048 |
MenuEditor new openOnClass:MenuEditor andSelector:#settingsMenu |
1049 |
(Menu new fromLiteralArrayEncoding:(MenuEditor settingsMenu)) startUp |
|
1631 | 1050 |
" |
1051 |
||
1052 |
<resource: #menu> |
|
1053 |
||
1054 |
^ |
|
1055 |
#(#Menu |
|
1056 |
#( |
|
1057 |
#(#MenuItem |
|
1632 | 1058 |
#activeHelpKey: #settingsRedefineAspectMethods |
1059 |
#enabled: #hasValidSpecClass |
|
1631 | 1060 |
#label: 'Redefine Aspect Methods' |
1061 |
#translateLabel: true |
|
1062 |
#hideMenuOnActivated: false |
|
1063 |
#indication: #redefineAspectMethodsChannel |
|
1064 |
) |
|
1711
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1065 |
#(#MenuItem |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1066 |
#activeHelpKey: #settingsRedefineAspectMethods |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1067 |
#label: 'AutoAccept on Selection-Change' |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1068 |
#translateLabel: true |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1069 |
#hideMenuOnActivated: false |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1070 |
#indication: #autoAcceptOnSelectionChange |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1071 |
) |
1631 | 1072 |
) |
1073 |
nil |
|
1074 |
nil |
|
1075 |
) |
|
1076 |
! |
|
1077 |
||
1606 | 1078 |
standardMenus |
738 | 1079 |
"This resource specification was automatically generated |
1080 |
by the MenuEditor of ST/X." |
|
1081 |
||
1082 |
"Do not manually edit this!! If it is corrupted, |
|
1083 |
the MenuEditor may not be able to read the specification." |
|
525 | 1084 |
|
1085 |
" |
|
1606 | 1086 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardMenus |
1087 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardMenus)) startUp |
|
525 | 1088 |
" |
1089 |
||
1090 |
<resource: #menu> |
|
1091 |
||
1606 | 1092 |
^ |
1093 |
#(#Menu |
|
1632 | 1094 |
#( |
1095 |
#(#MenuItem |
|
1730 | 1096 |
#label: 'Standard Menu: File' |
1097 |
#itemValue: #doCreateStandardFileMenu |
|
1098 |
#translateLabel: true |
|
1099 |
) |
|
1100 |
#(#MenuItem |
|
1632 | 1101 |
#label: 'Standard Menu: Edit' |
1102 |
#itemValue: #doCreateStandardEditMenu |
|
1103 |
#translateLabel: true |
|
1104 |
) |
|
1105 |
#(#MenuItem |
|
1106 |
#label: 'Standard Menu: Help' |
|
1107 |
#itemValue: #doCreateStandardHelpMenu |
|
1108 |
#translateLabel: true |
|
1109 |
) |
|
1110 |
) |
|
1111 |
nil |
|
1112 |
nil |
|
525 | 1113 |
) |
1114 |
! |
|
1115 |
||
1606 | 1116 |
toolbar |
738 | 1117 |
"This resource specification was automatically generated |
1118 |
by the MenuEditor of ST/X." |
|
1119 |
||
1120 |
"Do not manually edit this!! If it is corrupted, |
|
1121 |
the MenuEditor may not be able to read the specification." |
|
525 | 1122 |
|
1123 |
" |
|
1606 | 1124 |
MenuEditor new openOnClass:MenuEditor andSelector:#toolbar |
1125 |
(Menu new fromLiteralArrayEncoding:(MenuEditor toolbar)) startUp |
|
525 | 1126 |
" |
1127 |
||
1128 |
<resource: #menu> |
|
1129 |
||
1322 | 1130 |
^ |
1749 | 1131 |
#(Menu |
1132 |
( |
|
1133 |
(MenuItem |
|
1134 |
activeHelpKey: fileNew |
|
1135 |
label: 'New' |
|
1136 |
itemValue: doNew |
|
1137 |
translateLabel: true |
|
1138 |
isButton: true |
|
1139 |
labelImage: (ResourceRetriever ToolbarIconLibrary newMenu24x24Icon) |
|
1690 | 1140 |
) |
1749 | 1141 |
(MenuItem |
1142 |
activeHelpKey: fileLoad |
|
1143 |
label: 'Load' |
|
1144 |
itemValue: doLoad |
|
1145 |
translateLabel: true |
|
1146 |
isButton: true |
|
1147 |
submenuChannel: menuHistory |
|
1820 | 1148 |
labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethod22x22Icon) |
1149 |
keepLinkedMenu: true |
|
1322 | 1150 |
) |
1749 | 1151 |
(MenuItem |
1152 |
activeHelpKey: fileSave |
|
1153 |
label: 'Save' |
|
1154 |
itemValue: doSave |
|
1155 |
translateLabel: true |
|
1156 |
isButton: true |
|
1157 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethod22x22Icon) |
|
1322 | 1158 |
) |
1749 | 1159 |
(MenuItem |
1160 |
label: '' |
|
1322 | 1161 |
) |
1749 | 1162 |
(MenuItem |
1163 |
activeHelpKey: editCut |
|
1164 |
enabled: hasSelectionChannel |
|
1165 |
label: 'Cut' |
|
1166 |
itemValue: doCut |
|
1167 |
translateLabel: true |
|
1168 |
isButton: true |
|
1820 | 1169 |
labelImage: (ResourceRetriever ToolbarIconLibrary cutMenuItem22x22Icon) |
1322 | 1170 |
) |
1749 | 1171 |
(MenuItem |
1172 |
activeHelpKey: editCopy |
|
1173 |
enabled: hasSelectionChannel |
|
1174 |
label: 'Copy' |
|
1175 |
itemValue: doCopy |
|
1176 |
translateLabel: true |
|
1177 |
isButton: true |
|
1820 | 1178 |
labelImage: (ResourceRetriever ToolbarIconLibrary copyMenuItem22x22Icon) |
1322 | 1179 |
) |
1749 | 1180 |
(MenuItem |
1181 |
activeHelpKey: editPaste |
|
1182 |
enabled: valueOfCanPaste |
|
1183 |
label: 'Paste' |
|
1184 |
itemValue: doPaste |
|
1185 |
translateLabel: true |
|
1186 |
isButton: true |
|
1820 | 1187 |
labelImage: (ResourceRetriever ToolbarIconLibrary pasteMenuItem22x22Icon) |
1322 | 1188 |
) |
1749 | 1189 |
(MenuItem |
1190 |
label: '' |
|
1322 | 1191 |
) |
1749 | 1192 |
(MenuItem |
1193 |
activeHelpKey: addMenuSeparator |
|
1194 |
enabled: hasSingleSelectionChannel |
|
1195 |
label: 'Add Separator' |
|
1196 |
itemValue: doCreateSep |
|
1197 |
translateLabel: true |
|
1198 |
isButton: true |
|
1199 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconSeparator) |
|
1322 | 1200 |
) |
1749 | 1201 |
(MenuItem |
1202 |
activeHelpKey: addMenuItem |
|
1203 |
enabled: hasSingleSelectionChannel |
|
1204 |
label: 'Add Item' |
|
1205 |
itemValue: doCreateItem |
|
1206 |
translateLabel: true |
|
1207 |
isButton: true |
|
1208 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconItem) |
|
1606 | 1209 |
) |
1749 | 1210 |
(MenuItem |
1844 | 1211 |
activeHelpKey: addMenuSliceItem |
1212 |
enabled: hasSingleSelectionChannel |
|
1213 |
label: 'Menu Slice' |
|
1214 |
itemValue: doCreateMenuSliceItem |
|
1215 |
translateLabel: true |
|
1216 |
isButton: true |
|
1217 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconSliceMenu) |
|
1218 |
) |
|
1219 |
(MenuItem |
|
1749 | 1220 |
activeHelpKey: addSubMenu |
1221 |
enabled: hasSingleSelectionChannel |
|
1222 |
label: 'Add Menu' |
|
1223 |
itemValue: doCreateMenu |
|
1224 |
translateLabel: true |
|
1225 |
isButton: true |
|
1226 |
submenuChannel: standardMenus |
|
1227 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconMenu) |
|
1820 | 1228 |
keepLinkedMenu: true |
1322 | 1229 |
) |
1749 | 1230 |
(MenuItem |
1231 |
activeHelpKey: addSubMenuLink |
|
1232 |
enabled: hasSingleSelectionChannel |
|
1233 |
label: 'Add Linked Menu' |
|
1234 |
itemValue: doCreateLinkedMenu |
|
1235 |
translateLabel: true |
|
1236 |
isButton: true |
|
1237 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconLinkedMenu) |
|
1322 | 1238 |
) |
1749 | 1239 |
(MenuItem |
1240 |
label: '' |
|
1322 | 1241 |
) |
1749 | 1242 |
(MenuItem |
1243 |
activeHelpKey: addDelayedMenu |
|
1244 |
enabled: canCreateDelayedMenuChannel |
|
1245 |
label: 'Add Delayed Menu' |
|
1246 |
itemValue: doCreateDelayedMenu: |
|
1247 |
translateLabel: true |
|
1248 |
isButton: true |
|
1249 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedMenu) |
|
1250 |
argument: menu |
|
1606 | 1251 |
) |
1749 | 1252 |
(MenuItem |
1253 |
activeHelpKey: addDelayedSubMenuLink |
|
1254 |
enabled: canCreateDelayedMenuChannel |
|
1255 |
label: 'Add Delayed Linked Menu' |
|
1256 |
itemValue: doCreateDelayedMenu: |
|
1257 |
translateLabel: true |
|
1258 |
isButton: true |
|
1259 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedLinkedMenu) |
|
1260 |
argument: linkedMenu |
|
1606 | 1261 |
) |
1749 | 1262 |
(MenuItem |
1263 |
activeHelpKey: editMoveUp |
|
1264 |
enabled: valueOfEnableMovingUpOrDown |
|
1265 |
label: 'Move Up' |
|
1266 |
itemValue: doMoveUpOrDown: |
|
1267 |
translateLabel: true |
|
1268 |
isButton: true |
|
1269 |
startGroup: right |
|
1270 |
labelImage: (ResourceRetriever Icon upIcon) |
|
1271 |
argument: up |
|
1322 | 1272 |
) |
1749 | 1273 |
(MenuItem |
1274 |
activeHelpKey: editMoveDown |
|
1275 |
enabled: valueOfEnableMovingUpOrDown |
|
1276 |
label: 'Move Down' |
|
1277 |
itemValue: doMoveUpOrDown: |
|
1278 |
translateLabel: true |
|
1279 |
isButton: true |
|
1280 |
labelImage: (ResourceRetriever Icon downIcon) |
|
1281 |
argument: down |
|
1322 | 1282 |
) |
1749 | 1283 |
(MenuItem |
1284 |
activeHelpKey: editMoveIn |
|
1285 |
enabled: valueOfEnableMovingIn |
|
1286 |
label: 'Move In' |
|
1287 |
itemValue: doMoveIn: |
|
1288 |
translateLabel: true |
|
1289 |
isButton: true |
|
1290 |
labelImage: (ResourceRetriever Icon downRightIcon) |
|
1291 |
argument: inNext |
|
1322 | 1292 |
) |
1749 | 1293 |
(MenuItem |
1294 |
activeHelpKey: editMoveInAbove |
|
1295 |
enabled: valueOfEnableMovingInAbove |
|
1296 |
label: 'Move In Above' |
|
1297 |
itemValue: doMoveIn: |
|
1298 |
translateLabel: true |
|
1299 |
isButton: true |
|
1300 |
labelImage: (ResourceRetriever Icon upRightIcon) |
|
1301 |
argument: inPrev |
|
1468 | 1302 |
) |
1749 | 1303 |
(MenuItem |
1304 |
activeHelpKey: editMoveOut |
|
1305 |
enabled: valueOfEnableMovingOut |
|
1306 |
label: 'Move Out' |
|
1307 |
itemValue: doMoveOut |
|
1308 |
translateLabel: true |
|
1309 |
isButton: true |
|
1310 |
labelImage: (ResourceRetriever Icon leftDownIcon) |
|
1322 | 1311 |
) |
1312 |
) |
|
1313 |
nil |
|
1314 |
nil |
|
525 | 1315 |
) |
1316 |
! ! |
|
1317 |
||
1725 | 1318 |
!MenuEditor class methodsFor:'menu specs-standard'! |
1606 | 1319 |
|
1320 |
standardEditMenu |
|
1321 |
"This resource specification was automatically generated |
|
1322 |
by the MenuEditor of ST/X." |
|
1323 |
||
1324 |
"Do not manually edit this!! If it is corrupted, |
|
1325 |
the MenuEditor may not be able to read the specification." |
|
1326 |
||
1327 |
" |
|
1328 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardEditMenu |
|
1329 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardEditMenu)) startUp |
|