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