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