author | tz |
Fri, 30 Jan 1998 15:59:44 +0100 | |
changeset 538 | 3d75219adb32 |
parent 533 | dde823aeca4c |
child 542 | 11be1353d34c |
permissions | -rw-r--r-- |
156 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
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 |
||
368 | 13 |
|
446 | 14 |
ToolApplicationModel subclass:#UIPainter |
287 | 15 |
instanceVariableNames:'treeView selectionPanel tabSelection specClass specSelector |
297 | 16 |
specSuperclass aspects layoutCanvas helpCanvas specCanvas |
17 |
transcript' |
|
446 | 18 |
classVariableNames:'' |
60 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-UIPainter' |
|
21 |
! |
|
22 |
||
222 | 23 |
SelectionInTreeView subclass:#TreeView |
491
c3af7854dbe8
image instance variables removed + release all widget icons while snap shoting
tz
parents:
490
diff
changeset
|
24 |
instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec' |
440 | 25 |
classVariableNames:'Images' |
222 | 26 |
poolDictionaries:'' |
27 |
privateIn:UIPainter |
|
28 |
! |
|
29 |
||
60 | 30 |
!UIPainter class methodsFor:'documentation'! |
31 |
||
156 | 32 |
copyright |
33 |
" |
|
34 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
35 |
All Rights Reserved |
|
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
44 |
||
45 |
! |
|
46 |
||
60 | 47 |
documentation |
48 |
" |
|
127 | 49 |
GUI-Builder: |
50 |
this class allows the user to build its own applications providing a graphical |
|
51 |
user interface to buildin components and to define the behavior of the components |
|
52 |
during runtime. The resulting specifications can be installed as methods on |
|
53 |
classes, typically subclasses of an ApplicationModel. These specifications |
|
54 |
are used by the UIBuilder to generate the application window and its component |
|
55 |
structues when open the application. |
|
60 | 56 |
|
57 |
[start with:] |
|
58 |
UIPainter open |
|
127 | 59 |
|
156 | 60 |
[author:] |
183 | 61 |
Claus Gittinger |
156 | 62 |
Claus Atzkern |
63 |
||
127 | 64 |
[see also:] |
65 |
UIBuilder |
|
66 |
ApplicationModel |
|
67 |
UISpecification |
|
60 | 68 |
" |
109 | 69 |
|
70 |
! ! |
|
71 |
||
72 |
!UIPainter class methodsFor:'instance creation'! |
|
73 |
||
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
74 |
openOnClass:aClass andSelector:aSelector |
282 | 75 |
"open up an interface builder, fetching a spec from aClass |
76 |
via some selector |
|
77 |
" |
|
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
78 |
^ self new openOnClass:aClass andSelector:aSelector |
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
79 |
! |
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
80 |
|
109 | 81 |
painter:aBuilderView |
282 | 82 |
"set the painter |
83 |
" |
|
109 | 84 |
|application| |
85 |
||
86 |
application := self new. |
|
87 |
application painter:aBuilderView. |
|
88 |
^ application open |
|
60 | 89 |
! ! |
90 |
||
87 | 91 |
!UIPainter class methodsFor:'ST-80 queries'! |
92 |
||
93 |
preferenceFor:aSymbol |
|
282 | 94 |
"ST-80 compatible; always returns false |
95 |
" |
|
87 | 96 |
^ false |
109 | 97 |
|
98 |
||
99 |
! ! |
|
100 |
||
446 | 101 |
!UIPainter class methodsFor:'accessing'! |
102 |
||
103 |
label |
|
104 |
||
105 |
^'GUI Builder' |
|
106 |
! ! |
|
107 |
||
193 | 108 |
!UIPainter class methodsFor:'help specs'! |
109 |
||
110 |
helpSpec |
|
111 |
"return a dictionary filled with helpKey -> helptext associations. |
|
295 | 112 |
These are used by the activeHelp tool." |
113 |
||
193 | 114 |
" |
295 | 115 |
UIHelpTool openOnClass:UIPainter |
116 |
" |
|
117 |
||
193 | 118 |
^ super helpSpec addPairsFrom:#( |
119 |
||
466 | 120 |
#accept |
498 | 121 |
'Writes back changes.' |
466 | 122 |
|
123 |
#alignSelectionBottom |
|
498 | 124 |
'Aligns selected widgets to the bottom edge of the dominant widget.' |
466 | 125 |
|
126 |
#alignSelectionCenterHor |
|
498 | 127 |
'Aligns selected widgets vertical to the center of the dominant widget.' |
466 | 128 |
|
129 |
#alignSelectionCenterVer |
|
498 | 130 |
'Aligns selected widgets horizontal to the center of the dominant widget.' |
466 | 131 |
|
132 |
#alignSelectionLeft |
|
498 | 133 |
'Aligns selected widgets to the left edge of the dominant widget.' |
466 | 134 |
|
135 |
#alignSelectionLeftAndRight |
|
498 | 136 |
'Aligns selected widgets to the right and left edge of the dominant widget.' |
466 | 137 |
|
138 |
#alignSelectionRight |
|
498 | 139 |
'Aligns selected widgets to the right edge of the dominant widget.' |
466 | 140 |
|
141 |
#alignSelectionTop |
|
498 | 142 |
'Aligns selected widgets to the top edge of the dominant widget.' |
466 | 143 |
|
144 |
#alignSelectionTopAndBottom |
|
498 | 145 |
'Aligns selected widgets to the top and bottom edge of the dominant widget.' |
466 | 146 |
|
147 |
#cancel |
|
498 | 148 |
'Rereads specification and layout.' |
466 | 149 |
|
150 |
#centerSelectionHor |
|
498 | 151 |
'Centers widgets horizontal to their top widget.' |
466 | 152 |
|
153 |
#centerSelectionVer |
|
498 | 154 |
'Centers vertical horizontal in contained view.' |
466 | 155 |
|
156 |
#copyExtent |
|
498 | 157 |
'Copies extent of the selected widget.' |
466 | 158 |
|
159 |
#copyLayout |
|
498 | 160 |
'Copies layout of the selected widget.' |
161 |
||
162 |
#fileLoad |
|
163 |
'Opens dialog to load an interface from a class.' |
|
164 |
||
533 | 165 |
#fileLoadSubspec |
166 |
'Opens dialog to load an subspec interface from a class.' |
|
167 |
||
498 | 168 |
#fileNew |
169 |
'Creates new interface.' |
|
170 |
||
171 |
#filePickAnInterface |
|
172 |
'Changes the cursor for moving it over another view to load its interface.' |
|
173 |
||
174 |
#fileSave |
|
175 |
'Saves current interface.' |
|
295 | 176 |
|
282 | 177 |
#galleryShown |
498 | 178 |
'Shows or hide gallery view.' |
282 | 179 |
|
466 | 180 |
#menuAlignment |
498 | 181 |
'Provides a set of alignment operation on the current selected widgets.' |
282 | 182 |
|
466 | 183 |
#moveSelectionDown |
498 | 184 |
'Moves selected widgets down.' |
466 | 185 |
|
186 |
#moveSelectionLeft |
|
498 | 187 |
'Moves selected widgets out of parent widget.' |
287 | 188 |
|
189 |
#moveSelectionRight |
|
498 | 190 |
'Moves selected widgets into next widget as child.' |
287 | 191 |
|
466 | 192 |
#moveSelectionUp |
498 | 193 |
'Moves selected widgets up.' |
287 | 194 |
|
195 |
#painterShown |
|
498 | 196 |
'Shows or hide painter view.' |
287 | 197 |
|
466 | 198 |
#pasteBuffer |
498 | 199 |
'Pastes widgets at current mouse position.' |
466 | 200 |
|
287 | 201 |
#pasteExtent |
498 | 202 |
'Changes extent of all selected widgets to the last copied extent.' |
287 | 203 |
|
204 |
#pasteHeight |
|
498 | 205 |
'Changes height of all selected widgets to the last copied extent height.' |
287 | 206 |
|
207 |
#pasteLayout |
|
498 | 208 |
'Changes layout of all selected widgets to the last copied layout.' |
287 | 209 |
|
466 | 210 |
#pasteWidth |
498 | 211 |
'Changes width of all selected widgets to the last copied extent width.' |
466 | 212 |
|
213 |
#pasteWithLayout |
|
498 | 214 |
'Pastes widgets without changing their layouts.' |
466 | 215 |
|
216 |
#setToDefaultExtent |
|
498 | 217 |
'Sets selected widgets to their default extent.' |
466 | 218 |
|
219 |
#setToDefaultHeight |
|
498 | 220 |
'Sets selected widgets to their default height.' |
466 | 221 |
|
222 |
#setToDefaultWidth |
|
498 | 223 |
'Sets selected widgets to their default width.' |
287 | 224 |
|
225 |
#spreadSelectionHor |
|
498 | 226 |
'Sets horizontal spaces between selected widgets as the same.' |
287 | 227 |
|
466 | 228 |
#spreadSelectionVer |
498 | 229 |
'Sets vertical spaces between selected widgets as the same.' |
230 |
||
231 |
#testStartApplication |
|
232 |
'Starts current application on loaded interface.' |
|
194 | 233 |
|
193 | 234 |
) |
235 |
! ! |
|
236 |
||
297 | 237 |
!UIPainter class methodsFor:'helpers'! |
238 |
||
368 | 239 |
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed |
297 | 240 |
"converts a string to a string collection with maximum characters |
241 |
per line |
|
242 |
" |
|
243 |
|stream |
|
244 |
max "{ Class:SmallInteger }" |
|
245 |
size "{ Class:SmallInteger }" |
|
246 |
start "{ Class:SmallInteger }" |
|
247 |
stop "{ Class:SmallInteger }" |
|
248 |
cpySz "{ Class:SmallInteger }" |
|
249 |
lnSz "{ Class:SmallInteger }"| |
|
250 |
||
251 |
maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1] |
|
252 |
ifTrue:[max := 20]. |
|
253 |
||
254 |
(size := aString size) <= max ifTrue:[ |
|
255 |
^ aString |
|
256 |
]. |
|
257 |
start := 1. |
|
258 |
lnSz := 0. |
|
259 |
stream := (String new:size) writeStream. |
|
260 |
||
261 |
[start <= size] whileTrue:[ |
|
262 |
(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[ |
|
263 |
^ stream contents |
|
264 |
]. |
|
368 | 265 |
(aString at:start) == $\ ifTrue:[ |
266 |
skipLineFeed ifFalse:[ |
|
267 |
stream nextPut:$\ |
|
268 |
]. |
|
269 |
start := start + 1. |
|
270 |
stream cr. |
|
271 |
start := start + 1. |
|
272 |
lnSz := 0. |
|
273 |
] ifFalse:[ |
|
274 |
(stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[ |
|
275 |
stop := size + 1 |
|
276 |
]. |
|
277 |
(aString at:(stop - 1)) == $\ ifTrue:[ |
|
278 |
stop := stop - 1 |
|
279 |
]. |
|
280 |
cpySz := stop - start. |
|
281 |
||
282 |
lnSz == 0 ifFalse:[ |
|
283 |
(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr. lnSz := cpySz ] |
|
284 |
ifFalse:[stream space. lnSz := lnSz + 1] |
|
285 |
] ifTrue:[ |
|
286 |
lnSz := cpySz |
|
287 |
]. |
|
288 |
stream nextPutAll:aString startingAt:start to:(stop - 1). |
|
289 |
start := stop. |
|
290 |
] |
|
297 | 291 |
]. |
292 |
^ stream contents |
|
293 |
! ! |
|
294 |
||
60 | 295 |
!UIPainter class methodsFor:'interface specs'! |
296 |
||
366 | 297 |
gridParametersSpec |
298 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
299 |
||
300 |
"do not manually edit this - the painter/builder may not be able to |
|
301 |
handle the specification if its corrupted." |
|
302 |
||
303 |
" |
|
304 |
UIPainter new openOnClass:UIPainter andSelector:#gridParametersSpec |
|
305 |
UIPainter new openInterface:#gridParametersSpec |
|
306 |
" |
|
307 |
||
308 |
<resource: #canvas> |
|
309 |
||
310 |
^ |
|
446 | 311 |
|
366 | 312 |
#(#FullSpec |
313 |
#'window:' |
|
314 |
#(#WindowSpec |
|
527 | 315 |
#'name:' 'GUI Builder' |
316 |
#'layout:' #(#LayoutFrame 44 0 416 0 325 0 613 0) |
|
317 |
#'label:' 'GUI Builder' |
|
366 | 318 |
#'min:' #(#Point 10 10) |
319 |
#'max:' #(#Point 1280 1024) |
|
527 | 320 |
#'bounds:' #(#Rectangle 44 416 326 614) |
446 | 321 |
#'usePreferredExtent:' false |
366 | 322 |
) |
323 |
#'component:' |
|
324 |
#(#SpecCollection |
|
325 |
#'collection:' |
|
326 |
#( |
|
527 | 327 |
#(#FramedBoxSpec |
328 |
#'name:' 'framedBox' |
|
329 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
330 |
#'component:' |
|
331 |
#(#SpecCollection |
|
332 |
#'collection:' |
|
333 |
#( |
|
334 |
#(#CheckBoxSpec |
|
335 |
#'name:' 'show' |
|
336 |
#'layout:' #(#Point 23 24) |
|
337 |
#'model:' #showGrid |
|
338 |
#'label:' 'Show grid' |
|
339 |
) |
|
340 |
#(#CheckBoxSpec |
|
341 |
#'name:' 'align' |
|
342 |
#'layout:' #(#Point 23 52) |
|
343 |
#'model:' #alignToGrid |
|
344 |
#'label:' 'Align to Grid' |
|
345 |
) |
|
346 |
#(#LabelSpec |
|
347 |
#'name:' 'hrzLabel' |
|
348 |
#'layout:' #(#AlignmentOrigin 148 0 99 0 1 0.5) |
|
349 |
#'label:' 'Horizontal Pixels:' |
|
350 |
#'adjust:' #right |
|
351 |
#'resizeForLabel:' true |
|
352 |
) |
|
353 |
#(#InputFieldSpec |
|
354 |
#'name:' 'hrzField' |
|
355 |
#'layout:' #(#LayoutFrame 154 0 87 0 207 0 109 0) |
|
356 |
#'model:' #hspace |
|
357 |
#'type:' #numberOrNil |
|
358 |
) |
|
359 |
#(#LabelSpec |
|
360 |
#'name:' 'vrtLabel' |
|
361 |
#'layout:' #(#AlignmentOrigin 149 0 124 0 1 0.5) |
|
362 |
#'label:' 'Vertical Pixels:' |
|
363 |
#'adjust:' #right |
|
364 |
#'resizeForLabel:' true |
|
365 |
) |
|
366 |
#(#InputFieldSpec |
|
367 |
#'name:' 'vrtField' |
|
368 |
#'layout:' #(#LayoutFrame 154 0 112 0 207 0 134 0) |
|
369 |
#'model:' #vspace |
|
370 |
#'type:' #numberOrNil |
|
371 |
) |
|
372 |
) |
|
373 |
) |
|
374 |
#'label:' 'Grid Parameter' |
|
375 |
#'labelPosition:' #topLeft |
|
366 | 376 |
) |
446 | 377 |
#(#UISubSpecification |
378 |
#'name:' 'uISubSpecifica1' |
|
379 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
380 |
#'majorKey:' #ToolApplicationModel |
|
381 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
366 | 382 |
) |
383 |
) |
|
384 |
) |
|
385 |
) |
|
386 |
! |
|
387 |
||
222 | 388 |
nameAndSelectorSpec |
389 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
390 |
||
391 |
"do not manually edit this - the painter/builder may not be able to |
|
392 |
handle the specification if its corrupted." |
|
393 |
||
394 |
" |
|
395 |
UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec |
|
396 |
UIPainter new openInterface:#nameAndSelectorSpec |
|
397 |
" |
|
398 |
||
399 |
<resource: #canvas> |
|
400 |
||
401 |
^ |
|
402 |
||
403 |
#(#FullSpec |
|
404 |
#'window:' |
|
405 |
#(#WindowSpec |
|
527 | 406 |
#'name:' 'GUI Builder' |
538 | 407 |
#'layout:' #(#LayoutFrame 238 0 270 0 584 0 429 0) |
527 | 408 |
#'label:' 'GUI Builder' |
446 | 409 |
#'min:' #(#Point 10 10) |
410 |
#'max:' #(#Point 1152 900) |
|
538 | 411 |
#'bounds:' #(#Rectangle 238 270 585 430) |
446 | 412 |
#'usePreferredExtent:' false |
222 | 413 |
) |
414 |
#'component:' |
|
415 |
#(#SpecCollection |
|
416 |
#'collection:' |
|
417 |
#( |
|
527 | 418 |
#(#FramedBoxSpec |
419 |
#'name:' 'framedBox1' |
|
420 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
421 |
#'component:' |
|
422 |
#(#SpecCollection |
|
423 |
#'collection:' |
|
424 |
#( |
|
425 |
#(#LabelSpec |
|
426 |
#'name:' 'selectorLabel' |
|
538 | 427 |
#'layout:' #(#AlignmentOrigin 77 0.11 39 0 1 0.5) |
527 | 428 |
#'label:' 'Selector:' |
429 |
#'adjust:' #right |
|
430 |
#'resizeForLabel:' true |
|
431 |
) |
|
432 |
#(#InputFieldSpec |
|
433 |
#'name:' 'methodNameField' |
|
538 | 434 |
#'layout:' #(#LayoutFrame 80 0.11 28 0 14 1.0 50 0) |
527 | 435 |
#'tabable:' true |
436 |
#'model:' #methodNameChannel |
|
437 |
) |
|
438 |
#(#LabelSpec |
|
439 |
#'name:' 'classLabel' |
|
538 | 440 |
#'layout:' #(#AlignmentOrigin 77 0.11 64 0 1 0.5) |
527 | 441 |
#'label:' 'Class:' |
442 |
#'adjust:' #right |
|
443 |
#'resizeForLabel:' true |
|
444 |
) |
|
445 |
#(#InputFieldSpec |
|
446 |
#'name:' 'classNameField' |
|
538 | 447 |
#'layout:' #(#LayoutFrame 80 0.11 53 0 14 1.0 75 0) |
527 | 448 |
#'tabable:' true |
449 |
#'model:' #classNameChannel |
|
450 |
) |
|
451 |
#(#LabelSpec |
|
452 |
#'name:' 'superClassLabel' |
|
538 | 453 |
#'layout:' #(#AlignmentOrigin 77 0.11 89 0 1 0.5) |
527 | 454 |
#'label:' 'Superclass:' |
455 |
#'adjust:' #right |
|
456 |
#'resizeForLabel:' true |
|
457 |
) |
|
458 |
#(#ComboBoxSpec |
|
459 |
#'name:' 'superclassNameComboBox' |
|
538 | 460 |
#'layout:' #(#LayoutFrame 80 0.11 78 0 14 1.0 100 0) |
527 | 461 |
#'tabable:' true |
462 |
#'model:' #superclassNameChannel |
|
463 |
#'comboList:' #superclassNameDefaults |
|
464 |
) |
|
465 |
) |
|
466 |
) |
|
467 |
#'label:' 'Class and selector for interface' |
|
468 |
#'labelPosition:' #topLeft |
|
222 | 469 |
) |
446 | 470 |
#(#UISubSpecification |
471 |
#'name:' 'uISubSpecifica1' |
|
472 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
473 |
#'majorKey:' #ToolApplicationModel |
|
474 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
222 | 475 |
) |
476 |
) |
|
477 |
) |
|
478 |
) |
|
479 |
! |
|
480 |
||
481 |
windowSpec |
|
482 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
483 |
||
484 |
"do not manually edit this - the painter/builder may not be able to |
|
485 |
handle the specification if its corrupted." |
|
486 |
||
487 |
" |
|
488 |
UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
|
489 |
UIPainter new openInterface:#windowSpec |
|
490 |
" |
|
491 |
"UIPainter open" |
|
492 |
||
493 |
<resource: #canvas> |
|
494 |
||
495 |
^ |
|
496 |
||
497 |
#(#FullSpec |
|
498 |
#'window:' |
|
499 |
#(#WindowSpec |
|
282 | 500 |
#'name:' 'Tree-View' |
512
1648b541aab5
made it a bit larger for all notbook specs to fit
Claus Gittinger <cg@exept.de>
parents:
498
diff
changeset
|
501 |
#'layout:' #(#LayoutFrame 18 0 64 0 570 0 589 0) |
222 | 502 |
#'label:' 'Tree-View' |
282 | 503 |
#'min:' #(#Point 10 10) |
504 |
#'max:' #(#Point 1160 870) |
|
512
1648b541aab5
made it a bit larger for all notbook specs to fit
Claus Gittinger <cg@exept.de>
parents:
498
diff
changeset
|
505 |
#'bounds:' #(#Rectangle 18 64 571 590) |
446 | 506 |
#'menu:' #menu |
375 | 507 |
#'usePreferredExtent:' false |
222 | 508 |
) |
509 |
#'component:' |
|
510 |
#(#SpecCollection |
|
511 |
#'collection:' |
|
512 |
#( |
|
513 |
#(#MenuPanelSpec |
|
446 | 514 |
#'name:' 'menuToolbarView' |
515 |
#'layout:' #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0) |
|
222 | 516 |
#'tabable:' true |
446 | 517 |
#'menu:' #menuToolbar |
518 |
#'showSeparatingLines:' true |
|
222 | 519 |
) |
297 | 520 |
#(#VariableVerticalPanelSpec |
521 |
#'name:' 'vpanel' |
|
448 | 522 |
#'layout:' #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -22 1.0) |
297 | 523 |
#'component:' |
524 |
#(#SpecCollection |
|
525 |
#'collection:' |
|
526 |
#( |
|
527 |
#(#VariableHorizontalPanelSpec |
|
528 |
#'name:' 'hpanel' |
|
529 |
#'component:' |
|
530 |
#(#SpecCollection |
|
531 |
#'collection:' |
|
532 |
#( |
|
533 |
#(#ArbitraryComponentSpec |
|
534 |
#'name:' 'treeView' |
|
375 | 535 |
#'tabable:' true |
446 | 536 |
#'menu:' #menuEdit |
297 | 537 |
#'hasHorizontalScrollBar:' true |
538 |
#'hasVerticalScrollBar:' true |
|
539 |
#'miniScrollerHorizontal:' true |
|
540 |
#'miniScrollerVertical:' true |
|
541 |
#'component:' #treeView |
|
542 |
#'hasBorder:' false |
|
543 |
) |
|
544 |
#(#ViewSpec |
|
545 |
#'name:' 'specHolderView' |
|
546 |
#'component:' |
|
547 |
#(#SpecCollection |
|
548 |
#'collection:' |
|
549 |
#( |
|
550 |
#(#NoteBookViewSpec |
|
551 |
#'name:' 'noteBook' |
|
446 | 552 |
#'layout:' #(#LayoutFrame 0 0.0 26 0.0 0 1.0 -30 1.0) |
297 | 553 |
#'enableChannel:' #enableChannel |
554 |
#'tabable:' true |
|
345 | 555 |
#'model:' #tabModel |
297 | 556 |
#'menu:' #tabList |
345 | 557 |
#'style:' #(#FontDescription #helvetica #medium #roman 10) |
297 | 558 |
#'canvas:' #noteBookView |
559 |
) |
|
560 |
#(#HorizontalPanelViewSpec |
|
561 |
#'name:' 'modifyPanel' |
|
562 |
#'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0) |
|
563 |
#'component:' |
|
564 |
#(#SpecCollection |
|
565 |
#'collection:' |
|
566 |
#( |
|
567 |
#(#ActionButtonSpec |
|
568 |
#'name:' 'cancelButton' |
|
569 |
#'activeHelpKey:' #cancel |
|
446 | 570 |
#'label:' 'Cancel' |
297 | 571 |
#'tabable:' true |
572 |
#'model:' #cancel |
|
573 |
#'enableChannel:' #modifiedChannel |
|
527 | 574 |
#'extent:' #(#Point 79 24) |
297 | 575 |
) |
576 |
#(#ActionButtonSpec |
|
577 |
#'name:' 'acceptButton' |
|
578 |
#'activeHelpKey:' #accept |
|
446 | 579 |
#'label:' 'OK' |
297 | 580 |
#'tabable:' true |
581 |
#'model:' #accept |
|
582 |
#'enableChannel:' #modifiedChannel |
|
527 | 583 |
#'extent:' #(#Point 79 24) |
297 | 584 |
) |
585 |
) |
|
586 |
) |
|
587 |
#'horizontalLayout:' #fitSpace |
|
588 |
#'verticalLayout:' #fitSpace |
|
589 |
#'horizontalSpace:' 3 |
|
590 |
#'verticalSpace:' 3 |
|
591 |
) |
|
446 | 592 |
#(#HorizontalPanelViewSpec |
593 |
#'name:' 'panelViewButtons' |
|
594 |
#'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 24 0) |
|
595 |
#'component:' |
|
596 |
#(#SpecCollection |
|
597 |
#'collection:' |
|
598 |
#( |
|
599 |
#(#ArrowButtonSpec |
|
600 |
#'name:' 'moveLeft' |
|
601 |
#'activeHelpKey:' #moveSelectionLeft |
|
602 |
#'tabable:' true |
|
603 |
#'model:' #moveSelectionLeft |
|
604 |
#'enableChannel:' #canMoveOrAlignSelection |
|
605 |
#'isTriggerOnDown:' true |
|
606 |
#'direction:' #left |
|
607 |
#'extent:' #(#Point 22 22) |
|
608 |
) |
|
609 |
#(#ArrowButtonSpec |
|
610 |
#'name:' 'moveRight' |
|
611 |
#'activeHelpKey:' #moveSelectionRight |
|
612 |
#'model:' #moveSelectionRight |
|
613 |
#'enableChannel:' #canMoveOrAlignSelection |
|
614 |
#'isTriggerOnDown:' true |
|
615 |
#'direction:' #right |
|
616 |
#'extent:' #(#Point 22 22) |
|
617 |
) |
|
618 |
#(#ArrowButtonSpec |
|
619 |
#'name:' 'moveDown' |
|
620 |
#'activeHelpKey:' #moveSelectionDown |
|
621 |
#'model:' #moveSelectionDown |
|
622 |
#'enableChannel:' #canMoveOrAlignSelection |
|
623 |
#'isTriggerOnDown:' true |
|
624 |
#'direction:' #down |
|
625 |
#'extent:' #(#Point 22 22) |
|
626 |
) |
|
627 |
#(#ArrowButtonSpec |
|
628 |
#'name:' 'moveUp' |
|
629 |
#'activeHelpKey:' #moveSelectionUp |
|
630 |
#'model:' #moveSelectionUp |
|
631 |
#'enableChannel:' #canMoveOrAlignSelection |
|
632 |
#'isTriggerOnDown:' true |
|
633 |
#'direction:' #up |
|
634 |
#'extent:' #(#Point 22 22) |
|
635 |
) |
|
636 |
) |
|
637 |
) |
|
638 |
#'level:' 1 |
|
639 |
#'horizontalLayout:' #left |
|
640 |
#'verticalLayout:' #fit |
|
641 |
#'horizontalSpace:' 4 |
|
642 |
#'verticalSpace:' 4 |
|
643 |
) |
|
297 | 644 |
) |
645 |
) |
|
646 |
#'borderWidth:' 1 |
|
647 |
) |
|
648 |
) |
|
649 |
) |
|
650 |
#'level:' 1 |
|
651 |
#'handles:' #(#Any 0.329435 1.0) |
|
652 |
) |
|
653 |
#(#TextEditorSpec |
|
654 |
#'name:' 'Transcript' |
|
655 |
#'hasHorizontalScrollBar:' true |
|
656 |
#'hasVerticalScrollBar:' true |
|
657 |
#'miniScrollerHorizontal:' true |
|
658 |
#'miniScrollerVertical:' true |
|
659 |
) |
|
660 |
) |
|
661 |
) |
|
662 |
#'handles:' #(#Any 0.880597 1.0) |
|
663 |
) |
|
486 | 664 |
#(#UISubSpecification |
665 |
#'name:' 'infoBarSubSpec' |
|
666 |
#'layout:' #(#LayoutFrame 0 0.0 -22 1 0 1.0 0 1.0) |
|
667 |
#'majorKey:' #ToolApplicationModel |
|
533 | 668 |
#'minorKey:' #windowSpecForInfoBarWithClock |
448 | 669 |
) |
222 | 670 |
) |
671 |
) |
|
672 |
) |
|
673 |
! ! |
|
674 |
||
675 |
!UIPainter class methodsFor:'menu specs'! |
|
676 |
||
446 | 677 |
menu |
217 | 678 |
"this window spec was automatically generated by the ST/X MenuEditor" |
679 |
||
680 |
"do not manually edit this - the builder may not be able to |
|
681 |
handle the specification if its corrupted." |
|
682 |
||
683 |
" |
|
446 | 684 |
MenuEditor new openOnClass:UIPainter andSelector:#menu |
685 |
(Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp |
|
686 |
" |
|
687 |
||
688 |
<resource: #menu> |
|
689 |
||
690 |
^ |
|
691 |
||
692 |
#(#Menu |
|
693 |
||
694 |
#( |
|
695 |
#(#MenuItem |
|
696 |
#'label:' 'About' |
|
697 |
#'labelImage:' #(#ResourceRetriever nil #icon) |
|
698 |
#'submenuChannel:' #menuAbout |
|
699 |
) |
|
700 |
#(#MenuItem |
|
701 |
#'label:' 'File' |
|
702 |
#'value:' #file |
|
703 |
#'enabled:' #enableChannel |
|
704 |
#'submenu:' |
|
705 |
#(#Menu |
|
706 |
||
707 |
#( |
|
708 |
#(#MenuItem |
|
709 |
#'label:' 'New' |
|
710 |
#'value:' #doNew |
|
498 | 711 |
#'activeHelpKey:' #fileNew |
446 | 712 |
) |
713 |
#(#MenuItem |
|
714 |
#'label:' '-' |
|
715 |
) |
|
716 |
#(#MenuItem |
|
498 | 717 |
#'label:' 'Load...' |
446 | 718 |
#'value:' #doFromClass |
498 | 719 |
#'activeHelpKey:' #fileLoad |
446 | 720 |
) |
721 |
#(#MenuItem |
|
533 | 722 |
#'label:' 'Load Subspec...' |
723 |
#'value:' #loadSubspec |
|
724 |
#'activeHelpKey:' #fileLoadSubspec |
|
725 |
) |
|
726 |
#(#MenuItem |
|
446 | 727 |
#'label:' '-' |
728 |
) |
|
729 |
#(#MenuItem |
|
466 | 730 |
#'label:' 'Save' |
731 |
#'value:' #doInstallSpec |
|
498 | 732 |
#'activeHelpKey:' #fileSave |
446 | 733 |
) |
734 |
#(#MenuItem |
|
735 |
#'label:' '-' |
|
736 |
) |
|
737 |
#(#MenuItem |
|
466 | 738 |
#'label:' 'Define Class And Selector...' |
739 |
#'value:' #defineClassAndSelector |
|
446 | 740 |
) |
741 |
#(#MenuItem |
|
742 |
#'label:' '-' |
|
743 |
) |
|
744 |
#(#MenuItem |
|
745 |
#'label:' 'Create Aspect Methods' |
|
746 |
#'value:' #doInstallAspects |
|
747 |
#'enabled:' #hasSpecClass |
|
748 |
) |
|
749 |
#(#MenuItem |
|
750 |
#'label:' 'Create Hook Methods' |
|
751 |
#'value:' #doInstallHooks |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
752 |
#'enabled:' #hasSpecClass |
446 | 753 |
) |
754 |
#(#MenuItem |
|
755 |
#'label:' '-' |
|
756 |
) |
|
757 |
#(#MenuItem |
|
498 | 758 |
#'label:' 'Pick An Interface' |
759 |
#'value:' #doPickAView |
|
760 |
#'activeHelpKey:' #filePickAnInterface |
|
761 |
) |
|
762 |
#(#MenuItem |
|
763 |
#'label:' '-' |
|
764 |
) |
|
765 |
#(#MenuItem |
|
766 |
#'label:' 'Show Interface Spec' |
|
446 | 767 |
#'value:' #doWindowSpec |
768 |
) |
|
769 |
#(#MenuItem |
|
498 | 770 |
#'label:' 'Browse Interface Class' |
446 | 771 |
#'value:' #doBrowseAppClass |
772 |
#'enabled:' #hasSpecClass |
|
773 |
) |
|
774 |
#(#MenuItem |
|
775 |
#'label:' 'Browse Aspect Methods' |
|
776 |
#'value:' #doBrowseAspectMethods |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
777 |
#'enabled:' #hasSpecClass |
446 | 778 |
) |
779 |
#(#MenuItem |
|
780 |
#'label:' '-' |
|
781 |
) |
|
782 |
#(#MenuItem |
|
783 |
#'label:' 'Exit' |
|
784 |
#'value:' #closeRequest |
|
498 | 785 |
#'activeHelpKey:' #fileExit |
446 | 786 |
) |
787 |
) nil |
|
788 |
nil |
|
789 |
) |
|
790 |
) |
|
791 |
#(#MenuItem |
|
792 |
#'label:' 'Edit' |
|
793 |
#'submenuChannel:' #menuEdit |
|
794 |
) |
|
795 |
#(#MenuItem |
|
796 |
#'label:' 'Align' |
|
797 |
#'submenuChannel:' #menuAlign |
|
798 |
) |
|
799 |
#(#MenuItem |
|
800 |
#'label:' 'Test' |
|
801 |
#'submenu:' |
|
802 |
#(#Menu |
|
803 |
||
804 |
#( |
|
805 |
#(#MenuItem |
|
466 | 806 |
#'label:' 'Start Application' |
807 |
#'value:' #doStartApplication |
|
498 | 808 |
#'activeHelpKey:' #testStartApplication |
466 | 809 |
) |
810 |
#(#MenuItem |
|
811 |
#'label:' '-' |
|
812 |
) |
|
813 |
#(#MenuItem |
|
446 | 814 |
#'label:' 'Geometry Test Mode' |
815 |
#'indication:' #'testMode:' |
|
816 |
) |
|
817 |
) nil |
|
818 |
nil |
|
819 |
) |
|
820 |
) |
|
821 |
#(#MenuItem |
|
822 |
#'label:' 'Settings' |
|
823 |
#'submenu:' |
|
824 |
#(#Menu |
|
825 |
||
826 |
#( |
|
827 |
#(#MenuItem |
|
828 |
#'label:' 'Undo Manager' |
|
829 |
#'value:' #openUndoMenu |
|
830 |
) |
|
831 |
#(#MenuItem |
|
832 |
#'label:' '-' |
|
833 |
) |
|
834 |
#(#MenuItem |
|
835 |
#'label:' 'Grid Manager' |
|
836 |
#'value:' #gridMenu |
|
837 |
) |
|
838 |
) nil |
|
839 |
nil |
|
840 |
) |
|
841 |
) |
|
842 |
#(#MenuItem |
|
843 |
#'label:' 'History' |
|
844 |
#'submenuChannel:' #menuHistory |
|
845 |
) |
|
846 |
#(#MenuItem |
|
498 | 847 |
#'label:' 'Help' |
848 |
#'submenuChannel:' #menuHelp |
|
849 |
) |
|
850 |
#(#MenuItem |
|
446 | 851 |
#'label:' '' |
852 |
) |
|
853 |
#(#MenuItem |
|
854 |
#'label:' 'Gallery' |
|
855 |
#'indication:' #galleryShown |
|
856 |
) |
|
857 |
#(#MenuItem |
|
858 |
#'label:' 'Canvas' |
|
859 |
#'indication:' #painterShown |
|
860 |
) |
|
861 |
) nil |
|
862 |
nil |
|
863 |
) |
|
864 |
! |
|
865 |
||
866 |
menuAlign |
|
867 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
868 |
||
869 |
"do not manually edit this - the builder may not be able to |
|
870 |
handle the specification if its corrupted." |
|
871 |
||
872 |
" |
|
873 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
874 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 875 |
" |
876 |
||
877 |
<resource: #menu> |
|
878 |
||
879 |
^ |
|
880 |
||
881 |
#(#Menu |
|
882 |
||
883 |
#( |
|
884 |
#(#MenuItem |
|
446 | 885 |
#'label:' 'Align Left' |
886 |
#'value:' #alignSelectionLeft |
|
887 |
#'activeHelpKey:' #alignSelectionLeft |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
888 |
#'enabled:' #hasSelection |
446 | 889 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignL 'Align Left') |
890 |
) |
|
891 |
#(#MenuItem |
|
892 |
#'label:' 'Align Right' |
|
893 |
#'value:' #alignSelectionRight |
|
894 |
#'activeHelpKey:' #alignSelectionRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
895 |
#'enabled:' #hasSelection |
446 | 896 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignR 'Align Right') |
897 |
) |
|
898 |
#(#MenuItem |
|
899 |
#'label:' 'Align Left & Right' |
|
900 |
#'value:' #alignSelectionLeftAndRight |
|
901 |
#'activeHelpKey:' #alignSelectionLeftAndRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
902 |
#'enabled:' #hasSelection |
446 | 903 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignLR 'Align Left & Right') |
904 |
) |
|
905 |
#(#MenuItem |
|
906 |
#'label:' 'Align top' |
|
907 |
#'value:' #alignSelectionTop |
|
908 |
#'activeHelpKey:' #alignSelectionTop |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
909 |
#'enabled:' #hasSelection |
446 | 910 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignT 'Align top') |
911 |
) |
|
912 |
#(#MenuItem |
|
913 |
#'label:' 'Align Bottom' |
|
914 |
#'value:' #alignSelectionBottom |
|
915 |
#'activeHelpKey:' #alignSelectionBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
916 |
#'enabled:' #hasSelection |
446 | 917 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignB 'Align Bottom') |
918 |
) |
|
919 |
#(#MenuItem |
|
920 |
#'label:' 'Align Top & Bottom' |
|
921 |
#'value:' #alignSelectionTopAndBottom |
|
922 |
#'activeHelpKey:' #alignSelectionTopAndBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
923 |
#'enabled:' #hasSelection |
446 | 924 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignTB 'Align Top & Bottom') |
925 |
) |
|
926 |
#(#MenuItem |
|
927 |
#'label:' 'Align Centered Horizontal' |
|
928 |
#'value:' #alignSelectionCenterHor |
|
929 |
#'activeHelpKey:' #alignSelectionCenterHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
930 |
#'enabled:' #hasSelection |
446 | 931 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterH 'Align Centered Horizontal') |
932 |
) |
|
933 |
#(#MenuItem |
|
934 |
#'label:' 'Align Centered Vertical' |
|
935 |
#'value:' #alignSelectionCenterVer |
|
936 |
#'activeHelpKey:' #alignSelectionCenterVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
937 |
#'enabled:' #hasSelection |
446 | 938 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterV 'Align Centered Vertical') |
939 |
) |
|
940 |
#(#MenuItem |
|
941 |
#'label:' '-' |
|
942 |
) |
|
943 |
#(#MenuItem |
|
944 |
#'label:' 'Spread Horizontal' |
|
945 |
#'value:' #spreadSelectionHor |
|
946 |
#'activeHelpKey:' #spreadSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
947 |
#'enabled:' #hasSelection |
446 | 948 |
) |
949 |
#(#MenuItem |
|
950 |
#'label:' 'Spread Vertical' |
|
951 |
#'value:' #spreadSelectionVer |
|
952 |
#'activeHelpKey:' #spreadSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
953 |
#'enabled:' #hasSelection |
446 | 954 |
) |
955 |
#(#MenuItem |
|
956 |
#'label:' '-' |
|
957 |
) |
|
958 |
#(#MenuItem |
|
959 |
#'label:' 'Center Horizontal In Frame' |
|
960 |
#'value:' #centerSelectionHor |
|
961 |
#'activeHelpKey:' #centerSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
962 |
#'enabled:' #hasSelection |
446 | 963 |
) |
964 |
#(#MenuItem |
|
965 |
#'label:' 'Center Vertical In Frame' |
|
966 |
#'value:' #centerSelectionVer |
|
967 |
#'activeHelpKey:' #centerSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
968 |
#'enabled:' #hasSelection |
446 | 969 |
) |
970 |
) nil |
|
971 |
nil |
|
972 |
) |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
973 |
|
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
974 |
"Modified: / 27.1.1998 / 21:27:33 / cg" |
446 | 975 |
! |
976 |
||
977 |
menuEdit |
|
978 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
979 |
||
980 |
"do not manually edit this - the builder may not be able to |
|
981 |
handle the specification if its corrupted." |
|
982 |
||
983 |
" |
|
984 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
985 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
986 |
" |
|
987 |
||
988 |
<resource: #menu> |
|
989 |
||
990 |
^ |
|
991 |
||
992 |
#(#Menu |
|
993 |
||
994 |
#( |
|
995 |
#(#MenuItem |
|
996 |
#'label:' 'Cut' |
|
997 |
#'value:' #deleteSelection |
|
498 | 998 |
#'activeHelpKey:' #editCut |
446 | 999 |
#'enabled:' #hasSelection |
1000 |
#'shortcutKeyCharacter:' #Cut |
|
1001 |
) |
|
1002 |
#(#MenuItem |
|
1003 |
#'label:' 'Copy' |
|
1004 |
#'value:' #copySelection |
|
498 | 1005 |
#'activeHelpKey:' #editCopy |
446 | 1006 |
#'enabled:' #hasSelection |
1007 |
#'shortcutKeyCharacter:' #Copy |
|
1008 |
) |
|
1009 |
#(#MenuItem |
|
1010 |
#'label:' 'Paste' |
|
1011 |
#'nameKey:' #paste |
|
1012 |
#'value:' #paste |
|
498 | 1013 |
#'activeHelpKey:' #editPaste |
446 | 1014 |
#'enabled:' #canPaste |
1015 |
#'submenu:' |
|
1016 |
#(#Menu |
|
1017 |
||
1018 |
#( |
|
1019 |
#(#MenuItem |
|
1020 |
#'label:' 'Paste' |
|
1021 |
#'value:' #pasteBuffer |
|
1022 |
#'activeHelpKey:' #pasteBuffer |
|
1023 |
#'shortcutKeyCharacter:' #Paste |
|
1024 |
) |
|
1025 |
#(#MenuItem |
|
1026 |
#'label:' 'Keep Layout' |
|
1027 |
#'value:' #pasteWithLayout |
|
1028 |
#'activeHelpKey:' #pasteWithLayout |
|
1029 |
#'enabled:' #canKeepLayoutInSelection |
|
1030 |
) |
|
1031 |
) nil |
|
1032 |
nil |
|
1033 |
) |
|
1034 |
) |
|
1035 |
#(#MenuItem |
|
1036 |
#'label:' '-' |
|
1037 |
) |
|
1038 |
#(#MenuItem |
|
1039 |
#'label:' 'Undo' |
|
1040 |
#'nameKey:' #undo |
|
1041 |
#'value:' #undoLast |
|
498 | 1042 |
#'activeHelpKey:' #editUndo |
446 | 1043 |
#'enabled:' #hasUndoHistory |
1044 |
#'shortcutKeyCharacter:' #Cmdu |
|
1045 |
) |
|
1046 |
#(#MenuItem |
|
1047 |
#'label:' '-' |
|
1048 |
) |
|
1049 |
#(#MenuItem |
|
498 | 1050 |
#'label:' 'Align' |
1051 |
#'submenuChannel:' #menuAlign |
|
1052 |
) |
|
1053 |
#(#MenuItem |
|
1054 |
#'label:' 'Move' |
|
1055 |
#'submenuChannel:' #menuMove |
|
1056 |
) |
|
1057 |
#(#MenuItem |
|
446 | 1058 |
#'label:' 'Dimension' |
1059 |
#'value:' #dimension |
|
1060 |
#'enabled:' #hasSelection |
|
1061 |
#'submenu:' |
|
1062 |
#(#Menu |
|
1063 |
||
1064 |
#( |
|
1065 |
#(#MenuItem |
|
1066 |
#'label:' 'Default Extent' |
|
1067 |
#'value:' #setToDefaultExtent |
|
1068 |
#'activeHelpKey:' #setToDefaultExtent |
|
1069 |
#'enabled:' #canMoveOrAlignSelection |
|
1070 |
) |
|
1071 |
#(#MenuItem |
|
1072 |
#'label:' 'Default Width' |
|
1073 |
#'value:' #setToDefaultWidth |
|
1074 |
#'activeHelpKey:' #setToDefaultWidth |
|
1075 |
#'enabled:' #canMoveOrAlignSelection |
|
1076 |
) |
|
1077 |
#(#MenuItem |
|
1078 |
#'label:' 'Default Height' |
|
1079 |
#'value:' #setToDefaultHeight |
|
1080 |
#'activeHelpKey:' #setToDefaultHeight |
|
1081 |
#'enabled:' #canMoveOrAlignSelection |
|
1082 |
) |
|
1083 |
#(#MenuItem |
|
1084 |
#'label:' '-' |
|
1085 |
) |
|
1086 |
#(#MenuItem |
|
1087 |
#'label:' 'Copy Extent' |
|
1088 |
#'value:' #copyExtent |
|
1089 |
#'activeHelpKey:' #copyExtent |
|
1090 |
#'enabled:' #hasSingleSelection |
|
1091 |
) |
|
1092 |
#(#MenuItem |
|
1093 |
#'label:' '-' |
|
1094 |
) |
|
1095 |
#(#MenuItem |
|
1096 |
#'label:' 'Paste Extent' |
|
1097 |
#'value:' #pasteExtent |
|
1098 |
#'activeHelpKey:' #pasteExtent |
|
1099 |
#'enabled:' #canMoveOrAlignSelection |
|
1100 |
) |
|
1101 |
#(#MenuItem |
|
1102 |
#'label:' 'Paste Width' |
|
1103 |
#'value:' #pasteWidth |
|
1104 |
#'activeHelpKey:' #pasteWidth |
|
1105 |
#'enabled:' #canMoveOrAlignSelection |
|
1106 |
) |
|
1107 |
#(#MenuItem |
|
1108 |
#'label:' 'Paste Height' |
|
1109 |
#'value:' #pasteHeight |
|
1110 |
#'activeHelpKey:' #pasteHeight |
|
1111 |
#'enabled:' #canMoveOrAlignSelection |
|
1112 |
) |
|
1113 |
#(#MenuItem |
|
1114 |
#'label:' '-' |
|
1115 |
) |
|
1116 |
#(#MenuItem |
|
1117 |
#'label:' 'Copy Layout' |
|
1118 |
#'value:' #copyLayout |
|
1119 |
#'activeHelpKey:' #copyLayout |
|
1120 |
#'enabled:' #hasSingleSelection |
|
1121 |
) |
|
1122 |
#(#MenuItem |
|
1123 |
#'label:' 'Paste Layout' |
|
1124 |
#'value:' #pasteLayout |
|
1125 |
#'activeHelpKey:' #pasteLayout |
|
1126 |
#'enabled:' #canMoveOrAlignSelection |
|
1127 |
) |
|
1128 |
) nil |
|
1129 |
nil |
|
1130 |
) |
|
1131 |
) |
|
498 | 1132 |
) nil |
1133 |
nil |
|
1134 |
) |
|
1135 |
! |
|
1136 |
||
1137 |
menuMove |
|
1138 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1139 |
||
1140 |
"do not manually edit this - the builder may not be able to |
|
1141 |
handle the specification if its corrupted." |
|
1142 |
||
1143 |
" |
|
1144 |
MenuEditor new openOnClass:UIPainter andSelector:#menuMove |
|
1145 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp |
|
1146 |
" |
|
1147 |
||
1148 |
<resource: #menu> |
|
1149 |
||
1150 |
^ |
|
1151 |
||
1152 |
#(#Menu |
|
1153 |
||
1154 |
#( |
|
446 | 1155 |
#(#MenuItem |
498 | 1156 |
#'label:' 'Move Up' |
1157 |
#'value:' #doStepUp |
|
1158 |
#'activeHelpKey:' #moveSelectionUp |
|
1159 |
#'enabled:' #canMoveOrAlignSelection |
|
1160 |
#'labelImage:' #(#ResourceRetriever #ToolApplicationModel #upIcon 'Move Up') |
|
1161 |
) |
|
1162 |
#(#MenuItem |
|
1163 |
#'label:' 'Move Down' |
|
1164 |
#'value:' #doStepDown |
|
1165 |
#'activeHelpKey:' #moveSelectionDown |
|
1166 |
#'enabled:' #canMoveOrAlignSelection |
|
1167 |
#'labelImage:' #(#ResourceRetriever #ToolApplicationModel #downIcon 'Move Down') |
|
1168 |
) |
|
1169 |
#(#MenuItem |
|
1170 |
#'label:' 'Move In' |
|
1171 |
#'value:' #doStepIn |
|
1172 |
#'activeHelpKey:' #moveSelectionRight |
|
1173 |
#'enabled:' #canMoveSelectionIntoContainer |
|
1174 |
#'labelImage:' #(#ResourceRetriever #ToolApplicationModel #downRightIcon 'Move In') |
|
1175 |
) |
|
1176 |
#(#MenuItem |
|
1177 |
#'label:' 'Move Out' |
|
1178 |
#'value:' #doStepOut |
|
1179 |
#'activeHelpKey:' #moveSelectionLeft |
|
1180 |
#'enabled:' #canMoveSelectionOutOfContainer |
|
1181 |
#'labelImage:' #(#ResourceRetriever #ToolApplicationModel #leftDownIcon 'Move Out') |
|
446 | 1182 |
) |
1183 |
) nil |
|
1184 |
nil |
|
1185 |
) |
|
1186 |
! |
|
1187 |
||
1188 |
menuToolbar |
|
1189 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1190 |
||
1191 |
"do not manually edit this - the builder may not be able to |
|
1192 |
handle the specification if its corrupted." |
|
1193 |
||
1194 |
" |
|
1195 |
MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar |
|
1196 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp |
|
1197 |
" |
|
1198 |
||
1199 |
<resource: #menu> |
|
1200 |
||
1201 |
^ |
|
1202 |
||
1203 |
#(#Menu |
|
1204 |
||
1205 |
#( |
|
1206 |
#(#MenuItem |
|
498 | 1207 |
#'label:' 'Start' |
446 | 1208 |
#'isButton:' true |
1209 |
#'value:' #doStartApplication |
|
498 | 1210 |
#'activeHelpKey:' #testStartApplication |
1211 |
#'labelImage:' #(#ResourceRetriever nil #startIcon) |
|
446 | 1212 |
) |
1213 |
#(#MenuItem |
|
518 | 1214 |
#'label:' '' |
446 | 1215 |
) |
1216 |
#(#MenuItem |
|
1217 |
#'label:' 'New' |
|
1218 |
#'isButton:' true |
|
1219 |
#'value:' #doNew |
|
498 | 1220 |
#'activeHelpKey:' #fileNew |
446 | 1221 |
#'labelImage:' #(#ResourceRetriever nil #newIcon) |
1222 |
) |
|
1223 |
#(#MenuItem |
|
1224 |
#'label:' 'Load' |
|
1225 |
#'isButton:' true |
|
1226 |
#'value:' #doFromClass |
|
498 | 1227 |
#'activeHelpKey:' #fileLoad |
446 | 1228 |
#'labelImage:' #(#ResourceRetriever nil #loadIcon) |
1229 |
) |
|
1230 |
#(#MenuItem |
|
1231 |
#'label:' 'Save' |
|
1232 |
#'isButton:' true |
|
1233 |
#'value:' #doInstallSpec |
|
498 | 1234 |
#'activeHelpKey:' #fileSave |
446 | 1235 |
#'labelImage:' #(#ResourceRetriever nil #saveIcon) |
1236 |
) |
|
1237 |
#(#MenuItem |
|
518 | 1238 |
#'label:' '' |
446 | 1239 |
) |
1240 |
#(#MenuItem |
|
498 | 1241 |
#'label:' 'Move Up' |
446 | 1242 |
#'isButton:' true |
1243 |
#'value:' #doStepUp |
|
498 | 1244 |
#'activeHelpKey:' #moveSelectionUp |
1245 |
#'enabled:' #canMoveOrAlignSelection |
|
446 | 1246 |
#'labelImage:' #(#ResourceRetriever nil #upIcon) |
1247 |
) |
|
1248 |
#(#MenuItem |
|
498 | 1249 |
#'label:' 'Move Down' |
446 | 1250 |
#'isButton:' true |
1251 |
#'value:' #doStepDown |
|
498 | 1252 |
#'activeHelpKey:' #moveSelectionDown |
1253 |
#'enabled:' #canMoveOrAlignSelection |
|
446 | 1254 |
#'labelImage:' #(#ResourceRetriever nil #downIcon) |
1255 |
) |
|
1256 |
#(#MenuItem |
|
498 | 1257 |
#'label:' 'Move In' |
446 | 1258 |
#'isButton:' true |
1259 |
#'value:' #doStepIn |
|
498 | 1260 |
#'activeHelpKey:' #moveSelectionRight |
1261 |
#'enabled:' #canMoveSelectionIntoContainer |
|
446 | 1262 |
#'labelImage:' #(#ResourceRetriever nil #downRightIcon) |
1263 |
) |
|
1264 |
#(#MenuItem |
|
498 | 1265 |
#'label:' 'Move Out' |
446 | 1266 |
#'isButton:' true |
1267 |
#'value:' #doStepOut |
|
498 | 1268 |
#'activeHelpKey:' #moveSelectionLeft |
1269 |
#'enabled:' #canMoveSelectionOutOfContainer |
|
446 | 1270 |
#'labelImage:' #(#ResourceRetriever nil #leftDownIcon) |
1271 |
) |
|
1272 |
#(#MenuItem |
|
518 | 1273 |
#'label:' '' |
446 | 1274 |
) |
1275 |
#(#MenuItem |
|
498 | 1276 |
#'label:' 'Align left' |
437 | 1277 |
#'isButton:' true |
217 | 1278 |
#'value:' #alignSelectionLeft |
287 | 1279 |
#'activeHelpKey:' #alignSelectionLeft |
437 | 1280 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignL) |
217 | 1281 |
) |
1282 |
#(#MenuItem |
|
498 | 1283 |
#'label:' 'Align right' |
437 | 1284 |
#'isButton:' true |
217 | 1285 |
#'value:' #alignSelectionRight |
1286 |
#'activeHelpKey:' #alignSelectionRight |
|
437 | 1287 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignR) |
217 | 1288 |
) |
1289 |
#(#MenuItem |
|
498 | 1290 |
#'label:' 'Align left & right' |
437 | 1291 |
#'isButton:' true |
217 | 1292 |
#'value:' #alignSelectionLeftAndRight |
1293 |
#'activeHelpKey:' #alignSelectionLeftAndRight |
|
437 | 1294 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignLR) |
1295 |
) |
|
1296 |
#(#MenuItem |
|
498 | 1297 |
#'label:' 'Align top' |
437 | 1298 |
#'isButton:' true |
217 | 1299 |
#'value:' #alignSelectionTop |
1300 |
#'activeHelpKey:' #alignSelectionTop |
|
437 | 1301 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignT) |
217 | 1302 |
) |
1303 |
#(#MenuItem |
|
498 | 1304 |
#'label:' 'Align bottom' |
437 | 1305 |
#'isButton:' true |
217 | 1306 |
#'value:' #alignSelectionBottom |
1307 |
#'activeHelpKey:' #alignSelectionBottom |
|
437 | 1308 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignB) |
217 | 1309 |
) |
1310 |
#(#MenuItem |
|
498 | 1311 |
#'label:' 'Align top & bottom' |
437 | 1312 |
#'isButton:' true |
217 | 1313 |
#'value:' #alignSelectionTopAndBottom |
1314 |
#'activeHelpKey:' #alignSelectionTopAndBottom |
|
437 | 1315 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignTB) |
1316 |
) |
|
1317 |
#(#MenuItem |
|
518 | 1318 |
#'label:' '' |
217 | 1319 |
) |
1320 |
#(#MenuItem |
|
498 | 1321 |
#'label:' 'Align centered horizontal' |
437 | 1322 |
#'isButton:' true |
217 | 1323 |
#'value:' #alignSelectionCenterHor |
1324 |
#'activeHelpKey:' #alignSelectionCenterHor |
|
437 | 1325 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignCenterH) |
217 | 1326 |
) |
1327 |
#(#MenuItem |
|
498 | 1328 |
#'label:' 'Align centered vertical' |
437 | 1329 |
#'isButton:' true |
217 | 1330 |
#'value:' #alignSelectionCenterVer |
1331 |
#'activeHelpKey:' #alignSelectionCenterVer |
|
437 | 1332 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignCenterV) |
217 | 1333 |
) |
437 | 1334 |
) nil |
217 | 1335 |
nil |
1336 |
) |
|
446 | 1337 |
! ! |
1338 |
||
1339 |
!UIPainter class methodsFor:'resources'! |
|
1340 |
||
1341 |
iconAlignB |
|
490 | 1342 |
"Generated by the Image Editor" |
1343 |
" |
|
1344 |
ImageEditor openOnClass:self andSelector:#iconAlignB |
|
1345 |
" |
|
446 | 1346 |
|
1347 |
<resource: #image> |
|
490 | 1348 |
|
1349 |
^Icon |
|
1350 |
constantNamed:#'UIPainter iconAlignB' |
|
1351 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@'); yourself); yourself]! |
|
446 | 1352 |
|
1353 |
iconAlignCenterH |
|
490 | 1354 |
"Generated by the Image Editor" |
1355 |
" |
|
1356 |
ImageEditor openOnClass:self andSelector:#iconAlignCenterH |
|
1357 |
" |
|
446 | 1358 |
|
1359 |
<resource: #image> |
|
490 | 1360 |
|
1361 |
^Icon |
|
1362 |
constantNamed:#'UIPainter iconAlignCenterH' |
|
1363 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPV*****)PV*****)PUUUMUUUPUUT?UUUPUUS?5UU\UUO?=UUWUT???UUPUTUUUUUPUUUUUUUPV*****)PV*****)PUUUMUUUPUUT?UUUPUUS?5UUPUUO?=UUPUT???UUWUTUUUUUPUUUUUUUPUUUUUUUP'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:49.9962)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BO??0O??0@G@@@O @@_0@@?8@A?<@A?<@@@@@O??0O??3@G@@@O @@_0@@?8@A?<@A?<@@@@@@@@@'); yourself); yourself]! |
|
446 | 1364 |
|
1365 |
iconAlignCenterV |
|
490 | 1366 |
"Generated by the Image Editor" |
1367 |
" |
|
1368 |
ImageEditor openOnClass:self andSelector:#iconAlignCenterV |
|
1369 |
" |
|
446 | 1370 |
|
1371 |
<resource: #image> |
|
490 | 1372 |
|
1373 |
^Icon |
|
1374 |
constantNamed:#'UIPainter iconAlignCenterV' |
|
1375 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUV%UV%PUUV%UV%PUUV%UV%PTEV$EV%PT=V$=V%PT?V$?V%PT?6$?6%WT?>$?>%PT?>$?>%_T?6$?6%PT?V$?V%PT=V$=V%PT5V$5V%WUUV%UV%PUUV%UV%PUUV%UV%_UUV%UV%WUUV%UV%PUUUUUUUPUUUUUUUQ'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:49.9962)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@LA!!@LA @LA LM!! NM1 OM9 O-= O=? O=? O=? O-= OM9 NM1 DL!!#@LA @LA @LA @LA @@@C@@@@'); yourself); yourself]! |
|
446 | 1376 |
|
1377 |
iconAlignL |
|
490 | 1378 |
"Generated by the Image Editor" |
1379 |
" |
|
1380 |
ImageEditor openOnClass:self andSelector:#iconAlignL |
|
1381 |
" |
|
446 | 1382 |
|
1383 |
<resource: #image> |
|
490 | 1384 |
|
1385 |
^Icon |
|
1386 |
constantNamed:#'UIPainter iconAlignL' |
|
1387 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@'); yourself); yourself]! |
|
446 | 1388 |
|
1389 |
iconAlignLR |
|
490 | 1390 |
"Generated by the Image Editor" |
1391 |
" |
|
1392 |
ImageEditor openOnClass:self andSelector:#iconAlignLR |
|
1393 |
" |
|
446 | 1394 |
|
1395 |
<resource: #image> |
|
490 | 1396 |
|
1397 |
^Icon |
|
1398 |
constantNamed:#'UIPainter iconAlignLR' |
|
1399 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@'); yourself); yourself]! |
|
446 | 1400 |
|
1401 |
iconAlignR |
|
490 | 1402 |
"Generated by the Image Editor" |
1403 |
" |
|
1404 |
ImageEditor openOnClass:self andSelector:#iconAlignR |
|
1405 |
" |
|
446 | 1406 |
|
1407 |
<resource: #image> |
|
490 | 1408 |
|
1409 |
^Icon |
|
1410 |
constantNamed:#'UIPainter iconAlignR' |
|
1411 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@'); yourself); yourself]! |
|
446 | 1412 |
|
1413 |
iconAlignT |
|
490 | 1414 |
"Generated by the Image Editor" |
1415 |
" |
|
1416 |
ImageEditor openOnClass:self andSelector:#iconAlignT |
|
1417 |
" |
|
446 | 1418 |
|
1419 |
<resource: #image> |
|
490 | 1420 |
|
1421 |
^Icon |
|
1422 |
constantNamed:#'UIPainter iconAlignT' |
|
1423 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@'); yourself); yourself]! |
|