1
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1993 by 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 |
Button subclass:#ArrowButton
|
6
|
14 |
instanceVariableNames:'passiveForm activeForm'
|
|
15 |
classVariableNames:'DownArrowForm UpArrowForm
|
38
|
16 |
LeftArrowForm RightArrowForm
|
|
17 |
CachedStyle'
|
6
|
18 |
poolDictionaries:''
|
|
19 |
category:'Views-Interactors'
|
1
|
20 |
!
|
|
21 |
|
|
22 |
ArrowButton comment:'
|
|
23 |
COPYRIGHT (c) 1993 by Claus Gittinger
|
|
24 |
All Rights Reserved
|
|
25 |
|
38
|
26 |
$Header: /cvs/stx/stx/libwidg/ArrowButton.st,v 1.5 1994-08-07 13:20:36 claus Exp $
|
|
27 |
'!
|
|
28 |
|
|
29 |
!ArrowButton class methodsFor:'documentation'!
|
|
30 |
|
|
31 |
copyright
|
|
32 |
"
|
|
33 |
COPYRIGHT (c) 1993 by Claus Gittinger
|
|
34 |
All Rights Reserved
|
|
35 |
|
|
36 |
This software is furnished under a license and may be used
|
|
37 |
only in accordance with the terms of that license and with the
|
|
38 |
inclusion of the above copyright notice. This software may not
|
|
39 |
be provided or otherwise made available to, or used by, any
|
|
40 |
other person. No title to or ownership of the software is
|
|
41 |
hereby transferred.
|
|
42 |
"
|
|
43 |
!
|
|
44 |
|
|
45 |
version
|
|
46 |
"
|
|
47 |
$Header: /cvs/stx/stx/libwidg/ArrowButton.st,v 1.5 1994-08-07 13:20:36 claus Exp $
|
|
48 |
"
|
|
49 |
!
|
|
50 |
|
|
51 |
documentation
|
|
52 |
"
|
|
53 |
ArrowButtons display an arrow-bitmap as their label; they are mainly
|
|
54 |
used for scrollbars, but can be useful on their own in some applications.
|
|
55 |
|
|
56 |
ArrowButtons are created by sending one of:
|
|
57 |
ArrowButton upIn:aView /downIn: / leftIn: or rightIn:
|
|
58 |
passing the parent view as argument.
|
1
|
59 |
|
38
|
60 |
example1:
|
|
61 |
|v p b1 b2 b3 b4|
|
|
62 |
|
|
63 |
v := StandardSystemView new.
|
|
64 |
p := HorizontalPanelView origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:v.
|
|
65 |
b1 := ArrowButton upIn:p.
|
|
66 |
b2 := ArrowButton downIn:p.
|
|
67 |
b3 := ArrowButton leftIn:p.
|
|
68 |
b4 := ArrowButton rightIn:p.
|
|
69 |
|
|
70 |
b1 action:['whatEver you like here ...'].
|
|
71 |
b2 action:['whatEver you like here ...'].
|
|
72 |
b3 action:['whatEver you like here ...'].
|
|
73 |
b4 action:['whatEver you like here ...'].
|
|
74 |
|
|
75 |
v open
|
|
76 |
|
1
|
77 |
|
38
|
78 |
example2:
|
|
79 |
|v p b1 b2 b3 b4|
|
|
80 |
|
|
81 |
v := StandardSystemView new.
|
|
82 |
p := HorizontalPanelView origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:v.
|
|
83 |
b1 := (ArrowButton upIn:p) extent:30@30.
|
|
84 |
b2 := (ArrowButton downIn:p) extent:30@30.
|
|
85 |
b3 := (ArrowButton leftIn:p) extent:30@30.
|
|
86 |
b4 := (ArrowButton rightIn:p) extent:30@30.
|
|
87 |
|
|
88 |
b1 action:['whatEver you like here ...'].
|
|
89 |
b2 action:['whatEver you like here ...'].
|
|
90 |
b3 action:['whatEver you like here ...'].
|
|
91 |
b4 action:['whatEver you like here ...'].
|
|
92 |
|
|
93 |
v open
|
|
94 |
"
|
|
95 |
! !
|
1
|
96 |
|
|
97 |
!ArrowButton class methodsFor:'defaults'!
|
|
98 |
|
38
|
99 |
upArrowButtonForm:style on:aDevice
|
|
100 |
"return the form used for the scrollUp Button"
|
|
101 |
|
|
102 |
|form fName|
|
|
103 |
|
|
104 |
"
|
|
105 |
flush cached form on style-changes
|
|
106 |
"
|
|
107 |
CachedStyle ~~ style ifTrue:[
|
|
108 |
DownArrowForm := nil.
|
|
109 |
UpArrowForm := nil.
|
|
110 |
LeftArrowForm := nil.
|
|
111 |
RightArrowForm := nil
|
|
112 |
].
|
1
|
113 |
|
38
|
114 |
"
|
|
115 |
use cached form, if device is appropriate
|
|
116 |
"
|
|
117 |
((aDevice == Display) and:[UpArrowForm notNil]) ifTrue:[
|
|
118 |
^ UpArrowForm
|
|
119 |
].
|
|
120 |
|
|
121 |
"
|
|
122 |
get bitmaps filename from resources, use a style-dependent
|
|
123 |
default, if resources do not contain a filename
|
|
124 |
"
|
|
125 |
style == #mswindows ifTrue:[
|
|
126 |
fName := 'ScrollUp_win.xbm'.
|
|
127 |
] ifFalse:[
|
|
128 |
(style == #st80) ifTrue:[
|
|
129 |
fName := 'ScrollUp_st.xbm'
|
|
130 |
] ifFalse:[
|
|
131 |
fName := 'ScrollUp.xbm'
|
|
132 |
]
|
|
133 |
].
|
|
134 |
form := Form fromFile:(self classResources
|
|
135 |
at:'SCROLL_UP_BUTTON_FORM_FILE'
|
|
136 |
default:fName)
|
|
137 |
resolution:100
|
|
138 |
on:aDevice.
|
6
|
139 |
|
38
|
140 |
"
|
|
141 |
form to use as a fallback, if no bitmap file is present
|
|
142 |
(actually not really needed - just to show something useful, in
|
|
143 |
case of a bad installation)
|
|
144 |
"
|
|
145 |
form isNil ifTrue:[
|
|
146 |
style == #st80 ifTrue:[
|
|
147 |
form := Form width:9 height:9 depth:1 on:aDevice.
|
|
148 |
form clear.
|
|
149 |
form lineWidth:2.
|
|
150 |
form capStyle:#round.
|
|
151 |
form paint:(Color colorId:1).
|
|
152 |
form displayLineFromX:0 y:6 toX:4 y:2.
|
|
153 |
form displayLineFromX:4 y:2 toX:8 y:6.
|
|
154 |
] ifFalse:[
|
|
155 |
form := Form width:16 height:16
|
|
156 |
fromArray:#(2r00000000 2r00000000
|
|
157 |
2r00000001 2r10000000
|
|
158 |
2r00000010 2r01000000
|
|
159 |
2r00000100 2r00100000
|
|
160 |
2r00001000 2r00010000
|
|
161 |
2r00010000 2r00001000
|
|
162 |
2r00100000 2r00000100
|
|
163 |
2r01000000 2r00000010
|
|
164 |
2r01111000 2r00011110
|
|
165 |
2r00001000 2r00010000
|
|
166 |
2r00001000 2r00010000
|
|
167 |
2r00001000 2r00010000
|
|
168 |
2r00001000 2r00010000
|
|
169 |
2r00001000 2r00010000
|
|
170 |
2r00001111 2r11110000
|
|
171 |
2r00000000 2r00000000)
|
|
172 |
on:aDevice
|
6
|
173 |
].
|
1
|
174 |
].
|
38
|
175 |
|
|
176 |
form := form on:aDevice.
|
|
177 |
|
|
178 |
"
|
|
179 |
remember form for next use
|
|
180 |
"
|
|
181 |
(aDevice == Display) ifTrue:[
|
|
182 |
UpArrowForm := form
|
|
183 |
].
|
|
184 |
|
|
185 |
CachedStyle := style.
|
|
186 |
^ form
|
1
|
187 |
!
|
|
188 |
|
38
|
189 |
downArrowButtonForm:style on:aDevice
|
1
|
190 |
"retun the form used for the scrollDown Button"
|
|
191 |
|
38
|
192 |
|form fName|
|
|
193 |
|
|
194 |
"
|
|
195 |
flush cached form on style-changes
|
|
196 |
"
|
|
197 |
CachedStyle ~~ style ifTrue:[
|
|
198 |
DownArrowForm := nil.
|
|
199 |
UpArrowForm := nil.
|
|
200 |
LeftArrowForm := nil.
|
|
201 |
RightArrowForm := nil
|
|
202 |
].
|
|
203 |
"
|
|
204 |
use cached form, if device is appropriate
|
|
205 |
"
|
|
206 |
((aDevice == Display) and:[DownArrowForm notNil]) ifTrue:[
|
|
207 |
^ DownArrowForm
|
|
208 |
].
|
|
209 |
|
|
210 |
"
|
|
211 |
get bitmaps filename from resources, use a style-dependent
|
|
212 |
default, if resources do not contain a filename
|
|
213 |
"
|
|
214 |
style == #mswindows ifTrue:[
|
|
215 |
fName := 'ScrollDn_win.xbm'.
|
|
216 |
] ifFalse:[
|
|
217 |
(style == #st80) ifTrue:[
|
|
218 |
fName := 'ScrollDn_st.xbm'
|
|
219 |
] ifFalse:[
|
|
220 |
fName := 'ScrollDn.xbm'
|
|
221 |
]
|
|
222 |
].
|
|
223 |
form := Form fromFile:(self classResources
|
|
224 |
at:'SCROLL_DOWN_BUTTON_FORM_FILE'
|
|
225 |
default:fName)
|
|
226 |
resolution:100
|
|
227 |
on:aDevice.
|
6
|
228 |
|
38
|
229 |
"
|
|
230 |
form to use as a fallback, if no bitmap file is present
|
|
231 |
(actually not really needed - just to show something useful, in
|
|
232 |
case of a bad installation)
|
|
233 |
"
|
|
234 |
form isNil ifTrue:[
|
|
235 |
style == #st80 ifTrue:[
|
|
236 |
form := Form width:9 height:9 depth:1 on:Display.
|
|
237 |
form clear.
|
|
238 |
form lineWidth:2.
|
|
239 |
form capStyle:#round.
|
|
240 |
form paint:(Color colorId:1).
|
|
241 |
form displayLineFromX:0 y:2 toX:4 y:6.
|
|
242 |
form displayLineFromX:4 y:6 toX:8 y:2
|
|
243 |
] ifFalse:[
|
|
244 |
form := Form width:16 height:16
|
|
245 |
fromArray:#(2r00000000 2r00000000
|
|
246 |
2r00001111 2r11110000
|
|
247 |
2r00001000 2r00010000
|
|
248 |
2r00001000 2r00010000
|
|
249 |
2r00001000 2r00010000
|
|
250 |
2r00001000 2r00010000
|
|
251 |
2r00001000 2r00010000
|
|
252 |
2r01111000 2r00011110
|
|
253 |
2r01000000 2r00000010
|
|
254 |
2r00100000 2r00000100
|
|
255 |
2r00010000 2r00001000
|
|
256 |
2r00001000 2r00010000
|
|
257 |
2r00000100 2r00100000
|
|
258 |
2r00000010 2r01000000
|
|
259 |
2r00000001 2r10000000
|
|
260 |
2r00000000 2r00000000)
|
|
261 |
on:aDevice
|
6
|
262 |
].
|
1
|
263 |
].
|
38
|
264 |
form := form on:aDevice.
|
|
265 |
|
|
266 |
"
|
|
267 |
remember form for next use
|
|
268 |
"
|
|
269 |
(aDevice == Display) ifTrue:[
|
|
270 |
DownArrowForm := form
|
|
271 |
].
|
|
272 |
|
|
273 |
CachedStyle := style.
|
|
274 |
^ form
|
1
|
275 |
!
|
|
276 |
|
38
|
277 |
leftArrowButtonForm:style on:aDevice
|
|
278 |
"retun the form used for the scrollLeft Button"
|
|
279 |
|
|
280 |
|form fName|
|
|
281 |
|
|
282 |
"
|
|
283 |
flush cached form on style-changes
|
|
284 |
"
|
|
285 |
CachedStyle ~~ style ifTrue:[
|
|
286 |
DownArrowForm := nil.
|
|
287 |
UpArrowForm := nil.
|
|
288 |
LeftArrowForm := nil.
|
|
289 |
RightArrowForm := nil
|
|
290 |
].
|
|
291 |
|
|
292 |
"
|
|
293 |
use cached form, if device is appropriate
|
|
294 |
"
|
|
295 |
((aDevice == Display) and:[LeftArrowForm notNil]) ifTrue:[
|
|
296 |
^ LeftArrowForm
|
|
297 |
].
|
|
298 |
|
|
299 |
"
|
|
300 |
get bitmaps filename from resources, use a style-dependent
|
|
301 |
default, if resources do not contain a filename
|
|
302 |
"
|
|
303 |
style == #mswindows ifTrue:[
|
|
304 |
fName := 'ScrollLt_win.xbm'.
|
|
305 |
] ifFalse:[
|
|
306 |
(style == #st80) ifTrue:[
|
|
307 |
fName := 'ScrollLt_st.xbm'
|
|
308 |
] ifFalse:[
|
|
309 |
fName := 'ScrollLt.xbm'
|
|
310 |
]
|
|
311 |
].
|
|
312 |
form := Form fromFile:(self classResources
|
|
313 |
at:'SCROLL_LEFT_BUTTON_FORM_FILE'
|
|
314 |
default:fName)
|
|
315 |
resolution:100
|
|
316 |
on:aDevice.
|
6
|
317 |
|
38
|
318 |
"
|
|
319 |
form to use as a fallback, if no bitmap file is present
|
|
320 |
(actually not really needed - just to show something useful, in
|
|
321 |
case of a bad installation)
|
|
322 |
"
|
|
323 |
form isNil ifTrue:[
|
|
324 |
style == #st80 ifTrue:[
|
|
325 |
form := Form width:9 height:9 depth:1 on:Display.
|
|
326 |
form clear.
|
|
327 |
form lineWidth:2.
|
|
328 |
form capStyle:#round.
|
|
329 |
form paint:(Color colorId:1).
|
|
330 |
form displayLineFromX:6 y:0 toX:2 y:4.
|
|
331 |
form displayLineFromX:2 y:4 toX:6 y:8.
|
|
332 |
] ifFalse:[
|
|
333 |
form := Form width:16 height:16
|
|
334 |
fromArray:#(2r00000000 2r00000000
|
|
335 |
2r00000001 2r10000000
|
|
336 |
2r00000010 2r10000000
|
|
337 |
2r00000100 2r10000000
|
|
338 |
2r00001000 2r11111110
|
|
339 |
2r00010000 2r00000010
|
|
340 |
2r00100000 2r00000010
|
|
341 |
2r01000000 2r00000010
|
|
342 |
2r01000000 2r00000010
|
|
343 |
2r00100000 2r00000010
|
|
344 |
2r00010000 2r00000010
|
|
345 |
2r00001000 2r11111110
|
|
346 |
2r00000100 2r10000000
|
|
347 |
2r00000010 2r10000000
|
|
348 |
2r00000001 2r10000000
|
|
349 |
2r00000000 2r00000000)
|
|
350 |
on:aDevice
|
6
|
351 |
].
|
1
|
352 |
].
|
38
|
353 |
form := form on:aDevice.
|
|
354 |
|
|
355 |
"
|
|
356 |
remember form for next use
|
|
357 |
"
|
|
358 |
(aDevice == Display) ifTrue:[
|
|
359 |
LeftArrowForm := form
|
|
360 |
].
|
|
361 |
|
|
362 |
CachedStyle := style.
|
|
363 |
^ form
|
1
|
364 |
!
|
|
365 |
|
38
|
366 |
rightArrowButtonForm:style on:aDevice
|
|
367 |
"retun the form used for the scrollRight Button"
|
|
368 |
|
|
369 |
|form fName|
|
|
370 |
|
|
371 |
"
|
|
372 |
flush cached form on style-changes
|
|
373 |
"
|
|
374 |
CachedStyle ~~ style ifTrue:[
|
|
375 |
DownArrowForm := nil.
|
|
376 |
UpArrowForm := nil.
|
|
377 |
LeftArrowForm := nil.
|
|
378 |
RightArrowForm := nil
|
|
379 |
].
|
|
380 |
|
|
381 |
"
|
|
382 |
use cached form, if device is appropriate
|
|
383 |
"
|
|
384 |
((aDevice == Display) and:[RightArrowForm notNil]) ifTrue:[
|
|
385 |
^ RightArrowForm
|
|
386 |
].
|
|
387 |
|
|
388 |
"
|
|
389 |
get bitmaps filename from resources, use a style-dependent
|
|
390 |
default, if resources do not contain a filename
|
|
391 |
"
|
|
392 |
style == #mswindows ifTrue:[
|
|
393 |
fName := 'ScrollRt_win.xbm'.
|
|
394 |
] ifFalse:[
|
|
395 |
(style == #st80) ifTrue:[
|
|
396 |
fName := 'ScrollRt_st.xbm'
|
|
397 |
] ifFalse:[
|
|
398 |
fName := 'ScrollRt.xbm'
|
|
399 |
]
|
|
400 |
].
|
|
401 |
form := Form fromFile:(self classResources
|
|
402 |
at:'SCROLL_RIGHT_BUTTON_FORM_FILE'
|
|
403 |
default:fName)
|
|
404 |
resolution:100
|
|
405 |
on:aDevice.
|
6
|
406 |
|
38
|
407 |
"
|
|
408 |
form to use as a fallback, if no bitmap file is present
|
|
409 |
(actually not really needed - just to show something useful, in
|
|
410 |
case of a bad installation)
|
|
411 |
"
|
|
412 |
form isNil ifTrue:[
|
|
413 |
style == #st80 ifTrue:[
|
|
414 |
form := Form width:9 height:9 depth:1 on:Display.
|
|
415 |
form clear.
|
|
416 |
form lineWidth:2.
|
|
417 |
form capStyle:#round.
|
|
418 |
form paint:(Color colorId:1).
|
|
419 |
form displayLineFromX:2 y:0 toX:6 y:4.
|
|
420 |
form displayLineFromX:6 y:4 toX:2 y:8
|
|
421 |
] ifFalse:[
|
|
422 |
form := Form width:16 height:16
|
|
423 |
fromArray:#(2r00000000 2r00000000
|
|
424 |
2r00000001 2r10000000
|
|
425 |
2r00000001 2r01000000
|
|
426 |
2r00000001 2r00100000
|
|
427 |
2r01111111 2r00010000
|
|
428 |
2r01000000 2r00001000
|
|
429 |
2r01000000 2r00000100
|
|
430 |
2r01000000 2r00000010
|
|
431 |
2r01000000 2r00000010
|
|
432 |
2r01000000 2r00000100
|
|
433 |
2r01000000 2r00001000
|
|
434 |
2r01111111 2r00010000
|
|
435 |
2r00000001 2r00100000
|
|
436 |
2r00000001 2r01000000
|
|
437 |
2r00000001 2r10000000
|
|
438 |
2r00000000 2r00000000)
|
|
439 |
on:aDevice
|
6
|
440 |
].
|
1
|
441 |
].
|
38
|
442 |
form := form on:aDevice.
|
|
443 |
|
|
444 |
"
|
|
445 |
remember form for next use
|
|
446 |
"
|
|
447 |
(aDevice == Display) ifTrue:[
|
|
448 |
RightArrowForm := form
|
|
449 |
].
|
|
450 |
|
|
451 |
CachedStyle := style.
|
|
452 |
^ form
|
1
|
453 |
! !
|
|
454 |
|
|
455 |
!ArrowButton class methodsFor:'instance creation'!
|
|
456 |
|
|
457 |
upIn:aView
|
|
458 |
^ (super in:aView) direction:#up
|
|
459 |
!
|
|
460 |
|
|
461 |
downIn:aView
|
|
462 |
^ (super in:aView) direction:#down
|
|
463 |
!
|
|
464 |
|
|
465 |
leftIn:aView
|
|
466 |
^ (super in:aView) direction:#left
|
|
467 |
!
|
|
468 |
|
|
469 |
rightIn:aView
|
|
470 |
^ (super in:aView) direction:#right
|
|
471 |
! !
|
|
472 |
|
|
473 |
!ArrowButton methodsFor:'accessing'!
|
|
474 |
|
|
475 |
direction:aDirectionSymbol
|
6
|
476 |
|form|
|
|
477 |
|
1
|
478 |
aDirectionSymbol == #up ifTrue:[
|
38
|
479 |
form := (self class upArrowButtonForm:style on:device)
|
1
|
480 |
].
|
|
481 |
aDirectionSymbol == #down ifTrue:[
|
38
|
482 |
form := (self class downArrowButtonForm:style on:device)
|
1
|
483 |
].
|
|
484 |
aDirectionSymbol == #left ifTrue:[
|
38
|
485 |
form := (self class leftArrowButtonForm:style on:device)
|
1
|
486 |
].
|
|
487 |
aDirectionSymbol == #right ifTrue:[
|
38
|
488 |
form := (self class rightArrowButtonForm:style on:device)
|
1
|
489 |
].
|
6
|
490 |
self form:form
|
1
|
491 |
! !
|
|
492 |
|
|
493 |
!ArrowButton methodsFor:'initialization'!
|
|
494 |
|
|
495 |
initStyle
|
|
496 |
super initStyle.
|
|
497 |
style == #motif ifTrue:[
|
|
498 |
onLevel := 0.
|
|
499 |
offLevel := 0.
|
38
|
500 |
self level:0.
|
|
501 |
bgColor := viewBackground.
|
|
502 |
fgColor := viewBackground.
|
|
503 |
activeFgColor := Color darkGrey.
|
|
504 |
] ifFalse:[
|
|
505 |
(style == #st80) ifTrue:[
|
|
506 |
activeFgColor := White
|
|
507 |
]
|
1
|
508 |
]
|
|
509 |
! !
|
|
510 |
|
6
|
511 |
!ArrowButton methodsFor:'redrawing'!
|
|
512 |
|
|
513 |
drawWith:fg and:bg
|
|
514 |
"this is a q&d hack for motif ..."
|
|
515 |
|
38
|
516 |
|topLeft botRight deep|
|
6
|
517 |
|
|
518 |
style ~~ #motif ifTrue:[
|
|
519 |
^ super drawWith:fg and:bg.
|
|
520 |
].
|
|
521 |
|
|
522 |
logo notNil ifTrue:[
|
38
|
523 |
shadowColor := Black.
|
|
524 |
lightColor := White.
|
|
525 |
deep := false.
|
|
526 |
|
|
527 |
"/ shadowColor := shadowColor on:device.
|
|
528 |
"/ lightColor := lightColor on:device.
|
|
529 |
|
|
530 |
"/ shadowColor ditherForm notNil ifTrue:[
|
|
531 |
"/ shadowColor := Black on:device
|
|
532 |
"/ ].
|
|
533 |
"/ lightColor ditherForm notNil ifTrue:[
|
|
534 |
"/ lightColor := White on:device
|
|
535 |
"/ ].
|
|
536 |
|
6
|
537 |
pressed ifTrue:[
|
|
538 |
topLeft := shadowColor.
|
|
539 |
botRight := lightColor
|
|
540 |
] ifFalse:[
|
|
541 |
topLeft := lightColor.
|
|
542 |
botRight := shadowColor
|
|
543 |
].
|
38
|
544 |
|
6
|
545 |
self paint:bg.
|
38
|
546 |
self fillRectangleX:0 y:0 width:width height:height.
|
6
|
547 |
|
38
|
548 |
deep ifTrue:[
|
|
549 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
550 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY + 1 .
|
|
551 |
botRight colorId ~~ 0 ifTrue:[
|
|
552 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
553 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY + 1.
|
|
554 |
].
|
|
555 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
556 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY + 1 .
|
|
557 |
botRight colorId ~~ 0 ifTrue:[
|
|
558 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
559 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY + 1.
|
|
560 |
].
|
|
561 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
562 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY + 2 .
|
|
563 |
botRight colorId ~~ 0 ifTrue:[
|
|
564 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
565 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY + 2.
|
|
566 |
].
|
|
567 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
568 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY + 2 .
|
|
569 |
botRight colorId ~~ 0 ifTrue:[
|
|
570 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
571 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY + 2.
|
|
572 |
].
|
|
573 |
].
|
|
574 |
|
|
575 |
|
|
576 |
deep ifTrue:[
|
|
577 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
578 |
self displayOpaqueForm:logo x:labelOriginX-2 y:labelOriginY - 2 .
|
|
579 |
topLeft colorId ~~ 0 ifTrue:[
|
|
580 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
581 |
self displayOpaqueForm:logo x:labelOriginX-2 y:labelOriginY - 2.
|
|
582 |
].
|
|
583 |
].
|
6
|
584 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
585 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY - 1 .
|
38
|
586 |
topLeft colorId ~~ 0 ifTrue:[
|
|
587 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
588 |
self displayOpaqueForm:logo x:labelOriginX-1 y:labelOriginY - 1.
|
|
589 |
].
|
6
|
590 |
|
38
|
591 |
deep ifTrue:[
|
|
592 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
593 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY - 2 .
|
|
594 |
topLeft colorId ~~ 0 ifTrue:[
|
|
595 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
596 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY - 2.
|
|
597 |
].
|
|
598 |
].
|
6
|
599 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
600 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY - 1 .
|
38
|
601 |
topLeft colorId ~~ 0 ifTrue:[
|
|
602 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
603 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY - 1.
|
|
604 |
].
|
|
605 |
|
|
606 |
|
|
607 |
deep ifTrue:[
|
|
608 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
609 |
self displayOpaqueForm:logo x:labelOriginX -2 y:labelOriginY .
|
|
610 |
topLeft colorId ~~ 0 ifTrue:[
|
|
611 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
612 |
self displayOpaqueForm:logo x:labelOriginX -2 y:labelOriginY .
|
|
613 |
].
|
|
614 |
].
|
6
|
615 |
|
|
616 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
617 |
self displayOpaqueForm:logo x:labelOriginX -1 y:labelOriginY .
|
38
|
618 |
topLeft colorId ~~ 0 ifTrue:[
|
|
619 |
self foreground:topLeft background:(Color noColor) function:#or.
|
|
620 |
self displayOpaqueForm:logo x:labelOriginX -1 y:labelOriginY .
|
|
621 |
].
|
|
622 |
|
6
|
623 |
|
38
|
624 |
deep ifTrue:[
|
|
625 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
626 |
self displayOpaqueForm:logo x:labelOriginX + 2 y:labelOriginY .
|
|
627 |
botRight colorId ~~ 0 ifTrue:[
|
|
628 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
629 |
self displayOpaqueForm:logo x:labelOriginX + 2 y:labelOriginY .
|
|
630 |
].
|
|
631 |
].
|
6
|
632 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
633 |
self displayOpaqueForm:logo x:labelOriginX + 1 y:labelOriginY .
|
38
|
634 |
botRight colorId ~~ 0 ifTrue:[
|
|
635 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
636 |
self displayOpaqueForm:logo x:labelOriginX + 1 y:labelOriginY .
|
|
637 |
].
|
6
|
638 |
|
38
|
639 |
deep ifTrue:[
|
|
640 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
|
641 |
self displayOpaqueForm:logo x:labelOriginX + 2 y:labelOriginY + 2 .
|
|
642 |
botRight colorId ~~ 0 ifTrue:[
|
|
643 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
644 |
self displayOpaqueForm:logo x:labelOriginX + 2 y:labelOriginY + 2.
|
|
645 |
].
|
|
646 |
].
|
6
|
647 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
648 |
self displayOpaqueForm:logo x:labelOriginX + 1 y:labelOriginY + 1 .
|
38
|
649 |
botRight colorId ~~ 0 ifTrue:[
|
|
650 |
self foreground:botRight background:(Color noColor) function:#or.
|
|
651 |
self displayOpaqueForm:logo x:labelOriginX + 1 y:labelOriginY + 1.
|
|
652 |
].
|
6
|
653 |
|
|
654 |
self foreground:(Color noColor) background:(Color allColor) function:#and.
|
24
|
655 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY .
|
38
|
656 |
fg colorId ~~ 0 ifTrue:[
|
|
657 |
self foreground:fg background:(Color noColor) function:#or.
|
|
658 |
self displayOpaqueForm:logo x:labelOriginX y:labelOriginY .
|
|
659 |
].
|
6
|
660 |
self function:#copy
|
|
661 |
]
|
|
662 |
! !
|