author | Claus Gittinger <cg@exept.de> |
Sat, 05 Jul 1997 16:15:12 +0200 | |
changeset 214 | e5aaf5e3bbf9 |
parent 207 | a31cc933368a |
child 216 | 2bfcf491429e |
permissions | -rw-r--r-- |
93 | 1 |
" |
182 | 2 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
15 |
ApplicationModel subclass:#UISelectionPanel |
|
16 |
instanceVariableNames:'userClass userSpecs userLabels majorSelection clipBoardSpec' |
|
17 |
classVariableNames:'UserClass UserSpecs UserLabels' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-UIPainter' |
|
20 |
! |
|
21 |
||
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
22 |
Object subclass:#ExampleUserDefinedGallery |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
23 |
instanceVariableNames:'' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
24 |
classVariableNames:'' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
25 |
poolDictionaries:'' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
26 |
privateIn:UISelectionPanel |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
27 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
28 |
|
182 | 29 |
!UISelectionPanel class methodsFor:'documentation'! |
30 |
||
31 |
copyright |
|
32 |
" |
|
33 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
93 | 34 |
All Rights Reserved |
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
38 |
inclusion of the above copyright notice. This software may not |
|
39 |
be provided or otherwise made available to, or used by, any |
|
40 |
other person. No title to or ownership of the software is |
|
41 |
hereby transferred. |
|
42 |
" |
|
43 |
||
44 |
||
45 |
! |
|
46 |
||
47 |
documentation |
|
48 |
" |
|
49 |
implements a selection panel, keeping widgets which could be placed |
|
50 |
into the UIPainter by drag & drop. |
|
51 |
||
182 | 52 |
[start with:] |
53 |
UISelectionPanel open |
|
54 |
||
93 | 55 |
[author:] |
182 | 56 |
Claus Gittinger |
93 | 57 |
Claus Atzkern |
58 |
||
59 |
[see also:] |
|
60 |
TabView |
|
182 | 61 |
NoteBookView |
62 |
UIGalleryView |
|
93 | 63 |
UIPainter |
104 | 64 |
|
93 | 65 |
" |
66 |
||
67 |
! ! |
|
68 |
||
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
69 |
!UISelectionPanel class methodsFor:'initialization'! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
70 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
71 |
initialize |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
72 |
super initialize. |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
73 |
UserClass := UISelectionPanel::ExampleUserDefinedGallery. |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
74 |
UserSpecs := #listOfSelectors. |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
75 |
UserLabels := #listOfLabels. |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
76 |
! ! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
77 |
|
182 | 78 |
!UISelectionPanel class methodsFor:'accessing'! |
93 | 79 |
|
182 | 80 |
specifications |
112 | 81 |
|
182 | 82 |
^ #( |
190 | 83 |
#( 'Standards' #( |
84 |
#('Button & Toggle' standardButtonToggle) |
|
85 |
#('Menus' standardMenus) |
|
86 |
#('Panel' standardPanels) |
|
87 |
#('Text' standardText) |
|
88 |
#('Views' standardViews) |
|
89 |
#('Canvas' standardCanvas) |
|
90 |
#('Sliders' standardSliders) |
|
182 | 91 |
) |
92 |
) |
|
93 | 93 |
|
182 | 94 |
#( 'Clip Board' #( |
95 |
#('Copy & Paste Buffer' clipBoardSpec) |
|
96 |
) |
|
97 |
) |
|
135 | 98 |
|
182 | 99 |
#( 'User Defined' #userDefined ) |
100 |
) |
|
93 | 101 |
! ! |
102 |
||
182 | 103 |
!UISelectionPanel class methodsFor:'interface specification'! |
93 | 104 |
|
182 | 105 |
nameAndSelectorSpec |
93 | 106 |
"this window spec was automatically generated by the ST/X UIPainter" |
107 |
||
108 |
"do not manually edit this - the painter/builder may not be able to |
|
109 |
handle the specification if its corrupted." |
|
110 |
||
111 |
" |
|
182 | 112 |
UIPainter new openOnClass:UISelectionPanel andSelector:#nameAndSelectorSpec |
113 |
UISelectionPanel new openInterface:#nameAndSelectorSpec |
|
114 |
" |
|
115 |
||
116 |
<resource: #canvas> |
|
117 |
||
118 |
^ |
|
119 |
||
120 |
#(#FullSpec |
|
121 |
#'window:' |
|
122 |
#(#WindowSpec |
|
123 |
#'name:' 'uIPainterView' |
|
124 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
125 |
#'label:' 'Painter' |
|
126 |
#'bounds:' #(#Rectangle 0 0 315 216) |
|
127 |
) |
|
128 |
#'component:' |
|
129 |
#(#SpecCollection |
|
130 |
#'collection:' |
|
131 |
#( |
|
132 |
#(#LabelSpec |
|
133 |
#'name:' 'title' |
|
134 |
#'layout:' #(#Point 5 10) |
|
135 |
#'label:' 'class & selectors to access user specs:' |
|
136 |
#'adjust:' #left |
|
137 |
#'resizeForLabel:' true |
|
138 |
) |
|
139 |
#(#LabelSpec |
|
140 |
#'name:' 'classLabel' |
|
141 |
#'layout:' #(#AlignmentOrigin 68 0.11 51 0 1 0.5) |
|
142 |
#'label:' 'Class:' |
|
143 |
#'adjust:' #right |
|
144 |
#'resizeForLabel:' true |
|
145 |
) |
|
146 |
#(#InputFieldSpec |
|
147 |
#'name:' 'classField' |
|
148 |
#'layout:' #(#LayoutFrame 74 0.11 39 0 -5 1.0 61 0) |
|
149 |
#'tabable:' true |
|
150 |
#'model:' #className |
|
151 |
#'type:' #string |
|
152 |
) |
|
153 |
#(#LabelSpec |
|
154 |
#'name:' 'labelsLabel' |
|
155 |
#'layout:' #(#AlignmentOrigin 68 0.11 74 0 1 0.5) |
|
156 |
#'label:' 'Labels:' |
|
157 |
#'adjust:' #right |
|
158 |
#'resizeForLabel:' true |
|
159 |
) |
|
160 |
#(#InputFieldSpec |
|
161 |
#'name:' 'labelsField' |
|
162 |
#'layout:' #(#LayoutFrame 74 0.11 64 0 -5 1.0 86 0) |
|
163 |
#'tabable:' true |
|
164 |
#'model:' #labelsKey |
|
165 |
#'type:' #symbolOrNil |
|
166 |
) |
|
167 |
#(#LabelSpec |
|
168 |
#'name:' 'specsLabel' |
|
169 |
#'layout:' #(#AlignmentOrigin 68 0.11 99 0 1 0.5) |
|
170 |
#'label:' 'Specifications:' |
|
171 |
#'adjust:' #right |
|
172 |
#'resizeForLabel:' true |
|
173 |
) |
|
174 |
#(#InputFieldSpec |
|
175 |
#'name:' 'specsField' |
|
176 |
#'layout:' #(#LayoutFrame 74 0.11 89 0 -5 1.0 111 0) |
|
177 |
#'tabable:' true |
|
178 |
#'model:' #specsKey |
|
179 |
#'type:' #symbolOrNil |
|
180 |
) |
|
181 |
#(#HorizontalPanelViewSpec |
|
182 |
#'name:' 'commitPanel' |
|
183 |
#'layout:' #(#LayoutFrame 0 0.0 -23 1.0 0 1.0 0 1.0) |
|
184 |
#'component:' |
|
185 |
#(#SpecCollection |
|
186 |
#'collection:' |
|
187 |
#( |
|
188 |
#(#ActionButtonSpec |
|
189 |
#'name:' 'cancel' |
|
190 |
#'label:' 'cancel' |
|
191 |
#'tabable:' true |
|
192 |
#'model:' #cancel |
|
193 |
#'extent:' #(#Point 153 23) |
|
194 |
) |
|
195 |
#(#ActionButtonSpec |
|
196 |
#'name:' 'accept' |
|
197 |
#'label:' 'ok' |
|
198 |
#'tabable:' true |
|
199 |
#'isDefault:' true |
|
200 |
#'model:' #accept |
|
201 |
#'extent:' #(#Point 153 23) |
|
202 |
) |
|
203 |
) |
|
204 |
) |
|
205 |
#'horizontalLayout:' #fitSpace |
|
206 |
#'verticalLayout:' #fit |
|
207 |
#'horizontalSpace:' 3 |
|
208 |
#'verticalSpace:' 3 |
|
209 |
) |
|
210 |
#(#CheckBoxSpec |
|
211 |
#'name:' 'updateDefaultResources' |
|
212 |
#'layout:' #(#Point 5 133) |
|
213 |
#'model:' #updateDefaultResources |
|
214 |
#'label:' 'Update Default Resources' |
|
215 |
) |
|
216 |
) |
|
217 |
) |
|
218 |
) |
|
219 |
! |
|
220 |
||
221 |
windowSpec |
|
222 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
223 |
||
224 |
"do not manually edit this - the painter/builder may not be able to |
|
225 |
handle the specification if its corrupted." |
|
226 |
||
227 |
" |
|
228 |
UIPainter new openOnClass:UISelectionPanel andSelector:#windowSpec |
|
229 |
UISelectionPanel new openInterface:#windowSpec |
|
230 |
" |
|
231 |
"UISelectionPanel open" |
|
232 |
||
233 |
<resource: #canvas> |
|
234 |
||
235 |
^ |
|
236 |
||
237 |
#(#FullSpec |
|
238 |
#'window:' |
|
239 |
#(#WindowSpec |
|
240 |
#'name:' 'uIPainterView' |
|
241 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
242 |
#'label:' 'Component Gallery' |
|
243 |
#'bounds:' #(#Rectangle 0 0 471 223) |
|
244 |
) |
|
245 |
#'component:' |
|
246 |
#(#SpecCollection |
|
247 |
#'collection:' |
|
248 |
#( |
|
249 |
#(#UIGalleryViewSpec |
|
250 |
#'name:' 'gallery' |
|
251 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 -40 1.0 0 1.0) |
|
252 |
#'tabable:' true |
|
253 |
#'menu:' #galleryList |
|
254 |
#'style:' |
|
255 |
#(#FontDescription |
|
256 |
#helvetica #medium |
|
257 |
#roman #'10' |
|
258 |
) |
|
259 |
#'model:' #galleryModel |
|
260 |
#'tabWidget:' #Window |
|
261 |
#'minorKeys:' #minorKeys |
|
262 |
#'clientSpec:' #clientSpec |
|
263 |
#'raiseMenu:' #raiseMenu |
|
264 |
#'useIndex:' true |
|
265 |
) |
|
266 |
#(#TabViewSpec |
|
267 |
#'name:' 'major' |
|
268 |
#'layout:' #(#LayoutFrame -40 1.0 30 0.0 0 1.0 0 1.0) |
|
269 |
#'menu:' #majorList |
|
270 |
#'style:' |
|
271 |
#(#FontDescription |
|
272 |
#helvetica #medium |
|
273 |
#roman #'10' |
|
274 |
) |
|
275 |
#'model:' #majorChannel |
|
276 |
#'tabWidget:' #Window |
|
277 |
#'direction:' #right |
|
278 |
#'useIndex:' true |
|
279 |
) |
|
280 |
#(#LabelSpec |
|
281 |
#'name:' 'clientSpecLabel' |
|
282 |
#'layout:' #(#AlignmentOrigin 0 0.0 0 1.0 0 1) |
|
283 |
#'label:' '' |
|
284 |
#'adjust:' #left |
|
285 |
#'resizeForLabel:' true |
|
286 |
) |
|
287 |
) |
|
288 |
) |
|
289 |
) |
|
290 |
! ! |
|
291 |
||
292 |
!UISelectionPanel class methodsFor:'menus'! |
|
293 |
||
294 |
menuSelected |
|
295 |
^ #(#Menu #( |
|
296 |
#(#MenuItem |
|
297 |
#'label:' 'copy' |
|
298 |
#'value:' #copy |
|
299 |
) |
|
300 |
#(#MenuItem |
|
301 |
#'label:' 'cut' |
|
302 |
#'value:' #cut |
|
303 |
) |
|
304 |
) |
|
305 |
nil |
|
306 |
nil |
|
307 |
) |
|
308 |
||
309 |
||
310 |
||
311 |
! |
|
312 |
||
313 |
menuUnselected |
|
314 |
^ #(#Menu #( |
|
315 |
#(#MenuItem |
|
316 |
#'label:' 'paste' |
|
317 |
#'value:' #paste |
|
318 |
) |
|
319 |
) |
|
320 |
nil |
|
321 |
nil |
|
322 |
) |
|
323 |
||
324 |
||
325 |
||
326 |
! ! |
|
327 |
||
190 | 328 |
!UISelectionPanel class methodsFor:'standard specifications'! |
182 | 329 |
|
190 | 330 |
standardButtonToggle |
182 | 331 |
"this window spec was automatically generated by the ST/X UIPainter" |
332 |
||
333 |
"do not manually edit this - the painter/builder may not be able to |
|
334 |
handle the specification if its corrupted." |
|
335 |
||
336 |
" |
|
190 | 337 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardButtonToggle |
338 |
UISelectionPanel new openInterface:#standardButtonToggle |
|
93 | 339 |
" |
340 |
||
341 |
<resource: #canvas> |
|
342 |
||
343 |
^ |
|
147 | 344 |
|
93 | 345 |
#(#FullSpec |
346 |
#'window:' |
|
347 |
#(#WindowSpec |
|
348 |
#'name:' 'uIPainterView' |
|
349 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
350 |
#'label:' 'unnamed' |
|
105 | 351 |
#'bounds:' #(#Rectangle 0 0 439 193) |
93 | 352 |
) |
353 |
#'component:' |
|
354 |
#(#SpecCollection |
|
355 |
#'collection:' |
|
356 |
#( |
|
357 |
#(#ArrowButtonSpec |
|
358 |
#'name:' 'ArrowButton up' |
|
105 | 359 |
#'layout:' #(#LayoutFrame 237 0 20 0 259 0 42 0) |
93 | 360 |
#'isTriggerOnDown:' true |
361 |
#'direction:' #up |
|
362 |
) |
|
363 |
#(#ActionButtonSpec |
|
364 |
#'name:' 'Button' |
|
105 | 365 |
#'layout:' #(#LayoutFrame 20 0 20 0 119 0 42 0) |
93 | 366 |
#'label:' 'Button' |
367 |
) |
|
368 |
#(#RadioButtonSpec |
|
369 |
#'name:' 'RadioButton' |
|
105 | 370 |
#'layout:' #(#LayoutFrame 127 0.0 20 0 226 0 42 0) |
93 | 371 |
#'label:' 'RadioButton' |
372 |
#'isTriggerOnDown:' true |
|
373 |
#'showLamp:' true |
|
374 |
#'lampColor:' #(#Color 100.0 100.0 0.0) |
|
375 |
) |
|
376 |
#(#ArrowButtonSpec |
|
377 |
#'name:' 'ArrowButton down' |
|
182 | 378 |
#'layout:' #(#LayoutFrame 237 0 51 0 259 0 73 0) |
93 | 379 |
#'hasCharacterOrientedLabel:' false |
380 |
#'isTriggerOnDown:' true |
|
381 |
#'direction:' #down |
|
382 |
) |
|
383 |
#(#ArrowButtonSpec |
|
384 |
#'name:' 'ArrowButton left' |
|
182 | 385 |
#'layout:' #(#LayoutFrame 237 0 82 0 259 0 104 0) |
93 | 386 |
#'hasCharacterOrientedLabel:' false |
387 |
#'isTriggerOnDown:' true |
|
388 |
#'direction:' #left |
|
389 |
) |
|
390 |
#(#ArrowButtonSpec |
|
391 |
#'name:' 'ArrowButton right' |
|
182 | 392 |
#'layout:' #(#LayoutFrame 237 0 113 0 259 0 135 0) |
93 | 393 |
#'hasCharacterOrientedLabel:' false |
394 |
#'isTriggerOnDown:' true |
|
395 |
#'direction:' #right |
|
396 |
) |
|
397 |
#(#CheckToggleSpec |
|
398 |
#'name:' 'CheckToggle' |
|
105 | 399 |
#'layout:' #(#LayoutFrame 297 0 82 0 317 0 102 0) |
93 | 400 |
#'isTriggerOnDown:' true |
401 |
#'showLamp:' false |
|
402 |
#'lampColor:' #(#Color 100.0 100.0 0.0) |
|
403 |
) |
|
404 |
#(#ToggleSpec |
|
405 |
#'name:' 'Toggle' |
|
105 | 406 |
#'layout:' #(#LayoutFrame 297 0 20 0 396 0 42 0) |
93 | 407 |
#'label:' 'Toggle' |
408 |
#'isTriggerOnDown:' true |
|
409 |
#'showLamp:' true |
|
410 |
#'lampColor:' #(#Color 100.0 100.0 0.0) |
|
411 |
) |
|
412 |
#(#CheckBoxSpec |
|
413 |
#'name:' 'CheckBox' |
|
182 | 414 |
#'layout:' #(#LayoutFrame 297 0 51 0 396 0 73 0) |
93 | 415 |
#'label:' 'CheckBox' |
416 |
) |
|
105 | 417 |
#(#ActionButtonSpec |
418 |
#'name:' 'ok' |
|
419 |
#'layout:' #(#LayoutFrame 20 0 51 0 119 0 73 0) |
|
420 |
#'label:' 'ok' |
|
421 |
#'model:' #accept |
|
422 |
) |
|
423 |
#(#ActionButtonSpec |
|
424 |
#'name:' 'cancel' |
|
425 |
#'layout:' #(#LayoutFrame 20 0 82 0 119 0 104 0) |
|
426 |
#'label:' 'cancel' |
|
427 |
#'model:' #cancel |
|
428 |
) |
|
429 |
#(#ActionButtonSpec |
|
430 |
#'name:' 'help' |
|
431 |
#'layout:' #(#LayoutFrame 20 0 113 0 119 0 135 0) |
|
432 |
#'label:' 'help' |
|
433 |
#'model:' #help |
|
434 |
) |
|
93 | 435 |
) |
436 |
) |
|
437 |
) |
|
438 |
! |
|
439 |
||
190 | 440 |
standardCanvas |
142 | 441 |
"this window spec was automatically generated by the ST/X UIPainter" |
442 |
||
443 |
"do not manually edit this - the painter/builder may not be able to |
|
444 |
handle the specification if its corrupted." |
|
445 |
||
446 |
" |
|
190 | 447 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardCanvas |
448 |
UISelectionPanel new openInterface:#standardCanvas |
|
142 | 449 |
" |
450 |
||
451 |
<resource: #canvas> |
|
452 |
||
453 |
^ |
|
454 |
||
455 |
#(#FullSpec |
|
456 |
#'window:' |
|
457 |
#(#WindowSpec |
|
458 |
#'name:' 'uIPainterView' |
|
459 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
460 |
#'label:' 'unnamed' |
|
182 | 461 |
#'bounds:' #(#Rectangle 0 0 370 203) |
462 |
) |
|
463 |
#'component:' |
|
464 |
#(#SpecCollection |
|
465 |
#'collection:' |
|
466 |
#( |
|
467 |
#(#UIGalleryViewSpec |
|
468 |
#'name:' 'Gallery' |
|
469 |
#'layout:' #(#LayoutFrame 16 0 19 0 168 0 92 0) |
|
470 |
#'tabWidget:' #Window |
|
471 |
) |
|
472 |
#(#LabelSpec |
|
473 |
#'name:' 'GalleryLabel' |
|
474 |
#'layout:' #(#AlignmentOrigin 20 0 88 0 0 1) |
|
475 |
#'label:' 'Gallery' |
|
476 |
#'style:' |
|
477 |
#(#FontDescription |
|
478 |
#helvetica #medium |
|
479 |
#roman #'10' |
|
480 |
) |
|
481 |
#'adjust:' #left |
|
482 |
#'resizeForLabel:' true |
|
483 |
#'canUIDrag:' false |
|
484 |
) |
|
485 |
#(#UISubSpecification |
|
486 |
#'name:' 'SubSpecification' |
|
487 |
#'layout:' #(#LayoutFrame 182 0 19 0 334 0 92 0) |
|
488 |
) |
|
489 |
#(#LabelSpec |
|
490 |
#'name:' 'SubSpecificationLabel' |
|
491 |
#'layout:' #(#AlignmentOrigin 186 0 88 0 0 1) |
|
492 |
#'label:' 'SubSpecification' |
|
493 |
#'style:' |
|
494 |
#(#FontDescription |
|
495 |
#helvetica #medium |
|
496 |
#roman #'10' |
|
497 |
) |
|
498 |
#'resizeForLabel:' true |
|
499 |
#'canUIDrag:' false |
|
500 |
) |
|
501 |
#(#SubCanvasSpec |
|
502 |
#'name:' 'SubCanvas' |
|
503 |
#'layout:' #(#LayoutFrame 182 0 104 0 334 0 177 0) |
|
504 |
#'hasHorizontalScrollBar:' true |
|
505 |
#'hasVerticalScrollBar:' true |
|
506 |
) |
|
507 |
#(#LabelSpec |
|
508 |
#'name:' 'subCanvasLabel' |
|
509 |
#'layout:' #(#AlignmentOrigin 255 0 158 0 0 0) |
|
510 |
#'label:' 'SubCanvas' |
|
511 |
#'style:' |
|
512 |
#(#FontDescription |
|
513 |
#helvetica #medium |
|
514 |
#roman #'10' |
|
515 |
) |
|
516 |
#'adjust:' #left |
|
517 |
#'resizeForLabel:' true |
|
518 |
#'canUIDrag:' false |
|
519 |
) |
|
520 |
) |
|
521 |
) |
|
522 |
) |
|
523 |
! |
|
524 |
||
190 | 525 |
standardMenus |
182 | 526 |
"this window spec was automatically generated by the ST/X UIPainter" |
527 |
||
528 |
"do not manually edit this - the painter/builder may not be able to |
|
529 |
handle the specification if its corrupted." |
|
530 |
||
531 |
" |
|
190 | 532 |
UIPainter new openOnClass:self andSelector:#standardMenus |
533 |
self new openInterface:#standardMenus |
|
182 | 534 |
" |
535 |
||
536 |
<resource: #canvas> |
|
537 |
||
538 |
^ |
|
539 |
||
540 |
#(#FullSpec |
|
541 |
#'window:' |
|
542 |
#(#WindowSpec |
|
543 |
#'name:' 'uIPainterView' |
|
544 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
545 |
#'label:' 'unnamed' |
|
142 | 546 |
#'bounds:' #(#Rectangle 0 0 464 253) |
547 |
) |
|
548 |
#'component:' |
|
549 |
#(#SpecCollection |
|
550 |
#'collection:' |
|
551 |
#( |
|
552 |
#(#ComboBoxSpec |
|
553 |
#'name:' 'ComboBox' |
|
147 | 554 |
#'layout:' #(#LayoutFrame 20 0 14 0 123 0 34 0) |
142 | 555 |
) |
556 |
#(#ComboListSpec |
|
557 |
#'name:' 'ComboList' |
|
147 | 558 |
#'layout:' #(#LayoutFrame 20 0 71 0 123 0 91 0) |
559 |
#'useIndex:' false |
|
142 | 560 |
) |
561 |
#(#PopUpListSpec |
|
562 |
#'name:' 'PopUpList' |
|
147 | 563 |
#'layout:' #(#LayoutFrame 147 0 14 0 250 0 36 0) |
142 | 564 |
#'label:' 'PopUpList' |
147 | 565 |
#'useIndex:' false |
142 | 566 |
) |
567 |
#(#MenuPanelSpec |
|
568 |
#'name:' 'MenuPanel' |
|
147 | 569 |
#'layout:' #(#LayoutFrame 147 0 71 0 250 0 91 0) |
142 | 570 |
) |
571 |
#(#TabViewSpec |
|
572 |
#'name:' 'TabView' |
|
147 | 573 |
#'layout:' #(#LayoutFrame 269 0 14 0 409 0 50 0) |
142 | 574 |
#'tabWidget:' #Window |
575 |
) |
|
576 |
#(#NoteBookViewSpec |
|
182 | 577 |
#'name:' 'NoteBookView' |
147 | 578 |
#'layout:' #(#LayoutFrame 269 0 71 0 409 0 159 0) |
579 |
#'tabWidget:' #Window |
|
142 | 580 |
) |
581 |
#(#LabelSpec |
|
582 |
#'name:' 'label1' |
|
147 | 583 |
#'layout:' #(#LayoutFrame 150 0 73 0 236 0 89 0) |
142 | 584 |
#'label:' 'MenuPanel' |
167 | 585 |
#'style:' |
586 |
#(#FontDescription |
|
587 |
#helvetica #medium |
|
588 |
#roman #'10' |
|
589 |
) |
|
147 | 590 |
#'adjust:' #left |
142 | 591 |
#'canUIDrag:' false |
592 |
) |
|
593 |
) |
|
594 |
) |
|
595 |
) |
|
182 | 596 |
|
597 |
||
142 | 598 |
! |
599 |
||
190 | 600 |
standardPanels |
93 | 601 |
"this window spec was automatically generated by the ST/X UIPainter" |
602 |
||
603 |
"do not manually edit this - the painter/builder may not be able to |
|
604 |
handle the specification if its corrupted." |
|
605 |
||
606 |
" |
|
190 | 607 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardPanels |
608 |
UISelectionPanel new openInterface:#standardPanels |
|
93 | 609 |
" |
610 |
||
611 |
<resource: #canvas> |
|
612 |
||
613 |
^ |
|
182 | 614 |
|
93 | 615 |
#(#FullSpec |
616 |
#'window:' |
|
617 |
#(#WindowSpec |
|
618 |
#'name:' 'uIPainterView' |
|
619 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
620 |
#'label:' 'unnamed' |
|
182 | 621 |
#'bounds:' #(#Rectangle 0 0 411 131) |
93 | 622 |
) |
623 |
#'component:' |
|
624 |
#(#SpecCollection |
|
625 |
#'collection:' |
|
626 |
#( |
|
627 |
#(#HorizontalPanelViewSpec |
|
628 |
#'name:' 'HorizontalPanelView' |
|
105 | 629 |
#'layout:' #(#LayoutFrame 20 0 20 0 104 0 105 0) |
93 | 630 |
#'component:' |
631 |
#(#SpecCollection |
|
632 |
#'collection:' |
|
633 |
#( |
|
112 | 634 |
#(#LabelSpec |
635 |
#'name:' 'label1' |
|
93 | 636 |
#'label:' 'A' |
112 | 637 |
#'level:' 2 |
638 |
#'extent:' #(#Point 23 23) |
|
93 | 639 |
#'canUIDrag:' false |
640 |
) |
|
112 | 641 |
#(#LabelSpec |
642 |
#'name:' 'label2' |
|
93 | 643 |
#'label:' 'B' |
112 | 644 |
#'level:' 2 |
645 |
#'extent:' #(#Point 23 23) |
|
104 | 646 |
#'canUIDrag:' false |
647 |
) |
|
112 | 648 |
#(#LabelSpec |
649 |
#'name:' 'label3' |
|
104 | 650 |
#'label:' 'C' |
112 | 651 |
#'level:' 2 |
652 |
#'extent:' #(#Point 23 23) |
|
93 | 653 |
#'canUIDrag:' false |
654 |
) |
|
655 |
) |
|
656 |
) |
|
657 |
#'horizontalLayout:' #center |
|
658 |
#'verticalLayout:' #center |
|
659 |
#'horizontalSpace:' 3 |
|
660 |
#'verticalSpace:' 3 |
|
661 |
) |
|
662 |
#(#VariableHorizontalPanelSpec |
|
663 |
#'name:' 'VariableHorizontalPanel' |
|
182 | 664 |
#'layout:' #(#LayoutFrame 249 0 20 0 323 0 105 0) |
93 | 665 |
#'component:' |
666 |
#(#SpecCollection |
|
667 |
#'collection:' |
|
668 |
#( |
|
112 | 669 |
#(#LabelSpec |
670 |
#'name:' 'label4' |
|
93 | 671 |
#'label:' 'A' |
112 | 672 |
#'level:' 2 |
93 | 673 |
#'canUIDrag:' false |
674 |
) |
|
112 | 675 |
#(#LabelSpec |
676 |
#'name:' 'label5' |
|
93 | 677 |
#'label:' 'B' |
112 | 678 |
#'level:' 2 |
93 | 679 |
#'canUIDrag:' false |
680 |
) |
|
681 |
) |
|
682 |
) |
|
683 |
) |
|
684 |
#(#VerticalPanelViewSpec |
|
685 |
#'name:' 'VerticalPanelView' |
|
112 | 686 |
#'layout:' #(#LayoutFrame 110 0 20 0 168 0 105 0) |
93 | 687 |
#'component:' |
688 |
#(#SpecCollection |
|
689 |
#'collection:' |
|
690 |
#( |
|
112 | 691 |
#(#LabelSpec |
692 |
#'name:' 'label6' |
|
93 | 693 |
#'label:' 'A' |
112 | 694 |
#'level:' 2 |
695 |
#'extent:' #(#Point 23 23) |
|
93 | 696 |
#'canUIDrag:' false |
697 |
) |
|
112 | 698 |
#(#LabelSpec |
699 |
#'name:' 'label7' |
|
93 | 700 |
#'label:' 'B' |
112 | 701 |
#'level:' 2 |
702 |
#'extent:' #(#Point 23 23) |
|
104 | 703 |
#'canUIDrag:' false |
704 |
) |
|
112 | 705 |
#(#LabelSpec |
706 |
#'name:' 'label8' |
|
104 | 707 |
#'label:' 'C' |
112 | 708 |
#'level:' 2 |
709 |
#'extent:' #(#Point 23 23) |
|
93 | 710 |
#'canUIDrag:' false |
711 |
) |
|
712 |
) |
|
713 |
) |
|
714 |
#'horizontalLayout:' #center |
|
715 |
#'verticalLayout:' #center |
|
716 |
#'horizontalSpace:' 3 |
|
717 |
#'verticalSpace:' 3 |
|
718 |
) |
|
719 |
#(#VariableVerticalPanelSpec |
|
720 |
#'name:' 'VariableVerticalPanel' |
|
182 | 721 |
#'layout:' #(#LayoutFrame 328 0 20 0 402 0 105 0) |
93 | 722 |
#'component:' |
723 |
#(#SpecCollection |
|
724 |
#'collection:' |
|
725 |
#( |
|
112 | 726 |
#(#LabelSpec |
727 |
#'name:' 'label9' |
|
93 | 728 |
#'label:' 'A' |
112 | 729 |
#'level:' 2 |
93 | 730 |
#'canUIDrag:' false |
731 |
) |
|
112 | 732 |
#(#LabelSpec |
733 |
#'name:' 'label10' |
|
93 | 734 |
#'label:' 'B' |
112 | 735 |
#'level:' 2 |
93 | 736 |
#'canUIDrag:' false |
737 |
) |
|
738 |
) |
|
739 |
) |
|
740 |
) |
|
104 | 741 |
#(#PanelViewSpec |
742 |
#'name:' 'PanelView' |
|
112 | 743 |
#'layout:' #(#LayoutFrame 174 0 20 0 232 0 105 0) |
104 | 744 |
#'component:' |
745 |
#(#SpecCollection |
|
746 |
#'collection:' |
|
747 |
#( |
|
112 | 748 |
#(#LabelSpec |
749 |
#'name:' 'label11' |
|
104 | 750 |
#'label:' 'A' |
112 | 751 |
#'level:' 2 |
752 |
#'extent:' #(#Point 23 23) |
|
104 | 753 |
#'canUIDrag:' false |
754 |
) |
|
112 | 755 |
#(#LabelSpec |
756 |
#'name:' 'label12' |
|
104 | 757 |
#'label:' 'B' |
112 | 758 |
#'level:' 2 |
759 |
#'extent:' #(#Point 23 23) |
|
104 | 760 |
#'canUIDrag:' false |
761 |
) |
|
112 | 762 |
#(#LabelSpec |
763 |
#'name:' 'label13' |
|
104 | 764 |
#'label:' 'C' |
112 | 765 |
#'level:' 2 |
766 |
#'extent:' #(#Point 23 23) |
|
104 | 767 |
#'canUIDrag:' false |
768 |
) |
|
112 | 769 |
#(#LabelSpec |
770 |
#'name:' 'label14' |
|
104 | 771 |
#'label:' 'D' |
112 | 772 |
#'level:' 2 |
773 |
#'extent:' #(#Point 23 23) |
|
104 | 774 |
#'canUIDrag:' false |
775 |
) |
|
112 | 776 |
#(#LabelSpec |
777 |
#'name:' 'label15' |
|
104 | 778 |
#'label:' 'E' |
112 | 779 |
#'level:' 2 |
780 |
#'extent:' #(#Point 23 23) |
|
104 | 781 |
#'canUIDrag:' false |
782 |
) |
|
783 |
) |
|
784 |
) |
|
785 |
#'horizontalLayout:' #fitSpace |
|
786 |
#'verticalLayout:' #fitSpace |
|
787 |
#'horizontalSpace:' 3 |
|
788 |
#'verticalSpace:' 3 |
|
789 |
) |
|
93 | 790 |
) |
791 |
) |
|
792 |
) |
|
793 |
! |
|
794 |
||
190 | 795 |
standardSliders |
93 | 796 |
"this window spec was automatically generated by the ST/X UIPainter" |
797 |
||
798 |
"do not manually edit this - the painter/builder may not be able to |
|
799 |
handle the specification if its corrupted." |
|
800 |
||
801 |
" |
|
190 | 802 |
UIPainter new openOnClass:self andSelector:#standardSliders |
803 |
self new openInterface:#standardSliders |
|
93 | 804 |
" |
805 |
||
806 |
<resource: #canvas> |
|
807 |
||
808 |
^ |
|
182 | 809 |
|
93 | 810 |
#(#FullSpec |
811 |
#'window:' |
|
812 |
#(#WindowSpec |
|
813 |
#'name:' 'uIPainterView' |
|
814 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
815 |
#'label:' 'unnamed' |
|
105 | 816 |
#'bounds:' #(#Rectangle 0 0 445 162) |
93 | 817 |
) |
818 |
#'component:' |
|
819 |
#(#SpecCollection |
|
820 |
#'collection:' |
|
821 |
#( |
|
104 | 822 |
#(#SliderSpec |
823 |
#'name:' 'Vertical Slider' |
|
105 | 824 |
#'layout:' #(#LayoutFrame 20 0 20 0 38 0 108 0) |
104 | 825 |
#'orientation:' #vertical |
93 | 826 |
) |
104 | 827 |
#(#ThumbWheelSpec |
828 |
#'name:' 'Vertical ThumbWheel' |
|
105 | 829 |
#'layout:' #(#LayoutFrame 48 0 20 0 63 0 108 0) |
104 | 830 |
#'orientation:' #vertical |
831 |
#'start:' 0 |
|
832 |
#'stop:' 360 |
|
93 | 833 |
) |
104 | 834 |
#(#ThumbWheelSpec |
835 |
#'name:' 'Horizontal ThumbWheel' |
|
105 | 836 |
#'layout:' #(#LayoutFrame 102 0 20 0 191 0 35 0) |
104 | 837 |
#'orientation:' #horizontal |
838 |
#'start:' 0 |
|
839 |
#'stop:' 360 |
|
93 | 840 |
) |
841 |
#(#SliderSpec |
|
104 | 842 |
#'name:' 'Horizontal Slider' |
150 | 843 |
#'layout:' #(#LayoutFrame 102 0 53 0 191 0 71 0) |
104 | 844 |
#'orientation:' #horizontal |
845 |
#'start:' 0 |
|
846 |
#'stop:' 100 |
|
93 | 847 |
) |
150 | 848 |
#(#ProgressIndicatorSpec |
849 |
#'name:' 'Progress Indicator' |
|
850 |
#'layout:' #(#LayoutFrame 102 0 90 0 191 0 108 0) |
|
851 |
#'showPercentage:' true |
|
852 |
) |
|
93 | 853 |
) |
854 |
) |
|
855 |
) |
|
182 | 856 |
|
93 | 857 |
! |
858 |
||
190 | 859 |
standardText |
97 | 860 |
"this window spec was automatically generated by the ST/X UIPainter" |
861 |
||
862 |
"do not manually edit this - the painter/builder may not be able to |
|
863 |
handle the specification if its corrupted." |
|
864 |
||
865 |
" |
|
190 | 866 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardText |
867 |
UISelectionPanel new openInterface:#standardText |
|
97 | 868 |
" |
869 |
||
870 |
<resource: #canvas> |
|
871 |
||
872 |
^ |
|
139 | 873 |
|
97 | 874 |
#(#FullSpec |
875 |
#'window:' |
|
876 |
#(#WindowSpec |
|
877 |
#'name:' 'uIPainterView' |
|
878 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
879 |
#'label:' 'unnamed' |
|
139 | 880 |
#'bounds:' #(#Rectangle 0 0 467 207) |
97 | 881 |
) |
882 |
#'component:' |
|
883 |
#(#SpecCollection |
|
884 |
#'collection:' |
|
885 |
#( |
|
886 |
#(#InputFieldSpec |
|
887 |
#'name:' 'EditField' |
|
182 | 888 |
#'layout:' #(#LayoutFrame 20 0 100 0 199 0 122 0) |
97 | 889 |
) |
890 |
#(#LabelSpec |
|
891 |
#'name:' 'Text Label' |
|
182 | 892 |
#'layout:' #(#LayoutFrame 20 0 128 0 199 0 150 0) |
189 | 893 |
#'label:' 'Label' |
97 | 894 |
) |
895 |
#(#TextEditorSpec |
|
896 |
#'name:' 'EditTextView' |
|
182 | 897 |
#'layout:' #(#LayoutFrame 20 0 13 0 199 0 94 0) |
139 | 898 |
#'hasHorizontalScrollBar:' true |
899 |
#'hasVerticalScrollBar:' true |
|
900 |
) |
|
901 |
#(#SequenceViewSpec |
|
902 |
#'name:' 'SelectionInListView' |
|
182 | 903 |
#'layout:' #(#LayoutFrame 222 0 13 0 401 0 94 0) |
139 | 904 |
#'hasHorizontalScrollBar:' true |
905 |
#'hasVerticalScrollBar:' true |
|
906 |
) |
|
907 |
#(#HTMLViewSpec |
|
908 |
#'name:' 'HTMLView' |
|
182 | 909 |
#'layout:' #(#LayoutFrame 222 0 100 0 401 0 181 0) |
97 | 910 |
#'hasHorizontalScrollBar:' true |
911 |
#'hasVerticalScrollBar:' true |
|
912 |
) |
|
139 | 913 |
#(#LabelSpec |
914 |
#'name:' 'HTMLViewLabel' |
|
182 | 915 |
#'layout:' #(#AlignmentOrigin 295 0 178 0 0 1) |
139 | 916 |
#'label:' 'HTMLView' |
167 | 917 |
#'style:' |
918 |
#(#FontDescription |
|
919 |
#helvetica #medium |
|
920 |
#roman #'10' |
|
921 |
) |
|
147 | 922 |
#'adjust:' #left |
182 | 923 |
#'resizeForLabel:' true |
139 | 924 |
#'canUIDrag:' false |
97 | 925 |
) |
139 | 926 |
#(#LabelSpec |
927 |
#'name:' 'label1' |
|
182 | 928 |
#'layout:' #(#AlignmentOrigin 93 0 91 0 0 1) |
139 | 929 |
#'label:' 'EditText' |
167 | 930 |
#'style:' |
931 |
#(#FontDescription |
|
932 |
#helvetica #medium |
|
933 |
#roman #'10' |
|
934 |
) |
|
147 | 935 |
#'adjust:' #left |
182 | 936 |
#'resizeForLabel:' true |
139 | 937 |
#'canUIDrag:' false |
97 | 938 |
) |
139 | 939 |
#(#LabelSpec |
940 |
#'name:' 'label2' |
|
182 | 941 |
#'layout:' #(#AlignmentOrigin 295 0 91 0 0 1) |
139 | 942 |
#'label:' 'SelectionInList' |
167 | 943 |
#'style:' |
944 |
#(#FontDescription |
|
945 |
#helvetica #medium |
|
946 |
#roman #'10' |
|
947 |
) |
|
147 | 948 |
#'adjust:' #left |
182 | 949 |
#'resizeForLabel:' true |
147 | 950 |
#'canUIDrag:' false |
951 |
) |
|
97 | 952 |
) |
953 |
) |
|
954 |
) |
|
955 |
! |
|
956 |
||
190 | 957 |
standardUserPanel |
93 | 958 |
"this window spec was automatically generated by the ST/X UIPainter" |
959 |
||
960 |
"do not manually edit this - the painter/builder may not be able to |
|
961 |
handle the specification if its corrupted." |
|
962 |
||
963 |
" |
|
190 | 964 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel |
965 |
UISelectionPanel new openInterface:#standardUserPanel |
|
182 | 966 |
" |
967 |
||
968 |
<resource: #canvas> |
|
969 |
||
970 |
^ |
|
971 |
||
972 |
#(#FullSpec |
|
973 |
#'window:' |
|
974 |
#(#WindowSpec |
|
975 |
#'name:' 'uIPainterView' |
|
976 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
977 |
#'label:' 'unnamed' |
|
978 |
#'bounds:' #(#Rectangle 0 0 445 162) |
|
979 |
) |
|
980 |
#'component:' |
|
981 |
#(#SpecCollection |
|
982 |
#'collection:' |
|
983 |
#( |
|
984 |
#(#LabelSpec |
|
985 |
#'name:' 'helpText' |
|
986 |
#'layout:' #(#Point 10 0) |
|
987 |
#'labelChannel:' #userDefinedHelpText |
|
988 |
#'resizeForLabel:' true |
|
989 |
#'canUIDrag:' false |
|
990 |
) |
|
991 |
) |
|
992 |
) |
|
993 |
) |
|
994 |
! |
|
995 |
||
190 | 996 |
standardViews |
182 | 997 |
"this window spec was automatically generated by the ST/X UIPainter" |
998 |
||
999 |
"do not manually edit this - the painter/builder may not be able to |
|
1000 |
handle the specification if its corrupted." |
|
1001 |
||
1002 |
" |
|
190 | 1003 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardViews |
1004 |
UISelectionPanel new openInterface:#standardViews |
|
93 | 1005 |
" |
1006 |
||
1007 |
<resource: #canvas> |
|
1008 |
||
1009 |
^ |
|
135 | 1010 |
|
93 | 1011 |
#(#FullSpec |
1012 |
#'window:' |
|
1013 |
#(#WindowSpec |
|
1014 |
#'name:' 'uIPainterView' |
|
1015 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1016 |
#'label:' 'unnamed' |
|
182 | 1017 |
#'bounds:' #(#Rectangle 0 0 431 200) |
93 | 1018 |
) |
1019 |
#'component:' |
|
1020 |
#(#SpecCollection |
|
1021 |
#'collection:' |
|
1022 |
#( |
|
1023 |
#(#FramedBoxSpec |
|
1024 |
#'name:' 'FramedBox' |
|
182 | 1025 |
#'layout:' #(#LayoutFrame 16 0 14 0 136 0 94 0) |
104 | 1026 |
#'label:' 'FramedBox' |
93 | 1027 |
#'labelPosition:' #topCenter |
1028 |
) |
|
1029 |
#(#ViewSpec |
|
98 | 1030 |
#'name:' 'View' |
182 | 1031 |
#'layout:' #(#LayoutFrame 152 0 14 0 266 0 94 0) |
93 | 1032 |
) |
1033 |
#(#DividerSpec |
|
1034 |
#'name:' 'Horizontal Seperator' |
|
182 | 1035 |
#'layout:' #(#LayoutFrame 16 0 107 0 137 0 111 0) |
93 | 1036 |
#'orientation:' #horizontal |
1037 |
) |
|
1038 |
#(#DividerSpec |
|
1039 |
#'name:' 'Vertical Seperator' |
|
182 | 1040 |
#'layout:' #(#LayoutFrame 16 0 107 0 20 0 159 0) |
93 | 1041 |
#'orientation:' #vertical |
1042 |
) |
|
104 | 1043 |
#(#LabelSpec |
112 | 1044 |
#'name:' 'viewLabel' |
182 | 1045 |
#'layout:' #(#AlignmentOrigin 158 0 20 0 0 0) |
112 | 1046 |
#'label:' 'View' |
167 | 1047 |
#'style:' |
1048 |
#(#FontDescription |
|
1049 |
#helvetica #medium |
|
1050 |
#roman #'10' |
|
1051 |
) |
|
147 | 1052 |
#'adjust:' #left |
182 | 1053 |
#'resizeForLabel:' true |
104 | 1054 |
#'canUIDrag:' false |
1055 |
) |
|
143
9add9e2609d9
change SubCanvasSpec; have to update caused by new attributes
ca
parents:
142
diff
changeset
|
1056 |
#(#LabelSpec |
9add9e2609d9
change SubCanvasSpec; have to update caused by new attributes
ca
parents:
142
diff
changeset
|
1057 |
#'name:' 'Seperators' |
182 | 1058 |
#'layout:' #(#AlignmentOrigin 136 0 117 0 1 0) |
143
9add9e2609d9
change SubCanvasSpec; have to update caused by new attributes
ca
parents:
142
diff
changeset
|
1059 |
#'label:' 'Seperators' |
167 | 1060 |
#'style:' |
1061 |
#(#FontDescription |
|
1062 |
#helvetica #medium |
|
1063 |
#roman #'10' |
|
1064 |
) |
|
147 | 1065 |
#'adjust:' #left |
182 | 1066 |
#'resizeForLabel:' true |
143
9add9e2609d9
change SubCanvasSpec; have to update caused by new attributes
ca
parents:
142
diff
changeset
|
1067 |
#'canUIDrag:' false |
9add9e2609d9
change SubCanvasSpec; have to update caused by new attributes
ca
parents:
142
diff
changeset
|
1068 |
) |
189 | 1069 |
#(#ArbitraryComponentSpec |
1070 |
#'name:' 'ArbitraryComponent' |
|
1071 |
#'layout:' #(#LayoutFrame 278 0 14 0 392 0 94 0) |
|
1072 |
#'hasHorizontalScrollBar:' false |
|
1073 |
#'hasVerticalScrollBar:' false |
|
1074 |
#'hasBorder:' false |
|
1075 |
) |
|
150 | 1076 |
#(#RegionSpec |
1077 |
#'name:' 'Region' |
|
189 | 1078 |
#'layout:' #(#LayoutFrame 146 0 107 0 211 0 172 0) |
150 | 1079 |
#'lineWidth:' 2 |
1080 |
#'regionType:' #ellipse |
|
1081 |
) |
|
1082 |
#(#LabelSpec |
|
1083 |
#'name:' 'RegionLabel' |
|
189 | 1084 |
#'layout:' #(#AlignmentOrigin 181 0 140 0 0.5 0.5) |
150 | 1085 |
#'label:' 'Region' |
167 | 1086 |
#'style:' |
1087 |
#(#FontDescription |
|
1088 |
#helvetica #medium |
|
1089 |
#roman #'10' |
|
1090 |
) |
|
182 | 1091 |
#'resizeForLabel:' true |
150 | 1092 |
#'canUIDrag:' false |
1093 |
) |
|
189 | 1094 |
#(#LabelSpec |
1095 |
#'name:' 'ArbitraryComponentLabel' |
|
1096 |
#'layout:' #(#AlignmentOrigin 284 0 20 0 0 0) |
|
1097 |
#'label:' 'ArbitraryComponent' |
|
1098 |
#'style:' |
|
1099 |
#(#FontDescription |
|
1100 |
#helvetica #medium |
|
1101 |
#roman #'10' |
|
1102 |
) |
|
1103 |
#'adjust:' #left |
|
1104 |
#'resizeForLabel:' true |
|
1105 |
#'canUIDrag:' false |
|
1106 |
) |
|
93 | 1107 |
) |
1108 |
) |
|
1109 |
) |
|
1110 |
! ! |
|
1111 |
||
182 | 1112 |
!UISelectionPanel methodsFor:'actions'! |
1113 |
||
1114 |
defineClassAndSelector |
|
1115 |
|bd cls sel lbl| |
|
1116 |
||
1117 |
bd := IdentityDictionary new. |
|
1118 |
bd at:#className put:( userClass asValue). |
|
1119 |
bd at:#specsKey put:( (userSpecs ? '') asValue). |
|
1120 |
bd at:#labelsKey put:( (userLabels ? '') asValue). |
|
1121 |
bd at:#updateDefaultResources put:(false asValue). |
|
1122 |
||
1123 |
(self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[ |
|
1124 |
( (cls := (bd at:#className) value) notNil |
|
1125 |
and:[(sel := (bd at:#specsKey) value) notNil |
|
1126 |
and:[(lbl := (bd at:#labelsKey) value) notNil]] |
|
1127 |
) ifTrue:[ |
|
1128 |
userClass := cls. |
|
1129 |
userSpecs := sel. |
|
1130 |
userLabels := lbl. |
|
1131 |
||
1132 |
(bd at:#updateDefaultResources) value ifTrue:[ |
|
1133 |
UserClass := userClass. |
|
1134 |
UserSpecs := userSpecs. |
|
1135 |
UserLabels := userLabels. |
|
1136 |
] |
|
1137 |
] |
|
1138 |
]. |
|
1139 |
! |
|
1140 |
||
1141 |
paste:something |
|
1142 |
"paste something at a point |
|
1143 |
" |
|
1144 |
|coll specs point device gallery ext spec| |
|
1145 |
||
1146 |
clipBoardSpec isNil ifTrue:[ |
|
1147 |
clipBoardSpec := SpecCollection new. |
|
1148 |
clipBoardSpec collection:(OrderedCollection new). |
|
1149 |
]. |
|
1150 |
coll := clipBoardSpec collection. |
|
1151 |
gallery := self builder componentAt:#gallery. |
|
1152 |
device := gallery device. |
|
1153 |
||
1154 |
point := device translatePoint:(device pointerPosition) |
|
1155 |
from:(device rootView id) |
|
1156 |
to:(gallery canvas id). |
|
1157 |
||
1158 |
point y < 1 ifTrue:[point y:1]. |
|
1159 |
ext := gallery extent - (10@10). |
|
93 | 1160 |
|
182 | 1161 |
(specs := something) isCollection ifFalse:[ |
1162 |
specs := Array with:something |
|
1163 |
]. |
|
1164 |
||
1165 |
specs do:[:aSpec| |
|
1166 |
point x > ext x ifTrue:[point x:1]. |
|
1167 |
point y > ext y ifTrue:[point y:1]. |
|
1168 |
||
1169 |
spec := aSpec copy. |
|
1170 |
spec layout:(LayoutOrigin fromPoint:point). |
|
1171 |
coll add:spec. |
|
1172 |
point := point + (20@20). |
|
1173 |
]. |
|
1174 |
gallery update. |
|
1175 |
! |
|
1176 |
||
1177 |
raiseMenu |
|
1178 |
"can open menu |
|
1179 |
" |
|
1180 |
|spec menu value collection paste| |
|
1181 |
||
1182 |
spec := self clientSpec value. |
|
112 | 1183 |
|
182 | 1184 |
spec notNil ifTrue:[ |
1185 |
menu := self class menuSelected decodeAsLiteralArray. |
|
1186 |
self isClipBoard ifFalse:[ |
|
1187 |
(menu someMenuItemWithValue:#cut) disable. |
|
1188 |
]. |
|
1189 |
||
1190 |
(value := menu startUp) == #cut ifTrue:[ |
|
1191 |
clipBoardSpec collection remove:spec ifAbsent:nil. |
|
1192 |
(self builder componentAt:#gallery) update. |
|
1193 |
] ifFalse:[ |
|
1194 |
value == #copy ifTrue:[ |
|
1195 |
self window setSelection:spec |
|
1196 |
] |
|
1197 |
]. |
|
1198 |
^ self |
|
1199 |
]. |
|
1200 |
||
1201 |
self isUserBoard ifTrue:[ |
|
1202 |
^ self defineClassAndSelector |
|
1203 |
]. |
|
1204 |
||
1205 |
paste := self window getSelection. |
|
1206 |
||
1207 |
(self canPaste:paste) ifTrue:[ |
|
1208 |
menu := self class menuUnselected decodeAsLiteralArray. |
|
1209 |
||
1210 |
(menu startUp) == #paste ifTrue:[ |
|
1211 |
self paste:paste |
|
1212 |
] |
|
1213 |
]. |
|
112 | 1214 |
! ! |
1215 |
||
1216 |
!UISelectionPanel methodsFor:'aspects'! |
|
1217 |
||
182 | 1218 |
clientSpec |
1219 |
"automatically generated by UIPainter ..." |
|
1220 |
||
112 | 1221 |
|holder| |
1222 |
||
182 | 1223 |
(holder := builder bindingAt:#clientSpec) isNil ifTrue:[ |
1224 |
builder aspectAt:#clientSpec put:(holder := ValueHolder new). |
|
1225 |
holder addDependent:self. |
|
93 | 1226 |
]. |
112 | 1227 |
^ holder |
93 | 1228 |
! |
1229 |
||
182 | 1230 |
clipBoardSpec |
1231 |
^ clipBoardSpec |
|
1232 |
! |
|
1233 |
||
1234 |
galleryList |
|
1235 |
"automatically generated by UIPainter ..." |
|
1236 |
||
112 | 1237 |
|holder| |
1238 |
||
182 | 1239 |
(holder := builder bindingAt:#galleryList) isNil ifTrue:[ |
1240 |
builder aspectAt:#galleryList put:(holder := ValueHolder new). |
|
112 | 1241 |
]. |
1242 |
^ holder |
|
182 | 1243 |
! |
112 | 1244 |
|
182 | 1245 |
galleryModel |
1246 |
"automatically generated by UIPainter ..." |
|
112 | 1247 |
|
182 | 1248 |
|holder| |
112 | 1249 |
|
182 | 1250 |
(holder := builder bindingAt:#galleryModel) isNil ifTrue:[ |
1251 |
builder aspectAt:#galleryModel put:(holder := ValueHolder new). |
|
1252 |
]. |
|
1253 |
^ holder |
|
112 | 1254 |
! |
1255 |
||
182 | 1256 |
majorChannel |
1257 |
"automatically generated by UIPainter ..." |
|
112 | 1258 |
|
182 | 1259 |
|holder| |
1260 |
||
1261 |
(holder := builder bindingAt:#majorChannel) isNil ifTrue:[ |
|
1262 |
holder := AspectAdaptor new subject:self; forAspect:#majorSelection. |
|
1263 |
builder aspectAt:#majorChannel put:holder. |
|
139 | 1264 |
]. |
182 | 1265 |
^ holder |
1266 |
! |
|
1267 |
||
1268 |
majorList |
|
1269 |
"automatically generated by UIPainter ... |
|
1270 |
" |
|
1271 |
^ self class specifications collect:[:el| el first] |
|
1272 |
! |
|
1273 |
||
1274 |
minorKeys |
|
1275 |
"automatically generated by UIPainter ..." |
|
1276 |
||
1277 |
|holder| |
|
1278 |
||
1279 |
(holder := builder bindingAt:#minorKeys) isNil ifTrue:[ |
|
1280 |
builder aspectAt:#minorKeys put:(holder := ValueHolder new). |
|
112 | 1281 |
]. |
182 | 1282 |
^ holder |
112 | 1283 |
! ! |
1284 |
||
182 | 1285 |
!UISelectionPanel methodsFor:'change & update'! |
112 | 1286 |
|
182 | 1287 |
update:something with:aParameter from:changedObject |
1288 |
"one of my models changed its value |
|
112 | 1289 |
" |
182 | 1290 |
|channel label| |
112 | 1291 |
|
182 | 1292 |
(channel := self clientSpec) == changedObject ifTrue:[ |
1293 |
label := self builder componentAt:#clientSpecLabel. |
|
93 | 1294 |
|
182 | 1295 |
channel value notNil ifTrue:[ |
1296 |
label label:(' ', channel value name, ' '). |
|
1297 |
label level:1. |
|
1298 |
] ifFalse:[ |
|
1299 |
label label:nil. |
|
1300 |
label level:0. |
|
93 | 1301 |
] |
1302 |
]. |
|
1303 |
||
182 | 1304 |
super update:something with:aParameter from:changedObject. |
112 | 1305 |
|
1306 |
||
1307 |
! ! |
|
1308 |
||
182 | 1309 |
!UISelectionPanel methodsFor:'drag & drop'! |
112 | 1310 |
|
182 | 1311 |
canDrop:something in:aComponent |
1312 |
^ self canPaste:(something collect:[:el| el theObject ]). |
|
112 | 1313 |
! |
1314 |
||
182 | 1315 |
drop:something in:aComponent at:aPoint |
1316 |
||
1317 |
|spc top| |
|
1318 |
||
1319 |
top := DragAndDropManager dragOriginatorQuerySignal raise topView. |
|
1320 |
||
1321 |
top == aComponent topView ifTrue:[ |
|
1322 |
spc := self clientSpec value. |
|
1323 |
spc isNil ifTrue:[^ self]. |
|
1324 |
||
1325 |
(clipBoardSpec collection remove:spc ifAbsent:nil) isNil ifTrue:[ |
|
1326 |
^ self |
|
1327 |
]. |
|
1328 |
] ifFalse:[ |
|
1329 |
spc := something collect:[:el| el theObject]. |
|
1330 |
]. |
|
1331 |
self paste:spc. |
|
1332 |
! ! |
|
1333 |
||
1334 |
!UISelectionPanel methodsFor:'queries'! |
|
1335 |
||
1336 |
canPaste:something |
|
1337 |
"returns true if something could be paste |
|
112 | 1338 |
" |
182 | 1339 |
(self isClipBoard and:[something notNil]) ifTrue:[ |
1340 |
something isCollection ifTrue:[ |
|
1341 |
something notEmpty ifTrue:[ |
|
1342 |
^ (something at:1) isKindOf:UISpecification |
|
1343 |
] |
|
1344 |
] ifFalse:[ |
|
1345 |
^ something isKindOf:UISpecification |
|
1346 |
] |
|
1347 |
]. |
|
1348 |
^ false |
|
112 | 1349 |
|
1350 |
! |
|
1351 |
||
182 | 1352 |
isClipBoard |
1353 |
"returns true if current view is clip board |
|
1354 |
" |
|
1355 |
majorSelection notNil ifTrue:[ |
|
1356 |
^ (self majorList at:majorSelection) startsWith:'Clip' |
|
1357 |
]. |
|
1358 |
^ false |
|
1359 |
! |
|
1360 |
||
1361 |
isUserBoard |
|
1362 |
"returns true if current view is clip board |
|
112 | 1363 |
" |
182 | 1364 |
majorSelection notNil ifTrue:[ |
1365 |
^ (self majorList at:majorSelection) startsWith:'User' |
|
1366 |
]. |
|
1367 |
^ false |
|
1368 |
! ! |
|
1369 |
||
1370 |
!UISelectionPanel methodsFor:'selection'! |
|
1371 |
||
1372 |
majorSelection |
|
1373 |
^ majorSelection |
|
1374 |
! |
|
1375 |
||
1376 |
majorSelection:aSelection |
|
1377 |
|spec channel| |
|
112 | 1378 |
|
182 | 1379 |
(majorSelection == aSelection or:[aSelection isNil]) ifTrue:[ |
1380 |
^ self |
|
167 | 1381 |
]. |
182 | 1382 |
(self builder componentAt:#gallery) builder:nil. |
1383 |
majorSelection := aSelection. |
|
1384 |
spec := ((self class specifications) at:aSelection) last. |
|
1385 |
||
1386 |
spec isSymbol ifFalse:[ |
|
1387 |
self galleryList value:(spec collect:[:a| a first]). |
|
1388 |
self minorKeys value:(spec collect:[:a| a last]). |
|
1389 |
] ifTrue:[ |
|
1390 |
self perform:spec |
|
1391 |
]. |
|
1392 |
channel := self galleryModel. |
|
1393 |
||
1394 |
channel value notNil ifTrue:[ |
|
1395 |
channel setValue:nil |
|
1396 |
]. |
|
1397 |
channel value:1. |
|
112 | 1398 |
|
1399 |
! ! |
|
1400 |
||
182 | 1401 |
!UISelectionPanel methodsFor:'startup / release'! |
112 | 1402 |
|
182 | 1403 |
allButOpenInterface:aSpec |
1404 |
"setup default values |
|
1405 |
" |
|
1406 |
super allButOpenInterface:aSpec. |
|
1407 |
userClass := UserClass. |
|
1408 |
userSpecs := UserSpecs. |
|
1409 |
userLabels := UserLabels. |
|
1410 |
! |
|
1411 |
||
1412 |
closeRequest |
|
1413 |
|sav| |
|
112 | 1414 |
|
182 | 1415 |
(sav := masterApplication) notNil ifTrue:[ |
1416 |
masterApplication := nil. |
|
1417 |
masterApplication closeRequestFor:(self window). |
|
1418 |
masterApplication := sav. |
|
1419 |
] ifFalse:[ |
|
1420 |
super closeRequest. |
|
1421 |
] |
|
1422 |
! |
|
112 | 1423 |
|
182 | 1424 |
openWindow |
1425 |
"setup default values |
|
1426 |
" |
|
1427 |
super openWindow. |
|
1428 |
"/ self window waitForExpose. |
|
1429 |
Delay waitForSeconds:1. |
|
1430 |
self majorChannel value:1. |
|
112 | 1431 |
! ! |
1432 |
||
182 | 1433 |
!UISelectionPanel methodsFor:'user defined'! |
1434 |
||
1435 |
userDefined |
|
1436 |
|cls lbl sel builder| |
|
1437 |
(cls := userClass) notNil ifTrue:[ |
|
1438 |
cls isBehavior ifFalse:[ |
|
1439 |
cls := Smalltalk at:cls asSymbol |
|
1440 |
]. |
|
1441 |
(cls notNil and:[(cls respondsTo:userLabels)]) ifTrue:[ |
|
1442 |
lbl := cls perform:userLabels. |
|
1443 |
sel := Array new:(lbl size) withAll:#userDefinedSpec. |
|
1444 |
self galleryList value:lbl. |
|
1445 |
self minorKeys value:sel. |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1446 |
^ self |
182 | 1447 |
] |
1448 |
]. |
|
1449 |
builder := UIBuilder new. |
|
1450 |
builder application:self. |
|
1451 |
(self builder componentAt:#gallery) builder:builder. |
|
1452 |
self galleryList value:#( '???' ). |
|
190 | 1453 |
self minorKeys value:#( standardUserPanel ). |
182 | 1454 |
! |
147 | 1455 |
|
182 | 1456 |
userDefinedHelpText |
1457 |
||
1458 |
^ ' |
|
1459 |
no user defined specifications are configured yet. To assign |
|
1460 |
user defined specifications to the gallery press the middle |
|
1461 |
button of your mouse to open a dialog. |
|
1462 |
' |
|
1463 |
! |
|
1464 |
||
1465 |
userDefinedSpec |
|
1466 |
|cls spc idx| |
|
93 | 1467 |
|
182 | 1468 |
(cls := userClass) notNil ifTrue:[ |
1469 |
cls isBehavior ifFalse:[ |
|
1470 |
cls := Smalltalk at:cls asSymbol |
|
1471 |
]. |
|
1472 |
(cls notNil and:[(cls respondsTo:userSpecs)]) ifTrue:[ |
|
1473 |
spc := cls perform:userSpecs. |
|
1474 |
idx := self galleryModel value. |
|
1475 |
||
1476 |
idx <= spc size ifTrue:[ |
|
1477 |
spc := spc at:idx. |
|
1478 |
(cls respondsTo:spc) ifTrue:[ |
|
1479 |
^ cls perform:spc |
|
1480 |
] |
|
147 | 1481 |
] |
93 | 1482 |
] |
1483 |
]. |
|
147 | 1484 |
^ nil |
93 | 1485 |
! ! |
1486 |
||
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1487 |
!UISelectionPanel::ExampleUserDefinedGallery class methodsFor:'user defined gallery'! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1488 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1489 |
clocksSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1490 |
"this window spec was automatically generated by the ST/X UIPainter" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1491 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1492 |
"do not manually edit this - the painter/builder may not be able to |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1493 |
handle the specification if its corrupted." |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1494 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1495 |
" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1496 |
UIPainter new openOnClass:UISelectionPanel::ExampleUserDefinedGallery andSelector:#clocksSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1497 |
UISelectionPanel::ExampleUserDefinedGallery new openInterface:#clocksSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1498 |
" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1499 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1500 |
<resource: #canvas> |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1501 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1502 |
^ |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1503 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1504 |
#(#FullSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1505 |
#'window:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1506 |
#(#WindowSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1507 |
#'name:' 'uIPainterView' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1508 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1509 |
#'label:' 'Interface Builder' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1510 |
#'bounds:' #(#Rectangle 0 0 380 271) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1511 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1512 |
#'component:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1513 |
#(#SpecCollection |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1514 |
#'collection:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1515 |
#( |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1516 |
#(#ArbitraryComponentSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1517 |
#'name:' 'arbitraryComponent1' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1518 |
#'layout:' #(#LayoutFrame 11 0 11 0 125 0 123 0) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1519 |
#'component:' #ClockView |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1520 |
#'hasHorizontalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1521 |
#'hasVerticalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1522 |
#'hasBorder:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1523 |
#'miniScrollerHorizontal:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1524 |
#'miniScrollerVertical:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1525 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1526 |
#(#ArbitraryComponentSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1527 |
#'name:' 'arbitraryComponent2' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1528 |
#'layout:' #(#LayoutFrame 136 0 10 0 240 0 33 0) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1529 |
#'component:' #DigitalClockView |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1530 |
#'hasHorizontalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1531 |
#'hasVerticalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1532 |
#'hasBorder:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1533 |
#'miniScrollerHorizontal:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1534 |
#'miniScrollerVertical:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1535 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1536 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1537 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1538 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1539 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1540 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1541 |
funSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1542 |
"this window spec was automatically generated by the ST/X UIPainter" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1543 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1544 |
"do not manually edit this - the painter/builder may not be able to |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1545 |
handle the specification if its corrupted." |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1546 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1547 |
" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1548 |
UIPainter new openOnClass:UISelectionPanel::ExampleUserDefinedGallery andSelector:#funSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1549 |
UISelectionPanel::ExampleUserDefinedGallery new openInterface:#funSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1550 |
" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1551 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1552 |
<resource: #canvas> |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1553 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1554 |
^ |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1555 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1556 |
#(#FullSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1557 |
#'window:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1558 |
#(#WindowSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1559 |
#'name:' 'uIPainterView' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1560 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1561 |
#'label:' 'Interface Builder' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1562 |
#'bounds:' #(#Rectangle 0 0 393 182) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1563 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1564 |
#'component:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1565 |
#(#SpecCollection |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1566 |
#'collection:' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1567 |
#( |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1568 |
#(#ArbitraryComponentSpec |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1569 |
#'name:' 'arbitraryComponent1' |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1570 |
#'layout:' #(#LayoutFrame 54 0 27 0 287 0 145 0) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1571 |
#'hasHorizontalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1572 |
#'hasVerticalScrollBar:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1573 |
#'hasBorder:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1574 |
#'miniScrollerHorizontal:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1575 |
#'miniScrollerVertical:' false |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1576 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1577 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1578 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1579 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1580 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1581 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1582 |
listOfLabels |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1583 |
^ #( 'clocks' 'fun') |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1584 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1585 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1586 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1587 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1588 |
listOfSelectors |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1589 |
^ #( clocksSpec funSpec ) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1590 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1591 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1592 |
! ! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1593 |
|
93 | 1594 |
!UISelectionPanel class methodsFor:'documentation'! |
1595 |
||
1596 |
version |
|
1597 |
^ '$Header$' |
|
1598 |
! ! |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1599 |
UISelectionPanel initialize! |