740
|
1 |
GraphColumnViewSpec subclass:#GraphColumnView2DSpec
|
|
2 |
instanceVariableNames:'gridX gridY actionBlock doubleClickBlock buttonReleaseBlock
|
|
3 |
menuAccessBlock'
|
|
4 |
classVariableNames:''
|
|
5 |
poolDictionaries:''
|
|
6 |
category:'Interface-Support-UI-Specs'
|
|
7 |
!
|
|
8 |
|
|
9 |
|
|
10 |
!GraphColumnView2DSpec class methodsFor:'interface - painter'!
|
|
11 |
|
|
12 |
addBindingsTo:env for:inst channel:aChannel
|
|
13 |
|
|
14 |
super addBindingsTo:env for:inst channel:aChannel.
|
|
15 |
|
|
16 |
self
|
|
17 |
adaptApects:
|
|
18 |
#(
|
|
19 |
actionBlock
|
|
20 |
doubleClickBlock
|
|
21 |
buttonReleaseBlock
|
|
22 |
menuAccessBlock
|
|
23 |
)
|
|
24 |
to:env
|
|
25 |
for:inst
|
|
26 |
channel:aChannel
|
|
27 |
converter:#symbolOrNil.
|
|
28 |
|
|
29 |
self
|
|
30 |
adaptApects:
|
|
31 |
#(
|
|
32 |
gridX
|
|
33 |
gridY
|
|
34 |
)
|
|
35 |
to:env
|
|
36 |
for:inst
|
|
37 |
channel:aChannel
|
|
38 |
converter:#numberOrNil.
|
|
39 |
|
|
40 |
!
|
|
41 |
|
|
42 |
slices
|
|
43 |
^ #(
|
|
44 |
(Basics basicsEditSpec)
|
|
45 |
(Details detailsEditSpec)
|
|
46 |
(Misc basicsMiscSpec)
|
|
47 |
)
|
|
48 |
|
|
49 |
! !
|
|
50 |
|
|
51 |
!GraphColumnView2DSpec class methodsFor:'interface specs'!
|
|
52 |
|
751
|
53 |
XXdetailsEditSpec
|
740
|
54 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
55 |
|
|
56 |
"do not manually edit this - the painter/builder may not be able to
|
|
57 |
handle the specification if its corrupted."
|
|
58 |
|
|
59 |
"
|
|
60 |
UIPainter new openOnClass:self andSelector:#detailsEditSpec
|
|
61 |
self new openInterface:#detailsEditSpec
|
|
62 |
"
|
|
63 |
|
|
64 |
<resource: #canvas>
|
|
65 |
|
|
66 |
^
|
|
67 |
|
|
68 |
#(#FullSpec
|
|
69 |
#'window:'
|
|
70 |
#(#WindowSpec
|
|
71 |
#'name:' 'Graph 2D Detail'
|
|
72 |
#'layout:' #(#LayoutFrame 219 0 193 0 561 0 434 0)
|
|
73 |
#'label:' 'Graph 2D Detail'
|
|
74 |
#'min:' #(#Point 10 10)
|
|
75 |
#'max:' #(#Point 1160 870)
|
|
76 |
#'bounds:' #(#Rectangle 219 193 562 435)
|
|
77 |
#'usePreferredExtent:' false
|
|
78 |
)
|
|
79 |
#'component:'
|
|
80 |
#(#SpecCollection
|
|
81 |
#'collection:'
|
|
82 |
#(
|
|
83 |
#(#LabelSpec
|
|
84 |
#'name:' 'borderWidthLabel'
|
|
85 |
#'layout:' #(#AlignmentOrigin 157 0 35 0 1 0.5)
|
|
86 |
#'label:' 'Border Width:'
|
|
87 |
#'adjust:' #left
|
|
88 |
#'resizeForLabel:' true
|
|
89 |
)
|
|
90 |
#(#InputFieldSpec
|
|
91 |
#'name:' 'borderWidthField'
|
|
92 |
#'layout:' #(#LayoutFrame 161 0 24 0 197 0 46 0)
|
|
93 |
#'activeHelpKey:' #borderWidth
|
|
94 |
#'tabable:' true
|
|
95 |
#'model:' #borderWidth
|
|
96 |
)
|
|
97 |
#(#LabelSpec
|
|
98 |
#'name:' 'levelLabel'
|
|
99 |
#'layout:' #(#AlignmentOrigin 157 0 60 0 1 0.5)
|
|
100 |
#'label:' 'Level:'
|
|
101 |
#'resizeForLabel:' true
|
|
102 |
)
|
|
103 |
#(#InputFieldSpec
|
|
104 |
#'name:' 'levelField'
|
|
105 |
#'layout:' #(#LayoutFrame 161 0 50 0 197 0 72 0)
|
|
106 |
#'activeHelpKey:' #level
|
|
107 |
#'tabable:' true
|
|
108 |
#'model:' #level
|
|
109 |
)
|
|
110 |
#(#FramedBoxSpec
|
|
111 |
#'name:' 'gridFrame'
|
|
112 |
#'layout:' #(#LayoutFrame 0 0.0 165 0 0 1.0 226 0)
|
|
113 |
#'component:'
|
|
114 |
#(#SpecCollection
|
|
115 |
#'collection:'
|
|
116 |
#(
|
|
117 |
#(#CheckBoxSpec
|
|
118 |
#'name:' 'showGrid'
|
|
119 |
#'layout:' #(#Point 18 19)
|
|
120 |
#'tabable:' true
|
|
121 |
#'model:' #showGrid
|
|
122 |
#'label:' 'Show'
|
|
123 |
)
|
|
124 |
#(#LabelSpec
|
|
125 |
#'name:' 'extentXlabel'
|
|
126 |
#'layout:' #(#AlignmentOrigin 171 0 30 0 1 0.5)
|
|
127 |
#'label:' 'Extent x:'
|
|
128 |
#'adjust:' #left
|
|
129 |
#'resizeForLabel:' true
|
|
130 |
)
|
|
131 |
#(#InputFieldSpec
|
|
132 |
#'name:' 'extentXfield'
|
|
133 |
#'layout:' #(#LayoutFrame 172 0 20 0 215 0 42 0)
|
|
134 |
#'model:' #gridX
|
|
135 |
)
|
|
136 |
#(#LabelSpec
|
|
137 |
#'name:' 'extentYlabel'
|
|
138 |
#'layout:' #(#AlignmentOrigin 242 0 30 0 1 0.5)
|
|
139 |
#'label:' 'y:'
|
|
140 |
#'adjust:' #left
|
|
141 |
#'resizeForLabel:' true
|
|
142 |
)
|
|
143 |
#(#InputFieldSpec
|
|
144 |
#'name:' 'extentYfield'
|
|
145 |
#'layout:' #(#LayoutFrame 245 0 20 0 288 0 42 0)
|
|
146 |
#'model:' #gridY
|
|
147 |
)
|
|
148 |
)
|
|
149 |
)
|
|
150 |
#'label:' 'Grid'
|
|
151 |
#'labelPosition:' #topLeft
|
|
152 |
)
|
|
153 |
#(#FramedBoxSpec
|
|
154 |
#'name:' 'aspectsFrame'
|
|
155 |
#'layout:' #(#LayoutFrame 0 0.0 81 0 0 1.0 161 0)
|
|
156 |
#'component:'
|
|
157 |
#(#SpecCollection
|
|
158 |
#'collection:'
|
|
159 |
#(
|
|
160 |
#(#LabelSpec
|
|
161 |
#'name:' 'windowSizeLabel'
|
|
162 |
#'layout:' #(#AlignmentOrigin 140 0 25 0 1 0.5)
|
|
163 |
#'label:' 'Window Size:'
|
|
164 |
#'adjust:' #left
|
|
165 |
#'resizeForLabel:' true
|
|
166 |
)
|
|
167 |
#(#InputFieldSpec
|
|
168 |
#'name:' 'windowSizeField'
|
|
169 |
#'layout:' #(#LayoutFrame 142 0 15 0 15 1.0 37 0)
|
|
170 |
#'model:' #windowSize
|
|
171 |
)
|
|
172 |
#(#LabelSpec
|
|
173 |
#'name:' 'zoomYLabel'
|
|
174 |
#'layout:' #(#AlignmentOrigin 140 0 53 0 1 0.5)
|
|
175 |
#'label:' 'Zoom-Y Factor:'
|
|
176 |
#'adjust:' #left
|
|
177 |
#'resizeForLabel:' true
|
|
178 |
)
|
|
179 |
#(#InputFieldSpec
|
|
180 |
#'name:' 'zoomYField'
|
|
181 |
#'layout:' #(#LayoutFrame 142 0 43 0 15 1.0 65 0)
|
|
182 |
#'model:' #zoomY
|
|
183 |
)
|
|
184 |
)
|
|
185 |
)
|
|
186 |
#'label:' 'Aspects'
|
|
187 |
#'labelPosition:' #topLeft
|
|
188 |
)
|
|
189 |
)
|
|
190 |
)
|
|
191 |
)
|
751
|
192 |
!
|
|
193 |
|
|
194 |
YYdetailsEditSpec
|
|
195 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
196 |
|
|
197 |
"do not manually edit this - the painter/builder may not be able to
|
|
198 |
handle the specification if its corrupted."
|
|
199 |
|
|
200 |
"
|
|
201 |
UIPainter new openOnClass:self andSelector:#detailsEditSpec
|
|
202 |
self new openInterface:#detailsEditSpec
|
|
203 |
"
|
|
204 |
|
|
205 |
<resource: #canvas>
|
|
206 |
|
|
207 |
^
|
|
208 |
|
|
209 |
#(#FullSpec
|
|
210 |
#'window:'
|
|
211 |
#(#WindowSpec
|
|
212 |
#'name:' 'Graph 2D Detail'
|
|
213 |
#'layout:' #(#LayoutFrame 6 0 142 0 379 0 445 0)
|
|
214 |
#'label:' 'Graph 2D Detail'
|
|
215 |
#'min:' #(#Point 10 10)
|
|
216 |
#'max:' #(#Point 1160 870)
|
|
217 |
#'bounds:' #(#Rectangle 6 142 380 446)
|
|
218 |
#'usePreferredExtent:' false
|
|
219 |
)
|
|
220 |
#'component:'
|
|
221 |
#(#SpecCollection
|
|
222 |
#'collection:'
|
|
223 |
#(
|
|
224 |
#(#UISubSpecification
|
|
225 |
#'name:' 'subDetailsSpec'
|
|
226 |
#'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 210 0)
|
|
227 |
#'minorKey:' #subDetailsEditSpec
|
|
228 |
)
|
|
229 |
#(#CheckBoxSpec
|
|
230 |
#'name:' 'showGrid'
|
|
231 |
#'layout:' #(#Point 27 259)
|
|
232 |
#'tabable:' true
|
|
233 |
#'model:' #showGrid
|
|
234 |
#'label:' 'Show Grid'
|
|
235 |
)
|
|
236 |
#(#LabelSpec
|
|
237 |
#'name:' 'zoomZLabel'
|
|
238 |
#'layout:' #(#AlignmentOrigin 157 0 220 0 1 0.5)
|
|
239 |
#'label:' 'Zoom-Z Factor:'
|
|
240 |
#'adjust:' #left
|
|
241 |
#'resizeForLabel:' true
|
|
242 |
)
|
|
243 |
#(#InputFieldSpec
|
|
244 |
#'name:' 'zoomZField'
|
|
245 |
#'layout:' #(#LayoutFrame 161 0 210 0 -2 1.0 232 0)
|
|
246 |
#'model:' #zoomZ
|
|
247 |
)
|
|
248 |
)
|
|
249 |
)
|
|
250 |
)
|
|
251 |
|
|
252 |
!
|
|
253 |
|
|
254 |
basicsMiscSpec
|
|
255 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
256 |
|
|
257 |
"do not manually edit this - the painter/builder may not be able to
|
|
258 |
handle the specification if its corrupted."
|
|
259 |
|
|
260 |
"
|
|
261 |
UIPainter new openOnClass:self andSelector:#basicsMiscSpec
|
|
262 |
self new openInterface:#basicsMiscSpec
|
|
263 |
"
|
|
264 |
|
|
265 |
<resource: #canvas>
|
|
266 |
|
|
267 |
^
|
|
268 |
|
|
269 |
#(#FullSpec
|
|
270 |
#'window:'
|
|
271 |
#(#WindowSpec
|
|
272 |
#'name:' 'Graph 2D Misc'
|
|
273 |
#'layout:' #(#LayoutFrame 219 0 193 0 559 0 417 0)
|
|
274 |
#'label:' 'Graph 2D Misc'
|
|
275 |
#'min:' #(#Point 10 10)
|
|
276 |
#'max:' #(#Point 1160 870)
|
|
277 |
#'bounds:' #(#Rectangle 219 193 560 418)
|
|
278 |
#'usePreferredExtent:' false
|
|
279 |
)
|
|
280 |
#'component:'
|
|
281 |
#(#SpecCollection
|
|
282 |
#'collection:'
|
|
283 |
#(
|
|
284 |
#(#LabelSpec
|
|
285 |
#'name:' 'buttonCallbacks'
|
|
286 |
#'layout:' #(#LayoutOrigin 20 0 29 0)
|
|
287 |
#'label:' 'Button Event Callbacks:'
|
|
288 |
#'adjust:' #left
|
|
289 |
#'resizeForLabel:' true
|
|
290 |
)
|
|
291 |
#(#LabelSpec
|
|
292 |
#'name:' 'singleClickLabel'
|
|
293 |
#'layout:' #(#AlignmentOrigin 135 0 67 0 1 0.5)
|
|
294 |
#'label:' 'Single Click:'
|
|
295 |
#'adjust:' #right
|
|
296 |
#'resizeForLabel:' true
|
|
297 |
)
|
|
298 |
#(#InputFieldSpec
|
|
299 |
#'name:' 'singleClickField'
|
|
300 |
#'layout:' #(#LayoutFrame 139 0 55 0 -2 1 80 0)
|
|
301 |
#'model:' #actionBlock
|
|
302 |
)
|
|
303 |
#(#LabelSpec
|
|
304 |
#'name:' 'doubleClickLabel'
|
|
305 |
#'layout:' #(#AlignmentOrigin 135 0 95 0 1 0.5)
|
|
306 |
#'label:' 'Double Click:'
|
|
307 |
#'adjust:' #right
|
|
308 |
#'resizeForLabel:' true
|
|
309 |
)
|
|
310 |
#(#InputFieldSpec
|
|
311 |
#'name:' 'doubleClickField'
|
|
312 |
#'layout:' #(#LayoutFrame 139 0 83 0 -2 1 108 0)
|
|
313 |
#'model:' #doubleClickBlock
|
|
314 |
)
|
|
315 |
#(#LabelSpec
|
|
316 |
#'name:' 'releaseButtonLabel'
|
|
317 |
#'layout:' #(#AlignmentOrigin 135 0 124 0 1 0.5)
|
|
318 |
#'label:' 'Release Button:'
|
|
319 |
#'adjust:' #right
|
|
320 |
#'resizeForLabel:' true
|
|
321 |
)
|
|
322 |
#(#InputFieldSpec
|
|
323 |
#'name:' 'releaseButtonField'
|
|
324 |
#'layout:' #(#LayoutFrame 139 0 112 0 -2 1 137 0)
|
|
325 |
#'model:' #buttonReleaseBlock
|
|
326 |
)
|
|
327 |
#(#LabelSpec
|
|
328 |
#'name:' 'menuAccessLabel'
|
|
329 |
#'layout:' #(#AlignmentOrigin 135 0 202 0 1 0.5)
|
|
330 |
#'label:' 'Menu Access:'
|
|
331 |
#'adjust:' #right
|
|
332 |
#'resizeForLabel:' true
|
|
333 |
)
|
|
334 |
#(#InputFieldSpec
|
|
335 |
#'name:' 'menuAccessField'
|
|
336 |
#'layout:' #(#LayoutFrame 139 0 190 0 -2 1 215 0)
|
|
337 |
#'model:' #menuAccessBlock
|
|
338 |
)
|
|
339 |
#(#LabelSpec
|
|
340 |
#'name:' 'menuCallbacks'
|
|
341 |
#'layout:' #(#LayoutOrigin 20 0 165 0)
|
|
342 |
#'label:' 'Menu Callbacks:'
|
|
343 |
#'adjust:' #left
|
|
344 |
#'resizeForLabel:' true
|
|
345 |
)
|
|
346 |
)
|
|
347 |
)
|
|
348 |
)
|
|
349 |
!
|
|
350 |
|
|
351 |
detailsEditSpec
|
|
352 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
353 |
|
|
354 |
"do not manually edit this - the painter/builder may not be able to
|
|
355 |
handle the specification if its corrupted."
|
|
356 |
|
|
357 |
"
|
|
358 |
UIPainter new openOnClass:GraphColumnView2DSpec andSelector:#detailsEditSpec
|
|
359 |
GraphColumnView2DSpec new openInterface:#detailsEditSpec
|
|
360 |
"
|
|
361 |
|
|
362 |
<resource: #canvas>
|
|
363 |
|
|
364 |
^
|
|
365 |
|
|
366 |
#(#FullSpec
|
|
367 |
#'window:'
|
|
368 |
#(#WindowSpec
|
|
369 |
#'name:' 'Graph 2D Detail'
|
|
370 |
#'layout:' #(#LayoutFrame 114 0 536 0 487 0 839 0)
|
|
371 |
#'label:' 'Graph 2D Detail'
|
|
372 |
#'min:' #(#Point 10 10)
|
|
373 |
#'max:' #(#Point 1160 870)
|
|
374 |
#'bounds:' #(#Rectangle 114 536 488 840)
|
|
375 |
#'usePreferredExtent:' false
|
|
376 |
)
|
|
377 |
#'component:'
|
|
378 |
#(#SpecCollection
|
|
379 |
#'collection:'
|
|
380 |
#(
|
|
381 |
#(#UISubSpecification
|
|
382 |
#'name:' 'subDetailsSpec'
|
|
383 |
#'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 210 0)
|
|
384 |
#'majorKey:' #GraphColumnViewSpec
|
|
385 |
#'minorKey:' #subDetailsEditSpec
|
|
386 |
)
|
|
387 |
#(#CheckBoxSpec
|
|
388 |
#'name:' 'showGrid'
|
|
389 |
#'layout:' #(#Point 27 259)
|
|
390 |
#'tabable:' true
|
|
391 |
#'model:' #showGrid
|
|
392 |
#'label:' 'Show Grid'
|
|
393 |
)
|
|
394 |
#(#InputFieldSpec
|
|
395 |
#'name:' 'extentXfield'
|
|
396 |
#'layout:' #(#LayoutFrame 161 0 224 0 190 0 246 0)
|
|
397 |
#'model:' #gridX
|
|
398 |
)
|
|
399 |
#(#InputFieldSpec
|
|
400 |
#'name:' 'extentYfield'
|
|
401 |
#'layout:' #(#LayoutFrame 217 0 224 0 246 0 246 0)
|
|
402 |
#'model:' #gridY
|
|
403 |
)
|
|
404 |
#(#LabelSpec
|
|
405 |
#'name:' 'extentYlabel'
|
|
406 |
#'layout:' #(#AlignmentOrigin 214 0 234 0 1 0.5)
|
|
407 |
#'label:' 'Y:'
|
|
408 |
#'adjust:' #left
|
|
409 |
#'resizeForLabel:' true
|
|
410 |
)
|
|
411 |
#(#LabelSpec
|
|
412 |
#'name:' 'extentXlabel'
|
|
413 |
#'layout:' #(#AlignmentOrigin 157 0 234 0 1 0.5)
|
|
414 |
#'label:' 'Grid Extent X:'
|
|
415 |
#'adjust:' #left
|
|
416 |
#'resizeForLabel:' true
|
|
417 |
)
|
|
418 |
)
|
|
419 |
)
|
|
420 |
)
|
740
|
421 |
! !
|
|
422 |
|
|
423 |
!GraphColumnView2DSpec methodsFor:'accessing'!
|
|
424 |
|
|
425 |
actionBlock
|
|
426 |
"return the value of the instance variable 'actionBlock' (automatically generated)"
|
|
427 |
|
|
428 |
^ actionBlock!
|
|
429 |
|
|
430 |
actionBlock:something
|
|
431 |
"set the value of the instance variable 'actionBlock' (automatically generated)"
|
|
432 |
|
|
433 |
actionBlock := something.!
|
|
434 |
|
|
435 |
buttonReleaseBlock
|
|
436 |
"return the value of the instance variable 'buttonReleaseBlock' (automatically generated)"
|
|
437 |
|
|
438 |
^ buttonReleaseBlock!
|
|
439 |
|
|
440 |
buttonReleaseBlock:something
|
|
441 |
"set the value of the instance variable 'buttonReleaseBlock' (automatically generated)"
|
|
442 |
|
|
443 |
buttonReleaseBlock := something.!
|
|
444 |
|
|
445 |
doubleClickBlock
|
|
446 |
"return the value of the instance variable 'doubleClickBlock' (automatically generated)"
|
|
447 |
|
|
448 |
^ doubleClickBlock!
|
|
449 |
|
|
450 |
doubleClickBlock:something
|
|
451 |
"set the value of the instance variable 'doubleClickBlock' (automatically generated)"
|
|
452 |
|
|
453 |
doubleClickBlock := something.!
|
|
454 |
|
|
455 |
gridX
|
|
456 |
"return the value of the instance variable 'gridX' (automatically generated)"
|
|
457 |
|
|
458 |
^ gridX ? 0
|
|
459 |
!
|
|
460 |
|
|
461 |
gridX:something
|
|
462 |
"set the value of the instance variable 'gridX' (automatically generated)"
|
|
463 |
|
|
464 |
gridX := something.!
|
|
465 |
|
|
466 |
gridY
|
|
467 |
"return the value of the instance variable 'gridY' (automatically generated)"
|
|
468 |
|
|
469 |
^ gridY ? 0
|
|
470 |
!
|
|
471 |
|
|
472 |
gridY:something
|
|
473 |
"set the value of the instance variable 'gridY' (automatically generated)"
|
|
474 |
|
|
475 |
gridY := something.!
|
|
476 |
|
|
477 |
menuAccessBlock
|
|
478 |
"return the value of the instance variable 'menuAccessBlock' (automatically generated)"
|
|
479 |
|
|
480 |
^ menuAccessBlock!
|
|
481 |
|
|
482 |
menuAccessBlock:something
|
|
483 |
"set the value of the instance variable 'menuAccessBlock' (automatically generated)"
|
|
484 |
|
|
485 |
menuAccessBlock := something.! !
|
|
486 |
|
|
487 |
!GraphColumnView2DSpec methodsFor:'building'!
|
|
488 |
|
|
489 |
actionSelectors
|
|
490 |
"add more action selectors
|
|
491 |
"
|
|
492 |
|more|
|
|
493 |
|
|
494 |
more := super actionSelectors.
|
|
495 |
|
|
496 |
actionBlock notNil ifTrue:[more add:actionBlock].
|
|
497 |
doubleClickBlock notNil ifTrue:[more add:doubleClickBlock].
|
|
498 |
buttonReleaseBlock notNil ifTrue:[more add:buttonReleaseBlock].
|
|
499 |
menuAccessBlock notNil ifTrue:[more add:menuAccessBlock].
|
|
500 |
|
|
501 |
^ more
|
|
502 |
!
|
|
503 |
|
|
504 |
defineCallBackActionFor:aSelector with:aBuilder
|
|
505 |
|
|
506 |
|appl args|
|
|
507 |
|
|
508 |
( aSelector isNil
|
|
509 |
or:[aBuilder isEditing
|
|
510 |
or:[(appl := aBuilder application) isNil]]
|
|
511 |
) ifTrue:[
|
|
512 |
^ nil
|
|
513 |
].
|
|
514 |
|
|
515 |
args := aSelector numArgs.
|
|
516 |
|
|
517 |
args == 0 ifTrue:[ ^ [ appl perform:aSelector] ].
|
|
518 |
args == 1 ifTrue:[ ^ [:a1| appl perform:aSelector with:a1] ].
|
|
519 |
args == 2 ifTrue:[ ^ [:a1 :a2| appl perform:aSelector with:a1 with:a2] ].
|
|
520 |
args == 3 ifTrue:[ ^ [:a1 :a2 :a3| appl perform:aSelector with:a1 with:a2 with:a3] ].
|
|
521 |
args == 4 ifTrue:[ ^ [:a1 :a2 :a3 :a4| appl perform:aSelector with:a1 with:a2 with:a3 with:a4] ].
|
|
522 |
|
|
523 |
^ nil
|
|
524 |
!
|
|
525 |
|
|
526 |
setAttributesIn:aView with:aBuilder
|
|
527 |
|
|
528 |
super setAttributesIn:aView with:aBuilder.
|
|
529 |
|
|
530 |
aView gridExtent:(self gridX @ self gridY).
|
|
531 |
|
|
532 |
aBuilder isEditing ifFalse:[
|
|
533 |
aView action:(self defineCallBackActionFor:actionBlock with:aBuilder).
|
|
534 |
aView doubleClickAction:(self defineCallBackActionFor:doubleClickBlock with:aBuilder).
|
|
535 |
aView buttonReleaseBlock:(self defineCallBackActionFor:buttonReleaseBlock with:aBuilder).
|
|
536 |
aView menuAccessBlock:(self defineCallBackActionFor:menuAccessBlock with:aBuilder).
|
|
537 |
]
|
|
538 |
! !
|
|
539 |
|
|
540 |
!GraphColumnView2DSpec methodsFor:'converting'!
|
|
541 |
|
|
542 |
skippedInLiteralEncoding
|
|
543 |
"define the inst-slots which are skiped when generating a literalArrayEncoding"
|
|
544 |
|
|
545 |
|l|
|
|
546 |
|
|
547 |
l := super skippedInLiteralEncoding asOrderedCollection.
|
|
548 |
|
742
|
549 |
actionBlock isNil ifTrue:[l add:#actionBlock].
|
|
550 |
doubleClickBlock isNil ifTrue:[l add:#doubleClickBlock].
|
|
551 |
buttonReleaseBlock isNil ifTrue:[l add:#buttonReleaseBlock].
|
|
552 |
menuAccessBlock isNil ifTrue:[l add:#menuAccessBlock].
|
740
|
553 |
|
|
554 |
self showGrid ifFalse:[
|
742
|
555 |
l add:#gridX.
|
|
556 |
l add:#gridY.
|
740
|
557 |
].
|
|
558 |
^ l
|
|
559 |
|
|
560 |
|
|
561 |
|
|
562 |
|
|
563 |
! !
|
|
564 |
|
|
565 |
!GraphColumnView2DSpec methodsFor:'parsing a view'!
|
|
566 |
|
|
567 |
fromView:aView callBack:aBlock
|
|
568 |
|
|
569 |
gridX := aView gridX.
|
|
570 |
gridY := aView gridY.
|
|
571 |
|
|
572 |
super fromView:aView callBack:aBlock
|
|
573 |
|
|
574 |
|
|
575 |
! !
|
|
576 |
|
|
577 |
!GraphColumnView2DSpec class methodsFor:'documentation'!
|
|
578 |
|
|
579 |
version
|
751
|
580 |
^ '$Header: /cvs/stx/stx/libwidg2/GraphColumnView2DSpec.st,v 1.3 1998-02-09 10:47:09 ca Exp $'
|
740
|
581 |
! !
|