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