author | tz |
Sat, 18 Apr 1998 16:53:48 +0200 | |
changeset 782 | 62f2cd2978d5 |
parent 753 | 45be0e91a172 |
child 795 | 9987c25de0f9 |
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 |
753 | 357 |
"This resource specification was automatically generated |
358 |
by the UIPainter of ST/X." |
|
182 | 359 |
|
753 | 360 |
"Do not manually edit this!! If it is corrupted, |
361 |
the UIPainter may not be able to read the specification." |
|
182 | 362 |
|
363 |
" |
|
677 | 364 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardButtons |
365 |
UISelectionPanel new openInterface:#standardButtons |
|
658 | 366 |
" |
367 |
||
368 |
<resource: #canvas> |
|
369 |
||
370 |
^ |
|
371 |
||
372 |
#(#FullSpec |
|
373 |
#window: |
|
374 |
#(#WindowSpec |
|
677 | 375 |
#name: 'Buttons' |
753 | 376 |
#layout: #(#LayoutFrame 141 0 235 0 619 0 438 0) |
677 | 377 |
#label: 'Buttons' |
378 |
#min: #(#Point 10 10) |
|
379 |
#max: #(#Point 1280 1024) |
|
753 | 380 |
#bounds: #(#Rectangle 141 235 620 439) |
677 | 381 |
#usePreferredExtent: false |
382 |
) |
|
383 |
#component: |
|
384 |
#(#SpecCollection |
|
385 |
#collection: |
|
386 |
#( |
|
387 |
#(#ActionButtonSpec |
|
388 |
#name: 'Button' |
|
389 |
#layout: #(#LayoutFrame 15 0 15 0 140 0 37 0) |
|
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 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
422 |
) |
|
423 |
#(#RadioButtonSpec |
|
726 | 424 |
#name: 'Radio Button' |
677 | 425 |
#layout: #(#LayoutFrame 157 0.0 47 0 293 0 69 0) |
711 | 426 |
#label: 'Radio Button' |
677 | 427 |
#isTriggerOnDown: true |
428 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
429 |
) |
|
430 |
#(#CheckBoxSpec |
|
726 | 431 |
#name: 'Check Box' |
677 | 432 |
#layout: #(#LayoutFrame 157 0 79 0 293 0 101 0) |
711 | 433 |
#label: 'Check Box' |
677 | 434 |
) |
435 |
#(#CheckToggleSpec |
|
726 | 436 |
#name: 'Check Toggle' |
677 | 437 |
#layout: #(#LayoutFrame 157 0 111 0 176 0 130 0) |
438 |
#isTriggerOnDown: true |
|
439 |
#showLamp: false |
|
440 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
441 |
) |
|
442 |
#(#LabelSpec |
|
443 |
#name: 'CheckToggleLabel' |
|
444 |
#layout: #(#AlignmentOrigin 182 0 115 0 0 0) |
|
711 | 445 |
#label: 'Check Toggle' |
677 | 446 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
447 |
#adjust: #left |
|
448 |
#resizeForLabel: true |
|
449 |
#canUIDrag: false |
|
450 |
) |
|
451 |
#(#ButtonSpec |
|
711 | 452 |
#name: 'Model Button' |
753 | 453 |
#layout: #(#LayoutFrame 309 0 15 0 445 0 37 0) |
711 | 454 |
#label: 'Model Button' |
677 | 455 |
) |
456 |
#(#LabelSpec |
|
457 |
#name: 'UpDownButtonLabel' |
|
753 | 458 |
#layout: #(#AlignmentOrigin 361 0 54 0 0 0) |
711 | 459 |
#label: 'UpDown Button' |
677 | 460 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
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' |
|
753 | 472 |
#layout: #(#AlignmentOrigin 361 0 86 0 0 0) |
473 |
#label: 'Arrow Button' |
|
677 | 474 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
475 |
#adjust: #left |
|
476 |
#resizeForLabel: true |
|
477 |
#canUIDrag: false |
|
478 |
) |
|
479 |
#(#ArrowButtonSpec |
|
753 | 480 |
#name: 'Arrow Button' |
481 |
#layout: #(#LayoutFrame 309 0 79 0 331 0 101 0) |
|
677 | 482 |
#isTriggerOnDown: true |
483 |
#direction: #right |
|
484 |
) |
|
485 |
) |
|
486 |
) |
|
487 |
) |
|
488 |
! |
|
489 |
||
490 |
standardGraphs |
|
491 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
492 |
||
493 |
"do not manually edit this - the painter/builder may not be able to |
|
494 |
handle the specification if its corrupted." |
|
495 |
||
496 |
" |
|
497 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGraphs |
|
498 |
UISelectionPanel new openInterface:#standardGraphs |
|
499 |
" |
|
500 |
||
501 |
<resource: #canvas> |
|
502 |
||
503 |
^ |
|
504 |
||
505 |
#(#FullSpec |
|
506 |
#window: |
|
507 |
#(#WindowSpec |
|
508 |
#name: 'Graphs' |
|
509 |
#layout: #(#LayoutFrame 114 0 373 0 583 0 615 0) |
|
510 |
#label: 'Graphs' |
|
511 |
#min: #(#Point 10 10) |
|
512 |
#max: #(#Point 1280 1024) |
|
513 |
#bounds: #(#Rectangle 114 373 584 616) |
|
514 |
#usePreferredExtent: false |
|
515 |
) |
|
516 |
#component: |
|
517 |
#(#SpecCollection |
|
518 |
#collection: |
|
519 |
#( |
|
520 |
#(#GraphColumnView2DSpec |
|
521 |
#name: 'GraphColumnView2D' |
|
522 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
523 |
#gridX: 0 |
|
524 |
#gridY: 0 |
|
525 |
) |
|
526 |
#(#LabelSpec |
|
527 |
#name: 'GraphColumnView2DLabel' |
|
528 |
#layout: #(#AlignmentOrigin 19 0 19 0 0 0) |
|
529 |
#label: 'GraphColumnViewView2D' |
|
530 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
531 |
#adjust: #left |
|
532 |
#resizeForLabel: true |
|
533 |
#canUIDrag: false |
|
534 |
) |
|
535 |
#(#GraphColumnView3DSpec |
|
536 |
#name: 'GraphColumnView3D' |
|
537 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
|
538 |
) |
|
539 |
#(#LabelSpec |
|
540 |
#name: 'GraphColumnView3DLabel' |
|
541 |
#layout: #(#AlignmentOrigin 244 0 19 0 0 0) |
|
542 |
#label: 'GraphColumnViewView3D' |
|
543 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
544 |
#adjust: #left |
|
545 |
#resizeForLabel: true |
|
546 |
#canUIDrag: false |
|
547 |
) |
|
548 |
) |
|
549 |
) |
|
550 |
) |
|
551 |
! |
|
552 |
||
553 |
standardGroups |
|
554 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
555 |
||
556 |
"do not manually edit this - the painter/builder may not be able to |
|
557 |
handle the specification if its corrupted." |
|
558 |
||
559 |
" |
|
560 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGroups |
|
561 |
UISelectionPanel new openInterface:#standardGroups |
|
562 |
" |
|
563 |
||
564 |
<resource: #canvas> |
|
565 |
||
566 |
^ |
|
567 |
||
568 |
#(#FullSpec |
|
569 |
#window: |
|
570 |
#(#WindowSpec |
|
571 |
#name: 'Groups' |
|
726 | 572 |
#layout: #(#LayoutFrame 147 0 281 0 647 0 520 0) |
677 | 573 |
#label: 'Groups' |
658 | 574 |
#min: #(#Point 10 10) |
575 |
#max: #(#Point 1280 1024) |
|
726 | 576 |
#bounds: #(#Rectangle 147 281 648 521) |
658 | 577 |
#usePreferredExtent: false |
578 |
) |
|
579 |
#component: |
|
580 |
#(#SpecCollection |
|
581 |
#collection: |
|
582 |
#( |
|
583 |
#(#ViewSpec |
|
584 |
#name: 'Box' |
|
585 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
|
586 |
) |
|
587 |
#(#LabelSpec |
|
588 |
#name: 'ViewLabel' |
|
589 |
#layout: #(#AlignmentOrigin 18 0 17 0 0 0) |
|
590 |
#label: 'Box' |
|
670 | 591 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 592 |
#adjust: #left |
593 |
#resizeForLabel: true |
|
594 |
#canUIDrag: false |
|
595 |
) |
|
596 |
#(#LabelSpec |
|
597 |
#name: 'VPanelLabel' |
|
598 |
#layout: #(#LayoutFrame 15 0 116 0 220 0 139 0) |
|
599 |
#label: 'Variable Panels' |
|
670 | 600 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 601 |
#adjust: #left |
602 |
#canUIDrag: false |
|
603 |
) |
|
604 |
#(#VariableHorizontalPanelSpec |
|
726 | 605 |
#name: 'Variable Horizontal Panel' |
658 | 606 |
#layout: #(#LayoutFrame 15 0 140 0 110 0 230 0) |
607 |
#component: |
|
608 |
#(#SpecCollection |
|
609 |
#collection: |
|
610 |
#( |
|
611 |
#(#LabelSpec |
|
612 |
#name: 'label4' |
|
613 |
#label: 'A' |
|
663 | 614 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 615 |
#level: 2 |
616 |
#canUIDrag: false |
|
617 |
) |
|
618 |
#(#LabelSpec |
|
619 |
#name: 'label5' |
|
620 |
#label: 'B' |
|
663 | 621 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 622 |
#level: 2 |
623 |
#canUIDrag: false |
|
624 |
) |
|
625 |
) |
|
626 |
) |
|
627 |
#handles: #(#Any 0.5 1.0) |
|
628 |
) |
|
629 |
#(#VariableVerticalPanelSpec |
|
726 | 630 |
#name: 'Variable Vertical Panel' |
658 | 631 |
#layout: #(#LayoutFrame 125 0 140 0 220 0 230 0) |
632 |
#component: |
|
633 |
#(#SpecCollection |
|
634 |
#collection: |
|
635 |
#( |
|
636 |
#(#LabelSpec |
|
637 |
#name: 'label9' |
|
638 |
#label: 'A' |
|
663 | 639 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 640 |
#level: 2 |
641 |
#canUIDrag: false |
|
642 |
) |
|
643 |
#(#LabelSpec |
|
644 |
#name: 'label10' |
|
645 |
#label: 'B' |
|
663 | 646 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 647 |
#level: 2 |
648 |
#canUIDrag: false |
|
649 |
) |
|
650 |
) |
|
651 |
) |
|
652 |
#handles: #(#Any 0.5 1.0) |
|
653 |
) |
|
654 |
#(#FramedBoxSpec |
|
726 | 655 |
#name: 'Framed Box' |
658 | 656 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
711 | 657 |
#label: 'Framed Box' |
658 | 658 |
#labelPosition: #topLeft |
659 |
) |
|
660 |
#(#LabelSpec |
|
661 |
#name: 'PanelLabel' |
|
662 |
#layout: #(#LayoutFrame 240 0 116 0 445 0 139 0) |
|
663 |
#label: 'Panels' |
|
670 | 664 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 665 |
#adjust: #left |
666 |
#canUIDrag: false |
|
667 |
) |
|
668 |
#(#HorizontalPanelViewSpec |
|
726 | 669 |
#name: 'Horizontal Panel' |
658 | 670 |
#layout: #(#LayoutFrame 240 0 140 0 324 0 230 0) |
671 |
#component: |
|
672 |
#(#SpecCollection |
|
673 |
#collection: |
|
674 |
#( |
|
675 |
#(#LabelSpec |
|
676 |
#name: 'label1' |
|
677 |
#label: 'A' |
|
663 | 678 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 679 |
#level: 2 |
680 |
#extent: #(#Point 23 23) |
|
681 |
#canUIDrag: false |
|
682 |
) |
|
683 |
#(#LabelSpec |
|
684 |
#name: 'label2' |
|
685 |
#label: 'B' |
|
663 | 686 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 687 |
#level: 2 |
688 |
#extent: #(#Point 23 23) |
|
689 |
#canUIDrag: false |
|
690 |
) |
|
691 |
#(#LabelSpec |
|
692 |
#name: 'label3' |
|
693 |
#label: 'C' |
|
663 | 694 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 695 |
#level: 2 |
696 |
#extent: #(#Point 23 23) |
|
697 |
#canUIDrag: false |
|
698 |
) |
|
699 |
) |
|
700 |
) |
|
701 |
#horizontalLayout: #center |
|
702 |
#verticalLayout: #center |
|
703 |
#horizontalSpace: 3 |
|
704 |
#verticalSpace: 3 |
|
705 |
) |
|
706 |
#(#VerticalPanelViewSpec |
|
726 | 707 |
#name: 'Vertical Panel' |
658 | 708 |
#layout: #(#LayoutFrame 332 0 140 0 379 0 230 0) |
709 |
#component: |
|
710 |
#(#SpecCollection |
|
711 |
#collection: |
|
712 |
#( |
|
713 |
#(#LabelSpec |
|
714 |
#name: 'label6' |
|
715 |
#label: 'A' |
|
663 | 716 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 717 |
#level: 2 |
718 |
#extent: #(#Point 23 23) |
|
719 |
#canUIDrag: false |
|
720 |
) |
|
721 |
#(#LabelSpec |
|
722 |
#name: 'label7' |
|
723 |
#label: 'B' |
|
663 | 724 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 725 |
#level: 2 |
726 |
#extent: #(#Point 23 23) |
|
727 |
#canUIDrag: false |
|
728 |
) |
|
729 |
#(#LabelSpec |
|
730 |
#name: 'label8' |
|
731 |
#label: 'C' |
|
663 | 732 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 733 |
#level: 2 |
734 |
#extent: #(#Point 23 23) |
|
735 |
#canUIDrag: false |
|
736 |
) |
|
737 |
) |
|
738 |
) |
|
739 |
#horizontalLayout: #center |
|
740 |
#verticalLayout: #center |
|
741 |
#horizontalSpace: 3 |
|
742 |
#verticalSpace: 3 |
|
743 |
) |
|
744 |
#(#PanelViewSpec |
|
726 | 745 |
#name: 'Panel' |
658 | 746 |
#layout: #(#LayoutFrame 387 0 140 0 445 0 230 0) |
747 |
#component: |
|
748 |
#(#SpecCollection |
|
749 |
#collection: |
|
750 |
#( |
|
751 |
#(#LabelSpec |
|
752 |
#name: 'label11' |
|
753 |
#label: 'A' |
|
663 | 754 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 755 |
#level: 2 |
756 |
#extent: #(#Point 23 23) |
|
757 |
#canUIDrag: false |
|
758 |
) |
|
759 |
#(#LabelSpec |
|
760 |
#name: 'label12' |
|
761 |
#label: 'B' |
|
663 | 762 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 763 |
#level: 2 |
764 |
#extent: #(#Point 23 23) |
|
765 |
#canUIDrag: false |
|
766 |
) |
|
767 |
#(#LabelSpec |
|
768 |
#name: 'label13' |
|
769 |
#label: 'C' |
|
663 | 770 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 771 |
#level: 2 |
772 |
#extent: #(#Point 23 23) |
|
773 |
#canUIDrag: false |
|
774 |
) |
|
775 |
#(#LabelSpec |
|
776 |
#name: 'label14' |
|
777 |
#label: 'D' |
|
663 | 778 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 779 |
#level: 2 |
780 |
#extent: #(#Point 23 23) |
|
781 |
#canUIDrag: false |
|
782 |
) |
|
783 |
#(#LabelSpec |
|
784 |
#name: 'label15' |
|
785 |
#label: 'E' |
|
663 | 786 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
658 | 787 |
#level: 2 |
788 |
#extent: #(#Point 23 23) |
|
789 |
#canUIDrag: false |
|
790 |
) |
|
791 |
) |
|
792 |
) |
|
793 |
#horizontalLayout: #fitSpace |
|
794 |
#verticalLayout: #fitSpace |
|
795 |
#horizontalSpace: 3 |
|
796 |
#verticalSpace: 3 |
|
797 |
) |
|
798 |
) |
|
799 |
) |
|
800 |
) |
|
801 |
! |
|
802 |
||
803 |
standardLists |
|
142 | 804 |
"this window spec was automatically generated by the ST/X UIPainter" |
805 |
||
806 |
"do not manually edit this - the painter/builder may not be able to |
|
807 |
handle the specification if its corrupted." |
|
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' |
726 | 822 |
#layout: #(#LayoutFrame 147 0 281 0 616 0 523 0) |
658 | 823 |
#label: 'Lists' |
824 |
#min: #(#Point 10 10) |
|
825 |
#max: #(#Point 1280 1024) |
|
726 | 826 |
#bounds: #(#Rectangle 147 281 617 524) |
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' |
842 |
#layout: #(#LayoutFrame 15 0 15 0 35 0 30 0) |
|
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' |
857 |
#layout: #(#LayoutFrame 15 0 130 0 57 0 145 0) |
|
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' |
872 |
#layout: #(#LayoutFrame 240 0 15 0 266 0 30 0) |
|
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' |
887 |
#layout: #(#LayoutFrame 240 0 130 0 300 0 145 0) |
|
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 |
) |
|
897 |
! |
|
898 |
||
190 | 899 |
standardMenus |
753 | 900 |
"This resource specification was automatically generated |
901 |
by the UIPainter of ST/X." |
|
182 | 902 |
|
753 | 903 |
"Do not manually edit this!! If it is corrupted, |
904 |
the UIPainter may not be able to read the specification." |
|
182 | 905 |
|
906 |
" |
|
302 | 907 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus |
908 |
UISelectionPanel new openInterface:#standardMenus |
|
182 | 909 |
" |
910 |
||
911 |
<resource: #canvas> |
|
912 |
||
913 |
^ |
|
302 | 914 |
|
182 | 915 |
#(#FullSpec |
658 | 916 |
#window: |
182 | 917 |
#(#WindowSpec |
658 | 918 |
#name: 'Menus' |
753 | 919 |
#layout: #(#LayoutFrame 56 0 405 0 532 0 594 0) |
658 | 920 |
#label: 'Menus' |
921 |
#min: #(#Point 10 10) |
|
922 |
#max: #(#Point 1280 1024) |
|
753 | 923 |
#bounds: #(#Rectangle 56 405 533 595) |
658 | 924 |
#usePreferredExtent: false |
142 | 925 |
) |
658 | 926 |
#component: |
142 | 927 |
#(#SpecCollection |
658 | 928 |
#collection: |
142 | 929 |
#( |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
930 |
#(#MenuPanelSpec |
726 | 931 |
#name: 'Tool Bar' |
711 | 932 |
#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
|
933 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
934 |
#(#LabelSpec |
711 | 935 |
#name: 'ToolBarLabel' |
936 |
#layout: #(#LayoutFrame 15 0 15 0 56 0 30 0) |
|
937 |
#label: 'Tool Bar' |
|
670 | 938 |
#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
|
939 |
#adjust: #left |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
940 |
#resizeForLabel: true |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
941 |
#canUIDrag: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
942 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
943 |
#(#PopUpListSpec |
726 | 944 |
#name: 'PopUp List' |
711 | 945 |
#layout: #(#LayoutFrame 15 0 72 0 140 0 94 0) |
753 | 946 |
#label: 'PopUp List' |
670 | 947 |
#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
|
948 |
#useIndex: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
949 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
950 |
#(#ComboListSpec |
726 | 951 |
#name: 'Combo List' |
711 | 952 |
#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
|
953 |
#useIndex: false |
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: 'ComboListLabel' |
711 | 957 |
#layout: #(#LayoutFrame 17 0 104 0 79 0 122 0) |
958 |
#label: 'Combo List' |
|
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 |
#(#ComboBoxSpec |
726 | 965 |
#name: 'Combo Box' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
966 |
#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
|
967 |
) |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
968 |
#(#LabelSpec |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
969 |
#name: 'ComboBoxLabel' |
711 | 970 |
#layout: #(#LayoutFrame 17 0 132 0 79 0 150 0) |
753 | 971 |
#label: 'Combo Box' |
670 | 972 |
#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
|
973 |
#adjust: #left |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
974 |
#resizeForLabel: true |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
975 |
#canUIDrag: false |
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
976 |
) |
658 | 977 |
#(#TabViewSpec |
726 | 978 |
#name: 'Tab Header' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
979 |
#layout: #(#LayoutFrame 157 0 15 0 292 0 51 0) |
302 | 980 |
) |
981 |
#(#LabelSpec |
|
711 | 982 |
#name: 'TabHeaderLabel' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
983 |
#layout: #(#Point 160 35) |
711 | 984 |
#label: 'Tab Header' |
670 | 985 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 986 |
#adjust: #left |
987 |
#resizeForLabel: true |
|
988 |
#canUIDrag: false |
|
989 |
) |
|
990 |
#(#NoteBookViewSpec |
|
726 | 991 |
#name: 'Note Book' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
992 |
#layout: #(#LayoutFrame 157 0 58 0 292 0 150 0) |
302 | 993 |
) |
658 | 994 |
#(#LabelSpec |
995 |
#name: 'NoteBookLabel' |
|
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
996 |
#layout: #(#Point 161 134) |
711 | 997 |
#label: 'Note Book' |
670 | 998 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 999 |
#adjust: #left |
1000 |
#resizeForLabel: true |
|
1001 |
#canUIDrag: false |
|
302 | 1002 |
) |
658 | 1003 |
#(#UIGalleryViewSpec |
726 | 1004 |
#name: 'Gallery' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1005 |
#layout: #(#LayoutFrame 309 0 15 0 445 0 150 0) |
142 | 1006 |
) |
302 | 1007 |
#(#LabelSpec |
658 | 1008 |
#name: 'GalleryLabel' |
660
46f55243f1f1
once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents:
659
diff
changeset
|
1009 |
#layout: #(#Point 313 134) |
711 | 1010 |
#label: 'Gallery' |
670 | 1011 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1012 |
#adjust: #left |
1013 |
#resizeForLabel: true |
|
1014 |
#canUIDrag: false |
|
142 | 1015 |
) |
1016 |
) |
|
1017 |
) |
|
1018 |
) |
|
1019 |
! |
|
1020 |
||
658 | 1021 |
standardMisc |
753 | 1022 |
"This resource specification was automatically generated |
1023 |
by the UIPainter of ST/X." |
|
93 | 1024 |
|
753 | 1025 |
"Do not manually edit this!! If it is corrupted, |
1026 |
the UIPainter may not be able to read the specification." |
|
93 | 1027 |
|
1028 |
" |
|
658 | 1029 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardMisc |
1030 |
UISelectionPanel new openInterface:#standardMisc |
|
93 | 1031 |
" |
1032 |
||
1033 |
<resource: #canvas> |
|
1034 |
||
1035 |
^ |
|
182 | 1036 |
|
93 | 1037 |
#(#FullSpec |
658 | 1038 |
#window: |
93 | 1039 |
#(#WindowSpec |
663 | 1040 |
#name: 'Misc' |
753 | 1041 |
#layout: #(#LayoutFrame 44 0 354 0 511 0 638 0) |
663 | 1042 |
#label: 'Misc' |
658 | 1043 |
#min: #(#Point 10 10) |
1044 |
#max: #(#Point 1280 1024) |
|
753 | 1045 |
#bounds: #(#Rectangle 44 354 512 639) |
658 | 1046 |
#usePreferredExtent: false |
93 | 1047 |
) |
658 | 1048 |
#component: |
93 | 1049 |
#(#SpecCollection |
658 | 1050 |
#collection: |
93 | 1051 |
#( |
658 | 1052 |
#(#ArbitraryComponentSpec |
726 | 1053 |
#name: 'Arbitrary Component' |
677 | 1054 |
#layout: #(#LayoutFrame 15 0 15 0 140 0 110 0) |
658 | 1055 |
#hasBorder: false |
93 | 1056 |
) |
658 | 1057 |
#(#LabelSpec |
1058 |
#name: 'ArbitraryComponentLabel' |
|
677 | 1059 |
#layout: #(#AlignmentOrigin 19 0 19 0 0 0) |
711 | 1060 |
#label: 'Arbitrary Component' |
670 | 1061 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1062 |
#adjust: #left |
1063 |
#resizeForLabel: true |
|
1064 |
#canUIDrag: false |
|
93 | 1065 |
) |
658 | 1066 |
#(#UISubSpecification |
1067 |
#name: 'SubSpecification' |
|
677 | 1068 |
#layout: #(#LayoutFrame 157 0 15 0 292 0 110 0) |
658 | 1069 |
) |
1070 |
#(#LabelSpec |
|
1071 |
#name: 'SubSpecificationLabel' |
|
677 | 1072 |
#layout: #(#Point 161 19) |
658 | 1073 |
#label: 'SubSpecification' |
670 | 1074 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1075 |
#resizeForLabel: true |
1076 |
#canUIDrag: false |
|
302 | 1077 |
) |
677 | 1078 |
#(#SubCanvasSpec |
1079 |
#name: 'SubCanvas' |
|
1080 |
#layout: #(#LayoutFrame 309 0 15 0 445 0 110 0) |
|
1081 |
#hasHorizontalScrollBar: true |
|
1082 |
#hasVerticalScrollBar: true |
|
1083 |
) |
|
1084 |
#(#LabelSpec |
|
1085 |
#name: 'SubCanvasLabel' |
|
1086 |
#layout: #(#AlignmentOrigin 336 0 19 0 0 0) |
|
1087 |
#label: 'SubCanvas' |
|
1088 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1089 |
#adjust: #left |
|
1090 |
#resizeForLabel: true |
|
1091 |
#canUIDrag: false |
|
1092 |
) |
|
1093 |
#(#LabelSpec |
|
1094 |
#name: 'SliderLabel' |
|
753 | 1095 |
#layout: #(#AlignmentOrigin 95 0 129 0 1 0) |
677 | 1096 |
#label: 'Slider' |
1097 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1098 |
#resizeForLabel: true |
|
1099 |
#canUIDrag: false |
|
1100 |
) |
|
1101 |
#(#SliderSpec |
|
1102 |
#name: 'Slider' |
|
753 | 1103 |
#layout: #(#LayoutFrame 100 0 126 0 215 0 144 0) |
677 | 1104 |
#orientation: #horizontal |
1105 |
) |
|
1106 |
#(#LabelSpec |
|
1107 |
#name: 'ThumbWheelLabel' |
|
753 | 1108 |
#layout: #(#AlignmentOrigin 95 0 157 0 1 0) |
711 | 1109 |
#label: 'Thumb Wheel' |
677 | 1110 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
1111 |
#resizeForLabel: true |
|
1112 |
#canUIDrag: false |
|
1113 |
) |
|
1114 |
#(#ThumbWheelSpec |
|
726 | 1115 |
#name: 'Thumb Wheel' |
753 | 1116 |
#layout: #(#LayoutFrame 100 0 152 0 215 0 172 0) |
677 | 1117 |
#orientation: #horizontal |
1118 |
#stop: 360 |
|
1119 |
) |
|
302 | 1120 |
#(#LabelSpec |
753 | 1121 |
#name: 'RegionLabel' |
1122 |
#layout: #(#AlignmentOrigin 95 0 189 0 1 0) |
|
1123 |
#label: 'Region' |
|
1124 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1125 |
#adjust: #left |
|
1126 |
#resizeForLabel: true |
|
1127 |
#canUIDrag: false |
|
1128 |
) |
|
1129 |
#(#RegionSpec |
|
1130 |
#name: 'Region' |
|
1131 |
#layout: #(#LayoutFrame 100 0 183 0 215 0 212 0) |
|
1132 |
#lineWidth: 2 |
|
1133 |
#regionType: #ellipse |
|
1134 |
) |
|
1135 |
#(#LabelSpec |
|
1136 |
#name: 'SeparatorLabel' |
|
1137 |
#layout: #(#AlignmentOrigin 95 0 219 0 1 0) |
|
1138 |
#label: 'Separator' |
|
1139 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1140 |
#adjust: #left |
|
1141 |
#resizeForLabel: true |
|
1142 |
#canUIDrag: false |
|
1143 |
) |
|
1144 |
#(#DividerSpec |
|
1145 |
#name: 'Separator' |
|
1146 |
#layout: #(#LayoutFrame 100 0 225 0 215 0 229 0) |
|
1147 |
) |
|
1148 |
#(#LabelSpec |
|
1149 |
#name: 'ProgressIndicatorsLabel' |
|
1150 |
#layout: #(#AlignmentOrigin 345 0 129 0 1 0) |
|
711 | 1151 |
#label: 'Progress Indicator' |
670 | 1152 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1153 |
#adjust: #left |
1154 |
#resizeForLabel: true |
|
1155 |
#canUIDrag: false |
|
1156 |
) |
|
1157 |
#(#ProgressIndicatorSpec |
|
726 | 1158 |
#name: 'Progress Indicator' |
677 | 1159 |
#layout: #(#LayoutFrame 350 0 126 0 445 0 144 0) |
658 | 1160 |
) |
1161 |
#(#LabelSpec |
|
753 | 1162 |
#name: 'RoundProgressIndicatorsLabel' |
1163 |
#layout: #(#AlignmentOrigin 345 0 149 0 1 0) |
|
1164 |
#label: 'Round |
|
1165 |
Progress Indicator' |
|
670 | 1166 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1167 |
#adjust: #left |
1168 |
#resizeForLabel: true |
|
1169 |
#canUIDrag: false |
|
1170 |
) |
|
753 | 1171 |
#(#RoundProgressIndicatorSpec |
1172 |
#name: 'Round Progress Indicator' |
|
1173 |
#layout: #(#LayoutFrame 350 0 148 0 445 0 243 0) |
|
1174 |
#level: 0 |
|
1175 |
#borderWidth: 1 |
|
302 | 1176 |
) |
93 | 1177 |
) |
1178 |
) |
|
1179 |
) |
|
1180 |
! |
|
1181 |
||
677 | 1182 |
standardTexts |
93 | 1183 |
"this window spec was automatically generated by the ST/X UIPainter" |
1184 |
||
1185 |
"do not manually edit this - the painter/builder may not be able to |
|
1186 |
handle the specification if its corrupted." |
|
1187 |
||
1188 |
" |
|
677 | 1189 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardTexts |
1190 |
UISelectionPanel new openInterface:#standardTexts |
|
93 | 1191 |
" |
1192 |
||
1193 |
<resource: #canvas> |
|
1194 |
||
1195 |
^ |
|
302 | 1196 |
|
93 | 1197 |
#(#FullSpec |
658 | 1198 |
#window: |
93 | 1199 |
#(#WindowSpec |
677 | 1200 |
#name: 'Texts' |
726 | 1201 |
#layout: #(#LayoutFrame 147 0 281 0 613 0 487 0) |
677 | 1202 |
#label: 'Texts' |
658 | 1203 |
#min: #(#Point 10 10) |
1204 |
#max: #(#Point 1280 1024) |
|
726 | 1205 |
#bounds: #(#Rectangle 147 281 614 488) |
658 | 1206 |
#usePreferredExtent: false |
93 | 1207 |
) |
658 | 1208 |
#component: |
93 | 1209 |
#(#SpecCollection |
658 | 1210 |
#collection: |
93 | 1211 |
#( |
659 | 1212 |
#(#TextEditorSpec |
726 | 1213 |
#name: 'Text Editor' |
659 | 1214 |
#layout: #(#LayoutFrame 15 0 15 0 220 0 110 0) |
1215 |
#hasHorizontalScrollBar: true |
|
1216 |
#hasVerticalScrollBar: true |
|
1217 |
) |
|
658 | 1218 |
#(#LabelSpec |
711 | 1219 |
#name: 'TextEditorLabel' |
681 | 1220 |
#layout: #(#AlignmentOrigin 53 0 19 0 0 0) |
711 | 1221 |
#label: 'Text Editor' |
670 | 1222 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1223 |
#adjust: #left |
1224 |
#resizeForLabel: true |
|
1225 |
#canUIDrag: false |
|
150 | 1226 |
) |
658 | 1227 |
#(#HTMLViewSpec |
726 | 1228 |
#name: 'HTML Browser' |
658 | 1229 |
#layout: #(#LayoutFrame 240 0 15 0 445 0 110 0) |
1230 |
#hasHorizontalScrollBar: true |
|
1231 |
#hasVerticalScrollBar: true |
|
139 | 1232 |
) |
302 | 1233 |
#(#LabelSpec |
658 | 1234 |
#name: 'HTMLViewLabel' |
663 | 1235 |
#layout: #(#AlignmentOrigin 267 0 19 0 0 0) |
711 | 1236 |
#label: 'HTML Browser' |
670 | 1237 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1238 |
#adjust: #left |
1239 |
#resizeForLabel: true |
|
1240 |
#canUIDrag: false |
|
139 | 1241 |
) |
658 | 1242 |
#(#InputFieldSpec |
726 | 1243 |
#name: 'Entry Field' |
658 | 1244 |
#layout: #(#LayoutFrame 15 0 125 0 220 0 147 0) |
97 | 1245 |
) |
139 | 1246 |
#(#LabelSpec |
711 | 1247 |
#name: 'EntryFieldLabel' |
681 | 1248 |
#layout: #(#LayoutFrame 53 0 127 0 106 0 147 0) |
711 | 1249 |
#label: 'Entry Field' |
670 | 1250 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
658 | 1251 |
#adjust: #left |
1252 |
#resizeForLabel: true |
|
1253 |
#canUIDrag: false |
|
302 | 1254 |
) |
139 | 1255 |
#(#LabelSpec |
658 | 1256 |
#name: 'Label' |
1257 |
#layout: #(#LayoutFrame 240 0 125 0 445 0 147 0) |
|
1258 |
#label: 'Label' |
|
147 | 1259 |
) |
97 | 1260 |
) |
1261 |
) |
|
1262 |
) |
|
1263 |
! |
|
1264 |
||
190 | 1265 |
standardUserPanel |
93 | 1266 |
"this window spec was automatically generated by the ST/X UIPainter" |
1267 |
||
1268 |
"do not manually edit this - the painter/builder may not be able to |
|
1269 |
handle the specification if its corrupted." |
|
1270 |
||
1271 |
" |
|
190 | 1272 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel |
1273 |
UISelectionPanel new openInterface:#standardUserPanel |
|
182 | 1274 |
" |
1275 |
||
1276 |
<resource: #canvas> |
|
1277 |
||
1278 |
^ |
|
1279 |
||
1280 |
#(#FullSpec |
|
1281 |
#'window:' |
|
1282 |
#(#WindowSpec |
|
302 | 1283 |
#'name:' 'UserPanel' |
182 | 1284 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
302 | 1285 |
#'label:' 'UserPanel' |
182 | 1286 |
#'bounds:' #(#Rectangle 0 0 445 162) |
1287 |
) |
|
1288 |
#'component:' |
|
1289 |
#(#SpecCollection |
|
1290 |
#'collection:' |
|
1291 |
#( |
|
1292 |
#(#LabelSpec |
|
1293 |
#'name:' 'helpText' |
|
1294 |
#'layout:' #(#Point 10 0) |
|
1295 |
#'labelChannel:' #userDefinedHelpText |
|
1296 |
#'resizeForLabel:' true |
|
1297 |
#'canUIDrag:' false |
|
1298 |
) |
|
1299 |
) |
|
1300 |
) |
|
1301 |
) |
|
93 | 1302 |
! ! |
1303 |
||
182 | 1304 |
!UISelectionPanel methodsFor:'actions'! |
1305 |
||
1306 |
defineClassAndSelector |
|
1307 |
|bd cls sel lbl| |
|
1308 |
||
1309 |
bd := IdentityDictionary new. |
|
1310 |
bd at:#className put:( userClass asValue). |
|
1311 |
bd at:#specsKey put:( (userSpecs ? '') asValue). |
|
1312 |
bd at:#labelsKey put:( (userLabels ? '') asValue). |
|
1313 |
bd at:#updateDefaultResources put:(false asValue). |
|
1314 |
||
1315 |
(self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[ |
|
1316 |
( (cls := (bd at:#className) value) notNil |
|
1317 |
and:[(sel := (bd at:#specsKey) value) notNil |
|
1318 |
and:[(lbl := (bd at:#labelsKey) value) notNil]] |
|
1319 |
) ifTrue:[ |
|
1320 |
userClass := cls. |
|
1321 |
userSpecs := sel. |
|
1322 |
userLabels := lbl. |
|
1323 |
||
1324 |
(bd at:#updateDefaultResources) value ifTrue:[ |
|
1325 |
UserClass := userClass. |
|
1326 |
UserSpecs := userSpecs. |
|
1327 |
UserLabels := userLabels. |
|
1328 |
] |
|
1329 |
] |
|
1330 |
]. |
|
1331 |
! |
|
1332 |
||
1333 |
paste:something |
|
1334 |
"paste something at a point |
|
1335 |
" |
|
1336 |
|coll specs point device gallery ext spec| |
|
1337 |
||
1338 |
clipBoardSpec isNil ifTrue:[ |
|
1339 |
clipBoardSpec := SpecCollection new. |
|
1340 |
clipBoardSpec collection:(OrderedCollection new). |
|
1341 |
]. |
|
1342 |
coll := clipBoardSpec collection. |
|
1343 |
gallery := self builder componentAt:#gallery. |
|
1344 |
device := gallery device. |
|
1345 |
||
1346 |
point := device translatePoint:(device pointerPosition) |
|
1347 |
from:(device rootView id) |
|
1348 |
to:(gallery canvas id). |
|
1349 |
||
1350 |
point y < 1 ifTrue:[point y:1]. |
|
1351 |
ext := gallery extent - (10@10). |
|
93 | 1352 |
|
182 | 1353 |
(specs := something) isCollection ifFalse:[ |
1354 |
specs := Array with:something |
|
1355 |
]. |
|
1356 |
||
1357 |
specs do:[:aSpec| |
|
1358 |
point x > ext x ifTrue:[point x:1]. |
|
1359 |
point y > ext y ifTrue:[point y:1]. |
|
1360 |
||
1361 |
spec := aSpec copy. |
|
1362 |
spec layout:(LayoutOrigin fromPoint:point). |
|
1363 |
coll add:spec. |
|
1364 |
point := point + (20@20). |
|
1365 |
]. |
|
1366 |
gallery update. |
|
1367 |
! |
|
1368 |
||
1369 |
raiseMenu |
|
1370 |
"can open menu |
|
1371 |
" |
|
251 | 1372 |
|spec menu value paste| |
182 | 1373 |
|
1374 |
spec := self clientSpec value. |
|
112 | 1375 |
|
182 | 1376 |
spec notNil ifTrue:[ |
1377 |
menu := self class menuSelected decodeAsLiteralArray. |
|
1378 |
self isClipBoard ifFalse:[ |
|
1379 |
(menu someMenuItemWithValue:#cut) disable. |
|
1380 |
]. |
|
1381 |
||
1382 |
(value := menu startUp) == #cut ifTrue:[ |
|
1383 |
clipBoardSpec collection remove:spec ifAbsent:nil. |
|
1384 |
(self builder componentAt:#gallery) update. |
|
1385 |
] ifFalse:[ |
|
1386 |
value == #copy ifTrue:[ |
|
1387 |
self window setSelection:spec |
|
1388 |
] |
|
1389 |
]. |
|
1390 |
^ self |
|
1391 |
]. |
|
1392 |
||
1393 |
self isUserBoard ifTrue:[ |
|
1394 |
^ self defineClassAndSelector |
|
1395 |
]. |
|
1396 |
||
1397 |
paste := self window getSelection. |
|
1398 |
||