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