author | ca |
Wed, 22 Apr 1998 15:58:26 +0200 | |
changeset 803 | 19e0367ee9d6 |
parent 775 | 0ead717f3e35 |
child 804 | b66537045e04 |
permissions | -rw-r--r-- |
199 | 1 |
" |
738 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
199 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
738 | 7 |
inclusion of the above copyright notice. This software may not |
199 | 8 |
be provided or otherwise made available to, or used by, any |
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
738 | 15 |
ResourceSpecEditor subclass:#MenuEditor |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
16 |
instanceVariableNames:'specCanvas helpCanvas slices' |
220 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-UIPainter' |
|
199 | 20 |
! |
21 |
||
22 |
Object subclass:#Item |
|
220 | 23 |
instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey |
407 | 24 |
accessCharacterPos retriever icon iconAndLabel submenuChannel |
539 | 25 |
startGroup argument translateLabel isButton isVisible' |
220 | 26 |
classVariableNames:'' |
27 |
poolDictionaries:'' |
|
28 |
privateIn:MenuEditor |
|
199 | 29 |
! |
30 |
||
407 | 31 |
SelectionInTreeView subclass:#TreeView |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
32 |
instanceVariableNames:'' |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
33 |
classVariableNames:'' |
220 | 34 |
poolDictionaries:'' |
35 |
privateIn:MenuEditor |
|
199 | 36 |
! |
37 |
||
38 |
!MenuEditor class methodsFor:'documentation'! |
|
39 |
||
40 |
copyright |
|
41 |
" |
|
738 | 42 |
COPYRIGHT (c) 1997 by eXept Software AG |
199 | 43 |
All Rights Reserved |
44 |
||
45 |
This software is furnished under a license and may be used |
|
46 |
only in accordance with the terms of that license and with the |
|
738 | 47 |
inclusion of the above copyright notice. This software may not |
199 | 48 |
be provided or otherwise made available to, or used by, any |
49 |
other person. No title to or ownership of the software is |
|
50 |
hereby transferred. |
|
51 |
" |
|
52 |
||
53 |
||
54 |
! |
|
55 |
||
56 |
documentation |
|
57 |
" |
|
728 | 58 |
The MenuEditor allows you to create, modify or just inspect |
59 |
hierarchical menus of menu bars, popup menu, or tool bar menus. |
|
199 | 60 |
|
61 |
[start with:] |
|
62 |
MenuEditor open |
|
728 | 63 |
MenuEditor openOnClass:MenuEditor andSelector:#menu |
199 | 64 |
|
65 |
[see also:] |
|
66 |
UIPainter |
|
67 |
||
68 |
[author:] |
|
541 | 69 |
Claus Atzkern, eXept Software AG |
70 |
Thomas Zwick, eXept Software AG |
|
199 | 71 |
" |
72 |
||
73 |
! ! |
|
74 |
||
508 | 75 |
!MenuEditor class methodsFor:'instance creation'! |
76 |
||
728 | 77 |
openModalOnMenu: aMenu |
78 |
"Open a MenuEditor modal on aMenu" |
|
79 |
"self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray" |
|
80 |
||
81 |
^self new openModalOnMenu: aMenu |
|
508 | 82 |
! ! |
83 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
84 |
!MenuEditor class methodsFor:'accessing'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
85 |
|
734 | 86 |
iconUnknown |
87 |
"returns an image used for picked items containing an image |
|
88 |
" |
|
89 |
||
90 |
<resource: #fileImage> |
|
91 |
||
92 |
^Image fromFile:'brokenImage.xpm' |
|
93 |
! |
|
94 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
95 |
resourceType |
728 | 96 |
"get the type of resource of the method generated by the MenuEditor" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
97 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
98 |
^#menu |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
99 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
100 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
101 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
102 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
103 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
104 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
105 |
!MenuEditor class methodsFor:'aspects'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
106 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
107 |
aspects |
728 | 108 |
"get the aspects for the attributes of the menu components" |
109 |
||
110 |
^#( |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
111 |
label |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
112 |
accessCharacterPos |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
113 |
argument |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
114 |
submenuChannel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
115 |
enabled |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
116 |
value |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
117 |
nameKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
118 |
indication |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
119 |
translateLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
120 |
isButton |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
121 |
shortcutKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
122 |
startGroup |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
123 |
retriever |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
124 |
iconAndLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
125 |
icon |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
126 |
isVisible |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
127 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
128 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
129 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
130 |
|
371 | 131 |
!MenuEditor class methodsFor:'help specs'! |
132 |
||
133 |
helpSpec |
|
738 | 134 |
"This resource specification was automatically generated |
135 |
by the UIHelpTool of ST/X." |
|
136 |
||
137 |
"Do not manually edit this!! If it is corrupted, |
|
138 |
the UIHelpTool may not be able to read the specification." |
|
371 | 139 |
|
140 |
" |
|
738 | 141 |
UIHelpTool openOnClass:MenuEditor |
371 | 142 |
" |
143 |
||
738 | 144 |
<resource: #help> |
145 |
||
146 |
^super helpSpec addPairsFrom:#( |
|
371 | 147 |
|
548 | 148 |
#addMenuItem |
149 |
'Adds a new menu item.' |
|
150 |
||
151 |
#addMenuSeparator |
|
152 |
'Adds a new menu separator.' |
|
153 |
||
154 |
#addSubMenu |
|
613 | 155 |
'Adds a new sub menu.' |
548 | 156 |
|
157 |
#addSubMenuLink |
|
613 | 158 |
'Adds a new linked sub menu.' |
371 | 159 |
|
577 | 160 |
#basicsAction |
627 | 161 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
577 | 162 |
|
163 |
#basicsArgument |
|
613 | 164 |
'An argument passed to above selector, if it is a 1 or a 2 argument selector.' |
577 | 165 |
|
166 |
#basicsIndication |
|
167 |
'A boolean value holder, a boolean evaluating block, or a boolean returning selector for specifying indication state.' |
|
168 |
||
169 |
#basicsIsButton |
|
603 | 170 |
'Turns on/off a button behavior.' |
577 | 171 |
|
172 |
#basicsLabel |
|
173 |
'Label of the item.' |
|
174 |
||
175 |
#basicsMenu |
|
613 | 176 |
'A value holder providing the sub menu to be opened if item is selected.' |
577 | 177 |
|
178 |
#basicsMenuArgument |
|
179 |
'An argument passes with menu selector.' |
|
180 |
||
181 |
#basicsNameKey |
|
182 |
'Unique identifier of the item (optional).' |
|
183 |
||
184 |
#basicsSelector |
|
613 | 185 |
'Selector under which the generated menu spec is saved.' |
577 | 186 |
|
187 |
#basicsSeparatorType |
|
188 |
'List of valid separators.' |
|
189 |
||
190 |
#basicsTranslateLabel |
|
603 | 191 |
'Turns on/off translation behavior of the label via class resource file.' |
577 | 192 |
|
193 |
#detailsAccelerator |
|
194 |
'Key to be pressed to select the menu item from the keyboard (accelerator key).' |
|
195 |
||
196 |
#detailsAccessCharaterPosition |
|
197 |
'Index of the access character position of the textual label (optional).' |
|
198 |
||
199 |
#detailsEnabled |
|
613 | 200 |
'A boolean value holder providing en- or disabling of the menu item.' |
577 | 201 |
|
202 |
#detailsVisibility |
|
203 |
'A boolean value holder providing visibility of the menu item.' |
|
204 |
||
548 | 205 |
#fileLoad |
612 | 206 |
'Opens a dialog for selecting and loading a menu spec from a class.' |
548 | 207 |
|
208 |
#fileNew |
|
209 |
'Creates a new menu spec.' |
|
210 |
||
577 | 211 |
#filePickAMenu |
212 |
'Changes the cursor for moving it over another menu view to load its menu spec.' |
|
213 |
||
548 | 214 |
#fileSave |
215 |
'Saves current menu spec and if modified the help spec.' |
|
455 | 216 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
217 |
#fileSaveAs |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
218 |
'Opens a dialog to save current menu spec and if modified the help spec.' |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
219 |
|
577 | 220 |
#imageImageAndLabel |
603 | 221 |
'Turns on/off displaying both image and textual label.' |
577 | 222 |
|
223 |
#imageImageEditor |
|
224 |
'Opens an Image Editor on retriever and selector.' |
|
225 |
||
226 |
#imageRetriever |
|
227 |
'Class implementing the image resource method. If no class is given, the current application class will be taken.' |
|
228 |
||
229 |
#imageSelector |
|
613 | 230 |
'Selector returning an image.' |
371 | 231 |
|
232 |
) |
|
233 |
! ! |
|
234 |
||
734 | 235 |
!MenuEditor class methodsFor:'image specs'! |
236 |
||
237 |
linkSubmenuImage |
|
738 | 238 |
"This resource specification was automatically generated |
239 |
by the ImageEditor of ST/X." |
|
240 |
||
241 |
"Do not manually edit this!!!! If it is corrupted, |
|
242 |
the ImageEditor may not be able to read the specification." |
|
243 |
||
734 | 244 |
" |
738 | 245 |
ImageEditor openOnClass:self andSelector:#linkSubmenuImage |
734 | 246 |
" |
247 |
||
248 |
<resource: #image> |
|
249 |
||
250 |
^Icon |
|
251 |
constantNamed:#'MenuEditor linkSubmenuImage' |
|
252 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@ADQDQDQDQDQDQH@D"H"H"H"H"H"K0@RH"H"H"H"H"H/@A????????????<@D@@@@@@@@@@@C0@PL3L0DQDQDQD_@A@3L3LBH"H"H"<@DCL3L3@"H"H"K0@PL3L3L0??????@A@@@@L3L@@@@@<@DQDQDCL3@PLAG0@RH"H"@3L0@3@/@AH"H"H L3L3L0<@G?????<CL3L3L@@P@@@@@@@3L3LO@ADQDQDQDP@CLA<@D"H"H"H"H LBK0@RH"H"H"H"@BH/@B????????????<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
253 |
||
254 |
menuItemImage |
|
738 | 255 |
"This resource specification was automatically generated |
256 |
by the ImageEditor of ST/X." |
|
257 |
||
258 |
"Do not manually edit this!!!! If it is corrupted, |
|
259 |
the ImageEditor may not be able to read the specification." |
|
260 |
||
734 | 261 |
" |
738 | 262 |
ImageEditor openOnClass:self andSelector:#menuItemImage |
734 | 263 |
" |
264 |
||
265 |
<resource: #image> |
|
266 |
||
267 |
^Icon |
|
268 |
constantNamed:#'MenuEditor menuItemImage' |
|
269 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUQUUUUUUUPUUUUUUU_UUUUUUUPUUUUUUUP@@@@@@@@EUUUUUVAF*****+HF:?+::;@F:.+*?;@F:.+::;@F:.+*:;@F:.+::;@F*****+DK??????A@@@@@@@@UUUUUUUPUUUUUUUXUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUX') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
270 |
||
271 |
menuSeparatorImage |
|
738 | 272 |
"This resource specification was automatically generated |
273 |
by the ImageEditor of ST/X." |
|
274 |
||
275 |
"Do not manually edit this!!!! If it is corrupted, |
|
276 |
the ImageEditor may not be able to read the specification." |
|
277 |
||
734 | 278 |
" |
738 | 279 |
ImageEditor openOnClass:self andSelector:#menuSeparatorImage |
734 | 280 |
" |
281 |
||
282 |
<resource: #image> |
|
283 |
||
284 |
^Icon |
|
285 |
constantNamed:#'MenuEditor menuSeparatorImage' |
|
286 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUURUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP@@@@@@@@EUUUUUV@F*****+DF*****+CF?????+@F0@@@@[@F%UUUU[HF*****+@F*****+@K??????N@@@@@@@HUUUUUUUPUUUUUUUPUUUUUUUWUUUUUUUXUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
287 |
||
288 |
submenuImage |
|
738 | 289 |
"This resource specification was automatically generated |
290 |
by the ImageEditor of ST/X." |
|
291 |
||
292 |
"Do not manually edit this!!!! If it is corrupted, |
|
293 |
the ImageEditor may not be able to read the specification." |
|
294 |
||
734 | 295 |
" |
738 | 296 |
ImageEditor openOnClass:self andSelector:#submenuImage |
734 | 297 |
" |
298 |
||
299 |
<resource: #image> |
|
300 |
||
301 |
^Icon |
|
302 |
constantNamed:#'MenuEditor submenuImage' |
|
303 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@EUUUUUV@F*****+@F*****+@G??????GD@@@@@C@EUUUUUWLF*****+@F*****+@G??????HD@@@@@C@EUUUUUW@F*****+@F*****+OG??????@D@@@@@C@EUUUUUW@F*****+@F*****+@K??????@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! ! |
|
304 |
||
199 | 305 |
!MenuEditor class methodsFor:'interface specs'! |
306 |
||
307 |
basicsItemSpec |
|
738 | 308 |
"This resource specification was automatically generated |
309 |
by the UIPainter of ST/X." |
|
310 |
||
311 |
"Do not manually edit this!! If it is corrupted, |
|
312 |
the UIPainter may not be able to read the specification." |
|
199 | 313 |
|
314 |
" |
|
315 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec |
|
316 |
MenuEditor new openInterface:#basicsItemSpec |
|
317 |
" |
|
318 |
||
319 |
<resource: #canvas> |
|
320 |
||
321 |
^ |
|
322 |
||
323 |
#(#FullSpec |
|
703 | 324 |
#window: |
199 | 325 |
#(#WindowSpec |
728 | 326 |
#name: 'Basics Item' |
738 | 327 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 328 |
#label: 'Basics Item' |
703 | 329 |
#min: #(#Point 10 10) |
330 |
#max: #(#Point 1160 870) |
|
738 | 331 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 332 |
#usePreferredExtent: false |
199 | 333 |
) |
703 | 334 |
#component: |
199 | 335 |
#(#SpecCollection |
703 | 336 |
#collection: |
199 | 337 |
#( |
338 |
#(#LabelSpec |
|
703 | 339 |
#name: 'nameKeyLabel' |
340 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
341 |
#label: 'Name Key:' |
|
342 |
#adjust: #right |
|
343 |
#resizeForLabel: true |
|
199 | 344 |
) |
345 |
#(#InputFieldSpec |
|
703 | 346 |
#name: 'nameKeyField' |
347 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
348 |
#tabable: true |
|
349 |
#model: #nameKey |
|
350 |
#type: #symbolOrNil |
|
351 |
#acceptOnReturn: false |
|
352 |
#acceptOnTab: false |
|
199 | 353 |
) |
354 |
#(#LabelSpec |
|
703 | 355 |
#name: 'labelLabel' |
356 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
357 |
#label: 'Label:' |
|
358 |
#adjust: #right |
|
359 |
#resizeForLabel: true |
|
199 | 360 |
) |
361 |
#(#InputFieldSpec |
|
703 | 362 |
#name: 'labelField' |
363 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
364 |
#activeHelpKey: #basicsLabel |
|
365 |
#tabable: true |
|
366 |
#model: #label |
|
367 |
#acceptOnReturn: false |
|
368 |
#acceptOnTab: false |
|
199 | 369 |
) |
370 |
#(#LabelSpec |
|
703 | 371 |
#name: 'valueLabel' |
372 |
#layout: #(#AlignmentOrigin 107 0 90 0 1 0.5) |
|
373 |
#label: 'Action:' |
|
374 |
#adjust: #right |
|
375 |
#resizeForLabel: true |
|
199 | 376 |
) |
377 |
#(#InputFieldSpec |
|
703 | 378 |
#name: 'valueField' |
379 |
#layout: #(#LayoutFrame 110 0 79 0 -5 1.0 101 0) |
|
380 |
#activeHelpKey: #basicsAction |
|
381 |
#tabable: true |
|
382 |
#model: #value |
|
383 |
#type: #symbolOrNil |
|
384 |
#acceptOnReturn: false |
|
385 |
#acceptOnTab: false |
|
199 | 386 |
) |
387 |
#(#LabelSpec |
|
703 | 388 |
#name: 'argumentLabel' |
389 |
#layout: #(#AlignmentOrigin 107 0 115 0 1 0.5) |
|
390 |
#label: 'Argument:' |
|
391 |
#adjust: #right |
|
392 |
#resizeForLabel: true |
|
290 | 393 |
) |
394 |
#(#InputFieldSpec |
|
703 | 395 |
#name: 'argumentField' |
396 |
#layout: #(#LayoutFrame 110 0 104 0 -5 1.0 126 0) |
|
397 |
#activeHelpKey: #basicsArgument |
|
398 |
#tabable: true |
|
399 |
#model: #argument |
|
400 |
#type: #string |
|
401 |
#acceptOnReturn: false |
|
402 |
#acceptOnTab: false |
|
290 | 403 |
) |
371 | 404 |
#(#LabelSpec |
703 | 405 |
#name: 'indicationLabel' |
406 |
#layout: #(#AlignmentOrigin 107 0 155 0 1 0.5) |
|
407 |
#label: 'Indication:' |
|
408 |
#adjust: #right |
|
409 |
#resizeForLabel: true |
|
371 | 410 |
) |
411 |
#(#InputFieldSpec |
|
703 | 412 |
#name: 'indicationField' |
413 |
#layout: #(#LayoutFrame 110 0 144 0 -5 1.0 166 0) |
|
414 |
#activeHelpKey: #basicsIndication |
|
415 |
#tabable: true |
|
416 |
#model: #indication |
|
417 |
#type: #symbolOrNil |
|
418 |
#acceptOnReturn: false |
|
419 |
#acceptOnTab: false |
|
371 | 420 |
) |
398 | 421 |
#(#CheckBoxSpec |
703 | 422 |
#name: 'translateLabelCheckBox' |
728 | 423 |
#layout: #(#Point 20 190) |
703 | 424 |
#activeHelpKey: #basicsTranslateLabel |
425 |
#tabable: true |
|
426 |
#model: #translateLabel |
|
427 |
#label: 'Translate Label' |
|
398 | 428 |
) |
429 |
#(#CheckBoxSpec |
|
703 | 430 |
#name: 'isButtonCheckBox' |
728 | 431 |
#layout: #(#Point 20 219) |
703 | 432 |
#activeHelpKey: #basicsIsButton |
433 |
#tabable: true |
|
434 |
#model: #isButton |
|
435 |
#label: 'Is Button' |
|
398 | 436 |
) |
199 | 437 |
) |
438 |
) |
|
439 |
) |
|
440 |
! |
|
441 |
||
218 | 442 |
basicsLinkSpec |
738 | 443 |
"This resource specification was automatically generated |
444 |
by the UIPainter of ST/X." |
|
445 |
||
446 |
"Do not manually edit this!! If it is corrupted, |
|
447 |
the UIPainter may not be able to read the specification." |
|
218 | 448 |
|
449 |
" |
|
450 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec |
|
451 |
MenuEditor new openInterface:#basicsLinkSpec |
|
452 |
" |
|
453 |
||
454 |
<resource: #canvas> |
|
455 |
||
456 |
^ |
|
457 |
||
458 |
#(#FullSpec |
|
703 | 459 |
#window: |
218 | 460 |
#(#WindowSpec |
728 | 461 |
#name: 'Basics Link' |
738 | 462 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 463 |
#label: 'Basics Link' |
703 | 464 |
#min: #(#Point 10 10) |
465 |
#max: #(#Point 1280 1024) |
|
738 | 466 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 467 |
#usePreferredExtent: false |
218 | 468 |
) |
703 | 469 |
#component: |
218 | 470 |
#(#SpecCollection |
703 | 471 |
#collection: |
218 | 472 |
#( |
473 |
#(#LabelSpec |
|
703 | 474 |
#name: 'nameKeyLabel' |
475 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
476 |
#activeHelpKey: #nameKey |
|
477 |
#label: 'Name Key:' |
|
478 |
#adjust: #right |
|
479 |
#resizeForLabel: true |
|
218 | 480 |
) |
481 |
#(#InputFieldSpec |
|
703 | 482 |
#name: 'nameKeyField' |
483 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
484 |
#activeHelpKey: #basicsNameKey |
|
485 |
#tabable: true |
|
486 |
#model: #nameKey |
|
487 |
#type: #symbolOrNil |
|
488 |
#acceptOnReturn: false |
|
489 |
#acceptOnTab: false |
|
218 | 490 |
) |
491 |
#(#LabelSpec |
|
703 | 492 |
#name: 'labelLabel' |
493 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
494 |
#label: 'Label:' |
|
495 |
#resizeForLabel: true |
|
218 | 496 |
) |
497 |
#(#InputFieldSpec |
|
703 | 498 |
#name: 'labelField' |
499 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
500 |
#activeHelpKey: #basicsLabel |
|
501 |
#tabable: true |
|
502 |
#model: #label |
|
503 |
#acceptOnReturn: false |
|
504 |
#acceptOnTab: false |
|
218 | 505 |
) |
469 | 506 |
#(#LabelSpec |
703 | 507 |
#name: 'menuLabel' |
508 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
509 |
#label: 'Menu:' |
|
510 |
#resizeForLabel: true |
|
469 | 511 |
) |
218 | 512 |
#(#InputFieldSpec |
703 | 513 |
#name: 'menuField' |
514 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
515 |
#activeHelpKey: #basicsMenu |
|
516 |
#tabable: true |
|
517 |
#model: #submenuChannel |
|
518 |
#type: #symbolOrNil |
|
519 |
#acceptOnReturn: false |
|
520 |
#acceptOnTab: false |
|
218 | 521 |
) |
522 |
#(#LabelSpec |
|
703 | 523 |
#name: 'ArgumentLabel' |
524 |
#layout: #(#AlignmentOrigin 107 0 100 0 1 0.5) |
|
525 |
#label: 'Argument:' |
|
526 |
#resizeForLabel: true |
|
218 | 527 |
) |
411 | 528 |
#(#InputFieldSpec |
703 | 529 |
#name: 'argumentField' |
530 |
#layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) |
|
531 |
#activeHelpKey: #basicsMenuArgument |
|
532 |
#tabable: true |
|
533 |
#model: #argument |
|
534 |
#acceptOnReturn: false |
|
535 |
#acceptOnTab: false |
|
411 | 536 |
) |
469 | 537 |
#(#CheckBoxSpec |
703 | 538 |
#name: 'translateLabelCheckBox' |
728 | 539 |
#layout: #(#Point 20 190) |
703 | 540 |
#activeHelpKey: #basicsTranslateLabel |
541 |
#tabable: true |
|
542 |
#model: #translateLabel |
|
543 |
#label: 'Translate Label' |
|
411 | 544 |
) |
218 | 545 |
) |
546 |
) |
|
547 |
) |
|
548 |
! |
|
549 |
||
199 | 550 |
basicsMenuSpec |
738 | 551 |
"This resource specification was automatically generated |
552 |
by the UIPainter of ST/X." |
|
553 |
||
554 |
"Do not manually edit this!! If it is corrupted, |
|
555 |
the UIPainter may not be able to read the specification." |
|
199 | 556 |
|
557 |
" |
|
558 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec |
|
559 |
MenuEditor new openInterface:#basicsMenuSpec |
|
560 |
" |
|
561 |
||
562 |
<resource: #canvas> |
|
563 |
||
564 |
^ |
|
565 |
||
566 |
#(#FullSpec |
|
703 | 567 |
#window: |
199 | 568 |
#(#WindowSpec |
728 | 569 |
#name: 'Basics Menu' |
738 | 570 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 571 |
#label: 'Basics Menu' |
703 | 572 |
#min: #(#Point 10 10) |
573 |
#max: #(#Point 1280 1024) |
|
738 | 574 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 575 |
#usePreferredExtent: false |
199 | 576 |
) |
703 | 577 |
#component: |
199 | 578 |
#(#SpecCollection |
703 | 579 |
#collection: |
199 | 580 |
#( |
581 |
#(#LabelSpec |
|
703 | 582 |
#name: 'nameKeyLabel' |
583 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
584 |
#label: 'Name Key:' |
|
585 |
#adjust: #right |
|
586 |
#resizeForLabel: true |
|
199 | 587 |
) |
588 |
#(#InputFieldSpec |
|
703 | 589 |
#name: 'nameKeyField' |
590 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
591 |
#activeHelpKey: #basicsNameKey |
|
592 |
#tabable: true |
|
593 |
#model: #nameKey |
|
594 |
#type: #symbolOrNil |
|
595 |
#acceptOnReturn: false |
|
596 |
#acceptOnTab: false |
|
199 | 597 |
) |
598 |
#(#LabelSpec |
|
703 | 599 |
#name: 'labelLabel' |
600 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
601 |
#label: 'Label:' |
|
602 |
#adjust: #right |
|
603 |
#resizeForLabel: true |
|
199 | 604 |
) |
605 |
#(#InputFieldSpec |
|
703 | 606 |
#name: 'labelField' |
607 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
608 |
#activeHelpKey: #basicsLabel |
|
609 |
#tabable: true |
|
610 |
#model: #label |
|
611 |
#acceptOnReturn: false |
|
612 |
#acceptOnTab: false |
|
199 | 613 |
) |
398 | 614 |
#(#CheckBoxSpec |
703 | 615 |
#name: 'translateLabelCheckBox' |
728 | 616 |
#layout: #(#Point 20 190) |
703 | 617 |
#activeHelpKey: #basicsTranslateLabel |
618 |
#tabable: true |
|
619 |
#model: #translateLabel |
|
620 |
#label: 'Translate Label' |
|
398 | 621 |
) |
199 | 622 |
) |
623 |
) |
|
624 |
) |
|
625 |
! |
|
626 |
||
627 |
basicsRootSpec |
|
738 | 628 |
"This resource specification was automatically generated |
629 |
by the UIPainter of ST/X." |
|
630 |
||
631 |
"Do not manually edit this!! If it is corrupted, |
|
632 |
the UIPainter may not be able to read the specification." |
|
199 | 633 |
|
634 |
" |
|
635 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec |
|
636 |
MenuEditor new openInterface:#basicsRootSpec |
|
637 |
" |
|
638 |
||
639 |
<resource: #canvas> |
|
640 |
||
641 |
^ |
|
642 |
||
643 |
#(#FullSpec |
|
703 | 644 |
#window: |
199 | 645 |
#(#WindowSpec |
728 | 646 |
#name: 'Basics Root' |
738 | 647 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 648 |
#label: 'Basics Root' |
703 | 649 |
#min: #(#Point 10 10) |
650 |
#max: #(#Point 1280 1024) |
|
738 | 651 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 652 |
#usePreferredExtent: false |
199 | 653 |
) |
703 | 654 |
#component: |
199 | 655 |
#(#SpecCollection |
703 | 656 |
#collection: |
199 | 657 |
#( |
658 |
#(#LabelSpec |
|
703 | 659 |
#name: 'selectorLabel' |
660 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
661 |
#label: 'Selector:' |
|
662 |
#adjust: #right |
|
663 |
#resizeForLabel: true |
|
199 | 664 |
) |
665 |
#(#InputFieldSpec |
|
703 | 666 |
#name: 'selectorField' |
667 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
668 |
#activeHelpKey: #basicsSelector |
|
669 |
#tabable: true |
|
670 |
#model: #label |
|
671 |
#acceptOnReturn: false |
|
672 |
#acceptOnTab: false |
|
199 | 673 |
) |
674 |
) |
|
675 |
) |
|
676 |
) |
|
677 |
! |
|
678 |
||
218 | 679 |
basicsSeparatorSpec |
738 | 680 |
"This resource specification was automatically generated |
681 |
by the UIPainter of ST/X." |
|
682 |
||
683 |
"Do not manually edit this!! If it is corrupted, |
|
684 |
the UIPainter may not be able to read the specification." |
|
199 | 685 |
|
686 |
" |
|
218 | 687 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec |
688 |
MenuEditor new openInterface:#basicsSeparatorSpec |
|
199 | 689 |
" |
690 |
||
691 |
<resource: #canvas> |
|
692 |
||
693 |
^ |
|
694 |
||
695 |
#(#FullSpec |
|
703 | 696 |
#window: |
199 | 697 |
#(#WindowSpec |
728 | 698 |
#name: 'Basics Separator' |
738 | 699 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 700 |
#label: 'Basics Separator' |
703 | 701 |
#min: #(#Point 10 10) |
702 |
#max: #(#Point 1160 870) |
|
738 | 703 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 704 |
#usePreferredExtent: false |
199 | 705 |
) |
703 | 706 |
#component: |
199 | 707 |
#(#SpecCollection |
703 | 708 |
#collection: |
199 | 709 |
#( |
218 | 710 |
#(#LabelSpec |
703 | 711 |
#name: 'separatorLabel' |
712 |
#layout: #(#AlignmentOrigin 127 0 26 0 1 0.5) |
|
713 |
#label: 'Separator Type:' |
|
714 |
#adjust: #right |
|
715 |
#resizeForLabel: true |
|
218 | 716 |
) |
717 |
#(#ComboListSpec |
|
703 | 718 |
#name: 'seperatorList' |
719 |
#layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0) |
|
720 |
#activeHelpKey: #basicsSeparatorType |
|
721 |
#tabable: true |
|
722 |
#model: #seperatorSelection |
|
723 |
#useIndex: true |
|
199 | 724 |
) |
606 | 725 |
#(#LabelSpec |
703 | 726 |
#name: 'visibilityLabel' |
727 |
#layout: #(#AlignmentOrigin 127 0 76 0 1 0.5) |
|
728 |
#label: 'Visibility:' |
|
729 |
#adjust: #right |
|
730 |
#resizeForLabel: true |
|
606 | 731 |
) |
732 |
#(#InputFieldSpec |
|
728 | 733 |
#name: 'visibilityInputField' |
703 | 734 |
#layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0) |
735 |
#activeHelpKey: #detailsVisibility |
|
736 |
#tabable: true |
|
737 |
#model: #isVisible |
|
738 |
#type: #symbolOrNil |
|
739 |
#acceptOnReturn: false |
|
740 |
#acceptOnTab: false |
|
606 | 741 |
) |
199 | 742 |
) |
743 |
) |
|
744 |
) |
|
745 |
! |
|
746 |
||
747 |
detailsEditSpec |
|
738 | 748 |
"This resource specification was automatically generated |
749 |
by the UIPainter of ST/X." |
|
750 |
||
751 |
"Do not manually edit this!! If it is corrupted, |
|
752 |
the UIPainter may not be able to read the specification." |
|
199 | 753 |
|
754 |
" |
|
755 |
UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec |
|
756 |
MenuEditor new openInterface:#detailsEditSpec |
|
757 |
" |
|
758 |
||
759 |
<resource: #canvas> |
|
760 |
||
761 |
^ |
|
762 |
||
763 |
#(#FullSpec |
|
703 | 764 |
#window: |
199 | 765 |
#(#WindowSpec |
728 | 766 |
#name: 'Details Edit' |
738 | 767 |
#layout: #(#LayoutFrame 332 0 374 0 590 0 661 0) |
728 | 768 |
#label: 'Details Edit' |
703 | 769 |
#min: #(#Point 10 10) |
770 |
#max: #(#Point 1280 1024) |
|
738 | 771 |
#bounds: #(#Rectangle 332 374 591 662) |
703 | 772 |
#usePreferredExtent: false |
199 | 773 |
) |
703 | 774 |
#component: |
199 | 775 |
#(#SpecCollection |
703 | 776 |
#collection: |
199 | 777 |
#( |
778 |
#(#LabelSpec |
|
703 | 779 |
#name: 'shortcutKeyLabel' |
780 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
781 |
#label: 'Accelerator:' |
|
782 |
#adjust: #right |
|
783 |
#resizeForLabel: true |
|
371 | 784 |
) |
785 |
#(#InputFieldSpec |
|
703 | 786 |
#name: 'shortcutKeyField' |
787 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
788 |
#activeHelpKey: #detailsAccelerator |
|
789 |
#tabable: true |
|
790 |
#model: #shortcutKey |
|
791 |
#type: #symbolOrNil |
|
792 |
#acceptOnReturn: false |
|
793 |
#acceptOnTab: false |
|
371 | 794 |
) |
795 |
#(#LabelSpec |
|
703 | 796 |
#name: 'enabledLabel' |
797 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
798 |
#label: 'Enabled:' |
|
799 |
#adjust: #right |
|
800 |
#resizeForLabel: true |
|
199 | 801 |
) |
802 |
#(#InputFieldSpec |
|
703 | 803 |
#name: 'enabledField' |
804 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
805 |
#activeHelpKey: #detailsEnabled |
|
806 |
#tabable: true |
|
807 |
#model: #enabled |
|
808 |
#type: #symbolOrNil |
|
809 |
#acceptOnReturn: false |
|
810 |
#acceptOnTab: false |
|
199 | 811 |
) |
812 |
#(#LabelSpec |
|
703 | 813 |
#name: 'visibilityLabel' |
814 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
815 |
#label: 'Visibility:' |
|
816 |
#adjust: #right |
|
817 |
#resizeForLabel: true |
|
199 | 818 |
) |
819 |
#(#InputFieldSpec |
|
703 | 820 |
#name: 'isVisibleInputField' |
821 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
822 |
#activeHelpKey: #detailsVisibility |
|
823 |
#tabable: true |
|
824 |
#model: #isVisible |
|
825 |
#type: #symbolOrNil |
|
826 |
#acceptOnReturn: false |
|
827 |
#acceptOnTab: false |
|
199 | 828 |
) |
532 | 829 |
#(#LabelSpec |
703 | 830 |
#name: 'StartGroupLabel' |
831 |
#layout: #(#AlignmentOrigin 107 0 111 0 1 0.5) |
|
832 |
#label: 'Start Group:' |
|
833 |
#adjust: #right |
|
834 |
#resizeForLabel: true |
|
532 | 835 |
) |
836 |
#(#PopUpListSpec |
|
703 | 837 |
#name: 'StartGroupPopUp' |
838 |
#layout: #(#LayoutFrame 110 0 100 0 -5 1.0 122 0) |
|
839 |
#label: 'PopUpList' |
|
738 | 840 |
#tabable: true |
703 | 841 |
#model: #startGroup |
842 |
#menu: |
|
532 | 843 |
#(nil |
844 |
#right |
|
845 |
) |
|
703 | 846 |
#useIndex: false |
532 | 847 |
) |
539 | 848 |
#(#LabelSpec |
703 | 849 |
#name: 'accessCharLabel' |
850 |
#layout: #(#AlignmentOrigin 217 0 142 0 1 0.5) |
|
851 |
#label: 'Access Character Position:' |
|
852 |
#adjust: #right |
|
853 |
#resizeForLabel: true |
|
539 | 854 |
) |
855 |
#(#InputFieldSpec |
|
703 | 856 |
#name: 'accessCharField' |
857 |
#layout: #(#LayoutFrame 220 0 131 0 -5 1.0 153 0) |
|
858 |
#activeHelpKey: #detailsAccessCharaterPosition |
|
859 |
#tabable: true |
|
860 |
#model: #accessCharacterPos |
|
861 |
#type: #numberOrNil |
|
862 |
#acceptOnReturn: false |
|
863 |
#acceptOnTab: false |
|
539 | 864 |
) |
199 | 865 |
) |
866 |
) |
|
867 |
) |
|
868 |
! |
|
869 |
||
398 | 870 |
imageEditSpec |
738 | 871 |
"This resource specification was automatically generated |
872 |
by the UIPainter of ST/X." |
|
873 |
||
874 |
"Do not manually edit this!! If it is corrupted, |
|
875 |
the UIPainter may not be able to read the specification." |
|
199 | 876 |
|
877 |
" |
|
398 | 878 |
UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec |
879 |
MenuEditor new openInterface:#imageEditSpec |
|
199 | 880 |
" |
881 |
||
882 |
<resource: #canvas> |
|
883 |
||
884 |
^ |
|
703 | 885 |
|
199 | 886 |
#(#FullSpec |
703 | 887 |
#window: |
199 | 888 |
#(#WindowSpec |
728 | 889 |
#name: 'Image Item' |
738 | 890 |
#layout: #(#LayoutFrame 473 0 301 0 717 0 442 0) |
728 | 891 |
#label: 'Image Item' |
703 | 892 |
#min: #(#Point 10 10) |
893 |
#max: #(#Point 1280 1024) |
|
738 | 894 |
#bounds: #(#Rectangle 473 301 718 443) |
703 | 895 |
#usePreferredExtent: false |
199 | 896 |
) |
703 | 897 |
#component: |
199 | 898 |
#(#SpecCollection |
703 | 899 |
#collection: |
199 | 900 |
#( |
901 |
#(#LabelSpec |
|
703 | 902 |
#name: 'retrieverLabel' |
903 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
904 |
#label: 'Retriever:' |
|
905 |
#adjust: #right |
|
906 |
#resizeForLabel: true |
|
199 | 907 |
) |
908 |
#(#InputFieldSpec |
|
703 | 909 |
#name: 'retrieverField' |
910 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
911 |
#activeHelpKey: #imageRetriever |
|
912 |
#tabable: true |
|
913 |
#model: #retriever |
|
914 |
#type: #symbolOrNil |
|
915 |
#acceptOnReturn: false |
|
916 |
#acceptOnTab: false |
|
199 | 917 |
) |
918 |
#(#LabelSpec |
|
703 | 919 |
#name: 'iconLabel' |
920 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
921 |
#label: 'Selector:' |
|
922 |
#adjust: #right |
|
923 |
#resizeForLabel: true |
|
199 | 924 |
) |
925 |
#(#InputFieldSpec |
|
703 | 926 |
#name: 'iconField' |
927 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
928 |
#activeHelpKey: #imageSelector |
|
929 |
#tabable: true |
|
930 |
#model: #icon |
|
931 |
#type: #symbolOrNil |
|
932 |
#acceptOnReturn: false |
|
933 |
#acceptOnTab: false |
|
199 | 934 |
) |
469 | 935 |
#(#ActionButtonSpec |
703 | 936 |
#name: 'imageEditorButton' |
937 |
#layout: #(#LayoutFrame 110 0 66 0 -5 1 90 0) |
|
938 |
#activeHelpKey: #imageImageEditor |
|
939 |
#label: 'Image Editor' |
|
940 |
#tabable: true |
|
941 |
#model: #doEditImage |
|
469 | 942 |
) |
199 | 943 |
#(#CheckBoxSpec |
703 | 944 |
#name: 'iconAndLabel' |
945 |
#layout: #(#LayoutOrigin 20 0 104 0) |
|
946 |
#activeHelpKey: #imageImageAndLabel |
|
947 |
#tabable: true |
|
948 |
#model: #iconAndLabel |
|
949 |
#label: 'Image & Label' |
|
199 | 950 |
) |
951 |
) |
|
952 |
) |
|
953 |
) |
|
525 | 954 |
! |
955 |
||
956 |
windowSpec |
|
738 | 957 |
"This resource specification was automatically generated |
958 |
by the UIPainter of ST/X." |
|
959 |
||
960 |
"Do not manually edit this!! If it is corrupted, |
|
961 |
the UIPainter may not be able to read the specification." |
|
525 | 962 |
|
963 |
" |
|
964 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
965 |
MenuEditor new openInterface:#windowSpec |
|
738 | 966 |
MenuEditor open |
525 | 967 |
" |
968 |
||
969 |
<resource: #canvas> |
|
970 |
||
971 |
^ |
|
972 |
||
973 |
#(#FullSpec |
|
703 | 974 |
#window: |
525 | 975 |
#(#WindowSpec |
734 | 976 |
#name: 'Menu Editor' |
748 | 977 |
#layout: #(#LayoutFrame 88 0 294 0 627 0 673 0) |
734 | 978 |
#label: 'Menu Editor' |
748 | 979 |
#min: #(#Point 510 390) |
703 | 980 |
#max: #(#Point 1152 900) |
748 | 981 |
#bounds: #(#Rectangle 88 294 628 674) |
703 | 982 |
#menu: #menu |
983 |
#usePreferredExtent: false |
|
525 | 984 |
) |
703 | 985 |
#component: |
525 | 986 |
#(#SpecCollection |
703 | 987 |
#collection: |
525 | 988 |
#( |
989 |
#(#MenuPanelSpec |
|
703 | 990 |
#name: 'menuToolbarView' |
991 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
992 |
#menu: #menuToolbar |
|
993 |
#showSeparatingLines: true |
|
525 | 994 |
) |
995 |
#(#VariableHorizontalPanelSpec |
|
734 | 996 |
#name: 'VariableHorizontalPanel' |
703 | 997 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
998 |
#component: |
|
525 | 999 |
#(#SpecCollection |
703 | 1000 |
#collection: |
525 | 1001 |
#( |
1002 |
#(#ArbitraryComponentSpec |
|
734 | 1003 |
#name: 'TreeView' |
703 | 1004 |
#menu: #menuEdit |
1005 |
#hasHorizontalScrollBar: true |
|
1006 |
#hasVerticalScrollBar: true |
|
1007 |
#component: #treeView |
|
1008 |
#hasBorder: false |
|
525 | 1009 |
) |
1010 |
#(#ViewSpec |
|
734 | 1011 |
#name: 'Box' |
703 | 1012 |
#component: |
525 | 1013 |
#(#SpecCollection |
703 | 1014 |
#collection: |
525 | 1015 |
#( |
1016 |
#(#NoteBookViewSpec |
|
734 | 1017 |
#name: 'NoteBook' |
748 | 1018 |
#layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0) |
703 | 1019 |
#tabable: true |
1020 |
#model: #tabModel |
|
1021 |
#menu: #tabList |
|
1022 |
#useIndex: true |
|
1023 |
#canvas: #noteBookView |
|
525 | 1024 |
) |
1025 |
#(#UISubSpecification |
|
703 | 1026 |
#name: 'SubSpecification' |
1027 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
1028 |
#majorKey: #ToolApplicationModel |
|
1029 |
#minorKey: #windowSpecForCommit |
|
525 | 1030 |
) |
1031 |
) |
|
1032 |
) |
|
703 | 1033 |
#level: -1 |
525 | 1034 |
) |
1035 |
) |
|
1036 |
) |
|
703 | 1037 |
#handles: #(#Any 0.384483 1.0) |
525 | 1038 |
) |
1039 |
#(#UISubSpecification |
|
734 | 1040 |
#name: 'InfoBarSubSpec' |
703 | 1041 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
1042 |
#majorKey: #ToolApplicationModel |
|
1043 |
#minorKey: #windowSpecForInfoBar |
|
525 | 1044 |
) |
1045 |
) |
|
1046 |
) |
|
1047 |
) |
|
1048 |
! ! |
|
1049 |
||
1050 |
!MenuEditor class methodsFor:'menu specs'! |
|
1051 |
||
1052 |
menu |
|
738 | 1053 |
"This resource specification was automatically generated |
1054 |
by the MenuEditor of ST/X." |
|
1055 |
||
1056 |
"Do not manually edit this!! If it is corrupted, |
|
1057 |
the MenuEditor may not be able to read the specification." |
|
525 | 1058 |
|
1059 |
" |
|
1060 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
1061 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
1062 |
" |
|
1063 |
||
1064 |
<resource: #menu> |
|
1065 |
||
1066 |
^ |
|
1067 |
||
1068 |
#(#Menu |
|
1069 |
||
1070 |
#( |
|
1071 |
#(#MenuItem |
|
686 | 1072 |
#label: 'About' |
1073 |
#accessCharacterPosition: 1 |
|
1074 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
1075 |
#submenuChannel: #menuAbout |
|
525 | 1076 |
) |
1077 |
#(#MenuItem |
|
686 | 1078 |
#label: 'File' |
1079 |
#activeHelpKey: #file |
|
1080 |
#submenu: |
|
525 | 1081 |
#(#Menu |
1082 |
||
1083 |
#( |
|
1084 |
#(#MenuItem |
|
686 | 1085 |
#label: 'New' |
1086 |
#value: #doNew |
|
1087 |
#activeHelpKey: #fileNew |
|
525 | 1088 |
) |
1089 |
#(#MenuItem |
|
686 | 1090 |
#label: '-' |
525 | 1091 |
) |
1092 |
#(#MenuItem |
|
686 | 1093 |
#label: 'Load...' |
1094 |
#translateLabel: true |
|
1095 |
#value: #doLoad |
|
1096 |
#activeHelpKey: #fileLoad |
|
525 | 1097 |
) |
1098 |
#(#MenuItem |
|
686 | 1099 |
#label: '-' |
525 | 1100 |
) |
1101 |
#(#MenuItem |
|
686 | 1102 |
#label: 'Save' |
1103 |
#value: #doSave |
|
1104 |
#activeHelpKey: #fileSave |
|
525 | 1105 |
) |
1106 |
#(#MenuItem |
|
686 | 1107 |
#label: 'Save As...' |
1108 |
#value: #doSaveAs |
|
1109 |
#activeHelpKey: #fileSaveAs |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1110 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1111 |
#(#MenuItem |
686 | 1112 |
#label: '-' |
525 | 1113 |
) |
1114 |
#(#MenuItem |
|
686 | 1115 |
#label: 'Pick A Menu...' |
1116 |
#value: #doPickAMenu |
|
1117 |
#activeHelpKey: #filePickAMenu |
|
525 | 1118 |
) |
1119 |
#(#MenuItem |
|
686 | 1120 |
#label: '-' |
525 | 1121 |
) |
1122 |
#(#MenuItem |
|
686 | 1123 |
#label: 'Browse Class' |
1124 |
#value: #doBrowseClass |
|
1125 |
#activeHelpKey: #fileBrowseClass |
|
525 | 1126 |
) |
1127 |
#(#MenuItem |
|
686 | 1128 |
#label: '-' |
525 | 1129 |
) |
1130 |
#(#MenuItem |
|
686 | 1131 |
#label: 'Exit' |
1132 |
#translateLabel: true |
|
1133 |
#value: #closeRequest |
|
1134 |
#activeHelpKey: #fileExit |
|
525 | 1135 |
) |
1136 |
) nil |
|
1137 |
nil |
|
1138 |
) |
|
1139 |
) |
|
1140 |
#(#MenuItem |
|
686 | 1141 |
#label: 'Edit' |
1142 |
#activeHelpKey: #edit |
|
1143 |
#submenuChannel: #menuEdit |
|
525 | 1144 |
) |
1145 |
#(#MenuItem |
|
686 | 1146 |
#label: 'Add' |
1147 |
#activeHelpKey: #add |
|
1148 |
#submenuChannel: #menuAdd |
|
525 | 1149 |
) |
1150 |
#(#MenuItem |
|
686 | 1151 |
#label: 'Test' |
1152 |
#activeHelpKey: #test |
|
1153 |
#submenuChannel: #submenuTest |
|
525 | 1154 |
) |
1155 |
#(#MenuItem |
|
738 | 1156 |
#label: 'Settings' |
1157 |
#submenu: |
|
1158 |
#(#Menu |
|
1159 |
||
1160 |
#( |
|
1161 |
#(#MenuItem |
|
1162 |
#label: 'Fonts' |
|
1163 |
#submenuChannel: #menuFont |
|
1164 |
) |
|
1165 |
) nil |
|
1166 |
nil |
|
1167 |
) |
|
1168 |
) |
|
1169 |
#(#MenuItem |
|
748 | 1170 |
#label: 'History' |
1171 |
#activeHelpKey: #history |
|
1172 |
#submenuChannel: #menuHistory |
|
1173 |
) |
|
1174 |
#(#MenuItem |
|
686 | 1175 |
#label: 'Help' |
1176 |
#startGroup: #right |
|
748 | 1177 |
#submenu: |
1178 |
#(#Menu |
|
1179 |
||
1180 |
#( |
|
1181 |
#(#MenuItem |
|
1182 |
#label: 'Documentation' |
|
1183 |
#value: #openHTMLDocument: |
|
1184 |
#activeHelpKey: #helpTutorial |
|
764 | 1185 |
#argument: 'tools/uipainter/MenuEditor.html' |
748 | 1186 |
) |
1187 |
#(#MenuItem |
|
1188 |
#label: '-' |
|
1189 |
) |
|
1190 |
#(#MenuItem |
|
1191 |
#label: 'Help Tool' |
|
1192 |
#value: #openHTMLDocument: |
|
1193 |
#activeHelpKey: #helpHelpTool |
|
1194 |
#argument: 'tools/uipainter/HelpTool.html' |
|
1195 |
) |
|
1196 |
#(#MenuItem |
|
1197 |
#label: '-' |
|
1198 |
) |
|
1199 |
#(#MenuItem |
|
1200 |
#label: 'Show Help Texts' |
|
1201 |
#activeHelpKey: #helpShowHelp |
|
1202 |
#indication: #showHelp: |
|
1203 |
) |
|
1204 |
) nil |
|
1205 |
nil |
|
1206 |
) |
|
525 | 1207 |
) |
1208 |
) nil |
|
1209 |
nil |
|
1210 |
) |
|
1211 |
! |
|
1212 |
||
1213 |
menuAdd |
|
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 |
" |
|
1221 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuAdd |
|
1222 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuAdd)) startUp |
|
1223 |
" |
|
1224 |
||
1225 |
<resource: #menu> |
|
1226 |
||
1227 |
^ |
|
1228 |
||
1229 |
#(#Menu |
|
1230 |
||
1231 |
#( |
|
1232 |
#(#MenuItem |
|
703 | 1233 |
#label: 'Menu Item' |
1234 |
#value: #doCreateItem |
|
1235 |
#activeHelpKey: #addMenuItem |
|
1236 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuItemImage 'Menu Item') |
|
525 | 1237 |
) |
1238 |
#(#MenuItem |
|
703 | 1239 |
#label: 'Menu Separator' |
1240 |
#value: #doCreateSep |
|
1241 |
#activeHelpKey: #addMenuSeparator |
|
1242 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuSeparatorImage 'Menu Separator') |
|
525 | 1243 |
) |
1244 |
#(#MenuItem |
|
703 | 1245 |
#label: '-' |
525 | 1246 |
) |
1247 |
#(#MenuItem |
|
703 | 1248 |
#label: 'Submenu' |
1249 |
#value: #doCreateMenu |
|
1250 |
#activeHelpKey: #addSubMenu |
|
1251 |
#labelImage: #(#ResourceRetriever #MenuEditor #submenuImage 'Submenu') |
|
525 | 1252 |
) |
1253 |
#(#MenuItem |
|
703 | 1254 |
#label: 'Submenu Link' |
1255 |
#value: #doCreateLink |
|
1256 |
#activeHelpKey: #addSubMenuLink |
|
1257 |
#labelImage: #(#ResourceRetriever #MenuEditor #linkSubmenuImage 'Submenu Link') |
|
525 | 1258 |
) |
1259 |
) nil |
|
1260 |
nil |
|
1261 |
) |
|
1262 |
! |
|
1263 |
||
1264 |
menuDefaultLink |
|
738 | 1265 |
"This resource specification was automatically generated |
1266 |
by the MenuEditor of ST/X." |
|
1267 |
||
1268 |
"Do not manually edit this!! If it is corrupted, |
|
1269 |
the MenuEditor may not be able to read the specification." |
|
525 | 1270 |
|
1271 |
" |
|
1272 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink |
|
1273 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp |
|
1274 |
" |
|
1275 |
||
1276 |
<resource: #menu> |
|
1277 |
||
1278 |
^ |
|
738 | 1279 |
|
525 | 1280 |
#(#Menu |
738 | 1281 |
|
525 | 1282 |
#( |
1283 |
#(#MenuItem |
|
738 | 1284 |
#'label:' '!!!! derives from application !!!!' |
525 | 1285 |
) |
1286 |
) nil |
|
1287 |
nil |
|
1288 |
) |
|
1289 |
! |
|
1290 |
||
1291 |
menuEdit |
|
738 | 1292 |
"This resource specification was automatically generated |
1293 |
by the MenuEditor of ST/X." |
|
1294 |
||
1295 |
"Do not manually edit this!! If it is corrupted, |
|
1296 |
the MenuEditor may not be able to read the specification." |
|
525 | 1297 |
|
1298 |
" |
|
1299 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuEdit |
|
1300 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuEdit)) startUp |
|
1301 |
" |
|
1302 |
||
1303 |
<resource: #menu> |
|
1304 |
||
1305 |
^ |
|
1306 |
||
1307 |
#(#Menu |
|
1308 |
||
1309 |
#( |
|
1310 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1311 |
#label: 'Cut' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1312 |
#value: #doCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1313 |
#activeHelpKey: #editCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1314 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1315 |
#shortcutKeyCharacter: #Cut |
525 | 1316 |
) |
1317 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1318 |
#label: 'Copy' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1319 |
#value: #doCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1320 |
#activeHelpKey: #editCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1321 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1322 |
#shortcutKeyCharacter: #Copy |
525 | 1323 |
) |
1324 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1325 |
#label: 'Paste' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1326 |
#value: #doPaste |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1327 |
#activeHelpKey: #editPaste |
738 | 1328 |
#enabled: #valueOfCanPaste |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1329 |
#shortcutKeyCharacter: #Paste |
525 | 1330 |
) |
1331 |
#(#MenuItem |
|
686 | 1332 |
#label: 'Delete' |
1333 |
#value: #doDelete |
|
1334 |
#activeHelpKey: #editDelete |
|
1335 |
#enabled: #hasValidSelection |
|
1336 |
#shortcutKeyCharacter: #Delete |
|
1337 |
) |
|
1338 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1339 |
#label: '-' |
525 | 1340 |
) |
1341 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1342 |
#label: 'Move Up' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1343 |
#value: #doStepUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1344 |
#activeHelpKey: #editMoveUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1345 |
#enabled: #valueOfEnableMovingUpOrDown |
525 | 1346 |
) |
1347 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1348 |
#label: 'Move Down' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1349 |
#value: #doStepDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1350 |
#activeHelpKey: #editMoveDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1351 |
#enabled: #valueOfEnableMovingUpOrDown |
525 | 1352 |
) |
1353 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1354 |
#label: 'Move In' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1355 |
#value: #doStepIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1356 |
#activeHelpKey: #editMoveIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1357 |
#enabled: #valueOfEnableMovingIn |
525 | 1358 |
) |
1359 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1360 |
#label: 'Move Out' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1361 |
#value: #doStepOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1362 |
#activeHelpKey: #editMoveOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1363 |
#enabled: #valueOfEnableMovingOut |
525 | 1364 |
) |
1365 |
) nil |
|
1366 |
nil |
|
1367 |
) |
|
1368 |
! |
|
1369 |
||
1370 |
menuToolbar |
|
738 | 1371 |
"This resource specification was automatically generated |
1372 |
by the MenuEditor of ST/X." |
|
1373 |
||
1374 |
"Do not manually edit this!! If it is corrupted, |
|
1375 |
the MenuEditor may not be able to read the specification." |
|
525 | 1376 |
|
1377 |
" |
|
1378 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuToolbar |
|
1379 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuToolbar)) startUp |
|
1380 |
" |
|
1381 |
||
1382 |
<resource: #menu> |
|
1383 |
||
1384 |
^ |
|
1385 |
||
1386 |
#(#Menu |
|
1387 |
||
1388 |
#( |
|
1389 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1390 |
#label: 'New' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1391 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1392 |
#value: #doNew |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1393 |
#activeHelpKey: #fileNew |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1394 |
#labelImage: #(#ResourceRetriever nil #newIcon) |
525 | 1395 |
) |
1396 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1397 |
#label: 'Load' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1398 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1399 |
#value: #doLoad |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1400 |
#activeHelpKey: #fileLoad |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1401 |
#labelImage: #(#ResourceRetriever nil #loadIcon) |
525 | 1402 |
) |
1403 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1404 |
#label: 'Save' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1405 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1406 |
#value: #doSave |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1407 |
#activeHelpKey: #fileSave |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1408 |
#labelImage: #(#ResourceRetriever nil #saveIcon) |
525 | 1409 |
) |
1410 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1411 |
#label: '' |
525 | 1412 |
) |
1413 |
#(#MenuItem |
|
686 | 1414 |
#label: 'Cut' |
1415 |
#isButton: true |
|
1416 |
#value: #doCut |
|
1417 |
#activeHelpKey: #editCut |
|
1418 |
#enabled: #hasValidSelection |
|
1419 |
#labelImage: #(#ResourceRetriever nil #cutIcon) |
|
1420 |
) |
|
1421 |
#(#MenuItem |
|
1422 |
#label: 'Copy' |
|
1423 |
#isButton: true |
|
1424 |
#value: #doCopy |
|
1425 |
#activeHelpKey: #editCopy |
|
1426 |
#enabled: #hasValidSelection |
|
1427 |
#labelImage: #(#ResourceRetriever nil #copyIcon) |
|
1428 |
) |
|
1429 |
#(#MenuItem |
|
1430 |
#label: 'Paste' |
|
1431 |
#isButton: true |
|
1432 |
#value: #doPaste |
|
1433 |
#activeHelpKey: #editPaste |
|
738 | 1434 |
#enabled: #valueOfCanPaste |
686 | 1435 |
#labelImage: #(#ResourceRetriever nil #pasteIcon) |
1436 |
) |
|
1437 |
#(#MenuItem |
|
1438 |
#label: 'Delete' |
|
1439 |
#isButton: true |
|
1440 |
#value: #doDelete |
|
1441 |
#activeHelpKey: #editDelete |
|
1442 |
#enabled: #hasValidSelection |
|
1443 |
#labelImage: #(#ResourceRetriever nil #deleteIcon) |
|
1444 |
) |
|
1445 |
#(#MenuItem |
|
1446 |
#label: '' |
|
1447 |
) |
|
1448 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1449 |
#label: 'Add Item' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1450 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1451 |
#value: #doCreateItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1452 |
#activeHelpKey: #addMenuItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1453 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1454 |
#labelImage: #(#ResourceRetriever nil #menuItemImage) |
525 | 1455 |
) |
1456 |
#(#MenuItem |
|
669 |