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