author | Claus Gittinger <cg@exept.de> |
Mon, 09 Feb 2004 21:29:43 +0100 | |
changeset 1786 | db328579276f |
parent 1785 | 300261fabf7d |
child 1788 | 0df267eaba2c |
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 |
||
421 |
#fileLoad |
|
422 |
'Load Spec from Class' |
|
423 |
||
424 |
#fileSave |
|
425 |
'Save Spec' |
|
426 |
||
427 |
#fileSaveAs |
|
428 |
'Save Spec As' |
|
429 |
||
430 |
#addMenuSeparator |
|
431 |
'Add Separator' |
|
432 |
||
433 |
#addMenuItem |
|
434 |
'Add Item' |
|
435 |
||
436 |
#addSubMenu |
|
437 |
'Add Submenu' |
|
438 |
||
439 |
#addDelayedMenu |
|
440 |
'Add Delayed Menu' |
|
441 |
||
442 |
#addDelayedSubMenuLink |
|
443 |
'Add linked Delayed Menu' |
|
444 |
||
445 |
#addSubMenuLink |
|
1656 | 446 |
'Add Linked Submenu' |
1629 | 447 |
|
448 |
#fileNew |
|
449 |
'New Spec' |
|
450 |
) |
|
371 | 451 |
! ! |
452 |
||
734 | 453 |
!MenuEditor class methodsFor:'image specs'! |
454 |
||
1606 | 455 |
iconUnknown |
456 |
"returns an image used for picked items containing an image |
|
734 | 457 |
" |
1606 | 458 |
<resource: #fileImage> |
459 |
||
460 |
^ MenuPanelSpec icon |
|
1425 | 461 |
! ! |
734 | 462 |
|
199 | 463 |
!MenuEditor class methodsFor:'interface specs'! |
464 |
||
525 | 465 |
windowSpec |
738 | 466 |
"This resource specification was automatically generated |
467 |
by the UIPainter of ST/X." |
|
468 |
||
469 |
"Do not manually edit this!! If it is corrupted, |
|
470 |
the UIPainter may not be able to read the specification." |
|
525 | 471 |
|
472 |
" |
|
473 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
474 |
MenuEditor new openInterface:#windowSpec |
|
738 | 475 |
MenuEditor open |
525 | 476 |
" |
477 |
||
478 |
<resource: #canvas> |
|
479 |
||
1244 | 480 |
^ |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
481 |
#(FullSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
482 |
name: windowSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
483 |
window: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
484 |
(WindowSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
485 |
label: 'Menu Editor' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
486 |
name: 'Menu Editor' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
487 |
min: (Point 550 385) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
488 |
bounds: (Rectangle 14 46 590 521) |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
489 |
menu: menu |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
490 |
returnIsOKInDialog: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
491 |
escapeIsCancelInDialog: false |
1244 | 492 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
493 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
494 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
495 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
496 |
(MenuPanelSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
497 |
name: 'toolbar' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
498 |
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
|
499 |
tabable: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
500 |
menu: toolbar |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
501 |
showSeparatingLines: true |
1244 | 502 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
503 |
(VariableHorizontalPanelSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
504 |
name: 'VariableHorizontalPanel' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
505 |
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
|
506 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
507 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
508 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
509 |
(HierarchicalListViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
510 |
name: 'ListOfItemsView' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
511 |
model: selectionHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
512 |
menu: editMenu |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
513 |
hasHorizontalScrollBar: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
514 |
hasVerticalScrollBar: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
515 |
miniScrollerHorizontal: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
516 |
miniScrollerVertical: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
517 |
listModel: listOfItems |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
518 |
multipleSelectOk: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
519 |
useIndex: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
520 |
highlightMode: label |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
521 |
doubleClickSelector: indicatorClickedAt: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
522 |
selectConditionSelector: canSelect: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
523 |
showLeftIndicators: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
524 |
indicatorSelector: indicatorClickedAt: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
525 |
properties: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
526 |
(PropertyListDictionary |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
527 |
overSelector: dropOver: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
528 |
dragArgument: nil |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
529 |
dropObjectSelector: dropObjects |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
530 |
dropArgument: nil |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
531 |
canDropSelector: canDrop: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
532 |
leaveSelector: dropLeave: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
533 |
enterSelector: dropEnter: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
534 |
dropSelector: doDrop: |
1606 | 535 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
536 |
postBuildCallback: postBuildListOfItemsView: |
1244 | 537 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
538 |
(ViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
539 |
name: 'Box' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
540 |
level: -1 |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
541 |
component: |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
542 |
(SpecCollection |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
543 |
collection: ( |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
544 |
(NoteBookViewSpec |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
545 |
name: 'NoteBook' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
546 |
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
|
547 |
enableChannel: hasSingleSelectionChannel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
548 |
tabable: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
549 |
model: tabHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
550 |
menu: listOfTabs |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
551 |
fitLastRow: false |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
552 |
canvas: wizardHolder |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
553 |
keepCanvasAlive: true |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
554 |
postBuildCallback: postBuildNoteBook: |
1244 | 555 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
556 |
(UISubSpecification |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
557 |
name: 'SubSpecification' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
558 |
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
|
559 |
majorKey: ToolApplicationModel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
560 |
minorKey: windowSpecForCommit |
525 | 561 |
) |
1244 | 562 |
) |
563 |
||
525 | 564 |
) |
1244 | 565 |
) |
566 |
) |
|
567 |
||
525 | 568 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
569 |
handles: (Any 0.300493 1.0) |
1244 | 570 |
) |
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
571 |
(UISubSpecification |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
572 |
name: 'InfoBarSubSpec' |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
573 |
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
|
574 |
majorKey: ToolApplicationModel |
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1730
diff
changeset
|
575 |
minorKey: windowSpecForInfoBar |
1244 | 576 |
) |
577 |
) |
|
578 |
||
579 |
) |
|
525 | 580 |
) |
581 |
! ! |
|
582 |
||
583 |
!MenuEditor class methodsFor:'menu specs'! |
|
584 |
||
1606 | 585 |
addMenu |
586 |
"This resource specification was automatically generated |
|
587 |
by the MenuEditor of ST/X." |
|
588 |
||
589 |
"Do not manually edit this!! If it is corrupted, |
|
590 |
the MenuEditor may not be able to read the specification." |
|
591 |
||
592 |
" |
|
593 |
MenuEditor new openOnClass:MenuEditor andSelector:#addMenu |
|
594 |
(Menu new fromLiteralArrayEncoding:(MenuEditor addMenu)) startUp |
|
595 |
" |
|
596 |
||
597 |
<resource: #menu> |
|
598 |
||
599 |
^ |
|
600 |
#(#Menu |
|
601 |
#( |
|
602 |
#(#MenuItem |
|
1632 | 603 |
#activeHelpKey: #addMenuSeparator |
1606 | 604 |
#label: 'Separator' |
1632 | 605 |
#itemValue: #doCreateSep |
1606 | 606 |
#translateLabel: true |
607 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconSeparator '') |
|
608 |
) |
|
609 |
#(#MenuItem |
|
1632 | 610 |
#activeHelpKey: #addMenuItem |
1606 | 611 |
#label: 'Item' |
1632 | 612 |
#itemValue: #doCreateItem |
1606 | 613 |
#translateLabel: true |
614 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconItem '') |
|
615 |
) |
|
616 |
#(#MenuItem |
|
1632 | 617 |
#activeHelpKey: #addMenuItem |
1606 | 618 |
#label: 'Menu' |
1632 | 619 |
#itemValue: #doCreateMenu |
1606 | 620 |
#translateLabel: true |
621 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconMenu '') |
|
622 |
) |
|
623 |
#(#MenuItem |
|
1632 | 624 |
#activeHelpKey: #addSubMenuLink |
1606 | 625 |
#label: 'Linked Menu' |
1632 | 626 |
#itemValue: #doCreateLinkedMenu |
627 |
#translateLabel: true |
|
1606 | 628 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconLinkedMenu '') |
629 |
) |
|
630 |
#(#MenuItem |
|
631 |
#label: '-' |
|
632 |
) |
|
633 |
#(#MenuItem |
|
1632 | 634 |
#activeHelpKey: #addDelayedMenu |
1606 | 635 |
#enabled: #canCreateDelayedMenuChannel |
1632 | 636 |
#label: 'Delayed Menu' |
637 |
#itemValue: #doCreateDelayedMenu: |
|
638 |
#translateLabel: true |
|
1606 | 639 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedMenu '') |
1632 | 640 |
#argument: #menu |
1606 | 641 |
) |
642 |
#(#MenuItem |
|
1632 | 643 |
#activeHelpKey: #addDelayedSubMenuLink |
1606 | 644 |
#enabled: #canCreateDelayedMenuChannel |
1632 | 645 |
#label: 'Delayed Linked Menu' |
646 |
#itemValue: #doCreateDelayedMenu: |
|
647 |
#translateLabel: true |
|
648 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedLinkedMenu '') |
|
1606 | 649 |
#argument: #linkedMenu |
650 |
) |
|
651 |
#(#MenuItem |
|
652 |
#label: '-' |
|
653 |
) |
|
654 |
#(#MenuItem |
|
655 |
#label: 'Standard Menus' |
|
656 |
#translateLabel: true |
|
657 |
#submenuChannel: #standardMenus |
|
658 |
#keepLinkedMenu: true |
|
659 |
) |
|
660 |
) |
|
661 |
nil |
|
662 |
nil |
|
663 |
) |
|
664 |
! |
|
665 |
||
666 |
editMenu |
|
667 |
"This resource specification was automatically generated |
|
668 |
by the MenuEditor of ST/X." |
|
669 |
||
670 |
"Do not manually edit this!! If it is corrupted, |
|
671 |
the MenuEditor may not be able to read the specification." |
|
672 |
||
673 |
" |
|
674 |
MenuEditor new openOnClass:MenuEditor andSelector:#editMenu |
|
675 |
(Menu new fromLiteralArrayEncoding:(MenuEditor editMenu)) startUp |
|
676 |
" |
|
677 |
||
678 |
<resource: #menu> |
|
679 |
||
680 |
^ |
|
681 |
#(#Menu |
|
1631 | 682 |
#( |
683 |
#(#MenuItem |
|
684 |
#activeHelpKey: #editCut |
|
685 |
#enabled: #hasSelectionChannel |
|
1632 | 686 |
#label: 'Cut' |
687 |
#itemValue: #doCut |
|
688 |
#translateLabel: true |
|
1631 | 689 |
) |
690 |
#(#MenuItem |
|
691 |
#activeHelpKey: #editCopy |
|
692 |
#enabled: #hasSelectionChannel |
|
1632 | 693 |
#label: 'Copy' |
694 |
#itemValue: #doCopy |
|
695 |
#translateLabel: true |
|
1631 | 696 |
) |
697 |
#(#MenuItem |
|
698 |
#activeHelpKey: #editPaste |
|
699 |
#enabled: #valueOfCanPaste |
|
1632 | 700 |
#label: 'Paste' |
701 |
#itemValue: #doPaste |
|
702 |
#translateLabel: true |
|
1631 | 703 |
) |
704 |
#(#MenuItem |
|
1632 | 705 |
#activeHelpKey: #editDelete |
706 |
#enabled: #hasSelectionChannel |
|
1631 | 707 |
#label: 'Delete' |
1632 | 708 |
#itemValue: #doDelete |
1631 | 709 |
#translateLabel: true |
710 |
#isVisible: false |
|
711 |
) |
|
712 |
#(#MenuItem |
|
713 |
#label: '-' |
|
714 |
) |
|
715 |
#(#MenuItem |
|
716 |
#activeHelpKey: #editMoveUp |
|
717 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 718 |
#label: 'Move Up' |
719 |
#itemValue: #doMoveUpOrDown: |
|
720 |
#translateLabel: true |
|
721 |
#startGroup: #right |
|
722 |
#labelImage: #(#ResourceRetriever #Icon #upIcon '') |
|
1631 | 723 |
#argument: #up |
724 |
) |
|
725 |
#(#MenuItem |
|
726 |
#activeHelpKey: #editMoveDown |
|
727 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 728 |
#label: 'Move Down' |
729 |
#itemValue: #doMoveUpOrDown: |
|
730 |
#translateLabel: true |
|
731 |
#labelImage: #(#ResourceRetriever #Icon #downIcon '') |
|
1631 | 732 |
#argument: #down |
733 |
) |
|
734 |
#(#MenuItem |
|
735 |
#activeHelpKey: #editMoveIn |
|
736 |
#enabled: #valueOfEnableMovingIn |
|
1632 | 737 |
#label: 'Move Into Next' |
738 |
#itemValue: #doMoveIn: |
|
739 |
#translateLabel: true |
|
740 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon '') |
|
1631 | 741 |
#argument: #inNext |
742 |
) |
|
743 |
#(#MenuItem |
|
744 |
#activeHelpKey: #editMoveInAbove |
|
745 |
#enabled: #valueOfEnableMovingInAbove |
|
1632 | 746 |
#label: 'Move Into Previous' |
747 |
#itemValue: #doMoveIn: |
|
748 |
#translateLabel: true |
|
749 |
#labelImage: #(#ResourceRetriever #Icon #upRightIcon '') |
|
1631 | 750 |
#argument: #inPrev |
751 |
) |
|
752 |
#(#MenuItem |
|
753 |
#activeHelpKey: #editMoveOut |
|
754 |
#enabled: #valueOfEnableMovingOut |
|
1632 | 755 |
#label: 'Move Out' |
756 |
#itemValue: #doMoveOut |
|
757 |
#translateLabel: true |
|
758 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon '') |
|
1631 | 759 |
) |
760 |
) |
|
761 |
nil |
|
762 |
nil |
|
1606 | 763 |
) |
764 |
! |
|
765 |
||
766 |
fileMenu |
|
767 |
"This resource specification was automatically generated |
|
768 |
by the MenuEditor of ST/X." |
|
769 |
||
770 |
"Do not manually edit this!! If it is corrupted, |
|
771 |
the MenuEditor may not be able to read the specification." |
|
772 |
||
773 |
" |
|
774 |
MenuEditor new openOnClass:MenuEditor andSelector:#fileMenu |
|
775 |
(Menu new fromLiteralArrayEncoding:(MenuEditor fileMenu)) startUp |
|
776 |
" |
|
777 |
||
778 |
<resource: #menu> |
|
779 |
||
780 |
^ |
|
781 |
#(#Menu |
|
782 |
#( |
|
783 |
#(#MenuItem |
|
1632 | 784 |
#activeHelpKey: #fileNew |
1606 | 785 |
#label: 'New' |
1632 | 786 |
#itemValue: #doNew |
1606 | 787 |
#translateLabel: true |
788 |
) |
|
789 |
#(#MenuItem |
|
790 |
#label: '-' |
|
791 |
) |
|
792 |
#(#MenuItem |
|
1632 | 793 |
#activeHelpKey: #fileLoad |
1606 | 794 |
#label: 'Load...' |
1632 | 795 |
#itemValue: #doLoad |
1606 | 796 |
#translateLabel: true |
797 |
) |
|
798 |
#(#MenuItem |
|
799 |
#label: '-' |
|
800 |
) |
|
801 |
#(#MenuItem |
|
1632 | 802 |
#activeHelpKey: #fileSave |
1606 | 803 |
#label: 'Save' |
1632 | 804 |
#itemValue: #doSave |
1606 | 805 |
#translateLabel: true |
806 |
) |
|
807 |
#(#MenuItem |
|
1632 | 808 |
#activeHelpKey: #fileSaveAs |
1606 | 809 |
#label: 'Save As...' |
1632 | 810 |
#itemValue: #doSaveAs |
1606 | 811 |
#translateLabel: true |
812 |
) |
|
813 |
#(#MenuItem |
|
814 |
#label: '-' |
|
815 |
) |
|
816 |
#(#MenuItem |
|
1632 | 817 |
#activeHelpKey: #filePickAMenu |
1606 | 818 |
#label: 'Pick a Menu...' |
1632 | 819 |
#itemValue: #doPickAMenu |
1606 | 820 |
#translateLabel: true |
821 |
) |
|
822 |
#(#MenuItem |
|
823 |
#label: '-' |
|
824 |
) |
|
825 |
#(#MenuItem |
|
1632 | 826 |
#activeHelpKey: #fileShowMenuSpec |
1606 | 827 |
#label: 'Show Menu Spec' |
1632 | 828 |
#itemValue: #doShowMenuSpec |
1606 | 829 |
#translateLabel: true |
830 |
) |
|
831 |
#(#MenuItem |
|
832 |
#activeHelpKey: #fileBrowseClass |
|
833 |
#enabled: #hasValidSpecClass |
|
1632 | 834 |
#label: 'Browse Class' |
835 |
#itemValue: #doBrowseClass |
|
836 |
#translateLabel: true |
|
1606 | 837 |
) |
838 |
#(#MenuItem |
|
839 |
#label: '-' |
|
840 |
) |
|
841 |
#(#MenuItem |
|
1632 | 842 |
#activeHelpKey: #fileExit |
1606 | 843 |
#label: 'Exit' |
1632 | 844 |
#itemValue: #closeRequest |
1606 | 845 |
#translateLabel: true |
846 |
) |
|
847 |
) |
|
848 |
nil |
|
849 |
nil |
|
850 |
) |
|
851 |
! |
|
852 |
||
1614 | 853 |
generateMenu |
854 |
"This resource specification was automatically generated |
|
855 |
by the MenuEditor of ST/X." |
|
856 |
||
857 |
"Do not manually edit this!! If it is corrupted, |
|
858 |
the MenuEditor may not be able to read the specification." |
|
859 |
||
860 |
" |
|
861 |
MenuEditor new openOnClass:MenuEditor andSelector:#generateMenu |
|
862 |
(Menu new fromLiteralArrayEncoding:(MenuEditor generateMenu)) startUp |
|
863 |
" |
|
864 |
||
865 |
<resource: #menu> |
|
866 |
||
867 |
^ |
|
868 |
#(#Menu |
|
869 |
#( |
|
870 |
#(#MenuItem |
|
871 |
#activeHelpKey: #generateAspectMethods |
|
872 |
#enabled: #hasValidSpecClass |
|
1632 | 873 |
#label: 'Aspect Methods' |
874 |
#itemValue: #doGenerateAspectMethods |
|
875 |
#translateLabel: true |
|
1614 | 876 |
) |
877 |
) |
|
878 |
nil |
|
879 |
nil |
|
880 |
) |
|
881 |
! |
|
882 |
||
1606 | 883 |
helpMenu |
884 |
"This resource specification was automatically generated |
|
885 |
by the MenuEditor of ST/X." |
|
886 |
||
887 |
"Do not manually edit this!! If it is corrupted, |
|
888 |
the MenuEditor may not be able to read the specification." |
|
889 |
||
890 |
" |
|
891 |
MenuEditor new openOnClass:MenuEditor andSelector:#helpMenu |
|
892 |
(Menu new fromLiteralArrayEncoding:(MenuEditor helpMenu)) startUp |
|
893 |
" |
|
894 |
||
895 |
<resource: #menu> |
|
896 |
||
897 |
^ |
|
898 |
#(#Menu |
|
899 |
#( |
|
900 |
#(#MenuItem |
|
1632 | 901 |
#activeHelpKey: #helpTutorial |
1606 | 902 |
#label: 'Documentation' |
1632 | 903 |
#itemValue: #openHTMLDocument: |
1606 | 904 |
#translateLabel: true |
905 |
#argument: 'tools/uipainter/MenuEditor.html' |
|
906 |
) |
|
907 |
#(#MenuItem |
|
908 |
#label: '-' |
|
909 |
) |
|
910 |
#(#MenuItem |
|
1632 | 911 |
#activeHelpKey: #helpHelpTool |
1606 | 912 |
#label: 'Help Tool' |
1632 | 913 |
#itemValue: #openHTMLDocument: |
1606 | 914 |
#translateLabel: true |
915 |
#argument: 'tools/uipainter/HelpTool.html' |
|
916 |
) |
|
917 |
#(#MenuItem |
|
918 |
#label: '-' |
|
919 |
) |
|
920 |
#(#MenuItem |
|
1632 | 921 |
#activeHelpKey: #helpShowHelp |
1606 | 922 |
#label: 'Show Help Texts' |
923 |
#translateLabel: true |
|
924 |
#indication: #showingHelp: |
|
925 |
) |
|
926 |
#(#MenuItem |
|
927 |
#label: '-' |
|
928 |
) |
|
929 |
#(#MenuItem |
|
1632 | 930 |
#activeHelpKey: #aboutThisAppliaction |
1606 | 931 |
#label: 'About MenuEditor...' |
1632 | 932 |
#itemValue: #openAboutThisApplication |
1606 | 933 |
#translateLabel: true |
934 |
) |
|
935 |
) |
|
936 |
nil |
|
937 |
nil |
|
938 |
) |
|
939 |
! |
|
940 |
||
525 | 941 |
menu |
738 | 942 |
"This resource specification was automatically generated |
943 |
by the MenuEditor of ST/X." |
|
944 |
||
945 |
"Do not manually edit this!! If it is corrupted, |
|
946 |
the MenuEditor may not be able to read the specification." |
|
525 | 947 |
|
948 |
" |
|
949 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
950 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
951 |
" |
|
952 |
||
953 |
<resource: #menu> |
|
954 |
||
1566 | 955 |
^ |
1775 | 956 |
#(Menu |
957 |
( |
|
958 |
(MenuItem |
|
959 |
label: '&File' |
|
960 |
translateLabel: true |
|
961 |
submenuChannel: fileMenu |
|
962 |
keepLinkedMenu: true |
|
1566 | 963 |
) |
1775 | 964 |
(MenuItem |
965 |
label: '&Edit' |
|
966 |
translateLabel: true |
|
967 |
submenuChannel: editMenu |
|
968 |
keepLinkedMenu: true |
|
1566 | 969 |
) |
1775 | 970 |
(MenuItem |
971 |
enabled: hasSingleSelectionChannel |
|
972 |
label: 'Item' |
|
973 |
translateLabel: true |
|
974 |
submenuChannel: addMenu |
|
975 |
keepLinkedMenu: true |
|
1566 | 976 |
) |
1775 | 977 |
(MenuItem |
978 |
label: 'Generate' |
|
979 |
translateLabel: true |
|
980 |
submenuChannel: generateMenu |
|
981 |
keepLinkedMenu: true |
|
1631 | 982 |
) |
1775 | 983 |
(MenuItem |
984 |
label: 'Test' |
|
985 |
translateLabel: true |
|
986 |
submenuChannel: submenuTest |
|
1566 | 987 |
) |
1775 | 988 |
(MenuItem |
989 |
label: 'Settings' |
|
990 |
translateLabel: true |
|
991 |
submenuChannel: settingsMenu |
|
992 |
keepLinkedMenu: true |
|
1631 | 993 |
) |
1775 | 994 |
(MenuItem |
995 |
label: 'History' |
|
996 |
translateLabel: true |
|
997 |
submenuChannel: menuHistory |
|
1566 | 998 |
) |
1775 | 999 |
(MenuItem |
1000 |
label: '&Help' |
|
1001 |
translateLabel: true |
|
1002 |
startGroup: right |
|
1003 |
submenuChannel: helpMenu |
|
1004 |
keepLinkedMenu: true |
|
1566 | 1005 |
) |
1006 |
) |
|
1007 |
nil |
|
1008 |
nil |
|
525 | 1009 |
) |
1010 |
! |
|
1011 |
||
1631 | 1012 |
settingsMenu |
1013 |
"This resource specification was automatically generated |
|
1014 |
by the MenuEditor of ST/X." |
|
1015 |
||
1016 |
"Do not manually edit this!! If it is corrupted, |
|
1017 |
the MenuEditor may not be able to read the specification." |
|
1018 |
||
1019 |
" |
|
1632 | 1020 |
MenuEditor new openOnClass:MenuEditor andSelector:#settingsMenu |
1021 |
(Menu new fromLiteralArrayEncoding:(MenuEditor settingsMenu)) startUp |
|
1631 | 1022 |
" |
1023 |
||
1024 |
<resource: #menu> |
|
1025 |
||
1026 |
^ |
|
1027 |
#(#Menu |
|
1028 |
#( |
|
1029 |
#(#MenuItem |
|
1632 | 1030 |
#activeHelpKey: #settingsRedefineAspectMethods |
1031 |
#enabled: #hasValidSpecClass |
|
1631 | 1032 |
#label: 'Redefine Aspect Methods' |
1033 |
#translateLabel: true |
|
1034 |
#hideMenuOnActivated: false |
|
1035 |
#indication: #redefineAspectMethodsChannel |
|
1036 |
) |
|
1711
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1037 |
#(#MenuItem |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1038 |
#activeHelpKey: #settingsRedefineAspectMethods |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1039 |
#label: 'AutoAccept on Selection-Change' |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1040 |
#translateLabel: true |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1041 |
#hideMenuOnActivated: false |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1042 |
#indication: #autoAcceptOnSelectionChange |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1043 |
) |
1631 | 1044 |
) |
1045 |
nil |
|
1046 |
nil |
|
1047 |
) |
|
1048 |
! |
|
1049 |
||
1606 | 1050 |
standardMenus |
738 | 1051 |
"This resource specification was automatically generated |
1052 |
by the MenuEditor of ST/X." |
|
1053 |
||
1054 |
"Do not manually edit this!! If it is corrupted, |
|
1055 |
the MenuEditor may not be able to read the specification." |
|
525 | 1056 |
|
1057 |
" |
|
1606 | 1058 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardMenus |
1059 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardMenus)) startUp |
|
525 | 1060 |
" |
1061 |
||
1062 |
<resource: #menu> |
|
1063 |
||
1606 | 1064 |
^ |
1065 |
#(#Menu |
|
1632 | 1066 |
#( |
1067 |
#(#MenuItem |
|
1730 | 1068 |
#label: 'Standard Menu: File' |
1069 |
#itemValue: #doCreateStandardFileMenu |
|
1070 |
#translateLabel: true |
|
1071 |
) |
|
1072 |
#(#MenuItem |
|
1632 | 1073 |
#label: 'Standard Menu: Edit' |
1074 |
#itemValue: #doCreateStandardEditMenu |
|
1075 |
#translateLabel: true |
|
1076 |
) |
|
1077 |
#(#MenuItem |
|
1078 |
#label: 'Standard Menu: Help' |
|
1079 |
#itemValue: #doCreateStandardHelpMenu |
|
1080 |
#translateLabel: true |
|
1081 |
) |
|
1082 |
) |
|
1083 |
nil |
|
1084 |
nil |
|
525 | 1085 |
) |
1086 |
! |
|
1087 |
||
1606 | 1088 |
toolbar |
738 | 1089 |
"This resource specification was automatically generated |
1090 |
by the MenuEditor of ST/X." |
|
1091 |
||
1092 |
"Do not manually edit this!! If it is corrupted, |
|
1093 |
the MenuEditor may not be able to read the specification." |
|
525 | 1094 |
|
1095 |
" |
|
1606 | 1096 |
MenuEditor new openOnClass:MenuEditor andSelector:#toolbar |
1097 |
(Menu new fromLiteralArrayEncoding:(MenuEditor toolbar)) startUp |
|
525 | 1098 |
" |
1099 |
||
1100 |
<resource: #menu> |
|
1101 |
||
1322 | 1102 |
^ |
1749 | 1103 |
#(Menu |
1104 |
( |
|
1105 |
(MenuItem |
|
1106 |
activeHelpKey: fileNew |
|
1107 |
label: 'New' |
|
1108 |
itemValue: doNew |
|
1109 |
translateLabel: true |
|
1110 |
isButton: true |
|
1111 |
labelImage: (ResourceRetriever ToolbarIconLibrary newMenu24x24Icon) |
|
1690 | 1112 |
) |
1749 | 1113 |
(MenuItem |
1114 |
activeHelpKey: fileLoad |
|
1115 |
label: 'Load' |
|
1116 |
itemValue: doLoad |
|
1117 |
translateLabel: true |
|
1118 |
isButton: true |
|
1119 |
submenuChannel: menuHistory |
|
1120 |
labelImage: (ResourceRetriever ToolbarIconLibrary load22x22Icon) |
|
1322 | 1121 |
) |
1749 | 1122 |
(MenuItem |
1123 |
activeHelpKey: fileSave |
|
1124 |
label: 'Save' |
|
1125 |
itemValue: doSave |
|
1126 |
translateLabel: true |
|
1127 |
isButton: true |
|
1128 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethod22x22Icon) |
|
1322 | 1129 |
) |
1749 | 1130 |
(MenuItem |
1131 |
label: '' |
|
1322 | 1132 |
) |
1749 | 1133 |
(MenuItem |
1134 |
activeHelpKey: editCut |
|
1135 |
enabled: hasSelectionChannel |
|
1136 |
label: 'Cut' |
|
1137 |
itemValue: doCut |
|
1138 |
translateLabel: true |
|
1139 |
isButton: true |
|
1140 |
labelImage: (ResourceRetriever ToolbarIconLibrary cut22x22Icon) |
|
1322 | 1141 |
) |
1749 | 1142 |
(MenuItem |
1143 |
activeHelpKey: editCopy |
|
1144 |
enabled: hasSelectionChannel |
|
1145 |
label: 'Copy' |
|
1146 |
itemValue: doCopy |
|
1147 |
translateLabel: true |
|
1148 |
isButton: true |
|
1149 |
labelImage: (ResourceRetriever ToolbarIconLibrary copy22x22Icon) |
|
1322 | 1150 |
) |
1749 | 1151 |
(MenuItem |
1152 |
activeHelpKey: editPaste |
|
1153 |
enabled: valueOfCanPaste |
|
1154 |
label: 'Paste' |
|
1155 |
itemValue: doPaste |
|
1156 |
translateLabel: true |
|
1157 |
isButton: true |
|
1158 |
labelImage: (ResourceRetriever ToolbarIconLibrary paste22x22Icon) |
|
1322 | 1159 |
) |
1749 | 1160 |
(MenuItem |
1161 |
label: '' |
|
1322 | 1162 |
) |
1749 | 1163 |
(MenuItem |
1164 |
activeHelpKey: addMenuSeparator |
|
1165 |
enabled: hasSingleSelectionChannel |
|
1166 |
label: 'Add Separator' |
|
1167 |
itemValue: doCreateSep |
|
1168 |
translateLabel: true |
|
1169 |
isButton: true |
|
1170 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconSeparator) |
|
1322 | 1171 |
) |
1749 | 1172 |
(MenuItem |
1173 |
activeHelpKey: addMenuItem |
|
1174 |
enabled: hasSingleSelectionChannel |
|
1175 |
label: 'Add Item' |
|
1176 |
itemValue: doCreateItem |
|
1177 |
translateLabel: true |
|
1178 |
isButton: true |
|
1179 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconItem) |
|
1606 | 1180 |
) |
1749 | 1181 |
(MenuItem |
1182 |
activeHelpKey: addSubMenu |
|
1183 |
enabled: hasSingleSelectionChannel |
|
1184 |
label: 'Add Menu' |
|
1185 |
itemValue: doCreateMenu |
|
1186 |
translateLabel: true |
|
1187 |
isButton: true |
|
1188 |
submenuChannel: standardMenus |
|
1189 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconMenu) |
|
1322 | 1190 |
) |
1749 | 1191 |
(MenuItem |
1192 |
activeHelpKey: addSubMenuLink |
|
1193 |
enabled: hasSingleSelectionChannel |
|
1194 |
label: 'Add Linked Menu' |
|
1195 |
itemValue: doCreateLinkedMenu |
|
1196 |
translateLabel: true |
|
1197 |
isButton: true |
|
1198 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconLinkedMenu) |
|
1322 | 1199 |
) |
1749 | 1200 |
(MenuItem |
1201 |
label: '' |
|
1322 | 1202 |
) |
1749 | 1203 |
(MenuItem |
1204 |
activeHelpKey: addDelayedMenu |
|
1205 |
enabled: canCreateDelayedMenuChannel |
|
1206 |
label: 'Add Delayed Menu' |
|
1207 |
itemValue: doCreateDelayedMenu: |
|
1208 |
translateLabel: true |
|
1209 |
isButton: true |
|
1210 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedMenu) |
|
1211 |
argument: menu |
|
1606 | 1212 |
) |
1749 | 1213 |
(MenuItem |
1214 |
activeHelpKey: addDelayedSubMenuLink |
|
1215 |
enabled: canCreateDelayedMenuChannel |
|
1216 |
label: 'Add Delayed Linked Menu' |
|
1217 |
itemValue: doCreateDelayedMenu: |
|
1218 |
translateLabel: true |
|
1219 |
isButton: true |
|
1220 |
labelImage: (ResourceRetriever #'MenuEditor::Item' iconDelayedLinkedMenu) |
|
1221 |
argument: linkedMenu |
|
1606 | 1222 |
) |
1749 | 1223 |
(MenuItem |
1224 |
activeHelpKey: editMoveUp |
|
1225 |
enabled: valueOfEnableMovingUpOrDown |
|
1226 |
label: 'Move Up' |
|
1227 |
itemValue: doMoveUpOrDown: |
|
1228 |
translateLabel: true |
|
1229 |
isButton: true |
|
1230 |
startGroup: right |
|
1231 |
labelImage: (ResourceRetriever Icon upIcon) |
|
1232 |
argument: up |
|
1322 | 1233 |
) |
1749 | 1234 |
(MenuItem |
1235 |
activeHelpKey: editMoveDown |
|
1236 |
enabled: valueOfEnableMovingUpOrDown |
|
1237 |
label: 'Move Down' |
|
1238 |
itemValue: doMoveUpOrDown: |
|
1239 |
translateLabel: true |
|
1240 |
isButton: true |
|
1241 |
labelImage: (ResourceRetriever Icon downIcon) |
|
1242 |
argument: down |
|
1322 | 1243 |
) |
1749 | 1244 |
(MenuItem |
1245 |
activeHelpKey: editMoveIn |
|
1246 |
enabled: valueOfEnableMovingIn |
|
1247 |
label: 'Move In' |
|
1248 |
itemValue: doMoveIn: |
|
1249 |
translateLabel: true |
|
1250 |
isButton: true |
|
1251 |
labelImage: (ResourceRetriever Icon downRightIcon) |
|
1252 |
argument: inNext |
|
1322 | 1253 |
) |
1749 | 1254 |
(MenuItem |
1255 |
activeHelpKey: editMoveInAbove |
|
1256 |
enabled: valueOfEnableMovingInAbove |
|
1257 |
label: 'Move In Above' |
|
1258 |
itemValue: doMoveIn: |
|
1259 |
translateLabel: true |
|
1260 |
isButton: true |
|
1261 |
labelImage: (ResourceRetriever Icon upRightIcon) |
|
1262 |
argument: inPrev |
|
1468 | 1263 |
) |
1749 | 1264 |
(MenuItem |
1265 |
activeHelpKey: editMoveOut |
|
1266 |
enabled: valueOfEnableMovingOut |
|
1267 |
label: 'Move Out' |
|
1268 |
itemValue: doMoveOut |
|
1269 |
translateLabel: true |
|
1270 |
isButton: true |
|
1271 |
labelImage: (ResourceRetriever Icon leftDownIcon) |
|
1322 | 1272 |
) |
1273 |
) |
|
1274 |
nil |
|
1275 |
nil |
|
525 | 1276 |
) |
1277 |
! ! |
|
1278 |
||
1725 | 1279 |
!MenuEditor class methodsFor:'menu specs-standard'! |
1606 | 1280 |
|
1281 |
standardEditMenu |
|
1282 |
"This resource specification was automatically generated |
|
1283 |
by the MenuEditor of ST/X." |
|
1284 |
||
1285 |
"Do not manually edit this!! If it is corrupted, |
|
1286 |
the MenuEditor may not be able to read the specification." |
|
1287 |
||
1288 |
" |
|
1289 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardEditMenu |
|
1290 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardEditMenu)) startUp |
|
1291 |
" |
|
1292 |
||
1293 |
<resource: #menu> |
|
1294 |
||
1295 |
^ |
|
1296 |
#(#Menu |
|
1679
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1297 |
#( |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1298 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1299 |
#label: 'Cut' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1300 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1301 |
#value: #cutSelection |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1302 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1303 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1304 |
#label: 'Copy' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1305 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1306 |
#value: #copySelection |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1307 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1308 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1309 |
#label: 'Paste' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1310 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1311 |
#value: #paste |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1312 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1313 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1314 |
nil |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1315 |
nil |
525 | 1316 |
) |
1317 |
! |
|
1318 |
||
1606 | 1319 |
standardFileMenu |
1320 |
"This resource specification was automatically generated |
|
1321 |
by the MenuEditor of ST/X." |
|
1322 |
||
1323 |
"Do not manually edit this!! If it is corrupted, |
|
1324 |
the MenuEd |