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