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