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