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