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