author | tz |
Wed, 25 Feb 1998 23:26:47 +0100 | |
changeset 680 | 49c81e9cc6f7 |
parent 677 | aa0b1c1ebfe6 |
child 681 | 23194b7b0f56 |
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 |
||
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
22 |
Object subclass:#UserDefinedGallery |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
23 |
instanceVariableNames:'' |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
24 |
classVariableNames:'LabelList SelectorList HolderList NextUniqueNumber' |
207
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. |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
73 |
UserClass := UISelectionPanel::UserDefinedGallery. |
207
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. |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
76 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
77 |
"Modified: / 8.12.1997 / 18:53:06 / cg" |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
78 |
! ! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
79 |
|
182 | 80 |
!UISelectionPanel class methodsFor:'accessing'! |
93 | 81 |
|
182 | 82 |
specifications |
112 | 83 |
|
182 | 84 |
^ #( |
190 | 85 |
#( 'Standards' #( |
677 | 86 |
#('Buttons' standardButtons) |
87 |
#('Menus' standardMenus) |
|
88 |
#('Texts' standardTexts) |
|
89 |
#('Lists' standardLists) |
|
90 |
#('Groups' standardGroups) |
|
91 |
#('Misc' standardMisc) |
|
182 | 92 |
) |
93 |
) |
|
93 | 94 |
|
671 | 95 |
#( 'Clipboard' #( |
182 | 96 |
#('Copy & Paste Buffer' clipBoardSpec) |
97 |
) |
|
98 |
) |
|
135 | 99 |
|
302 | 100 |
#( 'User Def.' #userDefined ) |
182 | 101 |
) |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
102 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
103 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
104 |
userClass |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
105 |
"return the class which provides the user defined gallery specs." |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
106 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
107 |
^ UserClass |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
108 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
109 |
"Created: / 5.12.1997 / 15:12:50 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
110 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
111 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
112 |
userClass:aClass specSelector:aSpecAccessSelector labelSelector:aLabelListAccessSelector |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
113 |
"change the class which provides the user defined gallery specs." |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
114 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
115 |
UserClass := aClass. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
116 |
UserSpecs := aSpecAccessSelector. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
117 |
UserLabels := aLabelListAccessSelector. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
118 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
119 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
120 |
UISelectionPanel |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
121 |
userClass:UISelectionPanel::VariableUserDefinedGallery |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
122 |
specSelector:#listOfSelectors |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
123 |
labelSelector:#listOfLabels |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
124 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
125 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
126 |
"Modified: / 5.12.1997 / 13:54:47 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
127 |
"Created: / 5.12.1997 / 13:56:10 / cg" |
93 | 128 |
! ! |
129 |
||
182 | 130 |
!UISelectionPanel class methodsFor:'interface specification'! |
93 | 131 |
|
182 | 132 |
nameAndSelectorSpec |
93 | 133 |
"this window spec was automatically generated by the ST/X UIPainter" |
134 |
||
135 |
"do not manually edit this - the painter/builder may not be able to |
|
136 |
handle the specification if its corrupted." |
|
137 |
||
138 |
" |
|
182 | 139 |
UIPainter new openOnClass:UISelectionPanel andSelector:#nameAndSelectorSpec |
140 |
UISelectionPanel new openInterface:#nameAndSelectorSpec |
|
141 |
" |
|
142 |
||
143 |
<resource: #canvas> |
|
144 |
||
145 |
^ |
|
146 |
||
147 |
#(#FullSpec |
|
658 | 148 |
#window: |
182 | 149 |
#(#WindowSpec |
658 | 150 |
#name: 'uIPainterView' |
151 |
#layout: #(#LayoutFrame 110 0 366 0 424 0 581 0) |
|
152 |
#label: 'Painter' |
|
153 |
#min: #(#Point 10 10) |
|
154 |
#max: #(#Point 1280 1024) |
|
155 |
#bounds: #(#Rectangle 110 366 425 582) |
|
156 |
#usePreferredExtent: false |
|
182 | 157 |
) |
658 | 158 |
#component: |
182 | 159 |
#(#SpecCollection |
658 | 160 |
#collection: |
182 | 161 |
#( |
162 |
#(#LabelSpec |
|
658 | 163 |
#name: 'title' |
164 |
#layout: #(#Point 5 10) |
|
165 |
#label: 'Class & selectors to access user specs:' |
|
166 |
#adjust: #left |
|
167 |
#resizeForLabel: true |
|
182 | 168 |
) |
169 |
#(#LabelSpec |
|
658 | 170 |
#name: 'classLabel' |
171 |
#layout: #(#AlignmentOrigin 68 0.11 51 0 1 0.5) |
|
172 |
#label: 'Class:' |
|
173 |
#adjust: #right |
|
174 |
#resizeForLabel: true |
|
182 | 175 |
) |
176 |
#(#InputFieldSpec |
|
658 | 177 |
#name: 'classField' |
178 |
#layout: #(#LayoutFrame 74 0.11 39 0 -5 1.0 61 0) |
|
179 |
#tabable: true |
|
180 |
#model: #className |
|
181 |
#type: #string |
|
182 | 182 |
) |
183 |
#(#LabelSpec |
|
658 | 184 |
#name: 'labelsLabel' |
185 |
#layout: #(#AlignmentOrigin 68 0.11 74 0 1 0.5) |
|
186 |
#label: 'Labels:' |
|
187 |
#adjust: #right |
|
188 |
#resizeForLabel: true |
|
182 | 189 |
) |
190 |
#(#InputFieldSpec |
|
658 | 191 |
#name: 'labelsField' |
192 |
#layout: #(#LayoutFrame 74 0.11 64 0 -5 1.0 86 0) |
|
193 |
#tabable: true |
|
194 |
#model: #labelsKey |
|
195 |
#type: #symbolOrNil |
|
196 |
) |
|
197 |
#(#LabelSpec |
|
198 |
#name: 'specsLabel' |
|
199 |
#layout: #(#AlignmentOrigin 68 0.11 99 0 1 0.5) |
|
200 |
#label: 'Specifications:' |
|
201 |
#adjust: #right |
|
202 |
#resizeForLabel: true |
|
203 |
) |
|
204 |
#(#InputFieldSpec |
|
205 |
#name: 'specsField' |
|
206 |
#layout: #(#LayoutFrame 74 0.11 89 0 -5 1.0 111 0) |
|
207 |
#tabable: true |
|
208 |
#model: #specsKey |
|
209 |
#type: #symbolOrNil |
|
182 | 210 |
) |
211 |
#(#HorizontalPanelViewSpec |
|
658 | 212 |
#name: 'commitPanel' |
213 |
#layout: #(#LayoutFrame 0 0.0 -23 1.0 0 1.0 0 1.0) |
|
214 |
#component: |
|
182 | 215 |
#(#SpecCollection |
658 | 216 |
#collection: |
182 | 217 |
#( |
218 |
#(#ActionButtonSpec |
|
658 | 219 |
#name: 'cancel' |
220 |
#label: 'cancel' |
|
221 |
#tabable: true |
|
222 |
#model: #cancel |
|
223 |
#extent: #(#Point 153 23) |
|
182 | 224 |
) |
225 |
#(#ActionButtonSpec |
|
658 | 226 |
#name: 'accept' |
227 |
#label: 'ok' |
|
228 |
#tabable: true |
|
229 |
#model: #accept |
|
230 |
#isDefault: true |
|
231 |
#extent: #(#Point 153 23) |
|
182 | 232 |
) |
233 |
) |
|
234 |
) |
|
658 | 235 |
#horizontalLayout: #fitSpace |
236 |
#verticalLayout: #fit |
|
237 |
#horizontalSpace: 3 |
|
238 |
#verticalSpace: 3 |
|
182 | 239 |
) |
240 |
#(#CheckBoxSpec |
|
658 | 241 |
#name: 'updateDefaultResources' |
242 |
#layout: #(#Point 5 133) |
|
243 |
#model: #updateDefaultResources |
|
244 |
#label: 'Update Default Resources' |
|
182 | 245 |
) |
246 |
) |
|
247 |
) |
|
248 |
) |
|
249 |
! |
|
250 |
||
251 |
windowSpec |
|
252 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
253 |
||
254 |
"do not manually edit this - the painter/builder may not be able to |
|
255 |
handle the specification if its corrupted." |
|
256 |
||
257 |
" |
|
258 |
UIPainter new openOnClass:UISelectionPanel andSelector:#windowSpec |
|
259 |
UISelectionPanel new openInterface:#windowSpec |
|
260 |
" |
|
261 |
"UISelectionPanel open" |
|
262 |
||
263 |
<resource: #canvas> |
|
264 |
||
265 |
^ |
|
266 |
||
267 |
#(#FullSpec |
|
268 |
#'window:' |
|
269 |
#(#WindowSpec |
|
671 | 270 |
#'name:' 'Widget Gallery' |
302 | 271 |
#'layout:' #(#LayoutFrame 78 0 70 0 598 0 352 0) |
671 | 272 |
#'label:' 'Widget Gallery' |
302 | 273 |
#'min:' #(#Point 100 280) |
274 |
#'max:' #(#Point 1160 870) |
|
275 |
#'bounds:' #(#Rectangle 78 70 599 353) |
|
182 | 276 |
) |
277 |
#'component:' |
|
278 |
#(#SpecCollection |
|
279 |
#'collection:' |
|
280 |
#( |
|
281 |
#(#UIGalleryViewSpec |
|
282 |
#'name:' 'gallery' |
|
283 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 -40 1.0 0 1.0) |
|
284 |
#'tabable:' true |
|
285 |
#'menu:' #galleryList |
|
286 |
#'style:' |
|
287 |
#(#FontDescription |
|
288 |
#helvetica #medium |
|
289 |
#roman #'10' |
|
290 |
) |
|
291 |
#'model:' #galleryModel |
|
302 | 292 |
#'useIndex:' true |
182 | 293 |
#'minorKeys:' #minorKeys |
294 |
#'clientSpec:' #clientSpec |
|
295 |
#'raiseMenu:' #raiseMenu |
|
296 |
) |
|
297 |
#(#TabViewSpec |
|
298 |
#'name:' 'major' |
|
299 |
#'layout:' #(#LayoutFrame -40 1.0 30 0.0 0 1.0 0 1.0) |
|
300 |
#'menu:' #majorList |
|
301 |
#'style:' |
|
302 |
#(#FontDescription |
|
303 |
#helvetica #medium |
|
304 |
#roman #'10' |
|
305 |
) |
|
306 |
#'model:' #majorChannel |
|
307 |
#'direction:' #right |
|
308 |
#'useIndex:' true |
|
309 |
) |
|
310 |
) |
|
311 |
) |
|
312 |
) |
|
313 |
! ! |
|
314 |
||
315 |
!UISelectionPanel class methodsFor:'menus'! |
|
316 |
||
317 |
menuSelected |
|
359 | 318 |
|
319 |
<resource: #menu> |
|
320 |
||
182 | 321 |
^ #(#Menu #( |
322 |
#(#MenuItem |
|
323 |
#'label:' 'copy' |
|
324 |
#'value:' #copy |
|
325 |
) |
|
326 |
#(#MenuItem |
|
327 |
#'label:' 'cut' |
|
328 |
#'value:' #cut |
|
329 |
) |
|
330 |
) |
|
331 |
nil |
|
332 |
nil |
|
333 |
) |
|
334 |
||
359 | 335 |
"Modified: / 29.10.1997 / 03:20:30 / cg" |
182 | 336 |
! |
337 |
||
338 |
menuUnselected |
|
359 | 339 |
<resource: #menu> |
340 |
||
182 | 341 |
^ #(#Menu #( |
342 |
#(#MenuItem |
|
343 |
#'label:' 'paste' |
|
344 |
#'value:' #paste |
|
345 |
) |
|
346 |
) |
|
347 |
nil |
|
348 |
nil |
|
349 |
) |
|
350 |
||
359 | 351 |
"Modified: / 29.10.1997 / 03:20:38 / cg" |
182 | 352 |
! ! |
353 |
||
190 | 354 |
!UISelectionPanel class methodsFor:'standard specifications'! |
182 | 355 |
|
677 | 356 |
standardButtons |
182 | 357 |
"this window spec was automatically generated by the ST/X UIPainter" |
358 |
||
359 |
"do not manually edit this - the painter/builder may not be able to |
|
360 |
handle the specification if its corrupted." |
|
361 |
||
362 |
" |
|
677 | 363 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardButtons |
364 |
UISelectionPanel new openInterface:#standardButtons |
|
658 | 365 |
" |
366 |
||
367 |
<resource: #canvas> |
|
368 |
||
369 |
^ |
|
370 |
||
371 |
#(#FullSpec |
|
372 |
#window: |
|
373 |
#(#WindowSpec |
|
677 | 374 |
#name: 'Buttons' |
375 |
#layout: #(#LayoutFrame 103 0 141 0 581 0 482 0) |
|
376 |
#label: 'Buttons' |
|
377 |
#min: #(#Point 10 10) |
|
378 |
#max: #(#Point 1280 1024) |
|
379 |
#bounds: #(#Rectangle 103 141 582 483) |
|
380 |
#usePreferredExtent: false |
|
381 |
) |
|
382 |
#component: |
|
383 |
#(#SpecCollection |
|
384 |
#collection: |
|
385 |
#( |
|
386 |
#(#ActionButtonSpec |
|
387 |
#name: 'Button' |
|
388 |
#layout: #(#LayoutFrame 15 0 15 0 140 0 37 0) |
|
389 |
#activeHelpKey: #dss |
|
390 |
#label: 'Button' |
|
391 |
) |
|
392 |
#(#ActionButtonSpec |
|
393 |
#name: 'Button - OK' |
|
394 |
#layout: #(#LayoutFrame 15 0 47 0 140 0 69 0) |
|
395 |
#label: 'OK' |
|
396 |
#model: #accept |
|
397 |
) |
|
398 |
#(#ActionButtonSpec |
|
399 |
#name: 'Button - Cancel' |
|
400 |
#layout: #(#LayoutFrame 15 0 79 0 140 0 101 0) |
|
401 |
#label: 'Cancel' |
|
402 |
#model: #cancel |
|
403 |
) |
|
404 |
#(#ActionButtonSpec |
|
405 |
#name: 'Button - Help' |
|
406 |
#layout: #(#LayoutFrame 15 0 111 0 140 0 133 0) |
|
407 |
#label: 'Help' |
|
408 |
#model: #help |
|
409 |
) |
|
410 |
#(#ActionButtonSpec |
|
411 |
#name: 'Button - Close' |
|
412 |
#layout: #(#LayoutFrame 15 0 143 0 140 0 165 0) |
|
413 |
#label: 'Close' |
|
414 |
#model: #closeRequest |
|
415 |
) |
|
416 |
#(#ToggleSpec |
|
417 |
#name: 'Toggle' |
|
418 |
#layout: #(#LayoutFrame 157 0 15 0 293 0 37 0) |
|
419 |
#label: 'Toggle' |
|
420 |
#isTriggerOnDown: true |
|
421 |
#showLamp: true |
|
422 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
423 |
) |
|
424 |
#(#RadioButtonSpec |
|
425 |
#name: 'RadioButton' |
|
426 |
#layout: #(#LayoutFrame 157 0.0 47 0 293 0 69 0) |
|
427 |
#label: 'RadioButton' |
|
428 |
#isTriggerOnDown: true |
|
429 |
#showLamp: true |
|
430 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
431 |
) |
|
432 |
#(#CheckBoxSpec |
|
433 |
#name: 'CheckBox' |
|
434 |
#layout: #(#LayoutFrame 157 0 79 0 293 0 101 0) |
|
435 |
#label: 'CheckBox' |
|
436 |
) |
|
437 |
#(#CheckToggleSpec |
|
438 |
#name: 'CheckToggle' |
|
439 |
#layout: #(#LayoutFrame 157 0 111 0 176 0 130 0) |
|
440 |
#isTriggerOnDown: true |
|
441 |
#showLamp: false |
|
442 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
443 |
) |
|
444 |
#(#LabelSpec |
|
445 |
#name: 'CheckToggleLabel' |
|
446 |
#layout: #(#AlignmentOrigin 182 0 115 0 0 0) |
|
447 |
#label: 'CheckToggle' |
|
448 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
449 |
#adjust: #left |
|
450 |
#resizeForLabel: true |
|
451 |
#canUIDrag: false |
|
452 |
) |
|
453 |
#(#ButtonSpec |
|
454 |
#name: 'ModelButton' |
|
455 |
#layout: #(#LayoutFrame 309 0 15 0 444 0 37 0) |
|
456 |
#label: 'ModelButton' |
|
457 |
) |
|
458 |
#(#LabelSpec |
|
459 |
#name: 'UpDownButtonLabel' |
|
460 |
#layout: #(#AlignmentOrigin 309 0 54 0 0 0) |
|
461 |
#label: 'UpDownButton' |
|
462 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
463 |
#adjust: #left |
|
464 |
#resizeForLabel: true |
|
465 |
#canUIDrag: false |
|
466 |
) |
|
467 |
#(#UpDownButtonSpec |
|
468 |
#name: 'UpDownButton' |
|
469 |
#layout: #(#LayoutFrame 424 0 55 0 444 0 69 0) |
|
470 |
#orientation: #horizontal |
|
471 |
) |
|
472 |
#(#LabelSpec |
|
473 |
#name: 'ArrowButtonsLabel' |
|
474 |
#layout: #(#AlignmentOrigin 309 0 86 0 0 0) |
|
475 |
#label: 'ArrowButtons' |
|
476 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
477 |
#adjust: #left |
|
478 |
#resizeForLabel: true |
|
479 |
#canUIDrag: false |
|
480 |
) |
|
481 |
#(#ArrowButtonSpec |
|
482 |
#name: 'ArrowButton - Up' |
|
483 |
#layout: #(#LayoutFrame 309 0 111 0 331 0 133 0) |
|
484 |
#isTriggerOnDown: true |
|
485 |
#direction: #up |
|
486 |
) |
|
487 |
#(#ArrowButtonSpec |
|
488 |
#name: 'ArrowButton - Down' |
|
489 |
#layout: #(#LayoutFrame 347 0 111 0 369 0 133 0) |
|
490 |
#isTriggerOnDown: true |
|
491 |
#direction: #down |
|
492 |
) |
|
493 |
#(#ArrowButtonSpec |
|
494 |
#name: 'ArrowButton - Left' |
|
495 |
#layout: #(#LayoutFrame 385 0 111 0 407 0 133 0) |
|
496 |
#isTriggerOnDown: true |
|
497 |
#direction: #left |
|
498 |
) |
|
499 |
#(#ArrowButtonSpec |
|
500 |
#name: 'ArrowButton - Right' |
|
501 |
#layout: #(#LayoutFrame 422 0 111 0 444 0 133 0) |
|
502 |
#isTriggerOnDown: true |
|
503 |
#direction: #right |
|
504 |
) |
|
505 |
) |
|
506 |
) |
|
507 |
) |
|
508 |
! |
|
509 |
||
510 |
standardGraphs |
|
511 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
512 |
||
513 |
"do not manually edit this - the painter/builder may not be able to |
|
514 |
handle the specification if its corrupted." |
|
515 |
||
516 |
" |
|
517 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGraphs |
|
518 |
UISelectionPanel new openInterface:#standardGraphs |
|
519 |
" |
|
520 |
||
521 |
<resource: #canvas> |
|
522 |
||
523 |
^ |
|
524 |
||
525 |
#(#FullSpec |
|
526 |
#window: |
|
527 |
#(#WindowSpec |
|
528 |
#name: 'Graphs' |
|
529 |
#layout: #(#LayoutFrame 114 0 373 0 583 0 615 0) |
|
530 |
#label: 'Graphs' |
|
531 |
#min: #(#Point 10 10) |
|
532 |
#max: #(#Point 1280 1024) |
|
533 |
#bounds: #(#Rectangle 114 373 584 616) |
|
534 |
#usePreferredExtent: false |
|
535 |
) |
|
536 |
#component: |
|
537 |
#(#SpecCollection |
|
538 |
#collection: |
|
539 |
#( |
|
540 |
#(#GraphColumnView2DSpec |
|
541 |
#name: 'GraphColumnView2D' |
|
542 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
543 |
#gridX: 0 |
|
544 |
#gridY: 0 |
|
545 |
) |
|
546 |
#(#LabelSpec |
|
547 |
#name: 'GraphColumnView2DLabel' |
|
548 |
#layout: #(#AlignmentOrigin 19 0 19 0 0 0) |
|
549 |
#label: 'GraphColumnViewView2D' |
|
550 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
551 |
#adjust: #left |
|
552 |
#resizeForLabel: true |
|
553 |
#canUIDrag: false |
|
554 |
) |
|
555 |
#(#GraphColumnView3DSpec |
|
556 |
#name: 'GraphColumnView3D' |
|
557 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
|
558 |
) |
|
559 |
#(#LabelSpec |
|
560 |
#name: 'GraphColumnView3DLabel' |
|
561 |
#layout: #(#AlignmentOrigin 244 0 19 0 0 0) |
|
562 |
#label: 'GraphColumnViewView3D' |
|
563 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
564 |
#adjust: #left |
|
565 |
#resizeForLabel: true |
|
566 |
#canUIDrag: false |
|
567 |
) |
|
568 |
) |
|
569 |
) |
|
570 |
) |
|
571 |
! |
|
572 |
||
573 |
standardGroups |
|
574 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
575 |
||
576 |
"do not manually edit this - the painter/builder may not be able to |
|
577 |
handle the specification if its corrupted." |
|
578 |
||
579 |
" |
|
580 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGroups |
|
581 |
UISelectionPanel new openInterface:#standardGroups |
|
582 |
" |
|
583 |
||
584 |
<resource: #canvas> |
|
585 |
||
586 |
^ |
|
587 |
||
588 |
#(#FullSpec |
|
589 |
#window: |
|
590 |
#(#WindowSpec |
|
591 |
#name: 'Groups' |
|
670 | 592 |
#layout: #(#LayoutFrame 93 0 141 0 593 0 380 0) |
677 | 593 |
#label: 'Groups' |
658 | 594 |
#min: #(#Point 10 10) |
595 |
#max: #(#Point 1280 1024) |
|
670 | 596 |
#bounds: #(#Rectangle 93 141 594 381) |
658 | 597 |
#usePreferredExtent: false |
598 |
) |
|
599 |
#component: |
|
600 |
#(#SpecCollection |
|
601 |
#collection: |
|
602 |
#( |
|
603 |
#(#ViewSpec |
|
604 |
#name: 'Box' |
|
605 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
606 |
) |
|
607 |
#(#LabelSpec |
|
608 |
#name: 'ViewLabel' |
|
609 |
#layout: #(#AlignmentOrigin 18 0 17 0 0 0) |
|
610 |
#label: 'Box' |
|
670 | 611 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 612 |
#adjust: #left |
613 |
#resizeForLabel: true |
|
614 |
#canUIDrag: false |
|
615 |
) |
|
616 |
#(#LabelSpec |
|
617 |
#name: 'VPanelLabel' |
|
618 |
#layout: #(#LayoutFrame 15 0 116 0 220 0 139 0) |
|
619 |
#label: 'Variable Panels' |
|
670 | 620 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 621 |
#adjust: #left |
622 |
#canUIDrag: false |
|
623 |
) |
|
624 |
#(#VariableHorizontalPanelSpec |
|
625 |
#name: 'VariableHorizontalPanel' |
|
626 |
#layout: #(#LayoutFrame 15 0 140 0 110 0 230 0) |
|
627 |
#component: |
|
628 |
#(#SpecCollection |
|
629 |
#collection: |
|
630 |
#( |
|
631 |
#(#LabelSpec |
|
632 |
#name: 'label4' |
|
633 |
#label: 'A' |
|
663 | 634 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 635 |
#level: 2 |
636 |
#canUIDrag: false |
|
637 |
) |
|
638 |
#(#LabelSpec |
|
639 |
#name: 'label5' |
|
640 |
#label: 'B' |
|
663 | 641 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 642 |
#level: 2 |
643 |
#canUIDrag: false |
|
644 |
) |
|
645 |
) |
|
646 |
) |
|
647 |
#handles: #(#Any 0.5 1.0) |
|
648 |
) |
|
649 |
#(#VariableVerticalPanelSpec |
|
650 |
#name: 'VariableVerticalPanel' |
|
651 |
#layout: #(#LayoutFrame 125 0 140 0 220 0 230 0) |
|
652 |
#component: |
|
653 |
#(#SpecCollection |
|
654 |
#collection: |
|
655 |
#( |
|
656 |
#(#LabelSpec |
|
657 |
#name: 'label9' |
|
658 |
#label: 'A' |
|
663 | 659 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 660 |
#level: 2 |
661 |
#canUIDrag: false |
|
662 |
) |
|
663 |
#(#LabelSpec |
|
664 |
#name: 'label10' |
|
665 |
#label: 'B' |
|
663 | 666 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 667 |
#level: 2 |
668 |
#canUIDrag: false |
|
669 |
) |
|
670 |
) |
|
671 |
) |
|
672 |
#handles: #(#Any 0.5 1.0) |
|
673 |
) |
|
674 |
#(#FramedBoxSpec |
|
675 |
#name: 'FramedBox' |
|
676 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
|
677 |
#label: 'FramedBox' |
|
678 |
#labelPosition: #topLeft |
|
679 |
) |
|
680 |
#(#LabelSpec |
|
681 |
#name: 'PanelLabel' |
|
682 |
#layout: #(#LayoutFrame 240 0 116 0 445 0 139 0) |
|
683 |
#label: 'Panels' |
|
670 | 684 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 685 |
#adjust: #left |
686 |
#canUIDrag: false |
|
687 |
) |
|
688 |
#(#HorizontalPanelViewSpec |
|
689 |
#name: 'HorizontalPanelView' |
|
690 |
#layout: #(#LayoutFrame 240 0 140 0 324 0 230 0) |
|
691 |
#component: |
|
692 |
#(#SpecCollection |
|
693 |
#collection: |
|
694 |
#( |
|
695 |
#(#LabelSpec |
|
696 |
#name: 'label1' |
|
697 |
#label: 'A' |
|
663 | 698 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 699 |
#level: 2 |
700 |
#extent: #(#Point 23 23) |
|
701 |
#canUIDrag: false |
|
702 |
) |
|
703 |
#(#LabelSpec |
|
704 |
#name: 'label2' |
|
705 |
#label: 'B' |
|
663 | 706 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 707 |
#level: 2 |
708 |
#extent: #(#Point 23 23) |
|
709 |
#canUIDrag: false |
|
710 |
) |
|
711 |
#(#LabelSpec |
|
712 |
#name: 'label3' |
|
713 |
#label: 'C' |
|
663 | 714 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 715 |
#level: 2 |
716 |
#extent: #(#Point 23 23) |
|
717 |
#canUIDrag: false |
|
718 |
) |
|
719 |
) |
|
720 |
) |
|
721 |
#horizontalLayout: #center |
|
722 |
#verticalLayout: #center |
|
723 |
#horizontalSpace: 3 |
|
724 |
#verticalSpace: 3 |
|
725 |
) |
|
726 |
#(#VerticalPanelViewSpec |
|
727 |
#name: 'VerticalPanelView' |
|
728 |
#layout: #(#LayoutFrame 332 0 140 0 379 0 230 0) |
|
729 |
#component: |
|
730 |
#(#SpecCollection |
|
731 |
#collection: |
|
732 |
#( |
|
733 |
#(#LabelSpec |
|
734 |
#name: 'label6' |
|
735 |
#label: 'A' |
|
663 | 736 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 737 |
#level: 2 |
738 |
#extent: #(#Point 23 23) |
|
739 |
#canUIDrag: false |
|
740 |
) |
|
741 |
#(#LabelSpec |
|
742 |
#name: 'label7' |
|
743 |
#label: 'B' |
|
663 | 744 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 745 |
#level: 2 |
746 |
#extent: #(#Point 23 23) |
|
747 |
#canUIDrag: false |
|
748 |
) |
|
749 |
#(#LabelSpec |
|
750 |
#name: 'label8' |
|
751 |
#label: 'C' |
|
663 | 752 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 753 |
#level: 2 |
754 |
#extent: #(#Point 23 23) |
|
755 |
#canUIDrag: false |
|
756 |
) |
|
757 |
) |
|
758 |
) |
|
759 |
#horizontalLayout: #center |
|
760 |
#verticalLayout: #center |
|
761 |
#horizontalSpace: 3 |
|
762 |
#verticalSpace: 3 |
|
763 |
) |
|
764 |
#(#PanelViewSpec |
|
765 |
#name: 'PanelView' |
|
766 |
#layout: #(#LayoutFrame 387 0 140 0 445 0 230 0) |
|
767 |
#component: |
|
768 |
#(#SpecCollection |
|
769 |
#collection: |
|
770 |
#( |
|
771 |
#(#LabelSpec |
|
772 |
#name: 'label11' |
|
773 |
#label: 'A' |
|
663 | 774 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 775 |
#level: 2 |
776 |
#extent: #(#Point 23 23) |
|
777 |
#canUIDrag: false |
|
778 |
) |
|
779 |
#(#LabelSpec |
|
780 |
#name: 'label12' |
|
781 |
#label: 'B' |
|
663 | 782 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 783 |
#level: 2 |
784 |
#extent: #(#Point 23 23) |
|
785 |
#canUIDrag: false |
|
786 |
) |
|
787 |
#(#LabelSpec |
|
788 |
#name: 'label13' |
|
789 |
#label: 'C' |
|
663 | 790 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 791 |
#level: 2 |
792 |
#extent: #(#Point 23 23) |
|
793 |
#canUIDrag: false |
|
794 |
) |
|
795 |
#(#LabelSpec |
|
796 |
#name: 'label14' |
|
797 |
#label: 'D' |
|
663 | 798 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 799 |
#level: 2 |
800 |
#extent: #(#Point 23 23) |
|
801 |
#canUIDrag: false |
|
802 |
) |
|
803 |
#(#LabelSpec |
|
804 |
#name: 'label15' |
|
805 |
#label: 'E' |
|
663 | 806 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 807 |
#level: 2 |
808 |
#extent: #(#Point 23 23) |
|
809 |
#canUIDrag: false |
|
810 |
) |
|
811 |
) |
|
812 |
) |
|
813 |
#horizontalLayout: #fitSpace |
|
814 |
#verticalLayout: #fitSpace |
|
815 |
#horizontalSpace: 3 |
|
816 |
#verticalSpace: 3 |
|
817 |
) |
|
818 |
) |
|
819 |
) |
|
820 |
) |
|
821 |
! |
|
822 |
||
823 |
standardLists |
|
142 | 824 |
"this window spec was automatically generated by the ST/X UIPainter" |
825 |
||
826 |
"do not manually edit this - the painter/builder may not be able to |
|
827 |
handle the specification if its corrupted." |
|
828 |
||
829 |
" |
|
658 | 830 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardLists |
831 |
UISelectionPanel new openInterface:#standardLists |
|
142 | 832 |
" |
833 |
||
834 |
<resource: #canvas> |
|
835 |
||
836 |
^ |
|
837 |
||
838 |
#(#FullSpec |
|
658 | 839 |
#window: |
142 | 840 |
#(#WindowSpec |
658 | 841 |
#name: 'Lists' |
670 | 842 |
#layout: #(#LayoutFrame 93 0 141 0 562 0 383 0) |
658 | 843 |
#label: 'Lists' |
844 |
#min: #(#Point 10 10) |
|
845 |
#max: #(#Point 1280 1024) |
|
670 | 846 |
#bounds: #(#Rectangle 93 141 563 384) |
658 | 847 |
#usePreferredExtent: false |
182 | 848 |
) |
658 | 849 |
#component: |
182 | 850 |
#(#SpecCollection |
658 | 851 |
#collection: |
182 | 852 |
#( |
659 | 853 |
#(#SequenceViewSpec |
854 |
#name: 'SelectionInListView' |
|
855 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
856 |
#hasHorizontalScrollBar: true |
|
857 |
#hasVerticalScrollBar: true |
|
858 |
#useIndex: false |
|
859 |
) |
|
860 |
#(#LabelSpec |
|
861 |
#name: 'SelectionInListLabel' |
|
862 |
#layout: #(#AlignmentOrigin 42 0 19 0 0 0) |
|
863 |
#label: 'SelectionInListView' |
|
670 | 864 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
659 | 865 |
#adjust: #left |
866 |
#resizeForLabel: true |
|
867 |
#canUIDrag: false |
|
868 |
) |
|
658 | 869 |
#(#SelectionInTreeViewSpec |
659 | 870 |
#name: 'SelectionInTreeView' |
871 |
#layout: #(#LayoutFrame 15 0 130 0 220 0 225 0) |
|
658 | 872 |
#hasHorizontalScrollBar: true |
873 |
#hasVerticalScrollBar: true |
|
663 | 874 |
#hierarchicalList: #exampleTree |
658 | 875 |
) |
876 |
#(#LabelSpec |
|
877 |
#name: 'SelectionInTreeLabel' |
|
659 | 878 |
#layout: #(#AlignmentOrigin 42 0 134 0 0 0) |
658 | 879 |
#label: 'SelectionInTreeView' |
670 | 880 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
659 | 881 |
#adjust: #left |
882 |
#resizeForLabel: true |
|
883 |
#canUIDrag: false |
|
884 |
) |
|
885 |
#(#DataSetSpec |
|
886 |
#name: 'DataSetView' |
|
887 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
|
888 |
#hasHorizontalScrollBar: true |
|
889 |
#hasVerticalScrollBar: true |
|
890 |
) |
|
891 |
#(#LabelSpec |
|
892 |
#name: 'DataSetSpecLabel' |
|
893 |
#layout: #(#AlignmentOrigin 267 0 19 0 0 0) |
|
894 |
#label: 'DataSetView' |
|
670 | 895 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 896 |
#adjust: #left |
897 |
#resizeForLabel: true |
|
898 |
#canUIDrag: false |
|
899 |
) |
|
900 |
#(#FileSelectionTreeSpec |
|
901 |
#name: 'FileSelectionTree' |
|
659 | 902 |
#layout: #(#LayoutFrame 240 0 130 0 445 0 225 0) |
658 | 903 |
#hasHorizontalScrollBar: true |
904 |
#hasVerticalScrollBar: true |
|
182 | 905 |
) |
906 |
#(#LabelSpec |
|
658 | 907 |
#name: 'FileSelectionTreeLabel' |
659 | 908 |
#layout: #(#AlignmentOrigin 267 0 134 0 0 0) |
658 | 909 |
#label: 'FileSelectionTree' |
670 | 910 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 911 |
#adjust: #left |
912 |
#resizeForLabel: true |
|
913 |
#canUIDrag: false |
|
182 | 914 |
) |
915 |
) |
|
916 |
) |
|
917 |
) |
|
918 |
! |
|
919 |
||
190 | 920 |
standardMenus |
182 | 921 |
"this window spec was automatically generated by the ST/X UIPainter" |
922 |
||
923 |
"do not manually edit this - the painter/builder may not be able to |
|
924 |
handle the specification if its corrupted." |
|
925 |
||
926 |
" |
|
302 | 927 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus |
928 |
UISelectionPanel new openInterface:#standardMenus |
|
182 | 929 |
" |
930 |
||
931 |
<resource: #canvas> |
|
932 |
||
933 |
^ |
|
302 | 934 |
|
182 | 935 |
#(#FullSpec |
658 | 936 |
#window: |
182 | 937 |
#(#WindowSpec |
658 | 938 |
#name: 'Menus' |
677 | 939 |
#layout: #(#LayoutFrame 103 0 141 0 579 0 330 0) |
658 | 940 |
#label: 'Menus' |
941 |
#min: #(#Point 10 10) |
|
942 |
#max: #(#Point 1280 1024) |
|
677 | 943 |
#bounds: #(#Rectangle 103 141 580 331) |
658 | 944 |
#usePreferredExtent: false |
142 | 945 |
) |
658 | 946 |
#component: |
142 | 947 |
#(#SpecCollection |
658 | 948 |
#collection: |
142 | 949 |
#( |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
950 |
#(#MenuPanelSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
951 |
#name: 'MenuPanel' |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
952 |
#layout: #(#LayoutFrame 15 0 15 0 140 0 38 0) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
953 |
#menu: #menuPanelMenu |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
954 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
955 |
#(#LabelSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
956 |
#name: 'MenuPanelLabel' |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
957 |
#layout: #(#Point 18 22) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
958 |
#label: 'MenuPanel' |
670 | 959 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
960 |
#adjust: #left |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
961 |
#resizeForLabel: true |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
962 |
#canUIDrag: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
963 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
964 |
#(#PopUpListSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
965 |
#name: 'PopUpList' |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
966 |
#layout: #(#LayoutFrame 15 0 55 0 140 0 77 0) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
967 |
#label: 'PopUpList' |
670 | 968 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
969 |
#useIndex: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
970 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
971 |
#(#ComboListSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
972 |
#name: 'ComboListView' |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
973 |
#layout: #(#LayoutFrame 15 0 94 0 140 0 114 0) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
974 |
#useIndex: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
975 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
976 |
#(#LabelSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
977 |
#name: 'ComboListLabel' |
671 | 978 |
#layout: #(#LayoutFrame 17 0 96 0 95 0 114 0) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
979 |
#label: 'ComboListView' |
670 | 980 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
981 |
#adjust: #left |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
982 |
#resizeForLabel: true |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
983 |
#canUIDrag: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
984 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
985 |
#(#ComboBoxSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
986 |
#name: 'ComboBoxView' |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
987 |
#layout: #(#LayoutFrame 15 0 130 0 140 0 150 0) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
988 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
989 |
#(#LabelSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
990 |
#name: 'ComboBoxLabel' |
671 | 991 |
#layout: #(#LayoutFrame 17 0 132 0 96 0 150 0) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
992 |
#label: 'ComboBoxView' |
670 | 993 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
994 |
#adjust: #left |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
995 |
#resizeForLabel: true |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
996 |
#canUIDrag: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
997 |
) |
658 | 998 |
#(#TabViewSpec |
999 |
#name: 'TabView' |
|
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1000 |
#layout: #(#LayoutFrame 157 0 15 0 292 0 51 0) |
302 | 1001 |
) |
1002 |
#(#LabelSpec |
|
658 | 1003 |
#name: 'TabLabel' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1004 |
#layout: #(#Point 160 35) |
659 | 1005 |
#label: ' TabView ' |
670 | 1006 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1007 |
#adjust: #left |
1008 |
#resizeForLabel: true |
|
1009 |
#canUIDrag: false |
|
1010 |
) |
|
1011 |
#(#NoteBookViewSpec |
|
1012 |
#name: 'NoteBookView' |
|
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1013 |
#layout: #(#LayoutFrame 157 0 58 0 292 0 150 0) |
302 | 1014 |
) |
658 | 1015 |
#(#LabelSpec |
1016 |
#name: 'NoteBookLabel' |
|
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1017 |
#layout: #(#Point 161 134) |
658 | 1018 |
#label: 'NoteBookView' |
670 | 1019 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1020 |
#adjust: #left |
1021 |
#resizeForLabel: true |
|
1022 |
#canUIDrag: false |
|
302 | 1023 |
) |
658 | 1024 |
#(#UIGalleryViewSpec |
1025 |
#name: 'GalleryView' |
|
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1026 |
#layout: #(#LayoutFrame 309 0 15 0 445 0 150 0) |
142 | 1027 |
) |
302 | 1028 |
#(#LabelSpec |
658 | 1029 |
#name: 'GalleryLabel' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1030 |
#layout: #(#Point 313 134) |
658 | 1031 |
#label: 'GalleryView' |
670 | 1032 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1033 |
#adjust: #left |
1034 |
#resizeForLabel: true |
|
1035 |
#canUIDrag: false |
|
142 | 1036 |
) |
1037 |
) |
|
1038 |
) |
|
1039 |
) |
|
1040 |
! |
|
1041 |
||
658 | 1042 |
standardMisc |
93 | 1043 |
"this window spec was automatically generated by the ST/X UIPainter" |
1044 |
||
1045 |
"do not manually edit this - the painter/builder may not be able to |
|
1046 |
handle the specification if its corrupted." |
|
1047 |
||
1048 |
" |
|
658 | 1049 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardMisc |
1050 |
UISelectionPanel new openInterface:#standardMisc |
|
93 | 1051 |
" |
1052 |
||
1053 |
<resource: #canvas> |
|
1054 |
||
1055 |
^ |
|
182 | 1056 |
|
93 | 1057 |
#(#FullSpec |
658 | 1058 |
#window: |
93 | 1059 |
#(#WindowSpec |
663 | 1060 |
#name: 'Misc' |
677 | 1061 |
#layout: #(#LayoutFrame 95 0 307 0 562 0 591 0) |
663 | 1062 |
#label: 'Misc' |
658 | 1063 |
#min: #(#Point 10 10) |
1064 |
#max: #(#Point 1280 1024) |
|
677 | 1065 |
#bounds: #(#Rectangle 95 307 563 592) |
658 | 1066 |
#usePreferredExtent: false |
93 | 1067 |
) |
658 | 1068 |
#component: |
93 | 1069 |
#(#SpecCollection |
658 | 1070 |
#collection: |
93 | 1071 |
#( |
658 | 1072 |
#(#ArbitraryComponentSpec |
1073 |
#name: 'ArbitraryComponent' |
|
677 | 1074 |
#layout: #(#LayoutFrame 15 0 15 0 140 0 110 0) |
658 | 1075 |
#hasBorder: false |
93 | 1076 |
) |
658 | 1077 |
#(#LabelSpec |
1078 |
#name: 'ArbitraryComponentLabel' |
|
677 | 1079 |
#layout: #(#AlignmentOrigin 19 0 19 0 0 0) |
658 | 1080 |
#label: 'ArbitraryComponent' |
670 | 1081 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1082 |
#adjust: #left |
1083 |
#resizeForLabel: true |
|
1084 |
#canUIDrag: false |
|
93 | 1085 |
) |
658 | 1086 |
#(#UISubSpecification |
1087 |
#name: 'SubSpecification' |
|
677 | 1088 |
#layout: #(#LayoutFrame 157 0 15 0 292 0 110 0) |
658 | 1089 |
) |
1090 |
#(#LabelSpec |
|
1091 |
#name: 'SubSpecificationLabel' |
|
677 | 1092 |
#layout: #(#Point 161 19) |
658 | 1093 |
#label: 'SubSpecification' |
670 | 1094 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1095 |
#resizeForLabel: true |
1096 |
#canUIDrag: false |
|
302 | 1097 |
) |
677 | 1098 |
#(#SubCanvasSpec |
1099 |
#name: 'SubCanvas' |
|
1100 |
#layout: #(#LayoutFrame 309 0 15 0 445 0 110 0) |
|
1101 |
#hasHorizontalScrollBar: true |
|
1102 |
#hasVerticalScrollBar: true |
|
1103 |
) |
|
1104 |
#(#LabelSpec |
|
1105 |
#name: 'SubCanvasLabel' |
|
1106 |
#layout: #(#AlignmentOrigin 336 0 19 0 0 0) |
|
1107 |
#label: 'SubCanvas' |
|
1108 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1109 |
#adjust: #left |
|
1110 |
#resizeForLabel: true |
|
1111 |
#canUIDrag: false |
|
1112 |
) |
|
1113 |
#(#LabelSpec |
|
1114 |
#name: 'SliderLabel' |
|
1115 |
#layout: #(#AlignmentOrigin 93 0 129 0 1 0) |
|
1116 |
#label: 'Slider' |
|
1117 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1118 |
#resizeForLabel: true |
|
1119 |
#canUIDrag: false |
|
1120 |
) |
|
1121 |
#(#SliderSpec |
|
1122 |
#name: 'Slider' |
|
1123 |
#layout: #(#LayoutFrame 103 0 126 0 218 0 144 0) |
|
1124 |
#orientation: #horizontal |
|
1125 |
#start: 0 |
|
1126 |
#stop: 100 |
|
1127 |
#step: 1 |
|
1128 |
) |
|
1129 |
#(#LabelSpec |
|
1130 |
#name: 'ThumbWheelLabel' |
|
1131 |
#layout: #(#AlignmentOrigin 93 0 166 0 1 0) |
|
1132 |
#label: 'ThumbWheel' |
|
1133 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1134 |
#resizeForLabel: true |
|
1135 |
#canUIDrag: false |
|
1136 |
) |
|
1137 |
#(#ThumbWheelSpec |
|
1138 |
#name: 'ThumbWheel' |
|
1139 |
#layout: #(#LayoutFrame 103 0 161 0 218 0 181 0) |
|
1140 |
#orientation: #horizontal |
|
1141 |
#start: 0 |
|
1142 |
#stop: 360 |
|
1143 |
#step: 1 |
|
1144 |
) |
|
302 | 1145 |
#(#LabelSpec |
658 | 1146 |
#name: 'ProgressIndicatorLabel' |
677 | 1147 |
#layout: #(#AlignmentOrigin 339 0 129 0 1 0) |
658 | 1148 |
#label: 'ProgressIndicator' |
670 | 1149 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1150 |
#adjust: #left |
1151 |
#resizeForLabel: true |
|
1152 |
#canUIDrag: false |
|
1153 |
) |
|
1154 |
#(#ProgressIndicatorSpec |
|
659 | 1155 |
#name: 'ProgressIndicator' |
677 | 1156 |
#layout: #(#LayoutFrame 350 0 126 0 445 0 144 0) |
658 | 1157 |
#showPercentage: true |
1158 |
) |
|
1159 |
#(#LabelSpec |
|
1160 |
#name: 'SeparatorLabel' |
|
677 | 1161 |
#layout: #(#AlignmentOrigin 339 0 161 0 1 0) |
658 | 1162 |
#label: 'Separator' |
670 | 1163 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1164 |
#adjust: #left |
1165 |
#resizeForLabel: true |
|
1166 |
#canUIDrag: false |
|
1167 |
) |
|
1168 |
#(#DividerSpec |
|
1169 |
#name: 'Separator' |
|
677 | 1170 |
#layout: #(#LayoutFrame 350 0 167 0 445 0 171 0) |
658 | 1171 |
#orientation: #horizontal |
1172 |
) |
|
1173 |
#(#LabelSpec |
|
1174 |
#name: 'VisualRegionLabel' |
|
677 | 1175 |
#layout: #(#AlignmentOrigin 339 0 201 0 1 0) |
658 | 1176 |
#label: 'VisualRegion' |
670 | 1177 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1178 |
#adjust: #left |
1179 |
#resizeForLabel: true |
|
1180 |
#canUIDrag: false |
|
1181 |
) |
|
1182 |
#(#RegionSpec |
|
1183 |
#name: 'VisualRegion' |
|
677 | 1184 |
#layout: #(#LayoutFrame 350 0 183 0 445 0 236 0) |
658 | 1185 |
#lineWidth: 2 |
1186 |
#regionType: #ellipse |
|
302 | 1187 |
) |
93 | 1188 |
) |
1189 |
) |
|
1190 |
) |
|
1191 |
! |
|
1192 |
||
677 | 1193 |
standardTexts |
93 | 1194 |
"this window spec was automatically generated by the ST/X UIPainter" |
1195 |
||
1196 |
"do not manually edit this - the painter/builder may not be able to |
|
1197 |
handle the specification if its corrupted." |
|
1198 |
||
1199 |
" |
|
677 | 1200 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardTexts |
1201 |
UISelectionPanel new openInterface:#standardTexts |
|
93 | 1202 |
" |
1203 |
||
1204 |
<resource: #canvas> |
|
1205 |
||
1206 |
^ |
|
302 | 1207 |
|
93 | 1208 |
#(#FullSpec |
658 | 1209 |
#window: |
93 | 1210 |
#(#WindowSpec |
677 | 1211 |
#name: 'Texts' |
670 | 1212 |
#layout: #(#LayoutFrame 40 0 280 0 506 0 486 0) |
677 | 1213 |
#label: 'Texts' |
658 | 1214 |
#min: #(#Point 10 10) |
1215 |
#max: #(#Point 1280 1024) |
|
670 | 1216 |
#bounds: #(#Rectangle 40 280 507 487) |
658 | 1217 |
#usePreferredExtent: false |
93 | 1218 |
) |
658 | 1219 |
#component: |
93 | 1220 |
#(#SpecCollection |
658 | 1221 |
#collection: |
93 | 1222 |
#( |
659 | 1223 |
#(#TextEditorSpec |
1224 |
#name: 'TextView' |
|
1225 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
1226 |
#hasHorizontalScrollBar: true |
|
1227 |
#hasVerticalScrollBar: true |
|
1228 |
) |
|
658 | 1229 |
#(#LabelSpec |
1230 |
#name: 'EditTextLabel' |
|
670 | 1231 |
#layout: #(#AlignmentOrigin 50 0 19 0 0 0) |
658 | 1232 |
#label: 'TextView' |
670 | 1233 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1234 |
#adjust: #left |
1235 |
#resizeForLabel: true |
|
1236 |
#canUIDrag: false |
|
150 | 1237 |
) |
658 | 1238 |
#(#HTMLViewSpec |
1239 |
#name: 'HTMLView' |
|
1240 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
|
1241 |
#hasHorizontalScrollBar: true |
|
1242 |
#hasVerticalScrollBar: true |
|
139 | 1243 |
) |
302 | 1244 |
#(#LabelSpec |
658 | 1245 |
#name: 'HTMLViewLabel' |
663 | 1246 |
#layout: #(#AlignmentOrigin 267 0 19 0 0 0) |
658 | 1247 |
#label: 'HTMLView' |
670 | 1248 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1249 |
#adjust: #left |
1250 |
#resizeForLabel: true |
|
1251 |
#canUIDrag: false |
|
139 | 1252 |
) |
658 | 1253 |
#(#InputFieldSpec |
1254 |
#name: 'EditField' |
|
1255 |
#layout: #(#LayoutFrame 15 0 125 0 220 0 147 0) |
|
97 | 1256 |
) |
139 | 1257 |
#(#LabelSpec |
658 | 1258 |
#name: 'EditFieldLabel' |
670 | 1259 |
#layout: #(#LayoutFrame 50 0 127 0 103 0 147 0) |
658 | 1260 |
#label: 'EditField' |
670 | 1261 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1262 |
#adjust: #left |
1263 |
#resizeForLabel: true |
|
1264 |
#canUIDrag: false |
|
302 | 1265 |
) |
139 | 1266 |
#(#LabelSpec |
658 | 1267 |
#name: 'Label' |
1268 |
#layout: #(#LayoutFrame 240 0 125 0 445 0 147 0) |
|
1269 |
#label: 'Label' |
|
147 | 1270 |
) |
97 | 1271 |
) |
1272 |
) |
|
1273 |
) |
|
1274 |
! |
|
1275 |
||
190 | 1276 |
standardUserPanel |
93 | 1277 |
"this window spec was automatically generated by the ST/X UIPainter" |
1278 |
||
1279 |
"do not manually edit this - the painter/builder may not be able to |
|
1280 |
handle the specification if its corrupted." |
|
1281 |
||
1282 |
" |
|
190 | 1283 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel |
1284 |
UISelectionPanel new openInterface:#standardUserPanel |
|
182 | 1285 |
" |
1286 |
||
1287 |
<resource: #canvas> |
|
1288 |
||
1289 |
^ |
|
1290 |
||
1291 |
#(#FullSpec |
|
1292 |
#'window:' |
|
1293 |
#(#WindowSpec |
|
302 | 1294 |
#'name:' 'UserPanel' |
182 | 1295 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
302 | 1296 |
#'label:' 'UserPanel' |
182 | 1297 |
#'bounds:' #(#Rectangle 0 0 445 162) |
1298 |
) |
|
1299 |
#'component:' |
|
1300 |
#(#SpecCollection |
|
1301 |
#'collection:' |
|
1302 |
#( |
|
1303 |
#(#LabelSpec |
|
1304 |
#'name:' 'helpText' |
|
1305 |
#'layout:' #(#Point 10 0) |
|
1306 |
#'labelChannel:' #userDefinedHelpText |
|
1307 |
#'resizeForLabel:' true |
|
1308 |
#'canUIDrag:' false |
|
1309 |
) |
|
1310 |
) |
|
1311 |
) |
|
1312 |
) |
|
93 | 1313 |
! ! |
1314 |
||
182 | 1315 |
!UISelectionPanel methodsFor:'actions'! |
1316 |
||
1317 |
defineClassAndSelector |
|
1318 |
|bd cls sel lbl| |
|
1319 |
||
1320 |
bd := IdentityDictionary new. |
|
1321 |
bd at:#className put:( userClass asValue). |
|
1322 |
bd at:#specsKey put:( (userSpecs ? '') asValue). |
|
1323 |
bd at:#labelsKey put:( (userLabels ? '') asValue). |
|
1324 |
bd at:#updateDefaultResources put:(false asValue). |
|
1325 |
||
1326 |
(self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[ |
|
1327 |
( (cls := (bd at:#className) value) notNil |
|
1328 |
and:[(sel := (bd at:#specsKey) value) notNil |
|
1329 |
and:[(lbl := (bd at:#labelsKey) value) notNil]] |
|
1330 |
) ifTrue:[ |
|
1331 |
userClass := cls. |
|
1332 |
userSpecs := sel. |
|
1333 |
userLabels := lbl. |
|
1334 |
||
1335 |
(bd at:#updateDefaultResources) value ifTrue:[ |
|
1336 |
UserClass := userClass. |
|
1337 |
UserSpecs := userSpecs. |
|
1338 |
UserLabels := userLabels. |
|
1339 |
] |
|
1340 |
] |
|
1341 |
]. |
|
1342 |
! |
|
1343 |
||
1344 |
paste:something |
|
1345 |
"paste something at a point |
|
1346 |
" |
|
1347 |
|coll specs point device gallery ext spec| |
|
1348 |
||
1349 |
clipBoardSpec isNil ifTrue:[ |
|
1350 |
clipBoardSpec := SpecCollection new. |
|
1351 |
clipBoardSpec collection:(OrderedCollection new). |
|
1352 |
]. |
|
1353 |
coll := clipBoardSpec collection. |
|
1354 |
gallery := self builder componentAt:#gallery. |
|
1355 |
device := gallery device. |
|
1356 |
||
1357 |
point := device translatePoint:(device pointerPosition) |
|
1358 |
from:(device rootView id) |
|
1359 |
to:(gallery canvas id). |
|
1360 |
||
1361 |
point y < 1 ifTrue:[point y:1]. |
|
1362 |
ext := gallery extent - (10@10). |
|
93 | 1363 |
|
182 | 1364 |
(specs := something) isCollection ifFalse:[ |
1365 |
specs := Array with:something |
|
1366 |
]. |
|
1367 |
||
1368 |
specs do:[:aSpec| |
|
1369 |
point x > ext x ifTrue:[point x:1]. |
|
1370 |
point y > ext y ifTrue:[point y:1]. |
|
1371 |
||
1372 |
spec := aSpec copy. |
|
1373 |
spec layout:(LayoutOrigin fromPoint:point). |
|
1374 |
coll add:spec. |
|
1375 |
point := point + (20@20). |
|
1376 |
]. |
|
1377 |
gallery update. |
|
1378 |
! |
|
1379 |
||
1380 |
raiseMenu |
|
1381 |
"can open menu |
|
1382 |
" |
|
251 | 1383 |
|spec menu value paste| |
182 | 1384 |
|
1385 |
spec := self clientSpec value. |
|
112 | 1386 |
|
182 | 1387 |
spec notNil ifTrue:[ |
1388 |
menu := self class menuSelected decodeAsLiteralArray. |
|
1389 |
self isClipBoard ifFalse:[ |
|
1390 |
(menu someMenuItemWithValue:#cut) disable. |
|
1391 |
]. |
|
1392 |
||
1393 |
(value := menu startUp) == #cut ifTrue:[ |
|
1394 |
clipBoardSpec collection remove:spec ifAbsent:nil. |
|
1395 |
(self builder componentAt:#gallery) update. |
|
1396 |
] ifFalse:[ |
|
1397 |
value == #copy ifTrue:[ |
|
1398 |
self window setSelection:spec |
|
1399 |
] |
|
1400 |
]. |
|
1401 |
^ self |
|
1402 |
]. |
|
1403 |
||
1404 |
self isUserBoard ifTrue:[ |
|
1405 |
^ self defineClassAndSelector |
|