author | Claus Gittinger <cg@exept.de> |
Tue, 07 May 2019 13:13:22 +0200 | |
changeset 6047 | 80dad68e23a2 |
parent 3307 | 15f429081b7c |
child 4770 | 6634b540fea2 |
permissions | -rw-r--r-- |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
3150 | 3 |
All Rights Reserved |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
4 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
5 |
This software is furnished under a license and may be used |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
10 |
hereby transferred. |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
11 |
" |
3150 | 12 |
"{ Package: 'stx:libwidg2' }" |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
13 |
|
740 | 14 |
GraphColumnViewSpec subclass:#GraphColumnView2DSpec |
15 |
instanceVariableNames:'gridX gridY actionBlock doubleClickBlock buttonReleaseBlock |
|
16 |
menuAccessBlock' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-Support-UI-Specs' |
|
20 |
! |
|
21 |
||
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
22 |
!GraphColumnView2DSpec class methodsFor:'documentation'! |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
23 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
24 |
copyright |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
25 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
26 |
COPYRIGHT (c) 1998 by eXept Software AG |
3150 | 27 |
All Rights Reserved |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
28 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
29 |
This software is furnished under a license and may be used |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
30 |
only in accordance with the terms of that license and with the |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
31 |
inclusion of the above copyright notice. This software may not |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
32 |
be provided or otherwise made available to, or used by, any |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
33 |
other person. No title to or ownership of the software is |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
34 |
hereby transferred. |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
35 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
36 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
37 |
! |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
38 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
39 |
documentation |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
40 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
41 |
Not normally used by applications. |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
42 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
43 |
[author:] |
3150 | 44 |
Claus Atzkern |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
45 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
46 |
[see also:] |
3150 | 47 |
UIBuilder |
48 |
UIPainter |
|
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
49 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
50 |
! ! |
740 | 51 |
|
52 |
!GraphColumnView2DSpec class methodsFor:'interface - painter'! |
|
53 |
||
3150 | 54 |
addBindingsTo:env for:inst channel:aChannel |
740 | 55 |
|
56 |
super addBindingsTo:env for:inst channel:aChannel. |
|
57 |
||
3150 | 58 |
self |
59 |
adaptApects: |
|
60 |
#( |
|
61 |
actionBlock |
|
62 |
doubleClickBlock |
|
63 |
buttonReleaseBlock |
|
64 |
menuAccessBlock |
|
65 |
) |
|
66 |
to:env |
|
67 |
for:inst |
|
68 |
channel:aChannel |
|
69 |
converter:#symbolOrNil. |
|
740 | 70 |
|
3150 | 71 |
self |
72 |
adaptApects: |
|
73 |
#( |
|
74 |
gridX |
|
75 |
gridY |
|
76 |
) |
|
77 |
to:env |
|
78 |
for:inst |
|
79 |
channel:aChannel |
|
80 |
converter:#numberOrNil. |
|
740 | 81 |
|
82 |
! |
|
83 |
||
84 |
slices |
|
85 |
^ #( |
|
3150 | 86 |
(Basics basicsEditSpec) |
87 |
(Details detailsEditSpec) |
|
88 |
(Misc basicsMiscSpec) |
|
740 | 89 |
) |
90 |
||
91 |
! ! |
|
92 |
||
93 |
!GraphColumnView2DSpec class methodsFor:'interface specs'! |
|
94 |
||
751 | 95 |
basicsMiscSpec |
1656 | 96 |
"This resource specification was automatically generated |
97 |
by the UIPainter of ST/X." |
|
751 | 98 |
|
1656 | 99 |
"Do not manually edit this!! If it is corrupted, |
100 |
the UIPainter may not be able to read the specification." |
|
751 | 101 |
|
102 |
" |
|
1656 | 103 |
UIPainter new openOnClass:GraphColumnView2DSpec andSelector:#basicsMiscSpec |
751 | 104 |
" |
105 |
||
106 |
<resource: #canvas> |
|
107 |
||
3150 | 108 |
^ |
1656 | 109 |
#(#FullSpec |
3150 | 110 |
#name: #basicsMiscSpec |
111 |
#window: |
|
1656 | 112 |
#(#WindowSpec |
3150 | 113 |
#label: 'Graph 2D Misc' |
114 |
#name: 'Graph 2D Misc' |
|
115 |
#min: #(#Point 10 10) |
|
116 |
#max: #(#Point 1160 870) |
|
117 |
#bounds: #(#Rectangle 886 214 1227 439) |
|
118 |
) |
|
119 |
#component: |
|
1656 | 120 |
#(#SpecCollection |
3150 | 121 |
#collection: #( |
122 |
#(#LabelSpec |
|
123 |
#label: 'Button Event Callbacks:' |
|
124 |
#name: 'buttonCallbacks' |
|
125 |
#layout: #(#LayoutOrigin 20 0 29 0) |
|
126 |
#resizeForLabel: true |
|
127 |
#adjust: #left |
|
128 |
) |
|
129 |
#(#LabelSpec |
|
130 |
#label: 'Single Click:' |
|
131 |
#name: 'singleClickLabel' |
|
132 |
#layout: #(#AlignmentOrigin 135 0 67 0 1 0.5) |
|
133 |
#resizeForLabel: true |
|
134 |
#adjust: #right |
|
135 |
) |
|
136 |
#(#InputFieldSpec |
|
137 |
#attributes: |
|
138 |
#(#singleClickField |
|
139 |
nil #tabable |
|
140 |
true |
|
141 |
) |
|
142 |
#name: 'singleClickField' |
|
143 |
#layout: #(#LayoutFrame 139 0 55 0 -2 1 80 0) |
|
144 |
#tabable: true |
|
145 |
#model: #actionBlock |
|
146 |
#acceptChannel: #acceptChannel |
|
147 |
#modifiedChannel: #modifiedChannel |
|
148 |
#acceptOnPointerLeave: false |
|
149 |
) |
|
150 |
#(#LabelSpec |
|
151 |
#label: 'Double Click:' |
|
152 |
#name: 'doubleClickLabel' |
|
153 |
#layout: #(#AlignmentOrigin 135 0 95 0 1 0.5) |
|
154 |
#resizeForLabel: true |
|
155 |
#adjust: #right |
|
156 |
) |
|
157 |
#(#InputFieldSpec |
|
158 |
#attributes: |
|
159 |
#(#doubleClickField |
|
160 |
nil #tabable |
|
161 |
true |
|
162 |
) |
|
163 |
#name: 'doubleClickField' |
|
164 |
#layout: #(#LayoutFrame 139 0 83 0 -2 1 108 0) |
|
165 |
#tabable: true |
|
166 |
#model: #doubleClickBlock |
|
167 |
#acceptChannel: #acceptChannel |
|
168 |
#modifiedChannel: #modifiedChannel |
|
169 |
#acceptOnPointerLeave: false |
|
170 |
) |
|
171 |
#(#LabelSpec |
|
172 |
#label: 'Release Button:' |
|
173 |
#name: 'releaseButtonLabel' |
|
174 |
#layout: #(#AlignmentOrigin 135 0 124 0 1 0.5) |
|
175 |
#resizeForLabel: true |
|
176 |
#adjust: #right |
|
177 |
) |
|
178 |
#(#InputFieldSpec |
|
179 |
#attributes: |
|
180 |
#(#tabable |
|
181 |
true #releaseButtonField |
|
182 |
nil |
|
183 |
) |
|
184 |
#name: 'releaseButtonField' |
|
185 |
#layout: #(#LayoutFrame 139 0 112 0 -2 1 137 0) |
|
186 |
#tabable: true |
|
187 |
#model: #buttonReleaseBlock |
|
188 |
#acceptChannel: #acceptChannel |
|
189 |
#modifiedChannel: #modifiedChannel |
|
190 |
#acceptOnPointerLeave: false |
|
191 |
) |
|
192 |
#(#LabelSpec |
|
193 |
#label: 'Menu Access:' |
|
194 |
#name: 'menuAccessLabel' |
|
195 |
#layout: #(#AlignmentOrigin 135 0 202 0 1 0.5) |
|
196 |
#resizeForLabel: true |
|
197 |
#adjust: #right |
|
198 |
) |
|
199 |
#(#InputFieldSpec |
|
200 |
#attributes: |
|
201 |
#(#tabable |
|
202 |
true #menuAccessField |
|
203 |
nil |
|
204 |
) |
|
205 |
#name: 'menuAccessField' |
|
206 |
#layout: #(#LayoutFrame 139 0 190 0 -2 1 215 0) |
|
207 |
#tabable: true |
|
208 |
#model: #menuAccessBlock |
|
209 |
#acceptChannel: #acceptChannel |
|
210 |
#modifiedChannel: #modifiedChannel |
|
211 |
#acceptOnPointerLeave: false |
|
212 |
) |
|
213 |
#(#LabelSpec |
|
214 |
#label: 'Menu Callbacks:' |
|
215 |
#name: 'menuCallbacks' |
|
216 |
#layout: #(#LayoutOrigin 20 0 165 0) |
|
217 |
#resizeForLabel: true |
|
218 |
#adjust: #left |
|
219 |
) |
|
220 |
) |
|
221 |
||
222 |
) |
|
751 | 223 |
) |
224 |
! |
|
225 |
||
226 |
detailsEditSpec |
|
904 | 227 |
"This resource specification was automatically generated |
228 |
by the UIPainter of ST/X." |
|
751 | 229 |
|
904 | 230 |
"Do not manually edit this!! If it is corrupted, |
231 |
the UIPainter may not be able to read the specification." |
|
751 | 232 |
|
233 |
" |
|
234 |
UIPainter new openOnClass:GraphColumnView2DSpec andSelector:#detailsEditSpec |
|
235 |
" |
|
236 |
||
237 |
<resource: #canvas> |
|
238 |
||
3150 | 239 |
^ |
1656 | 240 |
#(#FullSpec |
3150 | 241 |
#name: #detailsEditSpec |
242 |
#window: |
|
1656 | 243 |
#(#WindowSpec |
3150 | 244 |
#label: 'Graph 2D Detail' |
245 |
#name: 'Graph 2D Detail' |
|
246 |
#min: #(#Point 10 10) |
|
247 |
#max: #(#Point 1160 870) |
|
248 |
#bounds: #(#Rectangle 886 214 1260 487) |
|
249 |
) |
|
250 |
#component: |
|
1656 | 251 |
#(#SpecCollection |
3150 | 252 |
#collection: #( |
253 |
#(#UISubSpecification |
|
254 |
#name: 'subDetailsSpec' |
|
255 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 186 0) |
|
256 |
#majorKey: #GraphColumnViewSpec |
|
257 |
#minorKey: #subDetailsEditSpec |
|
258 |
) |
|
259 |
#(#LabelSpec |
|
260 |
#label: 'Grid Extent X:' |
|
261 |
#name: 'extentXlabel' |
|
262 |
#layout: #(#AlignmentOrigin 157 0 207 0 1 0.5) |
|
263 |
#resizeForLabel: true |
|
264 |
#adjust: #left |
|
265 |
) |
|
266 |
#(#InputFieldSpec |
|
267 |
#attributes: |
|
268 |
#(#extentXfield |
|
269 |
nil #tabable |
|
270 |
true |
|
271 |
) |
|
272 |
#name: 'extentXfield' |
|
273 |
#layout: #(#LayoutFrame 161 0 197 0 190 0 219 0) |
|
274 |
#tabable: true |
|
275 |
#model: #gridX |
|
276 |
#acceptChannel: #acceptChannel |
|
277 |
#modifiedChannel: #modifiedChannel |
|
278 |
#acceptOnPointerLeave: false |
|
279 |
) |
|
280 |
#(#LabelSpec |
|
281 |
#label: 'Y:' |
|
282 |
#name: 'extentYlabel' |
|
283 |
#layout: #(#AlignmentOrigin 214 0 207 0 1 0.5) |
|
284 |
#resizeForLabel: true |
|
285 |
#adjust: #left |
|
286 |
) |
|
287 |
#(#InputFieldSpec |
|
288 |
#attributes: |
|
289 |
#(#tabable |
|
290 |
true #extentYfield |
|
291 |
nil |
|
292 |
) |
|
293 |
#name: 'extentYfield' |
|
294 |
#layout: #(#LayoutFrame 217 0 197 0 246 0 219 0) |
|
295 |
#tabable: true |
|
296 |
#model: #gridY |
|
297 |
#acceptChannel: #acceptChannel |
|
298 |
#modifiedChannel: #modifiedChannel |
|
299 |
#acceptOnPointerLeave: false |
|
300 |
) |
|
301 |
#(#CheckBoxSpec |
|
302 |
#attributes: |
|
303 |
#(#tabable |
|
304 |
true |
|
305 |
) |
|
306 |
#label: 'Show Grid' |
|
307 |
#name: 'showGrid' |
|
308 |
#layout: #(#Point 27 235) |
|
309 |
#tabable: true |
|
310 |
#model: #showGrid |
|
311 |
) |
|
312 |
) |
|
313 |
||
314 |
) |
|
751 | 315 |
) |
740 | 316 |
! ! |
317 |
||
318 |
!GraphColumnView2DSpec methodsFor:'accessing'! |
|
319 |
||
320 |
actionBlock |
|
321 |
"return the value of the instance variable 'actionBlock' (automatically generated)" |
|
322 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
323 |
^ actionBlock |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
324 |
! |
740 | 325 |
|
326 |
actionBlock:something |
|
327 |
"set the value of the instance variable 'actionBlock' (automatically generated)" |
|
328 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
329 |
actionBlock := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
330 |
! |
740 | 331 |
|
332 |
buttonReleaseBlock |
|
333 |
"return the value of the instance variable 'buttonReleaseBlock' (automatically generated)" |
|
334 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
335 |
^ buttonReleaseBlock |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
336 |
! |
740 | 337 |
|
338 |
buttonReleaseBlock:something |
|
339 |
"set the value of the instance variable 'buttonReleaseBlock' (automatically generated)" |
|
340 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
341 |
buttonReleaseBlock := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
342 |
! |
740 | 343 |
|
344 |
doubleClickBlock |
|
345 |
"return the value of the instance variable 'doubleClickBlock' (automatically generated)" |
|
346 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
347 |
^ doubleClickBlock |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
348 |
! |
740 | 349 |
|
350 |
doubleClickBlock:something |
|
351 |
"set the value of the instance variable 'doubleClickBlock' (automatically generated)" |
|
352 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
353 |
doubleClickBlock := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
354 |
! |
740 | 355 |
|
356 |
gridX |
|
357 |
"return the value of the instance variable 'gridX' (automatically generated)" |
|
358 |
||
359 |
^ gridX ? 0 |
|
360 |
! |
|
361 |
||
362 |
gridX:something |
|
363 |
"set the value of the instance variable 'gridX' (automatically generated)" |
|
364 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
365 |
gridX := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
366 |
! |
740 | 367 |
|
368 |
gridY |
|
369 |
"return the value of the instance variable 'gridY' (automatically generated)" |
|
370 |
||
371 |
^ gridY ? 0 |
|
372 |
! |
|
373 |
||
374 |
gridY:something |
|
375 |
"set the value of the instance variable 'gridY' (automatically generated)" |
|
376 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
377 |
gridY := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
378 |
! |
740 | 379 |
|
380 |
menuAccessBlock |
|
381 |
"return the value of the instance variable 'menuAccessBlock' (automatically generated)" |
|
382 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
383 |
^ menuAccessBlock |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
384 |
! |
740 | 385 |
|
386 |
menuAccessBlock:something |
|
387 |
"set the value of the instance variable 'menuAccessBlock' (automatically generated)" |
|
388 |
||
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
389 |
menuAccessBlock := something. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
390 |
! ! |
740 | 391 |
|
392 |
!GraphColumnView2DSpec methodsFor:'building'! |
|
393 |
||
394 |
actionSelectors |
|
3307
15f429081b7c
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3305
diff
changeset
|
395 |
"add more action selectors (these generate callBack stub methods in the definer)" |
15f429081b7c
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3305
diff
changeset
|
396 |
|
740 | 397 |
|more| |
398 |
||
399 |
more := super actionSelectors. |
|
400 |
||
401 |
actionBlock notNil ifTrue:[more add:actionBlock]. |
|
402 |
doubleClickBlock notNil ifTrue:[more add:doubleClickBlock]. |
|
403 |
buttonReleaseBlock notNil ifTrue:[more add:buttonReleaseBlock]. |
|
404 |
menuAccessBlock notNil ifTrue:[more add:menuAccessBlock]. |
|
405 |
||
3307
15f429081b7c
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3305
diff
changeset
|
406 |
^ more |
740 | 407 |
! |
408 |
||
409 |
defineCallBackActionFor:aSelector with:aBuilder |
|
410 |
||
411 |
|appl args| |
|
412 |
||
413 |
( aSelector isNil |
|
414 |
or:[aBuilder isEditing |
|
415 |
or:[(appl := aBuilder application) isNil]] |
|
416 |
) ifTrue:[ |
|
3150 | 417 |
^ nil |
740 | 418 |
]. |
419 |
||
420 |
args := aSelector numArgs. |
|
421 |
||
422 |
args == 0 ifTrue:[ ^ [ appl perform:aSelector] ]. |
|
423 |
args == 1 ifTrue:[ ^ [:a1| appl perform:aSelector with:a1] ]. |
|
424 |
args == 2 ifTrue:[ ^ [:a1 :a2| appl perform:aSelector with:a1 with:a2] ]. |
|
425 |
args == 3 ifTrue:[ ^ [:a1 :a2 :a3| appl perform:aSelector with:a1 with:a2 with:a3] ]. |
|
426 |
args == 4 ifTrue:[ ^ [:a1 :a2 :a3 :a4| appl perform:aSelector with:a1 with:a2 with:a3 with:a4] ]. |
|
427 |
||
428 |
^ nil |
|
429 |
! |
|
430 |
||
431 |
setAttributesIn:aView with:aBuilder |
|
432 |
||
433 |
super setAttributesIn:aView with:aBuilder. |
|
434 |
||
753 | 435 |
aBuilder isEditing ifFalse:[ |
3305
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
436 |
aView gridExtent:(self gridX @ self gridY). |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
437 |
actionBlock notNil ifTrue:[ |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
438 |
aView action:(self callBackActionFor:actionBlock with:aBuilder). |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
439 |
]. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
440 |
doubleClickBlock notNil ifTrue:[ |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
441 |
aView doubleClickAction:(self callBackActionFor:doubleClickBlock with:aBuilder). |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
442 |
]. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
443 |
buttonReleaseBlock notNil ifTrue:[ |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
444 |
aView buttonReleaseBlock:(self callBackActionFor:buttonReleaseBlock with:aBuilder). |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
445 |
]. |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
446 |
menuAccessBlock notNil ifTrue:[ |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
447 |
aView menuAccessBlock:(self callBackActionFor:menuAccessBlock with:aBuilder). |
4fa0a476b474
defineCallBackActionFor -> callBackActionFor;
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
448 |
] |
740 | 449 |
] |
450 |
! ! |
|
451 |
||
452 |
!GraphColumnView2DSpec methodsFor:'converting'! |
|
453 |
||
454 |
skippedInLiteralEncoding |
|
455 |
"define the inst-slots which are skiped when generating a literalArrayEncoding" |
|
456 |
||
457 |
|l| |
|
458 |
||
459 |
l := super skippedInLiteralEncoding asOrderedCollection. |
|
460 |
||
742 | 461 |
actionBlock isNil ifTrue:[l add:#actionBlock]. |
462 |
doubleClickBlock isNil ifTrue:[l add:#doubleClickBlock]. |
|
463 |
buttonReleaseBlock isNil ifTrue:[l add:#buttonReleaseBlock]. |
|
464 |
menuAccessBlock isNil ifTrue:[l add:#menuAccessBlock]. |
|
740 | 465 |
|
466 |
^ l |
|
467 |
||
468 |
||
469 |
||
470 |
||
471 |
! ! |
|
472 |
||
473 |
!GraphColumnView2DSpec methodsFor:'parsing a view'! |
|
474 |
||
475 |
fromView:aView callBack:aBlock |
|
476 |
||
477 |
gridX := aView gridX. |
|
478 |
gridY := aView gridY. |
|
479 |
||
480 |
super fromView:aView callBack:aBlock |
|
481 |
||
482 |
||
483 |
! ! |
|
484 |
||
485 |
!GraphColumnView2DSpec class methodsFor:'documentation'! |
|
486 |
||
487 |
version |
|
3307
15f429081b7c
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3305
diff
changeset
|
488 |
^ '$Header: /cvs/stx/stx/libwidg2/GraphColumnView2DSpec.st,v 1.11 2008-01-10 13:00:51 cg Exp $' |
740 | 489 |
! ! |