author | Claus Gittinger <cg@exept.de> |
Tue, 12 Feb 2019 19:02:06 +0100 | |
changeset 5997 | dda46d10430a |
parent 3308 | cc9c02c8b894 |
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:#GraphColumnView3DSpec |
15 |
instanceVariableNames:'rotateX rotateY rotateZ zoomZ' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Interface-Support-UI-Specs' |
|
19 |
! |
|
20 |
||
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
21 |
!GraphColumnView3DSpec class methodsFor:'documentation'! |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
22 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
23 |
copyright |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
24 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
25 |
COPYRIGHT (c) 1998 by eXept Software AG |
3150 | 26 |
All Rights Reserved |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
27 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
28 |
This software is furnished under a license and may be used |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
29 |
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
|
30 |
inclusion of the above copyright notice. This software may not |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
31 |
be provided or otherwise made available to, or used by, any |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
32 |
other person. No title to or ownership of the software is |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
33 |
hereby transferred. |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
34 |
" |
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 |
!GraphColumnView3DSpec 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 |
rotateX |
|
62 |
rotateY |
|
63 |
rotateZ |
|
64 |
zoomZ |
|
65 |
) |
|
66 |
to:env |
|
67 |
for:inst |
|
68 |
channel:aChannel |
|
69 |
converter:#symbolOrNil. |
|
740 | 70 |
|
71 |
! |
|
72 |
||
73 |
slices |
|
74 |
^ #( |
|
3150 | 75 |
(Basics basicsEditSpec) |
76 |
(Details detailsEditSpec) |
|
77 |
(Misc basicsMiscSpec) |
|
740 | 78 |
) |
79 |
||
80 |
||
81 |
! ! |
|
82 |
||
83 |
!GraphColumnView3DSpec class methodsFor:'interface specs'! |
|
84 |
||
751 | 85 |
basicsMiscSpec |
905 | 86 |
"This resource specification was automatically generated |
87 |
by the UIPainter of ST/X." |
|
751 | 88 |
|
905 | 89 |
"Do not manually edit this!! If it is corrupted, |
90 |
the UIPainter may not be able to read the specification." |
|
751 | 91 |
|
92 |
" |
|
93 |
UIPainter new openOnClass:GraphColumnView3DSpec andSelector:#basicsMiscSpec |
|
94 |
" |
|
95 |
||
96 |
<resource: #canvas> |
|
97 |
||
3150 | 98 |
^ |
1655 | 99 |
#(#FullSpec |
3150 | 100 |
#name: #basicsMiscSpec |
101 |
#window: |
|
1655 | 102 |
#(#WindowSpec |
3150 | 103 |
#label: 'Graph 2D Detail' |
104 |
#name: 'Graph 2D Detail' |
|
105 |
#min: #(#Point 10 10) |
|
106 |
#max: #(#Point 1160 870) |
|
107 |
#bounds: #(#Rectangle 506 24 891 182) |
|
108 |
) |
|
109 |
#component: |
|
1655 | 110 |
#(#SpecCollection |
3150 | 111 |
#collection: #( |
112 |
#(#LabelSpec |
|
113 |
#label: 'Rotation:' |
|
114 |
#name: 'RotationLabel' |
|
115 |
#layout: #(#Point 22 21) |
|
116 |
#resizeForLabel: true |
|
117 |
) |
|
118 |
#(#LabelSpec |
|
119 |
#label: 'X:' |
|
120 |
#name: 'XLabel' |
|
121 |
#layout: #(#AlignmentOrigin 75 0 62 0 1 0.5) |
|
122 |
#resizeForLabel: true |
|
123 |
#adjust: #left |
|
124 |
) |
|
125 |
#(#InputFieldSpec |
|
126 |
#attributes: |
|
127 |
#(#tabable |
|
128 |
true #XField |
|
129 |
nil |
|
130 |
) |
|
131 |
#name: 'XField' |
|
132 |
#layout: #(#LayoutFrame 80 0 52 0 -2 1.0 74 0) |
|
133 |
#tabable: true |
|
134 |
#model: #rotateX |
|
135 |
#acceptChannel: #acceptChannel |
|
136 |
#modifiedChannel: #modifiedChannel |
|
137 |
#acceptOnPointerLeave: false |
|
138 |
) |
|
139 |
#(#LabelSpec |
|
140 |
#label: 'Y:' |
|
141 |
#name: 'YLabel' |
|
142 |
#layout: #(#AlignmentOrigin 75 0 85 0 1 0.5) |
|
143 |
#resizeForLabel: true |
|
144 |
#adjust: #left |
|
145 |
) |
|
146 |
#(#InputFieldSpec |
|
147 |
#attributes: |
|
148 |
#(#YField |
|
149 |
nil #tabable |
|
150 |
true |
|
151 |
) |
|
152 |
#name: 'YField' |
|
153 |
#layout: #(#LayoutFrame 80 0 75 0 -2 1.0 97 0) |
|
154 |
#tabable: true |
|
155 |
#model: #rotateY |
|
156 |
#acceptChannel: #acceptChannel |
|
157 |
#modifiedChannel: #modifiedChannel |
|
158 |
#acceptOnPointerLeave: false |
|
159 |
) |
|
160 |
#(#LabelSpec |
|
161 |
#label: 'Z:' |
|
162 |
#name: 'ZLabel' |
|
163 |
#layout: #(#AlignmentOrigin 75 0 108 0 1 0.5) |
|
164 |
#resizeForLabel: true |
|
165 |
#adjust: #left |
|
166 |
) |
|
167 |
#(#InputFieldSpec |
|
168 |
#attributes: |
|
169 |
#(#tabable |
|
170 |
true #ZField |
|
171 |
nil |
|
172 |
) |
|
173 |
#name: 'ZField' |
|
174 |
#layout: #(#LayoutFrame 80 0 98 0 -2 1.0 120 0) |
|
175 |
#tabable: true |
|
176 |
#model: #rotateZ |
|
177 |
#acceptChannel: #acceptChannel |
|
178 |
#modifiedChannel: #modifiedChannel |
|
179 |
#acceptOnPointerLeave: false |
|
180 |
) |
|
181 |
) |
|
182 |
||
183 |
) |
|
751 | 184 |
) |
185 |
! |
|
186 |
||
740 | 187 |
detailsEditSpec |
905 | 188 |
"This resource specification was automatically generated |
189 |
by the UIPainter of ST/X." |
|
740 | 190 |
|
905 | 191 |
"Do not manually edit this!! If it is corrupted, |
192 |
the UIPainter may not be able to read the specification." |
|
740 | 193 |
|
194 |
" |
|
195 |
UIPainter new openOnClass:GraphColumnView3DSpec andSelector:#detailsEditSpec |
|
196 |
" |
|
197 |
||
198 |
<resource: #canvas> |
|
199 |
||
3150 | 200 |
^ |
1655 | 201 |
#(#FullSpec |
3150 | 202 |
#name: #detailsEditSpec |
203 |
#window: |
|
1655 | 204 |
#(#WindowSpec |
3150 | 205 |
#label: 'Graph 2D Detail' |
206 |
#name: 'Graph 2D Detail' |
|
207 |
#min: #(#Point 10 10) |
|
208 |
#max: #(#Point 1160 870) |
|
209 |
#bounds: #(#Rectangle 886 214 1260 485) |
|
210 |
) |
|
211 |
#component: |
|
1655 | 212 |
#(#SpecCollection |
3150 | 213 |
#collection: #( |
214 |
#(#UISubSpecification |
|
215 |
#name: 'subDetailsSpec' |
|
216 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 186 0) |
|
217 |
#minorKey: #subDetailsEditSpec |
|
218 |
) |
|
219 |
#(#LabelSpec |
|
220 |
#label: 'Zoom-Z Factor:' |
|
221 |
#name: 'zoomZLabel' |
|
222 |
#layout: #(#AlignmentOrigin 157 0 197 0 1 0.5) |
|
223 |
#resizeForLabel: true |
|
224 |
#adjust: #left |
|
225 |
) |
|
226 |
#(#InputFieldSpec |
|
227 |
#attributes: |
|
228 |
#(#zoomZField |
|
229 |
nil #tabable |
|
230 |
true |
|
231 |
) |
|
232 |
#name: 'zoomZField' |
|
233 |
#layout: #(#LayoutFrame 161 0 187 0 -2 1.0 209 0) |
|
234 |
#tabable: true |
|
235 |
#model: #zoomZ |
|
236 |
#acceptChannel: #acceptChannel |
|
237 |
#modifiedChannel: #modifiedChannel |
|
238 |
#acceptOnPointerLeave: false |
|
239 |
) |
|
240 |
#(#CheckBoxSpec |
|
241 |
#attributes: |
|
242 |
#(#tabable |
|
243 |
true |
|
244 |
) |
|
245 |
#label: 'Show Grid' |
|
246 |
#name: 'showGrid' |
|
247 |
#layout: #(#Point 27 235) |
|
248 |
#tabable: true |
|
249 |
#model: #showGrid |
|
250 |
) |
|
251 |
) |
|
252 |
||
253 |
) |
|
740 | 254 |
) |
255 |
! ! |
|
256 |
||
257 |
!GraphColumnView3DSpec methodsFor:'accessing'! |
|
258 |
||
259 |
rotateX |
|
260 |
"return the value of the instance variable 'rotateX' (automatically generated)" |
|
261 |
||
262 |
^ rotateX |
|
263 |
! |
|
264 |
||
265 |
rotateX:something |
|
266 |
"set the value of the instance variable 'rotateX' (automatically generated)" |
|
267 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
268 |
rotateX := something. |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
269 |
! |
740 | 270 |
|
271 |
rotateY |
|
272 |
"return the value of the instance variable 'rotateY' (automatically generated)" |
|
273 |
||
274 |
^ rotateY |
|
275 |
! |
|
276 |
||
277 |
rotateY:something |
|
278 |
"set the value of the instance variable 'rotateY' (automatically generated)" |
|
279 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
280 |
rotateY := something. |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
281 |
! |
740 | 282 |
|
283 |
rotateZ |
|
284 |
"return the value of the instance variable 'rotateZ' (automatically generated)" |
|
285 |
||
286 |
^ rotateZ |
|
287 |
! |
|
288 |
||
289 |
rotateZ:something |
|
290 |
"set the value of the instance variable 'rotateZ' (automatically generated)" |
|
291 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
292 |
rotateZ := something. |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
293 |
! |
740 | 294 |
|
295 |
zoomZ |
|
296 |
"return the value of the instance variable 'zoomZ' (automatically generated)" |
|
297 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
298 |
^ zoomZ |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
299 |
! |
740 | 300 |
|
301 |
zoomZ:something |
|
302 |
"set the value of the instance variable 'zoomZ' (automatically generated)" |
|
303 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
304 |
zoomZ := something. |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
305 |
! ! |
740 | 306 |
|
307 |
!GraphColumnView3DSpec methodsFor:'building'! |
|
308 |
||
309 |
aspectSelectors |
|
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
310 |
"add more aspect selectors (these generate aspect methods in the definer)" |
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
311 |
|
740 | 312 |
|more| |
313 |
||
314 |
more := super aspectSelectors. |
|
315 |
||
316 |
rotateX notNil ifTrue:[more add:rotateX]. |
|
317 |
rotateY notNil ifTrue:[more add:rotateY]. |
|
318 |
rotateZ notNil ifTrue:[more add:rotateZ]. |
|
319 |
zoomZ notNil ifTrue:[more add:zoomZ]. |
|
320 |
||
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
321 |
^ more |
740 | 322 |
! |
323 |
||
324 |
setAttributesIn:aView with:aBuilder |
|
325 |
||
326 |
super setAttributesIn:aView with:aBuilder. |
|
327 |
||
328 |
aBuilder isEditing ifFalse:[ |
|
3150 | 329 |
rotateX notNil ifTrue:[ aView rotateXHolder:(self getBindingIn:aBuilder binding:rotateX) ]. |
330 |
rotateY notNil ifTrue:[ aView rotateYHolder:(self getBindingIn:aBuilder binding:rotateY) ]. |
|
331 |
rotateZ notNil ifTrue:[ aView rotateZHolder:(self getBindingIn:aBuilder binding:rotateZ) ]. |
|
740 | 332 |
|
3150 | 333 |
zoomZ notNil ifTrue:[ aView zoomZHolder:(self getBindingIn:aBuilder binding:zoomZ) ]. |
740 | 334 |
] |
335 |
! ! |
|
336 |
||
337 |
!GraphColumnView3DSpec methodsFor:'converting'! |
|
338 |
||
339 |
skippedInLiteralEncoding |
|
340 |
"define the inst-slots which are skiped when generating a literalArrayEncoding" |
|
341 |
||
342 |
|l| |
|
343 |
||
344 |
l := super skippedInLiteralEncoding asOrderedCollection. |
|
345 |
||
743 | 346 |
rotateX isNil ifTrue:[l add:#rotateX]. |
347 |
rotateY isNil ifTrue:[l add:#rotateY]. |
|
348 |
rotateZ isNil ifTrue:[l add:#rotateZ]. |
|
349 |
zoomZ isNil ifTrue:[l add:#zoomZ]. |
|
740 | 350 |
|
351 |
^ l |
|
352 |
! ! |
|
353 |
||
354 |
!GraphColumnView3DSpec class methodsFor:'documentation'! |
|
355 |
||
356 |
version |
|
3308
cc9c02c8b894
ca's english language and wierd indentation code cleanup
Claus Gittinger <cg@exept.de>
parents:
3150
diff
changeset
|
357 |
^ '$Header: /cvs/stx/stx/libwidg2/GraphColumnView3DSpec.st,v 1.10 2008-01-10 13:00:52 cg Exp $' |
740 | 358 |
! ! |