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