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