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