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