author | Claus Gittinger <cg@exept.de> |
Wed, 07 May 2003 17:12:00 +0200 | |
changeset 1719 | 735984d47d9b |
parent 1715 | 9eebdb3802aa |
child 1722 | 517efee14b0d |
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 |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
218 |
) |
1606 | 219 |
! ! |
220 |
||
221 |
!MenuEditor class methodsFor:'defaults'! |
|
222 |
||
223 |
aboutImage |
|
224 |
"the image to be displayed in my about-box; |
|
225 |
If nil is returned, the ST/X default image is used. |
|
226 |
" |
|
227 |
^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_menus.xpm' |
|
228 |
! |
|
229 |
||
230 |
resourceType |
|
231 |
"get the type of the resource of the method generated by the MenuEditor |
|
232 |
" |
|
233 |
^ #menu |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
234 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
235 |
|
371 | 236 |
!MenuEditor class methodsFor:'help specs'! |
237 |
||
1545 | 238 |
flyByHelpSpec |
1629 | 239 |
^super flyByHelpSpec addPairsFrom:(self localFlyHelpSpecStrings) |
1545 | 240 |
! |
241 |
||
371 | 242 |
helpSpec |
1690 | 243 |
"This resource specification was automatically generated |
244 |
by the UIHelpTool of ST/X." |
|
245 |
||
246 |
"Do not manually edit this!! If it is corrupted, |
|
247 |
the UIHelpTool may not be able to read the specification." |
|
248 |
||
249 |
" |
|
250 |
UIHelpTool openOnClass:MenuEditor |
|
251 |
" |
|
252 |
||
253 |
<resource: #help> |
|
254 |
||
255 |
^ super helpSpec addPairsFrom:#( |
|
256 |
||
257 |
#addDelayedMenu |
|
258 |
'Add a new delayed menu to item.' |
|
259 |
||
260 |
#addDelayedSubMenuLink |
|
261 |
'Add a new linked delayed menu to item.' |
|
262 |
||
263 |
#addMenuItem |
|
264 |
'Add a new menu item.' |
|
265 |
||
266 |
#addMenuSeparator |
|
267 |
'Add a new menu separator.' |
|
268 |
||
269 |
#addSubMenu |
|
270 |
'Add a new sub menu.' |
|
271 |
||
272 |
#addSubMenuLink |
|
273 |
'Add a new linked sub menu.' |
|
274 |
||
275 |
#basicsAction |
|
276 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
|
277 |
||
278 |
#basicsArgument |
|
279 |
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).' |
|
280 |
||
281 |
#basicsChoice |
|
282 |
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).' |
|
283 |
||
284 |
#basicsChoiceValue |
|
285 |
'That choices value (typically number or symbol).' |
|
286 |
||
287 |
#basicsIndication |
|
288 |
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).' |
|
289 |
||
290 |
#basicsIsButton |
|
291 |
'Button-like look and behavior.' |
|
292 |
||
293 |
#basicsKey |
|
294 |
'Internal key of the item (optional, for programmed accesses).' |
|
295 |
||
296 |
#basicsLabel |
|
297 |
'Label of the item.' |
|
298 |
||
299 |
#basicsMenu |
|
300 |
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).' |
|
301 |
||
302 |
#basicsMenuArgument |
|
303 |
'An argument passed with the menu selector.' |
|
304 |
||
305 |
#basicsNameKey |
|
306 |
'Unique identifier of the item (optional).' |
|
307 |
||
308 |
#basicsSelector |
|
309 |
'Selector under which the generated menu spec is saved.' |
|
310 |
||
311 |
#basicsSeparatorType |
|
312 |
'List of valid separators.' |
|
313 |
||
314 |
#basicsTranslateLabel |
|
315 |
'Translate the label via the classes resource file (internationalization).' |
|
316 |
||
317 |
#browseResource |
|
318 |
'Search for methods with image resource.' |
|
319 |
||
320 |
#detailsAccelerator |
|
321 |
'Accelerator key to select the menu item from the keyboard (Cmdx or Ctrlx).' |
|
322 |
||
323 |
#detailsAccessCharaterPosition |
|
324 |
'Index of the access character position of the textual label (obsolete, VW compatibility).' |
|
325 |
||
326 |
#detailsAuxValue |
|
327 |
'Some additional value - for arbitrary use by the program.' |
|
328 |
||
329 |
#detailsEnabled |
|
1702 | 330 |
'Aspect or binding providing a boolean value holder to enable/disable the menu item.' |
1690 | 331 |
|
332 |
#detailsStartGroup |
|
333 |
'Specify start of a right-aligned item group.' |
|
334 |
||
335 |
#detailsVisibility |
|
336 |
'Boolean, or aspect or binding for a boolean holder controlling the visibility of the menu item.' |
|
337 |
||
338 |
#fileLoad |
|
339 |
'Load a menu spec from a class.' |
|
340 |
||
341 |
#fileNew |
|
342 |
'Create a new menu spec.' |
|
343 |
||
344 |
#filePickAMenu |
|
345 |
'Select a menu from an open view and read its specification' |
|
346 |
||
347 |
#fileSave |
|
348 |
'Save the menu spec (and the help spec, if modified).' |
|
349 |
||
350 |
#fileSaveAs |
|
351 |
'Open a dialog to save the menu spec (and the help spec, if modified).' |
|
352 |
||
353 |
#fileShowMenuSpec |
|
354 |
'Opens a Workspace showing the current menu spec.' |
|
355 |
||
356 |
#generateAspectMethods |
|
357 |
'Generates aspect methods for defined aspect selectors of the menu.' |
|
358 |
||
359 |
#hideMenuOnActivated |
|
1702 | 360 |
'If on, the menu hides itself after the item was activated (PopUp/PullDown-Menus only).' |
1690 | 361 |
|
362 |
#horizontalLayout |
|
363 |
'If on, the submenu organizes its items horizontal insteat of vertical (default).' |
|
364 |
||
365 |
#imageImageAndLabel |
|
366 |
'Toggle display of both image and textual label.' |
|
367 |
||
368 |
#imageImageEditor |
|
369 |
'Open an Image Editor on the resource method defined by retriever and selector.' |
|
370 |
||
371 |
#imageImageList |
|
372 |
'Currently existing image resources.' |
|
373 |
||
374 |
#imageRetriever |
|
1702 | 375 |
'Class implementing the image resource method. If unspecified, the application class is taken.' |
1690 | 376 |
|
377 |
#imageSelector |
|
378 |
'Selector returning an image (sent to above or the application).' |
|
379 |
||
380 |
#keepLinkedMenu |
|
381 |
'Keep the linked menu after activation (do not destroy).' |
|
382 |
||
383 |
#sendToOriginator |
|
1702 | 384 |
'Send action-Message to widget (instead of application); only valid for PopUpMenus.' |
1690 | 385 |
|
386 |
#settingsRedefineAspectMethods |
|
387 |
'Toggles the permission to overwrite existing aspect methods.' |
|
388 |
||
389 |
#showBusyCursorWhilePerforming |
|
390 |
'If on, a busy cursor is shown while the items action is performing.' |
|
391 |
||
392 |
#triggerOnDown |
|
1702 | 393 |
'If on, the items action is performed on mouse-button press (default is: on button-release).' |
1690 | 394 |
|
395 |
) |
|
1606 | 396 |
! |
397 |
||
1629 | 398 |
localFlyHelpSpecStrings |
399 |
"This resource specification was automatically generated |
|
400 |
by the UIHelpTool of ST/X." |
|
401 |
||
402 |
"Do not manually edit this!! If it is corrupted, |
|
403 |
the UIHelpTool may not be able to read the specification." |
|
404 |
||
405 |
" |
|
406 |
UIHelpTool openOnClass:MenuEditor |
|
407 |
" |
|
408 |
||
409 |
<resource: #help> |
|
410 |
||
411 |
^ #( |
|
412 |
||
413 |
#fileLoad |
|
414 |
'Load Spec from Class' |
|
415 |
||
416 |
#fileSave |
|
417 |
'Save Spec' |
|
418 |
||
419 |
#fileSaveAs |
|
420 |
'Save Spec As' |
|
421 |
||
422 |
#addMenuSeparator |
|
423 |
'Add Separator' |
|
424 |
||
425 |
#addMenuItem |
|
426 |
'Add Item' |
|
427 |
||
428 |
#addSubMenu |
|
429 |
'Add Submenu' |
|
430 |
||
431 |
#addDelayedMenu |
|
432 |
'Add Delayed Menu' |
|
433 |
||
434 |
#addDelayedSubMenuLink |
|
435 |
'Add linked Delayed Menu' |
|
436 |
||
437 |
#addSubMenuLink |
|
1656 | 438 |
'Add Linked Submenu' |
1629 | 439 |
|
440 |
#fileNew |
|
441 |
'New Spec' |
|
442 |
) |
|
371 | 443 |
! ! |
444 |
||
734 | 445 |
!MenuEditor class methodsFor:'image specs'! |
446 |
||
1606 | 447 |
iconUnknown |
448 |
"returns an image used for picked items containing an image |
|
734 | 449 |
" |
1606 | 450 |
<resource: #fileImage> |
451 |
||
452 |
^ MenuPanelSpec icon |
|
1425 | 453 |
! ! |
734 | 454 |
|
199 | 455 |
!MenuEditor class methodsFor:'interface specs'! |
456 |
||
525 | 457 |
windowSpec |
738 | 458 |
"This resource specification was automatically generated |
459 |
by the UIPainter of ST/X." |
|
460 |
||
461 |
"Do not manually edit this!! If it is corrupted, |
|
462 |
the UIPainter may not be able to read the specification." |
|
525 | 463 |
|
464 |
" |
|
465 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
466 |
MenuEditor new openInterface:#windowSpec |
|
738 | 467 |
MenuEditor open |
525 | 468 |
" |
469 |
||
470 |
<resource: #canvas> |
|
471 |
||
1244 | 472 |
^ |
473 |
#(#FullSpec |
|
474 |
#name: #windowSpec |
|
475 |
#window: |
|
476 |
#(#WindowSpec |
|
477 |
#label: 'Menu Editor' |
|
478 |
#name: 'Menu Editor' |
|
1606 | 479 |
#min: #(#Point 550 385) |
1244 | 480 |
#max: #(#Point 1152 900) |
1676 | 481 |
#bounds: #(#Rectangle 12 22 588 497) |
1244 | 482 |
#menu: #menu |
1249 | 483 |
#returnIsOKInDialog: false |
484 |
#escapeIsCancelInDialog: false |
|
1244 | 485 |
) |
486 |
#component: |
|
487 |
#(#SpecCollection |
|
488 |
#collection: #( |
|
489 |
#(#MenuPanelSpec |
|
1606 | 490 |
#name: 'toolbar' |
1244 | 491 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
1322 | 492 |
#tabable: true |
1606 | 493 |
#menu: #toolbar |
1244 | 494 |
#showSeparatingLines: true |
495 |
) |
|
496 |
#(#VariableHorizontalPanelSpec |
|
497 |
#name: 'VariableHorizontalPanel' |
|
498 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
499 |
#component: |
|
500 |
#(#SpecCollection |
|
501 |
#collection: #( |
|
1606 | 502 |
#(#HierarchicalListViewSpec |
503 |
#name: 'ListOfItemsView' |
|
504 |
#model: #selectionHolder |
|
505 |
#menu: #editMenu |
|
1244 | 506 |
#hasHorizontalScrollBar: true |
507 |
#hasVerticalScrollBar: true |
|
1606 | 508 |
#miniScrollerHorizontal: true |
509 |
#miniScrollerVertical: true |
|
510 |
#listModel: #listOfItems |
|
511 |
#multipleSelectOk: true |
|
512 |
#useIndex: false |
|
513 |
#highlightMode: #label |
|
514 |
#doubleClickSelector: #indicatorClickedAt: |
|
515 |
#selectConditionSelector: #canSelect: |
|
516 |
#showLeftIndicators: false |
|
517 |
#indicatorSelector: #indicatorClickedAt: |
|
518 |
#properties: |
|
519 |
#(#PropertyListDictionary |
|
1676 | 520 |
#dropSelector: #doDrop: |
1606 | 521 |
#dragArgument: nil |
522 |
#dropObjectSelector: #dropObjects |
|
523 |
#dropArgument: nil |
|
524 |
#canDropSelector: #canDrop: |
|
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
525 |
#leaveSelector: #dropLeave: |
1676 | 526 |
#enterSelector: #dropEnter: |
1618
9c9b649ce251
support drag & drop inside my widget (highlight the drop target)
ca
parents:
1617
diff
changeset
|
527 |
#overSelector: #dropOver: |
1606 | 528 |
) |
529 |
#postBuildCallback: #postBuildListOfItemsView: |
|
1244 | 530 |
) |
531 |
#(#ViewSpec |
|
532 |
#name: 'Box' |
|
533 |
#level: -1 |
|
703 | 534 |
#component: |
1244 | 535 |
#(#SpecCollection |
536 |
#collection: #( |
|
537 |
#(#NoteBookViewSpec |
|
538 |
#name: 'NoteBook' |
|
539 |
#layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0) |
|
1606 | 540 |
#enableChannel: #hasSingleSelectionChannel |
1244 | 541 |
#tabable: true |
1606 | 542 |
#model: #tabHolder |
543 |
#menu: #listOfTabs |
|
544 |
#fitLastRow: false |
|
545 |
#canvas: #wizardHolder |
|
1244 | 546 |
#keepCanvasAlive: true |
1676 | 547 |
#postBuildCallback: #postBuildNoteBook: |
1244 | 548 |
) |
549 |
#(#UISubSpecification |
|
550 |
#name: 'SubSpecification' |
|
551 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
552 |
#majorKey: #ToolApplicationModel |
|
553 |
#minorKey: #windowSpecForCommit |
|
525 | 554 |
) |
1244 | 555 |
) |
556 |
||
525 | 557 |
) |
1244 | 558 |
) |
559 |
) |
|
560 |
||
525 | 561 |
) |
1606 | 562 |
#handles: #(#Any 0.300493 1.0) |
1244 | 563 |
) |
564 |
#(#UISubSpecification |
|
565 |
#name: 'InfoBarSubSpec' |
|
566 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
567 |
#majorKey: #ToolApplicationModel |
|
568 |
#minorKey: #windowSpecForInfoBar |
|
569 |
) |
|
570 |
) |
|
571 |
||
572 |
) |
|
525 | 573 |
) |
574 |
! ! |
|
575 |
||
576 |
!MenuEditor class methodsFor:'menu specs'! |
|
577 |
||
1606 | 578 |
addMenu |
579 |
"This resource specification was automatically generated |
|
580 |
by the MenuEditor of ST/X." |
|
581 |
||
582 |
"Do not manually edit this!! If it is corrupted, |
|
583 |
the MenuEditor may not be able to read the specification." |
|
584 |
||
585 |
" |
|
586 |
MenuEditor new openOnClass:MenuEditor andSelector:#addMenu |
|
587 |
(Menu new fromLiteralArrayEncoding:(MenuEditor addMenu)) startUp |
|
588 |
" |
|
589 |
||
590 |
<resource: #menu> |
|
591 |
||
592 |
^ |
|
593 |
#(#Menu |
|
594 |
#( |
|
595 |
#(#MenuItem |
|
1632 | 596 |
#activeHelpKey: #addMenuSeparator |
1606 | 597 |
#label: 'Separator' |
1632 | 598 |
#itemValue: #doCreateSep |
1606 | 599 |
#translateLabel: true |
600 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconSeparator '') |
|
601 |
) |
|
602 |
#(#MenuItem |
|
1632 | 603 |
#activeHelpKey: #addMenuItem |
1606 | 604 |
#label: 'Item' |
1632 | 605 |
#itemValue: #doCreateItem |
1606 | 606 |
#translateLabel: true |
607 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconItem '') |
|
608 |
) |
|
609 |
#(#MenuItem |
|
1632 | 610 |
#activeHelpKey: #addMenuItem |
1606 | 611 |
#label: 'Menu' |
1632 | 612 |
#itemValue: #doCreateMenu |
1606 | 613 |
#translateLabel: true |
614 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconMenu '') |
|
615 |
) |
|
616 |
#(#MenuItem |
|
1632 | 617 |
#activeHelpKey: #addSubMenuLink |
1606 | 618 |
#label: 'Linked Menu' |
1632 | 619 |
#itemValue: #doCreateLinkedMenu |
620 |
#translateLabel: true |
|
1606 | 621 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconLinkedMenu '') |
622 |
) |
|
623 |
#(#MenuItem |
|
624 |
#label: '-' |
|
625 |
) |
|
626 |
#(#MenuItem |
|
1632 | 627 |
#activeHelpKey: #addDelayedMenu |
1606 | 628 |
#enabled: #canCreateDelayedMenuChannel |
1632 | 629 |
#label: 'Delayed Menu' |
630 |
#itemValue: #doCreateDelayedMenu: |
|
631 |
#translateLabel: true |
|
1606 | 632 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedMenu '') |
1632 | 633 |
#argument: #menu |
1606 | 634 |
) |
635 |
#(#MenuItem |
|
1632 | 636 |
#activeHelpKey: #addDelayedSubMenuLink |
1606 | 637 |
#enabled: #canCreateDelayedMenuChannel |
1632 | 638 |
#label: 'Delayed Linked Menu' |
639 |
#itemValue: #doCreateDelayedMenu: |
|
640 |
#translateLabel: true |
|
641 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedLinkedMenu '') |
|
1606 | 642 |
#argument: #linkedMenu |
643 |
) |
|
644 |
#(#MenuItem |
|
645 |
#label: '-' |
|
646 |
) |
|
647 |
#(#MenuItem |
|
648 |
#label: 'Standard Menus' |
|
649 |
#translateLabel: true |
|
650 |
#submenuChannel: #standardMenus |
|
651 |
#keepLinkedMenu: true |
|
652 |
) |
|
653 |
) |
|
654 |
nil |
|
655 |
nil |
|
656 |
) |
|
657 |
! |
|
658 |
||
659 |
editMenu |
|
660 |
"This resource specification was automatically generated |
|
661 |
by the MenuEditor of ST/X." |
|
662 |
||
663 |
"Do not manually edit this!! If it is corrupted, |
|
664 |
the MenuEditor may not be able to read the specification." |
|
665 |
||
666 |
" |
|
667 |
MenuEditor new openOnClass:MenuEditor andSelector:#editMenu |
|
668 |
(Menu new fromLiteralArrayEncoding:(MenuEditor editMenu)) startUp |
|
669 |
" |
|
670 |
||
671 |
<resource: #menu> |
|
672 |
||
673 |
^ |
|
674 |
#(#Menu |
|
1631 | 675 |
#( |
676 |
#(#MenuItem |
|
677 |
#activeHelpKey: #editCut |
|
678 |
#enabled: #hasSelectionChannel |
|
1632 | 679 |
#label: 'Cut' |
680 |
#itemValue: #doCut |
|
681 |
#translateLabel: true |
|
1631 | 682 |
) |
683 |
#(#MenuItem |
|
684 |
#activeHelpKey: #editCopy |
|
685 |
#enabled: #hasSelectionChannel |
|
1632 | 686 |
#label: 'Copy' |
687 |
#itemValue: #doCopy |
|
688 |
#translateLabel: true |
|
1631 | 689 |
) |
690 |
#(#MenuItem |
|
691 |
#activeHelpKey: #editPaste |
|
692 |
#enabled: #valueOfCanPaste |
|
1632 | 693 |
#label: 'Paste' |
694 |
#itemValue: #doPaste |
|
695 |
#translateLabel: true |
|
1631 | 696 |
) |
697 |
#(#MenuItem |
|
1632 | 698 |
#activeHelpKey: #editDelete |
699 |
#enabled: #hasSelectionChannel |
|
1631 | 700 |
#label: 'Delete' |
1632 | 701 |
#itemValue: #doDelete |
1631 | 702 |
#translateLabel: true |
703 |
#isVisible: false |
|
704 |
) |
|
705 |
#(#MenuItem |
|
706 |
#label: '-' |
|
707 |
) |
|
708 |
#(#MenuItem |
|
709 |
#activeHelpKey: #editMoveUp |
|
710 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 711 |
#label: 'Move Up' |
712 |
#itemValue: #doMoveUpOrDown: |
|
713 |
#translateLabel: true |
|
714 |
#startGroup: #right |
|
715 |
#labelImage: #(#ResourceRetriever #Icon #upIcon '') |
|
1631 | 716 |
#argument: #up |
717 |
) |
|
718 |
#(#MenuItem |
|
719 |
#activeHelpKey: #editMoveDown |
|
720 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 721 |
#label: 'Move Down' |
722 |
#itemValue: #doMoveUpOrDown: |
|
723 |
#translateLabel: true |
|
724 |
#labelImage: #(#ResourceRetriever #Icon #downIcon '') |
|
1631 | 725 |
#argument: #down |
726 |
) |
|
727 |
#(#MenuItem |
|
728 |
#activeHelpKey: #editMoveIn |
|
729 |
#enabled: #valueOfEnableMovingIn |
|
1632 | 730 |
#label: 'Move Into Next' |
731 |
#itemValue: #doMoveIn: |
|
732 |
#translateLabel: true |
|
733 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon '') |
|
1631 | 734 |
#argument: #inNext |
735 |
) |
|
736 |
#(#MenuItem |
|
737 |
#activeHelpKey: #editMoveInAbove |
|
738 |
#enabled: #valueOfEnableMovingInAbove |
|
1632 | 739 |
#label: 'Move Into Previous' |
740 |
#itemValue: #doMoveIn: |
|
741 |
#translateLabel: true |
|
742 |
#labelImage: #(#ResourceRetriever #Icon #upRightIcon '') |
|
1631 | 743 |
#argument: #inPrev |
744 |
) |
|
745 |
#(#MenuItem |
|
746 |
#activeHelpKey: #editMoveOut |
|
747 |
#enabled: #valueOfEnableMovingOut |
|
1632 | 748 |
#label: 'Move Out' |
749 |
#itemValue: #doMoveOut |
|
750 |
#translateLabel: true |
|
751 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon '') |
|
1631 | 752 |
) |
753 |
) |
|
754 |
nil |
|
755 |
nil |
|
1606 | 756 |
) |
757 |
! |
|
758 |
||
759 |
fileMenu |
|
760 |
"This resource specification was automatically generated |
|
761 |
by the MenuEditor of ST/X." |
|
762 |
||
763 |
"Do not manually edit this!! If it is corrupted, |
|
764 |
the MenuEditor may not be able to read the specification." |
|
765 |
||
766 |
" |
|
767 |
MenuEditor new openOnClass:MenuEditor andSelector:#fileMenu |
|
768 |
(Menu new fromLiteralArrayEncoding:(MenuEditor fileMenu)) startUp |
|
769 |
" |
|
770 |
||
771 |
<resource: #menu> |
|
772 |
||
773 |
^ |
|
774 |
#(#Menu |
|
775 |
#( |
|
776 |
#(#MenuItem |
|
1632 | 777 |
#activeHelpKey: #fileNew |
1606 | 778 |
#label: 'New' |
1632 | 779 |
#itemValue: #doNew |
1606 | 780 |
#translateLabel: true |
781 |
) |
|
782 |
#(#MenuItem |
|
783 |
#label: '-' |
|
784 |
) |
|
785 |
#(#MenuItem |
|
1632 | 786 |
#activeHelpKey: #fileLoad |
1606 | 787 |
#label: 'Load...' |
1632 | 788 |
#itemValue: #doLoad |
1606 | 789 |
#translateLabel: true |
790 |
) |
|
791 |
#(#MenuItem |
|
792 |
#label: '-' |
|
793 |
) |
|
794 |
#(#MenuItem |
|
1632 | 795 |
#activeHelpKey: #fileSave |
1606 | 796 |
#label: 'Save' |
1632 | 797 |
#itemValue: #doSave |
1606 | 798 |
#translateLabel: true |
799 |
) |
|
800 |
#(#MenuItem |
|
1632 | 801 |
#activeHelpKey: #fileSaveAs |
1606 | 802 |
#label: 'Save As...' |
1632 | 803 |
#itemValue: #doSaveAs |
1606 | 804 |
#translateLabel: true |
805 |
) |
|
806 |
#(#MenuItem |
|
807 |
#label: '-' |
|
808 |
) |
|
809 |
#(#MenuItem |
|
1632 | 810 |
#activeHelpKey: #filePickAMenu |
1606 | 811 |
#label: 'Pick a Menu...' |
1632 | 812 |
#itemValue: #doPickAMenu |
1606 | 813 |
#translateLabel: true |
814 |
) |
|
815 |
#(#MenuItem |
|
816 |
#label: '-' |
|
817 |
) |
|
818 |
#(#MenuItem |
|
1632 | 819 |
#activeHelpKey: #fileShowMenuSpec |
1606 | 820 |
#label: 'Show Menu Spec' |
1632 | 821 |
#itemValue: #doShowMenuSpec |
1606 | 822 |
#translateLabel: true |
823 |
) |
|
824 |
#(#MenuItem |
|
825 |
#activeHelpKey: #fileBrowseClass |
|
826 |
#enabled: #hasValidSpecClass |
|
1632 | 827 |
#label: 'Browse Class' |
828 |
#itemValue: #doBrowseClass |
|
829 |
#translateLabel: true |
|
1606 | 830 |
) |
831 |
#(#MenuItem |
|
832 |
#label: '-' |
|
833 |
) |
|
834 |
#(#MenuItem |
|
1632 | 835 |
#activeHelpKey: #fileExit |
1606 | 836 |
#label: 'Exit' |
1632 | 837 |
#itemValue: #closeRequest |
1606 | 838 |
#translateLabel: true |
839 |
) |
|
840 |
) |
|
841 |
nil |
|
842 |
nil |
|
843 |
) |
|
844 |
! |
|
845 |
||
1614 | 846 |
generateMenu |
847 |
"This resource specification was automatically generated |
|
848 |
by the MenuEditor of ST/X." |
|
849 |
||
850 |
"Do not manually edit this!! If it is corrupted, |
|
851 |
the MenuEditor may not be able to read the specification." |
|
852 |
||
853 |
" |
|
854 |
MenuEditor new openOnClass:MenuEditor andSelector:#generateMenu |
|
855 |
(Menu new fromLiteralArrayEncoding:(MenuEditor generateMenu)) startUp |
|
856 |
" |
|
857 |
||
858 |
<resource: #menu> |
|
859 |
||
860 |
^ |
|
861 |
#(#Menu |
|
862 |
#( |
|
863 |
#(#MenuItem |
|
864 |
#activeHelpKey: #generateAspectMethods |
|
865 |
#enabled: #hasValidSpecClass |
|
1632 | 866 |
#label: 'Aspect Methods' |
867 |
#itemValue: #doGenerateAspectMethods |
|
868 |
#translateLabel: true |
|
1614 | 869 |
) |
870 |
) |
|
871 |
nil |
|
872 |
nil |
|
873 |
) |
|
874 |
! |
|
875 |
||
1606 | 876 |
helpMenu |
877 |
"This resource specification was automatically generated |
|
878 |
by the MenuEditor of ST/X." |
|
879 |
||
880 |
"Do not manually edit this!! If it is corrupted, |
|
881 |
the MenuEditor may not be able to read the specification." |
|
882 |
||
883 |
" |
|
884 |
MenuEditor new openOnClass:MenuEditor andSelector:#helpMenu |
|
885 |
(Menu new fromLiteralArrayEncoding:(MenuEditor helpMenu)) startUp |
|
886 |
" |
|
887 |
||
888 |
<resource: #menu> |
|
889 |
||
890 |
^ |
|
891 |
#(#Menu |
|
892 |
#( |
|
893 |
#(#MenuItem |
|
1632 | 894 |
#activeHelpKey: #helpTutorial |
1606 | 895 |
#label: 'Documentation' |
1632 | 896 |
#itemValue: #openHTMLDocument: |
1606 | 897 |
#translateLabel: true |
898 |
#argument: 'tools/uipainter/MenuEditor.html' |
|
899 |
) |
|
900 |
#(#MenuItem |
|
901 |
#label: '-' |
|
902 |
) |
|
903 |
#(#MenuItem |
|
1632 | 904 |
#activeHelpKey: #helpHelpTool |
1606 | 905 |
#label: 'Help Tool' |
1632 | 906 |
#itemValue: #openHTMLDocument: |
1606 | 907 |
#translateLabel: true |
908 |
#argument: 'tools/uipainter/HelpTool.html' |
|
909 |
) |
|
910 |
#(#MenuItem |
|
911 |
#label: '-' |
|
912 |
) |
|
913 |
#(#MenuItem |
|
1632 | 914 |
#activeHelpKey: #helpShowHelp |
1606 | 915 |
#label: 'Show Help Texts' |
916 |
#translateLabel: true |
|
917 |
#indication: #showingHelp: |
|
918 |
) |
|
919 |
#(#MenuItem |
|
920 |
#label: '-' |
|
921 |
) |
|
922 |
#(#MenuItem |
|
1632 | 923 |
#activeHelpKey: #aboutThisAppliaction |
1606 | 924 |
#label: 'About MenuEditor...' |
1632 | 925 |
#itemValue: #openAboutThisApplication |
1606 | 926 |
#translateLabel: true |
927 |
) |
|
928 |
) |
|
929 |
nil |
|
930 |
nil |
|
931 |
) |
|
932 |
! |
|
933 |
||
525 | 934 |
menu |
738 | 935 |
"This resource specification was automatically generated |
936 |
by the MenuEditor of ST/X." |
|
937 |
||
938 |
"Do not manually edit this!! If it is corrupted, |
|
939 |
the MenuEditor may not be able to read the specification." |
|
525 | 940 |
|
941 |
" |
|
942 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
943 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
944 |
" |
|
945 |
||
946 |
<resource: #menu> |
|
947 |
||
1566 | 948 |
^ |
949 |
#(#Menu |
|
950 |
#( |
|
951 |
#(#MenuItem |
|
1632 | 952 |
#activeHelpKey: #file |
1566 | 953 |
#label: '&File' |
954 |
#translateLabel: true |
|
1606 | 955 |
#submenuChannel: #fileMenu |
956 |
#keepLinkedMenu: true |
|
1566 | 957 |
) |
958 |
#(#MenuItem |
|
1632 | 959 |
#activeHelpKey: #edit |
1606 | 960 |
#label: '&Edit' |
1566 | 961 |
#translateLabel: true |
1606 | 962 |
#submenuChannel: #editMenu |
963 |
#keepLinkedMenu: true |
|
1566 | 964 |
) |
965 |
#(#MenuItem |
|
1632 | 966 |
#activeHelpKey: #add |
967 |
#enabled: #hasSingleSelectionChannel |
|
1631 | 968 |
#label: 'Item' |
1566 | 969 |
#translateLabel: true |
1606 | 970 |
#submenuChannel: #addMenu |
971 |
#keepLinkedMenu: true |
|
1566 | 972 |
) |
973 |
#(#MenuItem |
|
1632 | 974 |
#activeHelpKey: #generate |
1631 | 975 |
#label: 'Generate' |
976 |
#translateLabel: true |
|
977 |
#submenuChannel: #generateMenu |
|
978 |
#keepLinkedMenu: true |
|
979 |
) |
|
980 |
#(#MenuItem |
|
1632 | 981 |
#activeHelpKey: #test |
1566 | 982 |
#label: 'Test' |
983 |
#translateLabel: true |
|
984 |
#submenuChannel: #submenuTest |
|
985 |
) |
|
986 |
#(#MenuItem |
|
1632 | 987 |
#activeHelpKey: #settings |
1631 | 988 |
#label: 'Settings' |
989 |
#translateLabel: true |
|
990 |
#submenuChannel: #settingsMenu |
|
991 |
#keepLinkedMenu: true |
|
992 |
) |
|
993 |
#(#MenuItem |
|
1632 | 994 |
#activeHelpKey: #history |
1566 | 995 |
#label: 'History' |
996 |
#translateLabel: true |
|
997 |
#submenuChannel: #menuHistory |
|
998 |
) |
|
999 |
#(#MenuItem |
|
1632 | 1000 |
#activeHelpKey: #help |
1606 | 1001 |
#label: '&Help' |
1566 | 1002 |
#translateLabel: true |
1609 | 1003 |
#startGroup: #right |
1606 | 1004 |
#submenuChannel: #helpMenu |
1005 |
#keepLinkedMenu: true |
|
1566 | 1006 |
) |
1007 |
) |
|
1008 |
nil |
|
1009 |
nil |
|
525 | 1010 |
) |
1011 |
! |
|
1012 |
||
1631 | 1013 |
settingsMenu |
1014 |
"This resource specification was automatically generated |
|
1015 |
by the MenuEditor of ST/X." |
|
1016 |
||
1017 |
"Do not manually edit this!! If it is corrupted, |
|
1018 |
the MenuEditor may not be able to read the specification." |
|
1019 |
||
1020 |
" |
|
1632 | 1021 |
MenuEditor new openOnClass:MenuEditor andSelector:#settingsMenu |
1022 |
(Menu new fromLiteralArrayEncoding:(MenuEditor settingsMenu)) startUp |
|
1631 | 1023 |
" |
1024 |
||
1025 |
<resource: #menu> |
|
1026 |
||
1027 |
^ |
|
1028 |
#(#Menu |
|
1029 |
#( |
|
1030 |
#(#MenuItem |
|
1632 | 1031 |
#activeHelpKey: #settingsRedefineAspectMethods |
1032 |
#enabled: #hasValidSpecClass |
|
1631 | 1033 |
#label: 'Redefine Aspect Methods' |
1034 |
#translateLabel: true |
|
1035 |
#hideMenuOnActivated: false |
|
1036 |
#indication: #redefineAspectMethodsChannel |
|
1037 |
) |
|
1711
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1038 |
#(#MenuItem |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1039 |
#activeHelpKey: #settingsRedefineAspectMethods |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1040 |
#label: 'AutoAccept on Selection-Change' |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1041 |
#translateLabel: true |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1042 |
#hideMenuOnActivated: false |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1043 |
#indication: #autoAcceptOnSelectionChange |
548d690e780f
auto-accept on selection change
Claus Gittinger <cg@exept.de>
parents:
1702
diff
changeset
|
1044 |
) |
1631 | 1045 |
) |
1046 |
nil |
|
1047 |
nil |
|
1048 |
) |
|
1049 |
! |
|
1050 |
||
1606 | 1051 |
standardMenus |
738 | 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." |
|
525 | 1057 |
|
1058 |
" |
|
1606 | 1059 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardMenus |
1060 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardMenus)) startUp |
|
525 | 1061 |
" |
1062 |
||
1063 |
<resource: #menu> |
|
1064 |
||
1606 | 1065 |
^ |
1066 |
#(#Menu |
|
1632 | 1067 |
#( |
1068 |
#(#MenuItem |
|
1069 |
#label: 'Standard Menu: Edit' |
|
1070 |
#itemValue: #doCreateStandardEditMenu |
|
1071 |
#translateLabel: true |
|
1072 |
) |
|
1073 |
#(#MenuItem |
|
1074 |
#label: 'Standard Menu: Help' |
|
1075 |
#itemValue: #doCreateStandardHelpMenu |
|
1076 |
#translateLabel: true |
|
1077 |
) |
|
1078 |
#(#MenuItem |
|
1079 |
#label: 'Standard Menu: File' |
|
1080 |
#itemValue: #doCreateStandardFileMenu |
|
1081 |
#translateLabel: true |
|
1082 |
) |
|
1083 |
) |
|
1084 |
nil |
|
1085 |
nil |
|
525 | 1086 |
) |
1087 |
! |
|
1088 |
||
1606 | 1089 |
toolbar |
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:#toolbar |
1098 |
(Menu new fromLiteralArrayEncoding:(MenuEditor toolbar)) startUp |
|
525 | 1099 |
" |
1100 |
||
1101 |
<resource: #menu> |
|
1102 |
||
1322 | 1103 |
^ |
1104 |
#(#Menu |
|
1105 |
#( |
|
1106 |
#(#MenuItem |
|
1690 | 1107 |
#activeHelpKey: #fileNew |
1108 |
#label: 'New' |
|
1109 |
#itemValue: #doNew |
|
1110 |
#translateLabel: true |
|
1111 |
#isButton: true |
|
1112 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #newMenu24x24Icon) |
|
1113 |
) |
|
1114 |
#(#MenuItem |
|
1632 | 1115 |
#activeHelpKey: #fileLoad |
1322 | 1116 |
#label: 'Load' |
1632 | 1117 |
#itemValue: #doLoad |
1118 |
#translateLabel: true |
|
1322 | 1119 |
#isButton: true |
1632 | 1120 |
#submenuChannel: #menuHistory |
1690 | 1121 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #load22x22Icon) |
1322 | 1122 |
) |
1123 |
#(#MenuItem |
|
1632 | 1124 |
#activeHelpKey: #fileSave |
1322 | 1125 |
#label: 'Save' |
1632 | 1126 |
#itemValue: #doSave |
1127 |
#translateLabel: true |
|
1322 | 1128 |
#isButton: true |
1690 | 1129 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #save22x22Icon) |
1322 | 1130 |
) |
1131 |
#(#MenuItem |
|
1132 |
#label: '' |
|
1133 |
) |
|
1134 |
#(#MenuItem |
|
1135 |
#activeHelpKey: #editCut |
|
1606 | 1136 |
#enabled: #hasSelectionChannel |
1632 | 1137 |
#label: 'Cut' |
1138 |
#itemValue: #doCut |
|
1139 |
#translateLabel: true |
|
1140 |
#isButton: true |
|
1690 | 1141 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #cut22x22Icon) |
1322 | 1142 |
) |
1143 |
#(#MenuItem |
|
1144 |
#activeHelpKey: #editCopy |
|
1606 | 1145 |
#enabled: #hasSelectionChannel |
1632 | 1146 |
#label: 'Copy' |
1147 |
#itemValue: #doCopy |
|
1148 |
#translateLabel: true |
|
1149 |
#isButton: true |
|
1690 | 1150 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #copy22x22Icon) |
1322 | 1151 |
) |
1152 |
#(#MenuItem |
|
1153 |
#activeHelpKey: #editPaste |
|
1154 |
#enabled: #valueOfCanPaste |
|
1632 | 1155 |
#label: 'Paste' |
1156 |
#itemValue: #doPaste |
|
1157 |
#translateLabel: true |
|
1158 |
#isButton: true |
|
1690 | 1159 |
#labelImage: #(#ResourceRetriever #ToolbarIconLibrary #paste22x22Icon) |
1322 | 1160 |
) |
1161 |
#(#MenuItem |
|
1162 |
#label: '' |
|
1163 |
) |
|
1164 |
#(#MenuItem |
|
1165 |
#activeHelpKey: #addMenuSeparator |
|
1606 | 1166 |
#enabled: #hasSingleSelectionChannel |
1632 | 1167 |
#label: 'Add Separator' |
1168 |
#itemValue: #doCreateSep |
|
1169 |
#translateLabel: true |
|
1170 |
#isButton: true |
|
1606 | 1171 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconSeparator) |
1322 | 1172 |
) |
1173 |
#(#MenuItem |
|
1606 | 1174 |
#activeHelpKey: #addMenuItem |
1175 |
#enabled: #hasSingleSelectionChannel |
|
1632 | 1176 |
#label: 'Add Item' |
1177 |
#itemValue: #doCreateItem |
|
1178 |
#translateLabel: true |
|
1179 |
#isButton: true |
|
1606 | 1180 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconItem) |
1181 |
) |
|
1182 |
#(#MenuItem |
|
1322 | 1183 |
#activeHelpKey: #addSubMenu |
1606 | 1184 |
#enabled: #hasSingleSelectionChannel |
1632 | 1185 |
#label: 'Add Menu' |
1186 |
#itemValue: #doCreateMenu |
|
1187 |
#translateLabel: true |
|
1188 |
#isButton: true |
|
1189 |
#submenuChannel: #standardMenus |
|
1606 | 1190 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconMenu) |
1322 | 1191 |
) |
1192 |
#(#MenuItem |
|
1193 |
#activeHelpKey: #addSubMenuLink |
|
1606 | 1194 |
#enabled: #hasSingleSelectionChannel |
1632 | 1195 |
#label: 'Add Linked Menu' |
1196 |
#itemValue: #doCreateLinkedMenu |
|
1197 |
#translateLabel: true |
|
1198 |
#isButton: true |
|
1606 | 1199 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconLinkedMenu) |
1322 | 1200 |
) |
1201 |
#(#MenuItem |
|
1202 |
#label: '' |
|
1203 |
) |
|
1204 |
#(#MenuItem |
|
1606 | 1205 |
#activeHelpKey: #addDelayedMenu |
1206 |
#enabled: #canCreateDelayedMenuChannel |
|
1632 | 1207 |
#label: 'Add Delayed Menu' |
1208 |
#itemValue: #doCreateDelayedMenu: |
|
1209 |
#translateLabel: true |
|
1210 |
#isButton: true |
|
1211 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedMenu) |
|
1606 | 1212 |
#argument: #menu |
1213 |
) |
|
1214 |
#(#MenuItem |
|
1215 |
#activeHelpKey: #addDelayedSubMenuLink |
|
1216 |
#enabled: #canCreateDelayedMenuChannel |
|
1632 | 1217 |
#label: 'Add Delayed Linked Menu' |
1218 |
#itemValue: #doCreateDelayedMenu: |
|
1219 |
#translateLabel: true |
|
1220 |
#isButton: true |
|
1221 |
#labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedLinkedMenu) |
|
1606 | 1222 |
#argument: #linkedMenu |
1223 |
) |
|
1224 |
#(#MenuItem |
|
1632 | 1225 |
#activeHelpKey: #editMoveUp |
1226 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1322 | 1227 |
#label: 'Move Up' |
1632 | 1228 |
#itemValue: #doMoveUpOrDown: |
1229 |
#translateLabel: true |
|
1322 | 1230 |
#isButton: true |
1606 | 1231 |
#startGroup: #right |
1632 | 1232 |
#labelImage: #(#ResourceRetriever #Icon #upIcon) |
1606 | 1233 |
#argument: #up |
1322 | 1234 |
) |
1235 |
#(#MenuItem |
|
1236 |
#activeHelpKey: #editMoveDown |
|
1237 |
#enabled: #valueOfEnableMovingUpOrDown |
|
1632 | 1238 |
#label: 'Move Down' |
1239 |
#itemValue: #doMoveUpOrDown: |
|
1240 |
#translateLabel: true |
|
1241 |
#isButton: true |
|
1242 |
#labelImage: #(#ResourceRetriever #Icon #downIcon) |
|
1606 | 1243 |
#argument: #down |
1322 | 1244 |
) |
1245 |
#(#MenuItem |
|
1246 |
#activeHelpKey: #editMoveIn |
|
1247 |
#enabled: #valueOfEnableMovingIn |
|
1632 | 1248 |
#label: 'Move In' |
1249 |
#itemValue: #doMoveIn: |
|
1250 |
#translateLabel: true |
|
1251 |
#isButton: true |
|
1252 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon) |
|
1606 | 1253 |
#argument: #inNext |
1322 | 1254 |
) |
1255 |
#(#MenuItem |
|
1468 | 1256 |
#activeHelpKey: #editMoveInAbove |
1257 |
#enabled: #valueOfEnableMovingInAbove |
|
1632 | 1258 |
#label: 'Move In Above' |
1259 |
#itemValue: #doMoveIn: |
|
1260 |
#translateLabel: true |
|
1261 |
#isButton: true |
|
1262 |
#labelImage: #(#ResourceRetriever #Icon #upRightIcon) |
|
1606 | 1263 |
#argument: #inPrev |
1468 | 1264 |
) |
1265 |
#(#MenuItem |
|
1322 | 1266 |
#activeHelpKey: #editMoveOut |
1267 |
#enabled: #valueOfEnableMovingOut |
|
1632 | 1268 |
#label: 'Move Out' |
1269 |
#itemValue: #doMoveOut |
|
1270 |
#translateLabel: true |
|
1271 |
#isButton: true |
|
1322 | 1272 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon) |
1273 |
) |
|
1274 |
) |
|
1275 |
nil |
|
1276 |
nil |
|
525 | 1277 |
) |
1278 |
! ! |
|
1279 |
||
1606 | 1280 |
!MenuEditor class methodsFor:'menu specs - standard'! |
1281 |
||
1282 |
standardEditMenu |
|
1283 |
"This resource specification was automatically generated |
|
1284 |
by the MenuEditor of ST/X." |
|
1285 |
||
1286 |
"Do not manually edit this!! If it is corrupted, |
|
1287 |
the MenuEditor may not be able to read the specification." |
|
1288 |
||
1289 |
" |
|
1290 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardEditMenu |
|
1291 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardEditMenu)) startUp |
|
1292 |
" |
|
1293 |
||
1294 |
<resource: #menu> |
|
1295 |
||
1296 |
^ |
|
1297 |
#(#Menu |
|
1679
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1298 |
#( |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1299 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1300 |
#label: 'Cut' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1301 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1302 |
#value: #cutSelection |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1303 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1304 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1305 |
#label: 'Copy' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1306 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1307 |
#value: #copySelection |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1308 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1309 |
#(#MenuItem |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1310 |
#label: 'Paste' |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1311 |
#translateLabel: true |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1312 |
#value: #paste |
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 |
) |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1315 |
nil |
876e76ae2997
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
1676
diff
changeset
|
1316 |
nil |
525 | 1317 |
) |
1318 |
! |
|
1319 |
||
1606 | 1320 |
standardFileMenu |
1321 |
"This resource specification was automatically generated |
|
1322 |
by the MenuEditor of ST/X." |
|
1323 |
||
1324 |
"Do not manually edit this!! If it is corrupted, |
|
1325 |
the MenuEditor may not be able to read the specification." |
|
1326 |
||
1327 |
" |
|
1328 |
MenuEditor new openOnClass:MenuEditor andSelector:#standardFileMenu |
|
1329 |
(Menu new fromLiteralArrayEncoding:(MenuEditor standardFileMenu)) startUp |
|
1330 |
" |
|
1331 |
||
1332 |
<resource: #menu> |
|
1333 |
||
1334 |
^ |
|
1335 |
#(#Menu |
|
1336 |
#( |
|
1337 |
#(#MenuItem |
|
1338 |
#label: 'New' |
|
1339 |
#translateLabel: true |
|
1340 |
#value: #menuNew |
|
1341 |
) |
|
1342 |
#(#MenuItem |
|
54f978ea4b66
*** empty log message ***
ca |