author | Claus Gittinger <cg@exept.de> |
Mon, 13 Nov 2006 17:11:31 +0100 | |
changeset 3150 | e3a55f15ef7e |
parent 1655 | 227e03cb343e |
child 3309 | 5e33115fabe7 |
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 |
" |
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
12 |
|
3150 | 13 |
"{ Package: 'stx:libwidg2' }" |
789
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
14 |
|
740 | 15 |
MenuComponentSpec subclass:#GraphColumnViewSpec |
753 | 16 |
instanceVariableNames:'listHolder references referenceSelector showGrid showDefaultMenu |
1434
e0d070c01741
moved borderWith & initiallyInvisible to ComponentSpec;
Claus Gittinger <cg@exept.de>
parents:
1260
diff
changeset
|
17 |
zoomY windowSize graphOriginX scrollUpdatesOriginX' |
740 | 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 |
!GraphColumnViewSpec 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 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
53 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
54 |
|
c2401c3c9e29
added copyright & documentation
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
55 |
! ! |
740 | 56 |
|
57 |
!GraphColumnViewSpec class methodsFor:'class initialization'! |
|
58 |
||
59 |
initialize |
|
3150 | 60 |
"add an entry for my new components to the UIPainters |
740 | 61 |
userDef gallery" |
62 |
||
63 |
UISelectionPanel userClass |
|
3150 | 64 |
addUserSpecHolder:[self graphSpec] |
65 |
label:'Graphs' |
|
740 | 66 |
|
67 |
" |
|
68 |
self initialize |
|
69 |
" |
|
70 |
||
71 |
||
72 |
! |
|
73 |
||
74 |
removeFromSystem |
|
75 |
"remove myself - this implies deinstallation from the UIGallery" |
|
76 |
||
77 |
UISelectionPanel userClass removeUserSpecWithLabel:'Graphs'. |
|
78 |
^ super removeFromSystem. |
|
79 |
||
80 |
! ! |
|
81 |
||
82 |
!GraphColumnViewSpec class methodsFor:'interface - painter'! |
|
83 |
||
3150 | 84 |
addBindingsTo:env for:inst channel:aChannel |
740 | 85 |
|
86 |
super addBindingsTo:env for:inst channel:aChannel. |
|
87 |
||
3150 | 88 |
self |
89 |
adaptApects: |
|
90 |
#( |
|
91 |
showGrid |
|
92 |
showDefaultMenu |
|
93 |
scrollUpdatesOriginX |
|
94 |
) |
|
95 |
to:env |
|
96 |
for:inst |
|
97 |
channel:aChannel. |
|
740 | 98 |
|
3150 | 99 |
self |
100 |
adaptApects: |
|
101 |
#( |
|
102 |
zoomY |
|
103 |
windowSize |
|
104 |
graphOriginX |
|
105 |
references |
|
106 |
referenceSelector |
|
107 |
) |
|
108 |
to:env |
|
109 |
for:inst |
|
110 |
channel:aChannel |
|
111 |
converter:#symbolOrNil. |
|
740 | 112 |
|
113 |
! ! |
|
114 |
||
115 |
!GraphColumnViewSpec class methodsFor:'interface gallery'! |
|
116 |
||
117 |
graphSpec |
|
118 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
119 |
||
120 |
"do not manually edit this - the painter/builder may not be able to |
|
121 |
handle the specification if its corrupted." |
|
122 |
||
123 |
" |
|
124 |
UIPainter new openOnClass:self andSelector:#graphSpec |
|
125 |
self new openInterface:#graphSpec |
|
126 |
" |
|
127 |
||
128 |
<resource: #canvas> |
|
129 |
||
130 |
^ |
|
131 |
||
132 |
#(#FullSpec |
|
3150 | 133 |
#'window:' |
134 |
#(#WindowSpec |
|
135 |
#'name:' 'Views' |
|
136 |
#'layout:' #(#LayoutFrame 212 0 194 0 691 0 422 0) |
|
137 |
#'label:' 'Views' |
|
138 |
#'min:' #(#Point 10 10) |
|
139 |
#'max:' #(#Point 1280 1024) |
|
140 |
#'bounds:' #(#Rectangle 212 194 692 423) |
|
141 |
#'usePreferredExtent:' false |
|
142 |
) |
|
143 |
#'component:' |
|
144 |
#(#SpecCollection |
|
145 |
#'collection:' |
|
146 |
#( |
|
147 |
#(#GraphColumnView2DSpec |
|
148 |
#'name:' '2D Graph' |
|
149 |
#'layout:' #(#LayoutFrame 15 0 10 0 180 0 90 0) |
|
150 |
#'showGrid:' true |
|
151 |
#'gridX:' 2 |
|
152 |
#'gridY:' 2 |
|
153 |
) |
|
154 |
#(#LabelSpec |
|
155 |
#'name:' '2D Graph Label' |
|
156 |
#'layout:' #(#Point 15 96) |
|
157 |
#'label:' 'Graph Column View 2D' |
|
158 |
#'style:' #(#FontDescription #helvetica #medium #roman #'10') |
|
159 |
#'adjust:' #left |
|
160 |
#'resizeForLabel:' true |
|
161 |
#'canUIDrag:' false |
|
162 |
) |
|
163 |
#(#GraphColumnView3DSpec |
|
164 |
#'name:' '3D Graph' |
|
165 |
#'layout:' #(#LayoutFrame 206 0 10 0 371 0 90 0) |
|
166 |
#'showGrid:' true |
|
167 |
) |
|
168 |
#(#LabelSpec |
|
169 |
#'name:' '3D Graph Label' |
|
170 |
#'layout:' #(#Point 206 96) |
|
171 |
#'label:' 'Graph Column View 3D' |
|
172 |
#'style:' #(#FontDescription #helvetica #medium #roman #'10') |
|
173 |
#'adjust:' #left |
|
174 |
#'resizeForLabel:' true |
|
175 |
#'canUIDrag:' false |
|
176 |
) |
|
177 |
) |
|
178 |
) |
|
740 | 179 |
) |
180 |
||
181 |
||
182 |
! ! |
|
183 |
||
184 |
!GraphColumnViewSpec class methodsFor:'interface specs'! |
|
185 |
||
186 |
basicsEditSpec |
|
905 | 187 |
"This resource specification was automatically generated |
188 |
by the UIPainter of ST/X." |
|
740 | 189 |
|
905 | 190 |
"Do not manually edit this!! If it is corrupted, |
191 |
the UIPainter may not be able to read the specification." |
|
740 | 192 |
|
193 |
" |
|
753 | 194 |
UIPainter new openOnClass:GraphColumnViewSpec andSelector:#basicsEditSpec |
740 | 195 |
" |
196 |
||
197 |
<resource: #canvas> |
|
198 |
||
3150 | 199 |
^ |
1655 | 200 |
#(#FullSpec |
3150 | 201 |
#name: #basicsEditSpec |
202 |
#window: |
|
1655 | 203 |
#(#WindowSpec |
3150 | 204 |
#label: 'Graph 2D Basic' |
205 |
#name: 'Graph 2D Basic' |
|
206 |
#min: #(#Point 10 10) |
|
207 |
#max: #(#Point 1160 870) |
|
208 |
#bounds: #(#Rectangle 886 214 1198 539) |
|
209 |
) |
|
210 |
#component: |
|
1655 | 211 |
#(#SpecCollection |
3150 | 212 |
#collection: #( |
213 |
#(#LabelSpec |
|
214 |
#label: 'ID:' |
|
215 |
#name: 'nameLabel' |
|
216 |
#layout: #(#AlignmentOrigin 73 0 31 0 1 0.5) |
|
217 |
#resizeForLabel: true |
|
218 |
#adjust: #right |
|
219 |
) |
|
220 |
#(#InputFieldSpec |
|
221 |
#attributes: |
|
222 |
#(#tabable |
|
223 |
true #nameField |
|
224 |
nil |
|
225 |
) |
|
226 |
#name: 'nameField' |
|
227 |
#layout: #(#LayoutFrame 75 0 20 0 -2 1.0 45 0) |
|
228 |
#activeHelpKey: #id |
|
229 |
#tabable: true |
|
230 |
#model: #name |
|
231 |
#acceptChannel: #acceptChannel |
|
232 |
#modifiedChannel: #modifiedChannel |
|
233 |
#acceptOnPointerLeave: false |
|
234 |
) |
|
235 |
#(#LabelSpec |
|
236 |
#label: 'Model:' |
|
237 |
#name: 'modelLabel' |
|
238 |
#layout: #(#AlignmentOrigin 73 0 60 0 1 0.5) |
|
239 |
#resizeForLabel: true |
|
240 |
) |
|
241 |
#(#InputFieldSpec |
|
242 |
#attributes: |
|
243 |
#(#tabable |
|
244 |
true |
|
245 |
) |
|
246 |
#name: 'modelField' |
|
247 |
#layout: #(#LayoutFrame 75 0 49 0 -2 1 74 0) |
|
248 |
#activeHelpKey: #model |
|
249 |
#tabable: true |
|
250 |
#model: #model |
|
251 |
#acceptChannel: #acceptChannel |
|
252 |
#modifiedChannel: #modifiedChannel |
|
253 |
#acceptOnPointerLeave: false |
|
254 |
) |
|
255 |
#(#LabelSpec |
|
256 |
#label: 'References:' |
|
257 |
#name: 'referencesLabel' |
|
258 |
#layout: #(#AlignmentOrigin 168 0 90 0 1 0.5) |
|
259 |
#resizeForLabel: true |
|
260 |
#adjust: #left |
|
261 |
) |
|
262 |
#(#InputFieldSpec |
|
263 |
#attributes: |
|
264 |
#(#referencesField |
|
265 |
nil #tabable |
|
266 |
true |
|
267 |
) |
|
268 |
#name: 'referencesField' |
|
269 |
#layout: #(#LayoutFrame 171 0 80 0 -2 1.0 102 0) |
|
270 |
#tabable: true |
|
271 |
#model: #references |
|
272 |
#acceptChannel: #acceptChannel |
|
273 |
#modifiedChannel: #modifiedChannel |
|
274 |
#acceptOnPointerLeave: false |
|
275 |
) |
|
276 |
#(#LabelSpec |
|
277 |
#label: 'Access Selector:' |
|
278 |
#name: 'referencesSelLabel' |
|
279 |
#layout: #(#AlignmentOrigin 168 0 116 0 1 0.5) |
|
280 |
#resizeForLabel: true |
|
281 |
#adjust: #left |
|
282 |
) |
|
283 |
#(#InputFieldSpec |
|
284 |
#name: 'referencesSelField' |
|
285 |
#layout: #(#LayoutFrame 171 0 106 0 -2 1.0 128 0) |
|
286 |
#model: #referenceSelector |
|
287 |
#acceptChannel: #acceptChannel |
|
288 |
#modifiedChannel: #modifiedChannel |
|
289 |
#acceptOnPointerLeave: false |
|
290 |
) |
|
291 |
#(#UISubSpecification |
|
292 |
#name: 'menuSubSpec' |
|
293 |
#layout: #(#LayoutFrame 0 0.0 144 0 0 1.0 263 0) |
|
294 |
#majorKey: #UISpecification |
|
295 |
#minorKey: #menuSubSpec |
|
296 |
) |
|
297 |
#(#CheckBoxSpec |
|
298 |
#attributes: |
|
299 |
#(#tabable |
|
300 |
true |
|
301 |
) |
|
302 |
#label: 'Default Menu' |
|
303 |
#name: 'showDefaultMenu' |
|
304 |
#layout: #(#AlignmentOrigin 97 0 280 0 0 0.5) |
|
305 |
#tabable: true |
|
306 |
#model: #showDefaultMenu |
|
307 |
) |
|
308 |
) |
|
309 |
||
310 |
) |
|
740 | 311 |
) |
751 | 312 |
! |
313 |
||
314 |
subDetailsEditSpec |
|
905 | 315 |
"This resource specification was automatically generated |
316 |
by the UIPainter of ST/X." |
|
751 | 317 |
|
905 | 318 |
"Do not manually edit this!! If it is corrupted, |
319 |
the UIPainter may not be able to read the specification." |
|
751 | 320 |
|
321 |
" |
|
322 |
UIPainter new openOnClass:GraphColumnViewSpec andSelector:#subDetailsEditSpec |
|
323 |
" |
|
324 |
||
325 |
<resource: #canvas> |
|
326 |
||
3150 | 327 |
^ |
1655 | 328 |
#(#FullSpec |
3150 | 329 |
#name: #subDetailsEditSpec |
330 |
#window: |
|
1655 | 331 |
#(#WindowSpec |
3150 | 332 |
#label: 'Graph 2D Detail' |
333 |
#name: 'Graph 2D Detail' |
|
334 |
#min: #(#Point 10 10) |
|
335 |
#max: #(#Point 1160 870) |
|
336 |
#bounds: #(#Rectangle 886 214 1269 437) |
|
337 |
) |
|
338 |
#component: |
|
1655 | 339 |
#(#SpecCollection |
3150 | 340 |
#collection: #( |
341 |
#(#LabelSpec |
|
342 |
#label: 'Border Width:' |
|
343 |
#name: 'borderWidthLabel' |
|
344 |
#layout: #(#AlignmentOrigin 157 0 35 0 1 0.5) |
|
345 |
#resizeForLabel: true |
|
346 |
#adjust: #left |
|
347 |
) |
|
348 |
#(#InputFieldSpec |
|
349 |
#attributes: |
|
350 |
#(#tabable |
|
351 |
true |
|
352 |
) |
|
353 |
#name: 'borderWidthField' |
|
354 |
#layout: #(#LayoutFrame 161 0 24 0 197 0 46 0) |
|
355 |
#activeHelpKey: #borderWidth |
|
356 |
#tabable: true |
|
357 |
#model: #borderWidth |
|
358 |
#acceptChannel: #acceptChannel |
|
359 |
#modifiedChannel: #modifiedChannel |
|
360 |
#acceptOnPointerLeave: false |
|
361 |
) |
|
362 |
#(#LabelSpec |
|
363 |
#label: 'Level:' |
|
364 |
#name: 'levelLabel' |
|
365 |
#layout: #(#AlignmentOrigin 157 0 58 0 1 0.5) |
|
366 |
#resizeForLabel: true |
|
367 |
) |
|
368 |
#(#InputFieldSpec |
|
369 |
#attributes: |
|
370 |
#(#tabable |
|
371 |
true |
|
372 |
) |
|
373 |
#name: 'levelField' |
|
374 |
#layout: #(#LayoutFrame 161 0 48 0 197 0 70 0) |
|
375 |
#activeHelpKey: #level |
|
376 |
#tabable: true |
|
377 |
#model: #level |
|
378 |
#acceptChannel: #acceptChannel |
|
379 |
#modifiedChannel: #modifiedChannel |
|
380 |
#acceptOnPointerLeave: false |
|
381 |
) |
|
382 |
#(#LabelSpec |
|
383 |
#label: 'Origin X' |
|
384 |
#name: 'graphOriginXLabel' |
|
385 |
#layout: #(#AlignmentOrigin 157 0 91 0 1 0.5) |
|
386 |
#resizeForLabel: true |
|
387 |
#adjust: #left |
|
388 |
) |
|
389 |
#(#InputFieldSpec |
|
390 |
#attributes: |
|
391 |
#(#graphOriginXField |
|
392 |
nil #tabable |
|
393 |
true |
|
394 |
) |
|
395 |
#name: 'graphOriginXField' |
|
396 |
#layout: #(#LayoutFrame 161 0 81 0 -2 1.0 103 0) |
|
397 |
#tabable: true |
|
398 |
#model: #graphOriginX |
|
399 |
#acceptChannel: #acceptChannel |
|
400 |
#modifiedChannel: #modifiedChannel |
|
401 |
#acceptOnPointerLeave: false |
|
402 |
) |
|
403 |
#(#CheckBoxSpec |
|
404 |
#attributes: |
|
405 |
#(#tabable |
|
406 |
true |
|
407 |
) |
|
408 |
#label: 'Scroll updates X-Origin' |
|
409 |
#name: 'scrollUpdatesOriginX' |
|
410 |
#layout: #(#AlignmentOrigin 158 0 117 0 0 0.5) |
|
411 |
#tabable: true |
|
412 |
#model: #scrollUpdatesOriginX |
|
413 |
) |
|
414 |
#(#LabelSpec |
|
415 |
#label: 'Window Size:' |
|
416 |
#name: 'windowSizeLabel' |
|
417 |
#layout: #(#AlignmentOrigin 157 0 149 0 1 0.5) |
|
418 |
#resizeForLabel: true |
|
419 |
#adjust: #left |
|
420 |
) |
|
421 |
#(#InputFieldSpec |
|
422 |
#attributes: |
|
423 |
#(#windowSizeField |
|
424 |
nil #tabable |
|
425 |
true |
|
426 |
) |
|
427 |
#name: 'windowSizeField' |
|
428 |
#layout: #(#LayoutFrame 161 0 139 0 -2 1.0 161 0) |
|
429 |
#tabable: true |
|
430 |
#model: #windowSize |
|
431 |
#acceptChannel: #acceptChannel |
|
432 |
#modifiedChannel: #modifiedChannel |
|
433 |
#acceptOnPointerLeave: false |
|
434 |
) |
|
435 |
#(#LabelSpec |
|
436 |
#label: 'Zoom-Y Factor:' |
|
437 |
#name: 'zoomYLabel' |
|
438 |
#layout: #(#AlignmentOrigin 157 0 173 0 1 0.5) |
|
439 |
#resizeForLabel: true |
|
440 |
#adjust: #left |
|
441 |
) |
|
442 |
#(#InputFieldSpec |
|
443 |
#attributes: |
|
444 |
#(#tabable |
|
445 |
true #zoomYField |
|
446 |
nil |
|
447 |
) |
|
448 |
#name: 'zoomYField' |
|
449 |
#layout: #(#LayoutFrame 161 0 163 0 -2 1.0 185 0) |
|
450 |
#tabable: true |
|
451 |
#model: #zoomY |
|
452 |
#acceptChannel: #acceptChannel |
|
453 |
#modifiedChannel: #modifiedChannel |
|
454 |
#acceptOnPointerLeave: false |
|
455 |
) |
|
456 |
) |
|
457 |
||
458 |
) |
|
751 | 459 |
) |
740 | 460 |
! ! |
461 |
||
462 |
!GraphColumnViewSpec methodsFor:'accessing'! |
|
463 |
||
751 | 464 |
graphOriginX |
465 |
"return the value of the instance variable 'graphOriginX' (automatically generated)" |
|
466 |
||
467 |
^ graphOriginX! |
|
468 |
||
469 |
graphOriginX:something |
|
470 |
"set the value of the instance variable 'graphOriginX' (automatically generated)" |
|
471 |
||
472 |
graphOriginX := something.! |
|
473 |
||
740 | 474 |
listHolder |
475 |
"return the value of the instance variable 'listHolder' (automatically generated)" |
|
476 |
||
477 |
^ listHolder! |
|
478 |
||
479 |
listHolder:something |
|
480 |
"set the value of the instance variable 'listHolder' (automatically generated)" |
|
481 |
||
482 |
listHolder := something.! |
|
483 |
||
753 | 484 |
referenceSelector |
485 |
"return the value of the instance variable 'referenceSelector' (automatically generated)" |
|
486 |
||
487 |
^ referenceSelector! |
|
488 |
||
489 |
referenceSelector:something |
|
490 |
"set the value of the instance variable 'referenceSelector' (automatically generated)" |
|
491 |
||
492 |
referenceSelector := something.! |
|
493 |
||
494 |
references |
|
495 |
"return the value of the instance variable 'references' (automatically generated)" |
|
496 |
||
497 |
^ references |
|
498 |
! |
|
499 |
||
500 |
references:something |
|
501 |
"set the value of the instance variable 'references' (automatically generated)" |
|
502 |
||
503 |
references := something. |
|
504 |
! |
|
505 |
||
751 | 506 |
scrollUpdatesOriginX |
507 |
"return the value of the instance variable 'scrollUpdatesOriginX' (automatically generated)" |
|
508 |
||
509 |
^ scrollUpdatesOriginX ? false |
|
510 |
! |
|
511 |
||
512 |
scrollUpdatesOriginX:something |
|
513 |
"set the value of the instance variable 'scrollUpdatesOriginX' (automatically generated)" |
|
514 |
||
515 |
scrollUpdatesOriginX := something. |
|
516 |
! |
|
517 |
||
740 | 518 |
showDefaultMenu |
519 |
"return the value of the instance variable 'showDefaultMenu' (automatically generated)" |
|
520 |
||
521 |
^ showDefaultMenu ? false |
|
522 |
! |
|
523 |
||
524 |
showDefaultMenu:something |
|
525 |
"set the value of the instance variable 'showDefaultMenu' (automatically generated)" |
|
526 |
||
527 |
showDefaultMenu := something.! |
|
528 |
||
529 |
showGrid |
|
530 |
"return the value of the instance variable 'showGrid' (automatically generated)" |
|
531 |
||
532 |
^ showGrid ? false |
|
533 |
! |
|
534 |
||
535 |
showGrid:something |
|
536 |
"set the value of the instance variable 'showGrid' (automatically generated)" |
|
537 |
||
538 |
showGrid := something.! |
|
539 |
||
540 |
windowSize |
|
541 |
"return the value of the instance variable 'windowSize' (automatically generated)" |
|
542 |
||
543 |
^ windowSize! |
|
544 |
||
545 |
windowSize:something |
|
546 |
"set the value of the instance variable 'windowSize' (automatically generated)" |
|
547 |
||
548 |
windowSize := something.! |
|
549 |
||
550 |
zoomY |
|
551 |
"return the value of the instance variable 'zoomY' (automatically generated)" |
|
552 |
||
553 |
^ zoomY! |
|
554 |
||
555 |
zoomY:something |
|
556 |
"set the value of the instance variable 'zoomY' (automatically generated)" |
|
557 |
||
558 |
zoomY := something.! ! |
|
559 |
||
560 |
!GraphColumnViewSpec methodsFor:'building'! |
|
561 |
||
562 |
aspectSelectors |
|
563 |
"add more aspect selectors |
|
564 |
" |
|
565 |
|more| |
|
566 |
||
567 |
more := super aspectSelectors. |
|
568 |
||
751 | 569 |
windowSize notNil ifTrue:[more add:windowSize]. |
570 |
graphOriginX notNil ifTrue:[more add:graphOriginX]. |
|
753 | 571 |
references notNil ifTrue:[more add:references]. |
751 | 572 |
zoomY notNil ifTrue:[more add:zoomY]. |
740 | 573 |
|
574 |
^ more |
|
575 |
! |
|
576 |
||
753 | 577 |
createViewFor:aBuilder in:aView |
578 |
"low level create - no attributes are set. |
|
579 |
" |
|
580 |
aBuilder isEditing ifFalse:[ |
|
3150 | 581 |
^ super createViewFor:aBuilder in:aView |
753 | 582 |
]. |
583 |
^ GraphColumnView in:aView |
|
584 |
||
585 |
! |
|
586 |
||
740 | 587 |
setAttributesIn:aView with:aBuilder |
588 |
||
589 |
super setAttributesIn:aView with:aBuilder. |
|
590 |
||
591 |
aView showGrid:(self showGrid). |
|
751 | 592 |
aView scrollUpdatesOriginX:(self scrollUpdatesOriginX). |
740 | 593 |
aView showDefaultMenu:(self showDefaultMenu). |
594 |
||
595 |
aBuilder isEditing ifFalse:[ |
|
3150 | 596 |
windowSize notNil ifTrue:[ |
597 |
aView windowSizeHolder:(self getBindingIn:aBuilder binding:windowSize) |
|
598 |
]. |
|
740 | 599 |
|
3150 | 600 |
graphOriginX notNil ifTrue:[ |
601 |
aView graphOriginXHolder:(self getBindingIn:aBuilder binding:graphOriginX) |
|
602 |
]. |
|
751 | 603 |
|
3150 | 604 |
referenceSelector notNil ifTrue:[ |
605 |
aView referenceSelector:referenceSelector |
|
606 |
]. |
|
753 | 607 |
|
3150 | 608 |
references notNil ifTrue:[ |
609 |
aView referenceHolder:(self getBindingIn:aBuilder binding:references) |
|
610 |
]. |
|
751 | 611 |
|
3150 | 612 |
zoomY notNil ifTrue:[ |
613 |
aView zoomYHolder:(self getBindingIn:aBuilder binding:zoomY) |
|
614 |
]. |
|
740 | 615 |
|
3150 | 616 |
self setModelAttributeIn:aView with:aBuilder. |
617 |
self setMenuIn:aView with:aBuilder. |
|
740 | 618 |
] |
619 |
! ! |
|
620 |
||
621 |
!GraphColumnViewSpec methodsFor:'converting'! |
|
622 |
||
623 |
skippedInLiteralEncoding |
|
624 |
"define the inst-slots which are skiped when generating a literalArrayEncoding" |
|
625 |
||
626 |
|l| |
|
627 |
||
628 |
l := super skippedInLiteralEncoding asOrderedCollection. |
|
629 |
||
753 | 630 |
zoomY isNil ifTrue:[l add:#zoomY]. |
631 |
windowSize isNil ifTrue:[l add:#windowSize]. |
|
632 |
graphOriginX isNil ifTrue:[l add:#graphOriginX]. |
|
633 |
references isNil ifTrue:[l add:#references]. |
|
634 |
referenceSelector isNil ifTrue:[l add:#referenceSelector]. |
|
740 | 635 |
|
636 |
self showGrid ifFalse:[ |
|
3150 | 637 |
l add:#showGrid |
751 | 638 |
]. |
639 |
||
640 |
self scrollUpdatesOriginX ifFalse:[ |
|
3150 | 641 |
l add:#scrollUpdatesOriginX |
740 | 642 |
]. |
643 |
||
644 |
(self showDefaultMenu and:[menu isNil]) ifFalse:[ |
|
3150 | 645 |
l add:#showDefaultMenu |
646 |
]. |
|
740 | 647 |
|
648 |
^ l |
|
649 |
||
650 |
||
651 |
||
652 |
||
653 |
! ! |
|
654 |
||
655 |
!GraphColumnViewSpec methodsFor:'parsing a view'! |
|
656 |
||
657 |
fromView:aView callBack:aBlock |
|
658 |
||
751 | 659 |
showGrid := aView showGrid. |
660 |
showDefaultMenu := aView showDefaultMenu. |
|
661 |
scrollUpdatesOriginX := aView scrollUpdatesOriginX. |
|
740 | 662 |
|
663 |
super fromView:aView callBack:aBlock |
|
664 |
||
665 |
||
666 |
! ! |
|
667 |
||
668 |
!GraphColumnViewSpec methodsFor:'queries'! |
|
669 |
||
670 |
defaultModelClassFor:someAspect |
|
671 |
"used by the UIPainters aspectGenerator |
|
672 |
" |
|
673 |
^ someAspect == model ifTrue:[List] ifFalse:[ValueHolder] |
|
674 |
! ! |
|
675 |
||
676 |
!GraphColumnViewSpec class methodsFor:'documentation'! |
|
677 |
||
678 |
version |
|
3150 | 679 |
^ '$Header: /cvs/stx/stx/libwidg2/GraphColumnViewSpec.st,v 1.12 2006-11-13 16:11:30 cg Exp $' |
740 | 680 |
! ! |
681 |
GraphColumnViewSpec initialize! |