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