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