93
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 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 |
|
|
13 |
|
|
14 |
View subclass:#UISelectionPanel
|
|
15 |
instanceVariableNames:'action window tabView labelView inputView selection
|
|
16 |
lastClickPoint specification'
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Interface-UIPainter'
|
|
20 |
!
|
|
21 |
|
|
22 |
DropObject subclass:#DropSpecification
|
|
23 |
instanceVariableNames:''
|
|
24 |
classVariableNames:''
|
|
25 |
poolDictionaries:''
|
|
26 |
privateIn:UISelectionPanel
|
|
27 |
!
|
|
28 |
|
|
29 |
!UISelectionPanel class methodsFor:'documentation'!
|
|
30 |
|
|
31 |
copyright
|
|
32 |
"
|
|
33 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
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 |
|
|
46 |
documentation
|
|
47 |
"
|
|
48 |
implements a selection panel, keeping widgets which could be placed
|
|
49 |
into the UIPainter by drag & drop.
|
|
50 |
|
|
51 |
[author:]
|
|
52 |
Claus Atzkern
|
|
53 |
|
|
54 |
[see also:]
|
|
55 |
TabView
|
|
56 |
UIPainter
|
|
57 |
"
|
|
58 |
|
|
59 |
!
|
|
60 |
|
|
61 |
examples
|
|
62 |
"
|
|
63 |
creates and opens the default panel
|
|
64 |
[exBegin]
|
|
65 |
self defaultPanel.
|
|
66 |
[exEnd]
|
|
67 |
|
|
68 |
|
|
69 |
create a panel with labels and selectors implemented by the receiver
|
|
70 |
which returns a FullSpec.
|
|
71 |
[exBegin]
|
|
72 |
|top slv inset list view idx frame colSelected colUnselected|
|
|
73 |
|
|
74 |
top := StandardSystemView new
|
|
75 |
label:'UI-Selection Panel';
|
|
76 |
extent:450@150.
|
|
77 |
|
|
78 |
view := self origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:top.
|
|
79 |
|
|
80 |
view labels:#( 'Button & Toggles'
|
|
81 |
'Panels'
|
|
82 |
'Scroller'
|
|
83 |
)
|
|
84 |
selectors:#( #buttonToggleSpec
|
|
85 |
#scrollerSpec
|
|
86 |
#panelSpec
|
|
87 |
)
|
|
88 |
receiver:self.
|
|
89 |
|
|
90 |
top open.
|
|
91 |
[exEnd]
|
|
92 |
"
|
|
93 |
! !
|
|
94 |
|
|
95 |
!UISelectionPanel class methodsFor:'instance creation'!
|
|
96 |
|
|
97 |
defaultPanel
|
|
98 |
|top slv inset list view idx frame colSelected colUnselected|
|
|
99 |
|
|
100 |
top := StandardSystemView new
|
|
101 |
label:'UI-Selection Panel';
|
98
|
102 |
extent:480@280.
|
93
|
103 |
|
|
104 |
view := self origin:0.0 @ 0.0 corner:1.0 @ 1.0 in:top.
|
|
105 |
|
|
106 |
view labels:#( 'Button & Toggle'
|
|
107 |
'Panel'
|
|
108 |
'Text'
|
|
109 |
'View'
|
|
110 |
'Menu & Combo'
|
|
111 |
'Scroller'
|
|
112 |
)
|
|
113 |
selectors:#( #buttonToggleSpec
|
|
114 |
#panelSpec
|
|
115 |
#textSpec
|
|
116 |
#viewsSpec
|
|
117 |
#menuComboSpec
|
|
118 |
#scrollerSpec
|
|
119 |
)
|
|
120 |
receiver:self.
|
|
121 |
|
|
122 |
top open.
|
|
123 |
|
98
|
124 |
"Modified: 8.4.1997 / 01:13:53 / cg"
|
93
|
125 |
! !
|
|
126 |
|
|
127 |
!UISelectionPanel class methodsFor:'default specifications'!
|
|
128 |
|
|
129 |
buttonToggleSpec
|
|
130 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
131 |
|
|
132 |
"do not manually edit this - the painter/builder may not be able to
|
|
133 |
handle the specification if its corrupted."
|
|
134 |
|
|
135 |
"
|
|
136 |
UIPainter new openOnClass:UISelectionPanel andSelector:#buttonToggleSpec
|
|
137 |
UISelectionPanel new openInterface:#buttonToggleSpec
|
|
138 |
"
|
|
139 |
|
|
140 |
<resource: #canvas>
|
|
141 |
|
|
142 |
^
|
|
143 |
|
|
144 |
#(#FullSpec
|
|
145 |
#'window:'
|
|
146 |
#(#WindowSpec
|
|
147 |
#'name:' 'uIPainterView'
|
|
148 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
149 |
#'label:' 'unnamed'
|
|
150 |
#'bounds:' #(#Rectangle 0 0 450 100)
|
|
151 |
)
|
|
152 |
#'component:'
|
|
153 |
#(#SpecCollection
|
|
154 |
#'collection:'
|
|
155 |
#(
|
|
156 |
#(#ArrowButtonSpec
|
|
157 |
#'name:' 'ArrowButton up'
|
|
158 |
#'layout:' #(#LayoutFrame 16 0 70 0 38 0 92 0)
|
|
159 |
#'translateLabel:' false
|
|
160 |
#'tabable:' false
|
|
161 |
#'hasCharacterOrientedLabel:' false
|
|
162 |
#'isTriggerOnDown:' true
|
|
163 |
#'direction:' #up
|
|
164 |
)
|
|
165 |
#(#ActionButtonSpec
|
|
166 |
#'name:' 'Button'
|
|
167 |
#'layout:' #(#LayoutFrame 16 0 8 0 115 0 30 0)
|
|
168 |
#'label:' 'Button'
|
|
169 |
#'translateLabel:' false
|
|
170 |
#'tabable:' false
|
|
171 |
#'isTriggerOnDown:' false
|
|
172 |
)
|
|
173 |
#(#RadioButtonSpec
|
|
174 |
#'name:' 'RadioButton'
|
|
175 |
#'layout:' #(#LayoutFrame 16 0.0 39 0 115 0 61 0)
|
|
176 |
#'label:' 'RadioButton'
|
|
177 |
#'translateLabel:' false
|
|
178 |
#'tabable:' false
|
|
179 |
#'isTriggerOnDown:' true
|
|
180 |
#'showLamp:' true
|
|
181 |
#'lampColor:' #(#Color 100.0 100.0 0.0)
|
|
182 |
)
|
|
183 |
#(#ArrowButtonSpec
|
|
184 |
#'name:' 'ArrowButton down'
|
|
185 |
#'layout:' #(#LayoutFrame 42 0 70 0 64 0 92 0)
|
|
186 |
#'translateLabel:' false
|
|
187 |
#'tabable:' false
|
|
188 |
#'hasCharacterOrientedLabel:' false
|
|
189 |
#'isTriggerOnDown:' true
|
|
190 |
#'direction:' #down
|
|
191 |
)
|
|
192 |
#(#ArrowButtonSpec
|
|
193 |
#'name:' 'ArrowButton left'
|
|
194 |
#'layout:' #(#LayoutFrame 68 0 70 0 90 0 92 0)
|
|
195 |
#'translateLabel:' false
|
|
196 |
#'tabable:' false
|
|
197 |
#'hasCharacterOrientedLabel:' false
|
|
198 |
#'isTriggerOnDown:' true
|
|
199 |
#'direction:' #left
|
|
200 |
)
|
|
201 |
#(#ArrowButtonSpec
|
|
202 |
#'name:' 'ArrowButton right'
|
|
203 |
#'layout:' #(#LayoutFrame 93 0 70 0 115 0 92 0)
|
|
204 |
#'translateLabel:' false
|
|
205 |
#'tabable:' false
|
|
206 |
#'hasCharacterOrientedLabel:' false
|
|
207 |
#'isTriggerOnDown:' true
|
|
208 |
#'direction:' #right
|
|
209 |
)
|
|
210 |
#(#CheckToggleSpec
|
|
211 |
#'name:' 'CheckToggle'
|
|
212 |
#'layout:' #(#LayoutFrame 147 0 70 0 167 0 90 0)
|
|
213 |
#'translateLabel:' false
|
|
214 |
#'tabable:' false
|
|
215 |
#'hasCharacterOrientedLabel:' false
|
|
216 |
#'isTriggerOnDown:' true
|
|
217 |
#'showLamp:' false
|
|
218 |
#'lampColor:' #(#Color 100.0 100.0 0.0)
|
|
219 |
)
|
|
220 |
#(#ToggleSpec
|
|
221 |
#'name:' 'Toggle'
|
|
222 |
#'layout:' #(#LayoutFrame 147 0 8 0 246 0 30 0)
|
|
223 |
#'label:' 'Toggle'
|
|
224 |
#'translateLabel:' false
|
|
225 |
#'tabable:' false
|
|
226 |
#'isTriggerOnDown:' true
|
|
227 |
#'showLamp:' true
|
|
228 |
#'lampColor:' #(#Color 100.0 100.0 0.0)
|
|
229 |
)
|
|
230 |
#(#CheckBoxSpec
|
|
231 |
#'name:' 'CheckBox'
|
|
232 |
#'layout:' #(#LayoutFrame 145 0 39 0 246 0 61 0)
|
|
233 |
#'tabable:' false
|
|
234 |
#'label:' 'CheckBox'
|
|
235 |
#'translateLabel:' false
|
|
236 |
)
|
|
237 |
)
|
|
238 |
)
|
|
239 |
)
|
|
240 |
!
|
|
241 |
|
|
242 |
menuComboSpec
|
|
243 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
244 |
|
|
245 |
"do not manually edit this - the painter/builder may not be able to
|
|
246 |
handle the specification if its corrupted."
|
|
247 |
|
|
248 |
"
|
|
249 |
UIPainter new openOnClass:UISelectionPanel andSelector:#menuComboSpec
|
|
250 |
UISelectionPanel new openInterface:#menuComboSpec
|
|
251 |
"
|
|
252 |
|
|
253 |
<resource: #canvas>
|
|
254 |
|
|
255 |
^
|
|
256 |
|
|
257 |
#(#FullSpec
|
|
258 |
#'window:'
|
|
259 |
#(#WindowSpec
|
|
260 |
#'name:' 'uIPainterView'
|
|
261 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
262 |
#'label:' 'unnamed'
|
|
263 |
#'bounds:' #(#Rectangle 0 0 450 100)
|
|
264 |
)
|
|
265 |
#'component:'
|
|
266 |
#(#SpecCollection
|
|
267 |
#'collection:'
|
|
268 |
#(
|
|
269 |
#(#ComboBoxSpec
|
|
270 |
#'name:' 'ComboBox'
|
|
271 |
#'layout:' #(#LayoutFrame 14 0 15 0 117 0 35 0)
|
|
272 |
#'immediateAccept:' false
|
|
273 |
#'acceptOnLeave:' true
|
|
274 |
#'acceptOnReturn:' true
|
|
275 |
#'acceptOnTab:' true
|
|
276 |
#'acceptOnLostFocus:' true
|
|
277 |
#'hasBorder:' false
|
|
278 |
)
|
|
279 |
#(#ComboListSpec
|
|
280 |
#'name:' 'ComboList'
|
|
281 |
#'layout:' #(#LayoutFrame 14 0 46 0 117 0 66 0)
|
|
282 |
#'tabable:' false
|
|
283 |
)
|
|
284 |
#(#PopUpListSpec
|
|
285 |
#'name:' 'PopUpList'
|
|
286 |
#'layout:' #(#LayoutFrame 139 0 15 0 242 0 37 0)
|
|
287 |
#'label:' 'PopUpList'
|
|
288 |
#'initiallyInvisible:' false
|
|
289 |
#'translateLabel:' false
|
|
290 |
)
|
|
291 |
)
|
|
292 |
)
|
|
293 |
)
|
|
294 |
!
|
|
295 |
|
|
296 |
panelSpec
|
|
297 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
298 |
|
|
299 |
"do not manually edit this - the painter/builder may not be able to
|
|
300 |
handle the specification if its corrupted."
|
|
301 |
|
|
302 |
"
|
|
303 |
UIPainter new openOnClass:UISelectionPanel andSelector:#panelSpec
|
|
304 |
UISelectionPanel new openInterface:#panelSpec
|
|
305 |
"
|
|
306 |
|
|
307 |
<resource: #canvas>
|
|
308 |
|
|
309 |
^
|
|
310 |
|
|
311 |
#(#FullSpec
|
|
312 |
#'window:'
|
|
313 |
#(#WindowSpec
|
|
314 |
#'name:' 'uIPainterView'
|
|
315 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
316 |
#'label:' 'unnamed'
|
|
317 |
#'bounds:' #(#Rectangle 0 0 450 100)
|
|
318 |
)
|
|
319 |
#'component:'
|
|
320 |
#(#SpecCollection
|
|
321 |
#'collection:'
|
|
322 |
#(
|
|
323 |
#(#HorizontalPanelViewSpec
|
|
324 |
#'name:' 'HorizontalPanelView'
|
|
325 |
#'layout:' #(#LayoutFrame 20 0 17 0 104 0 81 0)
|
|
326 |
#'component:'
|
|
327 |
#(#SpecCollection
|
|
328 |
#'collection:'
|
|
329 |
#(
|
|
330 |
#(#ActionButtonSpec
|
|
331 |
#'name:' 'button1'
|
|
332 |
#'label:' 'A'
|
|
333 |
#'translateLabel:' false
|
|
334 |
#'tabable:' false
|
|
335 |
#'isTriggerOnDown:' false
|
|
336 |
#'extent:' #(#Point 34 23)
|
|
337 |
#'canUIDrag:' false
|
|
338 |
)
|
|
339 |
#(#ActionButtonSpec
|
|
340 |
#'name:' 'button8'
|
|
341 |
#'label:' 'B'
|
|
342 |
#'translateLabel:' false
|
|
343 |
#'tabable:' false
|
|
344 |
#'isTriggerOnDown:' false
|
|
345 |
#'extent:' #(#Point 32 41)
|
|
346 |
#'canUIDrag:' false
|
|
347 |
)
|
|
348 |
)
|
|
349 |
)
|
|
350 |
#'level:' 0
|
|
351 |
#'horizontalLayout:' #center
|
|
352 |
#'verticalLayout:' #center
|
|
353 |
#'horizontalSpace:' 3
|
|
354 |
#'verticalSpace:' 3
|
|
355 |
)
|
|
356 |
#(#VariableHorizontalPanelSpec
|
|
357 |
#'name:' 'VariableHorizontalPanel'
|
|
358 |
#'layout:' #(#LayoutFrame 128 0 17 0 212 0 81 0)
|
|
359 |
#'component:'
|
|
360 |
#(#SpecCollection
|
|
361 |
#'collection:'
|
|
362 |
#(
|
|
363 |
#(#ActionButtonSpec
|
|
364 |
#'name:' 'button2'
|
|
365 |
#'label:' 'A'
|
|
366 |
#'translateLabel:' false
|
|
367 |
#'tabable:' false
|
|
368 |
#'isTriggerOnDown:' false
|
|
369 |
#'canUIDrag:' false
|
|
370 |
)
|
|
371 |
#(#ActionButtonSpec
|
|
372 |
#'name:' 'button3'
|
|
373 |
#'label:' 'B'
|
|
374 |
#'translateLabel:' false
|
|
375 |
#'tabable:' false
|
|
376 |
#'isTriggerOnDown:' false
|
|
377 |
#'canUIDrag:' false
|
|
378 |
)
|
|
379 |
)
|
|
380 |
)
|
|
381 |
)
|
|
382 |
#(#VerticalPanelViewSpec
|
|
383 |
#'name:' 'VerticalPanelView'
|
|
384 |
#'layout:' #(#LayoutFrame 236 0 17 0 320 0 81 0)
|
|
385 |
#'component:'
|
|
386 |
#(#SpecCollection
|
|
387 |
#'collection:'
|
|
388 |
#(
|
|
389 |
#(#ActionButtonSpec
|
|
390 |
#'name:' 'button4'
|
|
391 |
#'label:' 'A'
|
|
392 |
#'translateLabel:' false
|
|
393 |
#'tabable:' false
|
|
394 |
#'isTriggerOnDown:' false
|
|
395 |
#'extent:' #(#Point 19 18)
|
|
396 |
#'canUIDrag:' false
|
|
397 |
)
|
|
398 |
#(#ActionButtonSpec
|
|
399 |
#'name:' 'button5'
|
|
400 |
#'label:' 'B'
|
|
401 |
#'translateLabel:' false
|
|
402 |
#'tabable:' false
|
|
403 |
#'isTriggerOnDown:' false
|
|
404 |
#'extent:' #(#Point 63 30)
|
|
405 |
#'canUIDrag:' false
|
|
406 |
)
|
|
407 |
)
|
|
408 |
)
|
|
409 |
#'level:' 0
|
|
410 |
#'horizontalLayout:' #center
|
|
411 |
#'verticalLayout:' #center
|
|
412 |
#'horizontalSpace:' 3
|
|
413 |
#'verticalSpace:' 3
|
|
414 |
)
|
|
415 |
#(#VariableVerticalPanelSpec
|
|
416 |
#'name:' 'VariableVerticalPanel'
|
|
417 |
#'layout:' #(#LayoutFrame 344 0 17 0 428 0 81 0)
|
|
418 |
#'component:'
|
|
419 |
#(#SpecCollection
|
|
420 |
#'collection:'
|
|
421 |
#(
|
|
422 |
#(#ActionButtonSpec
|
|
423 |
#'name:' 'button6'
|
|
424 |
#'label:' 'A'
|
|
425 |
#'translateLabel:' false
|
|
426 |
#'tabable:' false
|
|
427 |
#'isTriggerOnDown:' false
|
|
428 |
#'canUIDrag:' false
|
|
429 |
)
|
|
430 |
#(#ActionButtonSpec
|
|
431 |
#'name:' 'button7'
|
|
432 |
#'label:' 'B'
|
|
433 |
#'translateLabel:' false
|
|
434 |
#'tabable:' false
|
|
435 |
#'isTriggerOnDown:' false
|
|
436 |
#'canUIDrag:' false
|
|
437 |
)
|
|
438 |
)
|
|
439 |
)
|
|
440 |
)
|
|
441 |
)
|
|
442 |
)
|
|
443 |
)
|
|
444 |
!
|
|
445 |
|
|
446 |
scrollerSpec
|
|
447 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
448 |
|
|
449 |
"do not manually edit this - the painter/builder may not be able to
|
|
450 |
handle the specification if its corrupted."
|
|
451 |
|
|
452 |
"
|
|
453 |
UIPainter new openOnClass:UISelectionPanel andSelector:#scrollerSpec
|
|
454 |
UISelectionPanel new openInterface:#scrollerSpec
|
|
455 |
"
|
|
456 |
|
|
457 |
<resource: #canvas>
|
|
458 |
|
|
459 |
^
|
|
460 |
|
|
461 |
#(#FullSpec
|
|
462 |
#'window:'
|
|
463 |
#(#WindowSpec
|
|
464 |
#'name:' 'uIPainterView'
|
|
465 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
466 |
#'label:' 'unnamed'
|
|
467 |
#'bounds:' #(#Rectangle 0 0 450 100)
|
|
468 |
)
|
|
469 |
#'component:'
|
|
470 |
#(#SpecCollection
|
|
471 |
#'collection:'
|
|
472 |
#(
|
|
473 |
#(#ArbitraryComponentSpec
|
|
474 |
#'name:' 'HorizontalMiniScroller'
|
|
475 |
#'layout:' #(#LayoutFrame 4 0 10 0 105 0 16 0)
|
|
476 |
#'component:' ''
|
|
477 |
#'tabable:' false
|
|
478 |
#'hasHorizontalScrollBar:' false
|
|
479 |
#'hasVerticalScrollBar:' false
|
|
480 |
#'hasBorder:' false
|
|
481 |
)
|
|
482 |
#(#ArbitraryComponentSpec
|
|
483 |
#'name:' 'HorizontalScrollBar'
|
|
484 |
#'layout:' #(#LayoutFrame 4 0 23 0 105 0 42 0)
|
|
485 |
#'component:' ''
|
|
486 |
#'tabable:' false
|
|
487 |
#'hasHorizontalScrollBar:' false
|
|
488 |
#'hasVerticalScrollBar:' false
|
|
489 |
#'hasBorder:' false
|
|
490 |
)
|
|
491 |
#(#ArbitraryComponentSpec
|
|
492 |
#'name:' 'HorizontalScroller'
|
|
493 |
#'layout:' #(#LayoutFrame 4 0 49 0 105 0 66 0)
|
|
494 |
#'component:' ''
|
|
495 |
#'tabable:' false
|
|
496 |
#'hasHorizontalScrollBar:' false
|
|
497 |
#'hasVerticalScrollBar:' false
|
|
498 |
#'hasBorder:' false
|
|
499 |
)
|
|
500 |
#(#ArbitraryComponentSpec
|
|
501 |
#'name:' 'HorizontalSlider'
|
|
502 |
#'layout:' #(#LayoutFrame 4 0 73 0 105 0 90 0)
|
|
503 |
#'tabable:' false
|
|
504 |
#'hasHorizontalScrollBar:' false
|
|
505 |
#'hasVerticalScrollBar:' false
|
|
506 |
#'hasBorder:' false
|
|
507 |
)
|
|
508 |
#(#ArbitraryComponentSpec
|
|
509 |
#'name:' 'MiniScroller'
|
|
510 |
#'layout:' #(#LayoutFrame 137 0 11 0 143 0 90 0)
|
|
511 |
#'component:' ''
|
|
512 |
#'tabable:' false
|
|
513 |
#'hasHorizontalScrollBar:' false
|
|
514 |
#'hasVerticalScrollBar:' false
|
|
515 |
#'hasBorder:' false
|
|
516 |
)
|
|
517 |
#(#ArbitraryComponentSpec
|
|
518 |
#'name:' 'ScrollBar'
|
|
519 |
#'layout:' #(#LayoutFrame 153 0 11 0 172 0 90 0)
|
|
520 |
#'component:' ''
|
|
521 |
#'tabable:' false
|
|
522 |
#'hasHorizontalScrollBar:' false
|
|
523 |
#'hasVerticalScrollBar:' false
|
|
524 |
#'hasBorder:' false
|
|
525 |
)
|
|
526 |
#(#ScrollerSpec
|
|
527 |
#'name:' 'Scroller'
|
|
528 |
#'layout:' #(#LayoutFrame 182 0 11 0 212 0 90 0)
|
|
529 |
)
|
|
530 |
#(#SliderSpec
|
|
531 |
#'name:' 'Slider'
|
|
532 |
#'layout:' #(#LayoutFrame 222 0 11 0 252 0 90 0)
|
|
533 |
)
|
|
534 |
#(#ArbitraryComponentSpec
|
|
535 |
#'name:' 'ThumbWheel'
|
|
536 |
#'layout:' #(#LayoutFrame 270 0 11 0 285 0 90 0)
|
|
537 |
#'component:' ''
|
|
538 |
#'tabable:' false
|
|
539 |
#'hasHorizontalScrollBar:' false
|
|
540 |
#'hasVerticalScrollBar:' false
|
|
541 |
#'hasBorder:' false
|
|
542 |
)
|
|
543 |
)
|
|
544 |
)
|
|
545 |
)
|
|
546 |
!
|
|
547 |
|
97
|
548 |
textSpec
|
|
549 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
550 |
|
|
551 |
"do not manually edit this - the painter/builder may not be able to
|
|
552 |
handle the specification if its corrupted."
|
|
553 |
|
|
554 |
"
|
|
555 |
UIPainter new openOnClass:UISelectionPanel andSelector:#textSpec
|
|
556 |
UISelectionPanel new openInterface:#textSpec
|
|
557 |
"
|
|
558 |
|
|
559 |
<resource: #canvas>
|
|
560 |
|
|
561 |
^
|
98
|
562 |
|
97
|
563 |
#(#FullSpec
|
|
564 |
#'window:'
|
|
565 |
#(#WindowSpec
|
|
566 |
#'name:' 'uIPainterView'
|
|
567 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
568 |
#'label:' 'unnamed'
|
|
569 |
#'bounds:' #(#Rectangle 0 0 573 264)
|
|
570 |
)
|
|
571 |
#'component:'
|
|
572 |
#(#SpecCollection
|
|
573 |
#'collection:'
|
|
574 |
#(
|
|
575 |
#(#InputFieldSpec
|
|
576 |
#'name:' 'EditField'
|
|
577 |
#'layout:' #(#LayoutFrame 13 0 11 0 117 0 33 0)
|
|
578 |
#'immediateAccept:' false
|
|
579 |
#'acceptOnLeave:' true
|
|
580 |
#'acceptOnReturn:' true
|
|
581 |
#'acceptOnTab:' true
|
|
582 |
#'acceptOnLostFocus:' true
|
|
583 |
#'hasBorder:' false
|
|
584 |
)
|
|
585 |
#(#LabelSpec
|
|
586 |
#'name:' 'Text Label'
|
|
587 |
#'layout:' #(#LayoutFrame 13 0 41 0 117 0 57 0)
|
|
588 |
#'label:' 'Text Label'
|
|
589 |
#'initiallyInvisible:' false
|
|
590 |
#'translateLabel:' false
|
|
591 |
#'level:' 0
|
|
592 |
#'adjust:' #center
|
|
593 |
#'hasCharacterOrientedLabel:' true
|
|
594 |
)
|
|
595 |
#(#TextEditorSpec
|
|
596 |
#'name:' 'EditTextView'
|
|
597 |
#'layout:' #(#LayoutFrame 127 0 11 0 231 0 91 0)
|
|
598 |
#'hasHorizontalScrollBar:' true
|
|
599 |
#'hasVerticalScrollBar:' true
|
|
600 |
#'miniScrollerHorizontal:' false
|
|
601 |
#'miniScrollerVertical:' false
|
|
602 |
)
|
|
603 |
#(#TextEditorSpec
|
|
604 |
#'name:' 'EditTextView miniH'
|
|
605 |
#'layout:' #(#LayoutFrame 243 0 11 0 347 0 91 0)
|
|
606 |
#'hasHorizontalScrollBar:' true
|
|
607 |
#'hasVerticalScrollBar:' true
|
|
608 |
#'miniScrollerHorizontal:' true
|
|
609 |
#'miniScrollerVertical:' false
|
|
610 |
)
|
|
611 |
#(#SequenceViewSpec
|
|
612 |
#'name:' 'SelectionInListView miniH'
|
|
613 |
#'layout:' #(#LayoutFrame 243 0 122 0 347 0 202 0)
|
|
614 |
#'hasHorizontalScrollBar:' true
|
|
615 |
#'hasVerticalScrollBar:' true
|
|
616 |
#'miniScrollerHorizontal:' true
|
|
617 |
#'miniScrollerVertical:' false
|
|
618 |
)
|
|
619 |
#(#SequenceViewSpec
|
|
620 |
#'name:' 'SelectionInListView'
|
|
621 |
#'layout:' #(#LayoutFrame 127 0 122 0 231 0 202 0)
|
|
622 |
#'hasHorizontalScrollBar:' true
|
|
623 |
#'hasVerticalScrollBar:' true
|
|
624 |
#'miniScrollerHorizontal:' false
|
|
625 |
#'miniScrollerVertical:' false
|
|
626 |
)
|
98
|
627 |
#(#TextEditorSpec
|
|
628 |
#'name:' 'EditTextView noH'
|
|
629 |
#'layout:' #(#LayoutFrame 361 0 11 0 465 0 91 0)
|
|
630 |
#'hasHorizontalScrollBar:' false
|
|
631 |
#'hasVerticalScrollBar:' true
|
|
632 |
#'miniScrollerHorizontal:' false
|
|
633 |
#'miniScrollerVertical:' false
|
|
634 |
)
|
|
635 |
#(#SequenceViewSpec
|
|
636 |
#'name:' 'scrollableView2'
|
|
637 |
#'layout:' #(#LayoutFrame 362 0 122 0 466 0 202 0)
|
|
638 |
#'hasHorizontalScrollBar:' false
|
|
639 |
#'hasVerticalScrollBar:' true
|
|
640 |
#'miniScrollerHorizontal:' false
|
|
641 |
#'miniScrollerVertical:' false
|
|
642 |
)
|
97
|
643 |
)
|
|
644 |
)
|
|
645 |
)
|
|
646 |
|
98
|
647 |
"Modified: 8.4.1997 / 01:17:28 / cg"
|
97
|
648 |
!
|
|
649 |
|
93
|
650 |
viewsSpec
|
|
651 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
652 |
|
|
653 |
"do not manually edit this - the painter/builder may not be able to
|
|
654 |
handle the specification if its corrupted."
|
|
655 |
|
|
656 |
"
|
|
657 |
UIPainter new openOnClass:UISelectionPanel andSelector:#viewsSpec
|
|
658 |
UISelectionPanel new openInterface:#viewsSpec
|
|
659 |
"
|
|
660 |
|
|
661 |
<resource: #canvas>
|
|
662 |
|
|
663 |
^
|
|
664 |
|
|
665 |
#(#FullSpec
|
|
666 |
#'window:'
|
|
667 |
#(#WindowSpec
|
|
668 |
#'name:' 'uIPainterView'
|
|
669 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
670 |
#'label:' 'unnamed'
|
|
671 |
#'bounds:' #(#Rectangle 0 0 450 100)
|
|
672 |
)
|
|
673 |
#'component:'
|
|
674 |
#(#SpecCollection
|
|
675 |
#'collection:'
|
|
676 |
#(
|
|
677 |
#(#FramedBoxSpec
|
|
678 |
#'name:' 'FramedBox'
|
|
679 |
#'layout:' #(#LayoutFrame 4 0 11 0 109 0 81 0)
|
98
|
680 |
#'label:' 'Frame'
|
93
|
681 |
#'labelPosition:' #topCenter
|
|
682 |
#'showFrame:' true
|
|
683 |
)
|
|
684 |
#(#ViewSpec
|
98
|
685 |
#'name:' 'View'
|
93
|
686 |
#'layout:' #(#LayoutFrame 118 0 11 0 223 0 81 0)
|
|
687 |
#'component:'
|
|
688 |
#(#SpecCollection
|
|
689 |
#'collection:'
|
|
690 |
#(
|
|
691 |
#(#LabelSpec
|
|
692 |
#'name:' 'label1'
|
|
693 |
#'layout:' #(#Point 3 2)
|
|
694 |
#'label:' 'View'
|
|
695 |
#'initiallyInvisible:' false
|
|
696 |
#'translateLabel:' false
|
|
697 |
#'level:' 0
|
|
698 |
#'adjust:' #center
|
|
699 |
#'hasCharacterOrientedLabel:' true
|
|
700 |
#'canUIDrag:' false
|
|
701 |
)
|
|
702 |
)
|
|
703 |
)
|
|
704 |
)
|
|
705 |
#(#SubCanvasSpec
|
98
|
706 |
#'name:' 'SubCanvas'
|
93
|
707 |
#'layout:' #(#LayoutFrame 232 0 11 0 337 0 81 0)
|
|
708 |
)
|
|
709 |
#(#LabelSpec
|
|
710 |
#'name:' 'label2'
|
|
711 |
#'layout:' #(#Point 246 20)
|
|
712 |
#'label:' 'SubCanvas'
|
|
713 |
#'initiallyInvisible:' false
|
|
714 |
#'translateLabel:' false
|
|
715 |
#'level:' 0
|
|
716 |
#'adjust:' #center
|
|
717 |
#'hasCharacterOrientedLabel:' true
|
|
718 |
#'canUIDrag:' false
|
|
719 |
)
|
|
720 |
#(#DividerSpec
|
|
721 |
#'name:' 'Horizontal Seperator'
|
|
722 |
#'layout:' #(#LayoutFrame 373 0 11 0 437 0 28 0)
|
|
723 |
#'orientation:' #horizontal
|
|
724 |
)
|
|
725 |
#(#DividerSpec
|
|
726 |
#'name:' 'Vertical Seperator'
|
|
727 |
#'layout:' #(#LayoutFrame 345 0 11 0 364 0 81 0)
|
|
728 |
#'orientation:' #vertical
|
|
729 |
)
|
|
730 |
)
|
|
731 |
)
|
|
732 |
)
|
98
|
733 |
|
|
734 |
"Modified: 8.4.1997 / 01:15:10 / cg"
|
93
|
735 |
! !
|
|
736 |
|
|
737 |
!UISelectionPanel methodsFor:'accessing'!
|
|
738 |
|
|
739 |
labels:labels selectors:selectors receiver:receiver
|
|
740 |
"change specification and tabs
|
|
741 |
"
|
|
742 |
tabView action:[:aNrOrNil||spec|
|
|
743 |
aNrOrNil notNil ifTrue:[
|
|
744 |
spec := receiver perform:(selectors at:aNrOrNil).
|
|
745 |
].
|
|
746 |
self specification:spec.
|
|
747 |
].
|
|
748 |
tabView list:labels.
|
|
749 |
self recomputeSizes.
|
|
750 |
|
|
751 |
|
|
752 |
!
|
|
753 |
|
|
754 |
specification:specOrSpecArray
|
|
755 |
"load a spec
|
|
756 |
"
|
|
757 |
|builder|
|
|
758 |
|
|
759 |
self selection:nil.
|
|
760 |
labelView label:''.
|
|
761 |
|
|
762 |
window subViews copy do:[:aSubView|
|
|
763 |
aSubView ~~ inputView ifTrue:[
|
|
764 |
aSubView == labelView ifTrue:[self halt].
|
|
765 |
aSubView destroy
|
|
766 |
]
|
|
767 |
].
|
|
768 |
|
|
769 |
specOrSpecArray notNil ifTrue:[
|
|
770 |
specification := UISpecification from:specOrSpecArray.
|
|
771 |
|
|
772 |
builder := UIBuilder new.
|
|
773 |
specification buildViewFor:builder in:window.
|
|
774 |
window realizeAllSubViews.
|
|
775 |
inputView raise.
|
|
776 |
]
|
|
777 |
! !
|
|
778 |
|
|
779 |
!UISelectionPanel methodsFor:'change & update'!
|
|
780 |
|
|
781 |
recomputeSizes
|
|
782 |
"recompute sizes dependent on list
|
|
783 |
"
|
|
784 |
|y x extent|
|
|
785 |
|
|
786 |
extent := tabView preferredExtent.
|
|
787 |
x := extent x.
|
|
788 |
|
|
789 |
x <= (self extent x) ifTrue:[
|
|
790 |
y := extent y.
|
|
791 |
] ifFalse:[
|
|
792 |
y := tabView preferredHeight.
|
|
793 |
].
|
|
794 |
y := y + 8.
|
|
795 |
tabView bottomInset:(y negated).
|
|
796 |
window topInset:y.
|
|
797 |
|
|
798 |
|
|
799 |
!
|
|
800 |
|
|
801 |
update:something with:aParameter from:changedObject
|
|
802 |
"tabView might change its size
|
|
803 |
"
|
|
804 |
(something == #preferredHeight and:[changedObject == tabView]) ifFalse:[
|
|
805 |
^ self
|
|
806 |
].
|
|
807 |
self recomputeSizes
|
|
808 |
|
|
809 |
|
|
810 |
! !
|
|
811 |
|
|
812 |
!UISelectionPanel methodsFor:'drag & drop'!
|
|
813 |
|
|
814 |
startDrag
|
|
815 |
"start drag of selection
|
|
816 |
"
|
|
817 |
|dragObj spec|
|
|
818 |
|
|
819 |
spec := self findSpecFor:selection.
|
|
820 |
|
|
821 |
spec notNil ifTrue:[
|
|
822 |
spec := self buildSpecFrom:spec.
|
|
823 |
|
|
824 |
self showUnselected.
|
|
825 |
dragObj := DropSpecification for:selection specification:spec.
|
|
826 |
self showSelected.
|
|
827 |
|
|
828 |
DragAndDropManager startDrag:dragObj from:inputView.
|
|
829 |
]
|
|
830 |
|
|
831 |
! !
|
|
832 |
|
|
833 |
!UISelectionPanel methodsFor:'event handling'!
|
|
834 |
|
|
835 |
buttonMotion:state x:x y:y
|
|
836 |
"start a drag on selection
|
|
837 |
"
|
|
838 |
|obj sensor|
|
|
839 |
|
|
840 |
selection notNil ifTrue:[
|
|
841 |
sensor := self sensor.
|
|
842 |
sensor anyButtonPressed ifTrue:[
|
|
843 |
(lastClickPoint dist:(x@y)) > 10.0 ifTrue:[
|
|
844 |
self startDrag
|
|
845 |
]
|
|
846 |
]
|
|
847 |
] ifFalse:[
|
|
848 |
obj := self findObjectAtX:x y:y.
|
|
849 |
|
|
850 |
obj notNil ifTrue:[
|
|
851 |
labelView label:obj name
|
|
852 |
]
|
|
853 |
].
|
|
854 |
!
|
|
855 |
|
|
856 |
buttonPress:button x:x y:y
|
|
857 |
"change selection
|
|
858 |
"
|
|
859 |
lastClickPoint := Point x:x y:y.
|
|
860 |
self selection:(self findObjectAtX:x y:y).
|
|
861 |
|
|
862 |
|
|
863 |
!
|
|
864 |
|
|
865 |
doesNotUnderstand:aMessage
|
|
866 |
"any event message not catched; discard message
|
|
867 |
"
|
|
868 |
|
|
869 |
|
|
870 |
!
|
|
871 |
|
|
872 |
exposeX:x y:y width:w height:h
|
|
873 |
"handle an expose event from device; redraw selection
|
|
874 |
"
|
|
875 |
super exposeX:x y:y width:w height:h.
|
|
876 |
self showSelected.
|
|
877 |
|
|
878 |
! !
|
|
879 |
|
|
880 |
!UISelectionPanel methodsFor:'initialization'!
|
|
881 |
|
|
882 |
initialize
|
|
883 |
|y|
|
|
884 |
|
|
885 |
super initialize.
|
|
886 |
tabView := TabView origin:0.0@0.0 corner:1.0@0.0 in:self.
|
|
887 |
window := NoteBookFrameView origin:0.0@0.0 corner:1.0@1.0 in:self.
|
|
888 |
labelView := Label origin:0.0@1.0 corner:1.0@1.0 in:self.
|
|
889 |
inputView := InputView origin:0.0@0.0 extent:1.0@1.0 in:window.
|
|
890 |
|
|
891 |
y := labelView preferredExtent y.
|
|
892 |
window bottomInset:y.
|
|
893 |
labelView topInset:(y negated).
|
|
894 |
|
|
895 |
inputView eventReceiver:self.
|
|
896 |
inputView enableButtonEvents.
|
|
897 |
inputView enableButtonMotionEvents.
|
|
898 |
inputView enableMotionEvents.
|
98
|
899 |
inputView delegate:(KeyboardForwarder from:inputView toView:tabView).
|
93
|
900 |
|
|
901 |
tabView tabWidget:#Window.
|
|
902 |
|
|
903 |
tabView styleAt:#expandSelection put:6@2.
|
|
904 |
tabView styleAt:#labelBottomInset put:4.
|
|
905 |
tabView styleAt:#lableTopInset put:0.
|
|
906 |
tabView font:(Label defaultFont).
|
|
907 |
tabView addDependent:self.
|
98
|
908 |
self delegate:(KeyboardForwarder from:self toView:tabView).
|
93
|
909 |
|
|
910 |
window viewBackground:(tabView styleAt:#selectedColor).
|
|
911 |
labelView backgroundColor:(tabView styleAt:#unselectedColor).
|
|
912 |
|
98
|
913 |
"Modified: 8.4.1997 / 01:13:15 / cg"
|
93
|
914 |
! !
|
|
915 |
|
|
916 |
!UISelectionPanel methodsFor:'searching'!
|
|
917 |
|
|
918 |
buildSpecFrom:aSpec
|
|
919 |
"build spec out of spec
|
|
920 |
"
|
|
921 |
|spec comp coll|
|
|
922 |
|
|
923 |
(aSpec notNil and:[aSpec canUIDrag]) ifFalse:[
|
|
924 |
^ nil
|
|
925 |
].
|
|
926 |
|
|
927 |
(aSpec class supportsSubComponents and:[aSpec component notNil]) ifFalse:[
|
|
928 |
^ aSpec
|
|
929 |
].
|
|
930 |
comp := aSpec component.
|
|
931 |
spec := aSpec copy.
|
|
932 |
spec component:nil.
|
|
933 |
|
|
934 |
comp canUIDrag ifFalse:[
|
|
935 |
^ spec
|
|
936 |
].
|
|
937 |
coll := OrderedCollection new.
|
|
938 |
|
|
939 |
comp do:[:anEntry||spc|
|
|
940 |
(spc := self buildSpecFrom:anEntry) notNil ifTrue:[
|
|
941 |
coll add:spc
|
|
942 |
]
|
|
943 |
].
|
|
944 |
coll isEmpty ifTrue:[
|
|
945 |
^ spec
|
|
946 |
].
|
|
947 |
comp := comp copy.
|
|
948 |
comp collection:coll.
|
|
949 |
spec component:comp.
|
|
950 |
^ spec
|
|
951 |
!
|
|
952 |
|
|
953 |
findObjectAtX:x y:y
|
|
954 |
"find the origin/corner of the currentWidget
|
|
955 |
"
|
|
956 |
|view viewId point|
|
|
957 |
|
|
958 |
point := Point x:x y:y.
|
|
959 |
point := device translatePoint:point from:(inputView id)
|
|
960 |
to:(inputView device rootView id).
|
|
961 |
inputView lower.
|
|
962 |
viewId := device viewIdFromPoint:point in:(window id).
|
|
963 |
view := device viewFromId:viewId.
|
|
964 |
inputView raise.
|
|
965 |
|
|
966 |
(view ~~ window and:[view ~~ inputView]) ifTrue:[
|
|
967 |
(self findSpecFor:view) notNil ifTrue:[
|
|
968 |
^ view
|
|
969 |
]
|
|
970 |
].
|
|
971 |
^ nil
|
|
972 |
|
|
973 |
|
|
974 |
!
|
|
975 |
|
|
976 |
findSpecFor:anObject
|
|
977 |
"returns subspec assigned to instance or nil
|
|
978 |
"
|
|
979 |
|name components spec|
|
|
980 |
|
|
981 |
anObject notNil ifTrue:[
|
|
982 |
name := anObject name.
|
|
983 |
|
|
984 |
specification do:[:aSpec|
|
|
985 |
aSpec name = name ifTrue:[
|
|
986 |
aSpec canUIDrag ifTrue:[^ aSpec]
|
|
987 |
ifFalse:[^ nil]
|
|
988 |
]
|
|
989 |
]
|
|
990 |
].
|
|
991 |
^ nil
|
|
992 |
|
|
993 |
! !
|
|
994 |
|
|
995 |
!UISelectionPanel methodsFor:'selections'!
|
|
996 |
|
|
997 |
handlesOf:aComponent do:aOneArgBlock
|
|
998 |
"evaluate the block on each handle; the argument to the block
|
|
999 |
is a rectangle
|
|
1000 |
"
|
|
1001 |
aComponent notNil ifTrue:[
|
|
1002 |
aOneArgBlock value:(aComponent origin - (4@4) extent:7@7).
|
|
1003 |
aOneArgBlock value:(aComponent corner - (4@4) extent:7@7).
|
|
1004 |
aOneArgBlock value:(aComponent topRight - (4@4) extent:7@7).
|
|
1005 |
aOneArgBlock value:(aComponent bottomLeft - (4@4) extent:7@7).
|
|
1006 |
aOneArgBlock value:(aComponent leftCenter - (4@4) extent:7@7).
|
|
1007 |
aOneArgBlock value:(aComponent rightCenter - (4@4) extent:7@7).
|
|
1008 |
aOneArgBlock value:(aComponent topCenter - (4@4) extent:7@7).
|
|
1009 |
aOneArgBlock value:(aComponent bottomCenter - (4@4) extent:7@7).
|
|
1010 |
]
|
|
1011 |
|
|
1012 |
|
|
1013 |
!
|
|
1014 |
|
|
1015 |
selection:anObject
|
|
1016 |
"selection changed
|
|
1017 |
"
|
|
1018 |
|spec|
|
|
1019 |
|
|
1020 |
selection ~~ anObject ifTrue:[
|
|
1021 |
self showUnselected.
|
|
1022 |
spec := self findSpecFor:anObject.
|
|
1023 |
|
|
1024 |
spec notNil ifTrue:[
|
|
1025 |
selection := anObject.
|
|
1026 |
self showSelected
|
|
1027 |
] ifFalse:[
|
|
1028 |
selection := nil
|
|
1029 |
].
|
|
1030 |
|
|
1031 |
selection notNil ifTrue:[
|
|
1032 |
labelView label:(selection name)
|
|
1033 |
]
|
|
1034 |
]
|
|
1035 |
|
|
1036 |
!
|
|
1037 |
|
|
1038 |
showSelected
|
|
1039 |
"show selected
|
|
1040 |
"
|
|
1041 |
selection notNil ifTrue:[
|
|
1042 |
window clippedByChildren:false.
|
|
1043 |
|
|
1044 |
self handlesOf:selection do:[:aRectangle|
|
|
1045 |
window fillRectangle:aRectangle
|
|
1046 |
].
|
|
1047 |
window clippedByChildren:true.
|
|
1048 |
].
|
|
1049 |
!
|
|
1050 |
|
|
1051 |
showUnselected
|
|
1052 |
"show unselected
|
|
1053 |
"
|
|
1054 |
|r|
|
|
1055 |
|
|
1056 |
selection isNil ifTrue:[
|
|
1057 |
^ self
|
|
1058 |
].
|
|
1059 |
|
|
1060 |
window clippedByChildren:false.
|
|
1061 |
|
|
1062 |
self handlesOf:selection do:[:aRectangle|
|
|
1063 |
window clearRectangle:aRectangle
|
|
1064 |
].
|
|
1065 |
window clippedByChildren:true.
|
|
1066 |
|
|
1067 |
"must redraw all components which are affected b the handles
|
|
1068 |
"
|
|
1069 |
r := (selection originRelativeTo:window) - (4@4) extent:(selection extent + (4@4)).
|
|
1070 |
|
|
1071 |
window subViews do:[:aComponent |
|
|
1072 |
|absOrg absFrame|
|
|
1073 |
|
|
1074 |
aComponent ~~ inputView ifTrue:[
|
|
1075 |
absOrg := aComponent originRelativeTo:window.
|
|
1076 |
absFrame := absOrg extent:(aComponent extent).
|
|
1077 |
|
|
1078 |
(absFrame intersects:r) ifTrue:[
|
|
1079 |
aComponent withAllSubViewsDo:[:aView|
|
|
1080 |
aView clear.
|
|
1081 |
aView exposeX:0 y:0 width:9999 height:9999.
|
|
1082 |
]
|
|
1083 |
]
|
|
1084 |
]
|
|
1085 |
]
|
|
1086 |
|
|
1087 |
! !
|
|
1088 |
|
|
1089 |
!UISelectionPanel::DropSpecification class methodsFor:'instance creation'!
|
|
1090 |
|
|
1091 |
for:aView specification:aSpec
|
|
1092 |
"create drop object for a view derived from a specification
|
|
1093 |
"
|
|
1094 |
aView topView raise.
|
|
1095 |
aView device sync.
|
|
1096 |
aView invalidate.
|
|
1097 |
aView windowGroup processExposeEvents.
|
|
1098 |
DisplayObject := Image fromView:aView grab:false.
|
|
1099 |
|
|
1100 |
DisplayObject extent ~= aView extent ifTrue:[
|
|
1101 |
DisplayObject := Form extent:(aView extent) depth:1.
|
|
1102 |
DisplayObject colorMap:(Array with:Color white with:Color black).
|
|
1103 |
DisplayObject fill:(Color colorId:0).
|
|
1104 |
DisplayObject paint:(Color colorId:1).
|
|
1105 |
DisplayObject displayRectangleX:0 y:0 width:aView extent x height:aView extent y.
|
|
1106 |
].
|
|
1107 |
|
|
1108 |
^ self new theObject:aSpec
|
|
1109 |
! !
|
|
1110 |
|
|
1111 |
!UISelectionPanel class methodsFor:'documentation'!
|
|
1112 |
|
|
1113 |
version
|
|
1114 |
^ '$Header$'
|
|
1115 |
! !
|