author | Claus Gittinger <cg@exept.de> |
Mon, 13 Nov 2000 12:08:35 +0100 | |
changeset 1425 | a196da536bff |
parent 1408 | c3cf368bccf1 |
child 1429 | 0fb6421a93e9 |
permissions | -rw-r--r-- |
93 | 1 |
" |
182 | 2 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
987 | 3 |
All Rights Reserved |
182 | 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 |
||
1408 | 15 |
"{ Package: 'stx:libtool2' }" |
16 |
||
182 | 17 |
ApplicationModel subclass:#UISelectionPanel |
1142 | 18 |
instanceVariableNames:'gallery userClass userSpecs userLabels majorSelection |
19 |
clipBoardSpec' |
|
1044 | 20 |
classVariableNames:'UserClass UserSpecs UserLabels' |
21 |
poolDictionaries:'' |
|
22 |
category:'Interface-UIPainter' |
|
182 | 23 |
! |
24 |
||
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
25 |
Object subclass:#UserDefinedGallery |
1044 | 26 |
instanceVariableNames:'' |
27 |
classVariableNames:'LabelList SelectorList HolderList NextUniqueNumber' |
|
28 |
poolDictionaries:'' |
|
29 |
privateIn:UISelectionPanel |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
30 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
31 |
|
182 | 32 |
!UISelectionPanel class methodsFor:'documentation'! |
33 |
||
34 |
copyright |
|
35 |
" |
|
36 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG |
|
987 | 37 |
All Rights Reserved |
93 | 38 |
|
39 |
This software is furnished under a license and may be used |
|
40 |
only in accordance with the terms of that license and with the |
|
41 |
inclusion of the above copyright notice. This software may not |
|
42 |
be provided or otherwise made available to, or used by, any |
|
43 |
other person. No title to or ownership of the software is |
|
44 |
hereby transferred. |
|
45 |
" |
|
46 |
||
47 |
||
48 |
! |
|
49 |
||
50 |
documentation |
|
51 |
" |
|
52 |
implements a selection panel, keeping widgets which could be placed |
|
53 |
into the UIPainter by drag & drop. |
|
54 |
||
182 | 55 |
[start with:] |
987 | 56 |
UISelectionPanel open |
182 | 57 |
|
93 | 58 |
[author:] |
987 | 59 |
Claus Gittinger |
60 |
Claus Atzkern |
|
93 | 61 |
|
62 |
[see also:] |
|
987 | 63 |
TabView |
64 |
NoteBookView |
|
65 |
UIGalleryView |
|
66 |
UIPainter |
|
104 | 67 |
|
93 | 68 |
" |
69 |
||
70 |
! ! |
|
71 |
||
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
72 |
!UISelectionPanel class methodsFor:'initialization'! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
73 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
74 |
initialize |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
75 |
super initialize. |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
76 |
UserClass := UISelectionPanel::UserDefinedGallery. |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
77 |
UserSpecs := #listOfSelectors. |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
78 |
UserLabels := #listOfLabels. |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
79 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
80 |
"Modified: / 8.12.1997 / 18:53:06 / cg" |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
81 |
! ! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
82 |
|
182 | 83 |
!UISelectionPanel class methodsFor:'accessing'! |
93 | 84 |
|
182 | 85 |
specifications |
112 | 86 |
|
182 | 87 |
^ #( |
987 | 88 |
#( 'Standard' #( |
89 |
#('Buttons' standardButtons) |
|
90 |
#('Menus' standardMenus) |
|
91 |
#('Text' standardTexts) |
|
92 |
#('Lists' standardLists) |
|
1179 | 93 |
#('Trees' standardTrees) |
987 | 94 |
#('Groups' standardGroups) |
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
95 |
#('Embed' standardEmbed) |
987 | 96 |
#('Misc' standardMisc) |
97 |
) |
|
98 |
) |
|
93 | 99 |
|
987 | 100 |
#( 'Clipboard' #( |
101 |
#('Copy & Paste Buffer' clipBoardSpec) |
|
102 |
) |
|
103 |
) |
|
135 | 104 |
|
987 | 105 |
#( 'User Def.' #userDefined ) |
182 | 106 |
) |
795
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
107 |
|
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
108 |
"Modified: / 21.4.1998 / 12:04:22 / cg" |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
109 |
! |
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 |
userClass |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
112 |
"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
|
113 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
114 |
^ UserClass |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
115 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
116 |
"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
|
117 |
! |
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 |
userClass:aClass specSelector:aSpecAccessSelector labelSelector:aLabelListAccessSelector |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
120 |
"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
|
121 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
122 |
UserClass := aClass. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
123 |
UserSpecs := aSpecAccessSelector. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
124 |
UserLabels := aLabelListAccessSelector. |
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 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
127 |
UISelectionPanel |
987 | 128 |
userClass:UISelectionPanel::VariableUserDefinedGallery |
129 |
specSelector:#listOfSelectors |
|
130 |
labelSelector:#listOfLabels |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
131 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
132 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
133 |
"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
|
134 |
"Created: / 5.12.1997 / 13:56:10 / cg" |
93 | 135 |
! ! |
136 |
||
1297 | 137 |
!UISelectionPanel class methodsFor:'interface specs'! |
93 | 138 |
|
182 | 139 |
nameAndSelectorSpec |
93 | 140 |
"this window spec was automatically generated by the ST/X UIPainter" |
141 |
||
142 |
"do not manually edit this - the painter/builder may not be able to |
|
143 |
handle the specification if its corrupted." |
|
144 |
||
145 |
" |
|
182 | 146 |
UIPainter new openOnClass:UISelectionPanel andSelector:#nameAndSelectorSpec |
147 |
UISelectionPanel new openInterface:#nameAndSelectorSpec |
|
148 |
" |
|
149 |
||
150 |
<resource: #canvas> |
|
151 |
||
152 |
^ |
|
153 |
||
154 |
#(#FullSpec |
|
987 | 155 |
#window: |
156 |
#(#WindowSpec |
|
157 |
#name: 'uIPainterView' |
|
158 |
#layout: #(#LayoutFrame 110 0 366 0 424 0 581 0) |
|
159 |
#label: 'Painter' |
|
160 |
#min: #(#Point 10 10) |
|
161 |
#max: #(#Point 1280 1024) |
|
162 |
#bounds: #(#Rectangle 110 366 425 582) |
|
163 |
#usePreferredExtent: false |
|
164 |
) |
|
165 |
#component: |
|
166 |
#(#SpecCollection |
|
167 |
#collection: |
|
168 |
#( |
|
169 |
#(#LabelSpec |
|
170 |
#name: 'title' |
|
171 |
#layout: #(#Point 5 10) |
|
172 |
#label: 'Class & selectors to access user specs:' |
|
173 |
#adjust: #left |
|
174 |
#resizeForLabel: true |
|
175 |
) |
|
176 |
#(#LabelSpec |
|
177 |
#name: 'classLabel' |
|
178 |
#layout: #(#AlignmentOrigin 68 0.11 51 0 1 0.5) |
|
179 |
#label: 'Class:' |
|
180 |
#adjust: #right |
|
181 |
#resizeForLabel: true |
|
182 |
) |
|
183 |
#(#InputFieldSpec |
|
184 |
#name: 'classField' |
|
185 |
#layout: #(#LayoutFrame 74 0.11 39 0 -5 1.0 61 0) |
|
186 |
#tabable: true |
|
187 |
#model: #className |
|
188 |
#type: #string |
|
189 |
) |
|
190 |
#(#LabelSpec |
|
191 |
#name: 'labelsLabel' |
|
192 |
#layout: #(#AlignmentOrigin 68 0.11 74 0 1 0.5) |
|
193 |
#label: 'Labels:' |
|
194 |
#adjust: #right |
|
195 |
#resizeForLabel: true |
|
196 |
) |
|
197 |
#(#InputFieldSpec |
|
198 |
#name: 'labelsField' |
|
199 |
#layout: #(#LayoutFrame 74 0.11 64 0 -5 1.0 86 0) |
|
200 |
#tabable: true |
|
201 |
#model: #labelsKey |
|
202 |
#type: #symbolOrNil |
|
203 |
) |
|
204 |
#(#LabelSpec |
|
205 |
#name: 'specsLabel' |
|
206 |
#layout: #(#AlignmentOrigin 68 0.11 99 0 1 0.5) |
|
207 |
#label: 'Specifications:' |
|
208 |
#adjust: #right |
|
209 |
#resizeForLabel: true |
|
210 |
) |
|
211 |
#(#InputFieldSpec |
|
212 |
#name: 'specsField' |
|
213 |
#layout: #(#LayoutFrame 74 0.11 89 0 -5 1.0 111 0) |
|
214 |
#tabable: true |
|
215 |
#model: #specsKey |
|
216 |
#type: #symbolOrNil |
|
217 |
) |
|
218 |
#(#HorizontalPanelViewSpec |
|
219 |
#name: 'commitPanel' |
|
220 |
#layout: #(#LayoutFrame 0 0.0 -23 1.0 0 1.0 0 1.0) |
|
221 |
#component: |
|
222 |
#(#SpecCollection |
|
223 |
#collection: |
|
224 |
#( |
|
225 |
#(#ActionButtonSpec |
|
226 |
#name: 'cancel' |
|
227 |
#label: 'cancel' |
|
228 |
#tabable: true |
|
229 |
#model: #cancel |
|
230 |
#extent: #(#Point 153 23) |
|
231 |
) |
|
232 |
#(#ActionButtonSpec |
|
233 |
#name: 'accept' |
|
234 |
#label: 'ok' |
|
235 |
#tabable: true |
|
236 |
#model: #accept |
|
237 |
#isDefault: true |
|
238 |
#extent: #(#Point 153 23) |
|
239 |
) |
|
240 |
) |
|
241 |
) |
|
242 |
#horizontalLayout: #fitSpace |
|
243 |
#verticalLayout: #fit |
|
244 |
#horizontalSpace: 3 |
|
245 |
#verticalSpace: 3 |
|
246 |
) |
|
247 |
#(#CheckBoxSpec |
|
248 |
#name: 'updateDefaultResources' |
|
249 |
#layout: #(#Point 5 133) |
|
250 |
#model: #updateDefaultResources |
|
251 |
#label: 'Update Default Resources' |
|
252 |
) |
|
253 |
) |
|
254 |
) |
|
182 | 255 |
) |
256 |
! |
|
257 |
||
258 |
windowSpec |
|
985
ec4907d7cdfd
dont specify tabViews font - use default from styleSheet
Claus Gittinger <cg@exept.de>
parents:
962
diff
changeset
|
259 |
"This resource specification was automatically generated |
ec4907d7cdfd
dont specify tabViews font - use default from styleSheet
Claus Gittinger <cg@exept.de>
parents:
962
diff
changeset
|
260 |
by the UIPainter of ST/X." |
182 | 261 |
|
985
ec4907d7cdfd
dont specify tabViews font - use default from styleSheet
Claus Gittinger <cg@exept.de>
parents:
962
diff
changeset
|
262 |
"Do not manually edit this!! If it is corrupted, |
ec4907d7cdfd
dont specify tabViews font - use default from styleSheet
Claus Gittinger <cg@exept.de>
parents:
962
diff
changeset
|
263 |
the UIPainter may not be able to read the specification." |
182 | 264 |
|
265 |
" |
|
266 |
UIPainter new openOnClass:UISelectionPanel andSelector:#windowSpec |
|
267 |
UISelectionPanel new openInterface:#windowSpec |
|
985
ec4907d7cdfd
dont specify tabViews font - use default from styleSheet
Claus Gittinger <cg@exept.de>
parents:
962
diff
changeset
|
268 |
UISelectionPanel open |
182 | 269 |
" |
270 |
||
271 |
<resource: #canvas> |
|
272 |
||
1142 | 273 |
^ |
274 |
#(#FullSpec |
|
275 |
#name: #windowSpec |
|
276 |
#window: |
|
277 |
#(#WindowSpec |
|
278 |
#label: 'Widget Gallery' |
|
279 |
#name: 'Widget Gallery' |
|
1143
b04847a679fc
remove some labels from specs
Claus Gittinger <cg@exept.de>
parents:
1142
diff
changeset
|
280 |
#layout: #(#LayoutFrame 374 0 171 0 867 0 472 0) |
1142 | 281 |
#level: 0 |
282 |
#min: #(#Point 100 280) |
|
283 |
#max: #(#Point 1160 870) |
|
1143
b04847a679fc
remove some labels from specs
Claus Gittinger <cg@exept.de>
parents:
1142
diff
changeset
|
284 |
#bounds: #(#Rectangle 374 171 868 473) |
1142 | 285 |
#usePreferredExtent: false |
286 |
#returnIsOKInDialog: true |
|
287 |
#escapeIsCancelInDialog: true |
|
288 |
) |
|
289 |
#component: |
|
290 |
#(#SpecCollection |
|
291 |
#collection: #( |
|
292 |
#(#NoteBookViewSpec |
|
293 |
#name: 'NoteBook1' |
|
294 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
295 |
#model: #majorChannel |
|
296 |
#menu: #majorList |
|
297 |
#direction: #right |
|
298 |
#useIndex: true |
|
299 |
#canvas: #gallery |
|
300 |
) |
|
301 |
) |
|
302 |
||
303 |
) |
|
182 | 304 |
) |
305 |
! ! |
|
306 |
||
307 |
!UISelectionPanel class methodsFor:'menus'! |
|
308 |
||
309 |
menuSelected |
|
359 | 310 |
|
311 |
<resource: #menu> |
|
312 |
||
182 | 313 |
^ #(#Menu #( |
987 | 314 |
#(#MenuItem |
315 |
#'label:' 'copy' |
|
316 |
#'value:' #copy |
|
317 |
) |
|
318 |
#(#MenuItem |
|
319 |
#'label:' 'cut' |
|
320 |
#'value:' #cut |
|
321 |
) |
|
322 |
) |
|
323 |
nil |
|
324 |
nil |
|
325 |
) |
|
182 | 326 |
|
359 | 327 |
"Modified: / 29.10.1997 / 03:20:30 / cg" |
182 | 328 |
! |
329 |
||
330 |
menuUnselected |
|
359 | 331 |
<resource: #menu> |
332 |
||
182 | 333 |
^ #(#Menu #( |
987 | 334 |
#(#MenuItem |
335 |
#'label:' 'paste' |
|
336 |
#'value:' #paste |
|
337 |
) |
|
338 |
) |
|
339 |
nil |
|
340 |
nil |
|
341 |
) |
|
182 | 342 |
|
359 | 343 |
"Modified: / 29.10.1997 / 03:20:38 / cg" |
182 | 344 |
! ! |
345 |
||
190 | 346 |
!UISelectionPanel class methodsFor:'standard specifications'! |
182 | 347 |
|
677 | 348 |
standardButtons |
753 | 349 |
"This resource specification was automatically generated |
350 |
by the UIPainter of ST/X." |
|
182 | 351 |
|
753 | 352 |
"Do not manually edit this!! If it is corrupted, |
353 |
the UIPainter may not be able to read the specification." |
|
182 | 354 |
|
355 |
" |
|
677 | 356 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardButtons |
357 |
UISelectionPanel new openInterface:#standardButtons |
|
658 | 358 |
" |
359 |
||
360 |
<resource: #canvas> |
|
361 |
||
1142 | 362 |
^ |
363 |
#(#FullSpec |
|
364 |
#name: #standardButtons |
|
365 |
#window: |
|
366 |
#(#WindowSpec |
|
367 |
#label: 'Buttons' |
|
368 |
#name: 'Buttons' |
|
369 |
#layout: #(#LayoutFrame 58 0 164 0 497 0 321 0) |
|
370 |
#level: 0 |
|
371 |
#min: #(#Point 10 10) |
|
372 |
#max: #(#Point 1280 1024) |
|
373 |
#bounds: #(#Rectangle 58 164 498 322) |
|
374 |
#usePreferredExtent: false |
|
375 |
#returnIsOKInDialog: true |
|
376 |
#escapeIsCancelInDialog: true |
|
377 |
) |
|
378 |
#component: |
|
379 |
#(#SpecCollection |
|
380 |
#collection: #( |
|
381 |
#(#ActionButtonSpec |
|
382 |
#label: 'Button' |
|
383 |
#name: 'Button' |
|
384 |
#layout: #(#LayoutFrame 2 0 1 0 127 0 23 0) |
|
385 |
#translateLabel: true |
|
386 |
) |
|
387 |
#(#ActionButtonSpec |
|
388 |
#label: 'OK' |
|
389 |
#name: 'Button - OK' |
|
390 |
#layout: #(#LayoutFrame 2 0 33 0 127 0 55 0) |
|
391 |
#translateLabel: true |
|
392 |
#model: #accept |
|
393 |
) |
|
394 |
#(#ActionButtonSpec |
|
395 |
#label: 'Cancel' |
|
396 |
#name: 'Button - Cancel' |
|
397 |
#layout: #(#LayoutFrame 2 0 65 0 127 0 87 0) |
|
398 |
#translateLabel: true |
|
399 |
#model: #cancel |
|
400 |
) |
|
401 |
#(#ActionButtonSpec |
|
402 |
#label: 'Help' |
|
403 |
#name: 'Button - Help' |
|
404 |
#layout: #(#LayoutFrame 2 0 97 0 127 0 119 0) |
|
405 |
#translateLabel: true |
|
406 |
#model: #help |
|
407 |
) |
|
408 |
#(#ActionButtonSpec |
|
409 |
#label: 'Close' |
|
410 |
#name: 'Button - Close' |
|
411 |
#layout: #(#LayoutFrame 2 0 129 0 127 0 151 0) |
|
412 |
#translateLabel: true |
|
413 |
#model: #closeRequest |
|
414 |
) |
|
415 |
#(#ToggleSpec |
|
416 |
#label: 'Toggle' |
|
417 |
#name: 'Toggle' |
|
418 |
#layout: #(#LayoutFrame 144 0 1 0 280 0 23 0) |
|
419 |
#translateLabel: true |
|
420 |
#isTriggerOnDown: true |
|
421 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
422 |
) |
|
423 |
#(#RadioButtonSpec |
|
424 |
#label: 'Radio Button' |
|
425 |
#name: 'Radio Button' |
|
426 |
#layout: #(#LayoutFrame 144 0.0 33 0 280 0 55 0) |
|
427 |
#translateLabel: true |
|
428 |
#isTriggerOnDown: true |
|
429 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
430 |
) |
|
431 |
#(#CheckBoxSpec |
|
432 |
#label: 'Check Box' |
|
433 |
#name: 'Check Box' |
|
434 |
#layout: #(#LayoutFrame 144 0 65 0 280 0 87 0) |
|
435 |
#translateLabel: true |
|
436 |
) |
|
437 |
#(#CheckToggleSpec |
|
438 |
#name: 'Check Toggle' |
|
439 |
#layout: #(#LayoutOrigin 144 0 99 0) |
|
440 |
#isTriggerOnDown: true |
|
441 |
#showLamp: false |
|
442 |
#lampColor: #(#Color 100.0 100.0 0.0) |
|
443 |
) |
|
444 |
#(#LabelSpec |
|
445 |
#label: 'Check Toggle' |
|
446 |
#name: 'CheckToggleLabel' |
|
447 |
#layout: #(#AlignmentOrigin 170 0 98 0 0 0) |
|
448 |
#resizeForLabel: true |
|
449 |
#adjust: #left |
|
450 |
#canUIDrag: false |
|
451 |
) |
|
452 |
#(#ButtonSpec |
|
453 |
#label: 'Model Button' |
|
454 |
#name: 'Model Button' |
|
455 |
#layout: #(#LayoutFrame 296 0 1 0 432 0 23 0) |
|
456 |
#translateLabel: true |
|
457 |
) |
|
458 |
#(#LabelSpec |
|
459 |
#label: 'Spin Button' |
|
460 |
#name: 'UpDownButtonLabel' |
|
461 |
#layout: #(#AlignmentOrigin 348 0 35 0 0 0) |
|
462 |
#resizeForLabel: true |
|
463 |
#adjust: #left |
|
464 |
#canUIDrag: false |
|
465 |
) |
|
466 |
#(#UpDownButtonSpec |
|
467 |
#name: 'UpDown Button' |
|
468 |
#layout: #(#LayoutFrame 296 0 33 0 341 0 55 0) |
|
469 |
#orientation: #horizontal |
|
470 |
) |
|
471 |
#(#LabelSpec |
|
472 |
#label: 'Arrow Button' |
|
473 |
#name: 'ArrowButtonsLabel' |
|
474 |
#layout: #(#AlignmentOrigin 348 0 69 0 0 0) |
|
475 |
#resizeForLabel: true |
|
476 |
#adjust: #left |
|
477 |
#canUIDrag: false |
|
478 |
) |
|
479 |
#(#ArrowButtonSpec |
|
480 |
#name: 'Arrow Button' |
|
481 |
#layout: #(#LayoutFrame 296 0 65 0 318 0 87 0) |
|
482 |
#isTriggerOnDown: true |
|
483 |
#direction: #right |
|
484 |
) |
|
485 |
) |
|
486 |
||
487 |
) |
|
677 | 488 |
) |
489 |
! |
|
490 |
||
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
491 |
standardEmbed |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
492 |
"This resource specification was automatically generated |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
493 |
by the UIPainter of ST/X." |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
494 |
|
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
495 |
"Do not manually edit this!! If it is corrupted, |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
496 |
the UIPainter may not be able to read the specification." |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
497 |
|
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
498 |
" |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
499 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardEmbed |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
500 |
UISelectionPanel new openInterface:#standardEmbed |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
501 |
" |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
502 |
|
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
503 |
<resource: #canvas> |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
504 |
|
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
505 |
^ |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
506 |
#(#FullSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
507 |
#name: #standardEmbed |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
508 |
#window: |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
509 |
#(#WindowSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
510 |
#label: 'Misc' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
511 |
#name: 'Misc' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
512 |
#layout: #(#LayoutFrame 125 0 152 0 566 0 374 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
513 |
#level: 0 |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
514 |
#min: #(#Point 10 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
515 |
#max: #(#Point 1280 1024) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
516 |
#bounds: #(#Rectangle 125 152 567 375) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
517 |
#usePreferredExtent: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
518 |
#returnIsOKInDialog: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
519 |
#escapeIsCancelInDialog: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
520 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
521 |
#component: |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
522 |
#(#SpecCollection |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
523 |
#collection: #( |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
524 |
#(#ArbitraryComponentSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
525 |
#name: 'Arbitrary Component' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
526 |
#layout: #(#LayoutFrame 3 0 3 0 128 0 104 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
527 |
#hasBorder: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
528 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
529 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
530 |
#label: 'Arbitrary' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
531 |
#name: 'ArbitraryComponentLabel1' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
532 |
#layout: #(#AlignmentOrigin 7 0 7 0 0 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
533 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
534 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
535 |
#adjust: #left |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
536 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
537 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
538 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
539 |
#label: 'Component' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
540 |
#name: 'ArbitraryComponentLabel2' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
541 |
#layout: #(#AlignmentOrigin 7 0 31 0 0 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
542 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
543 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
544 |
#adjust: #left |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
545 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
546 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
547 |
#(#UISubSpecification |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
548 |
#name: 'SubSpecification' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
549 |
#layout: #(#LayoutFrame 145 0 3 0 280 0 104 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
550 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
551 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
552 |
#label: 'SubSpecification' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
553 |
#name: 'SubSpecificationLabel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
554 |
#layout: #(#Point 149 7) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
555 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
556 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
557 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
558 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
559 |
#(#SubCanvasSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
560 |
#name: 'SubCanvas' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
561 |
#layout: #(#LayoutFrame 297 0 3 0 433 0 104 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
562 |
#hasHorizontalScrollBar: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
563 |
#hasVerticalScrollBar: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
564 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
565 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
566 |
#label: 'SubCanvas' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
567 |
#name: 'SubCanvasLabel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
568 |
#layout: #(#AlignmentOrigin 324 0 7 0 0 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
569 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
570 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
571 |
#adjust: #left |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
572 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
573 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
574 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
575 |
|
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
576 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
577 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
578 |
! |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
579 |
|
677 | 580 |
standardGraphs |
1142 | 581 |
"This resource specification was automatically generated |
582 |
by the UIPainter of ST/X." |
|
677 | 583 |
|
1142 | 584 |
"Do not manually edit this!! If it is corrupted, |
585 |
the UIPainter may not be able to read the specification." |
|
677 | 586 |
|
587 |
" |
|
588 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGraphs |
|
589 |
UISelectionPanel new openInterface:#standardGraphs |
|
590 |
" |
|
591 |
||
592 |
<resource: #canvas> |
|
593 |
||
1142 | 594 |
^ |
595 |
#(#FullSpec |
|
596 |
#name: #standardGraphs |
|
597 |
#window: |
|
598 |
#(#WindowSpec |
|
599 |
#label: 'Graphs' |
|
600 |
#name: 'Graphs' |
|
601 |
#layout: #(#LayoutFrame 81 0 219 0 519 0 333 0) |
|
602 |
#level: 0 |
|
603 |
#min: #(#Point 10 10) |
|
604 |
#max: #(#Point 1280 1024) |
|
605 |
#bounds: #(#Rectangle 81 219 520 334) |
|
606 |
#usePreferredExtent: false |
|
607 |
#returnIsOKInDialog: true |
|
608 |
#escapeIsCancelInDialog: true |
|
609 |
) |
|
610 |
#component: |
|
611 |
#(#SpecCollection |
|
612 |
#collection: #( |
|
613 |
#(#GraphColumnView2DSpec |
|
614 |
#name: 'GraphColumnView2D' |
|
615 |
#layout: #(#LayoutFrame 3 0 3 0 208 0 98 0) |
|
616 |
#gridX: 0 |
|
617 |
#gridY: 0 |
|
618 |
) |
|
619 |
#(#LabelSpec |
|
620 |
#label: 'GraphColumnViewView2D' |
|
621 |
#name: 'GraphColumnView2DLabel' |
|
622 |
#layout: #(#AlignmentOrigin 7 0 7 0 0 0) |
|
623 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
624 |
#resizeForLabel: true |
|
625 |
#adjust: #left |
|
626 |
#canUIDrag: false |
|
627 |
) |
|
628 |
#(#GraphColumnView3DSpec |
|
629 |
#name: 'GraphColumnView3D' |
|
630 |
#layout: #(#LayoutFrame 228 0 3 0 433 0 98 0) |
|
631 |
) |
|
632 |
#(#LabelSpec |
|
633 |
#label: 'GraphColumnViewView3D' |
|
634 |
#name: 'GraphColumnView3DLabel' |
|
635 |
#layout: #(#AlignmentOrigin 232 0 7 0 0 0) |
|
636 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
637 |
#resizeForLabel: true |
|
638 |
#adjust: #left |
|
639 |
#canUIDrag: false |
|
640 |
) |
|
641 |
) |
|
642 |
||
643 |
) |
|
677 | 644 |
) |
645 |
! |
|
646 |
||
647 |
standardGroups |
|
1142 | 648 |
"This resource specification was automatically generated |
649 |
by the UIPainter of ST/X." |
|
677 | 650 |
|
1142 | 651 |
"Do not manually edit this!! If it is corrupted, |
652 |
the UIPainter may not be able to read the specification." |
|
677 | 653 |
|
654 |
" |
|
655 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardGroups |
|
656 |
UISelectionPanel new openInterface:#standardGroups |
|
657 |
" |
|
658 |
||
659 |
<resource: #canvas> |
|
660 |
||
1142 | 661 |
^ |
662 |
#(#FullSpec |
|
663 |
#name: #standardGroups |
|
664 |
#window: |
|
665 |
#(#WindowSpec |
|
666 |
#label: 'Groups' |
|
667 |
#name: 'Groups' |
|
668 |
#layout: #(#LayoutFrame 92 0 174 0 534 0 395 0) |
|
669 |
#level: 0 |
|
670 |
#min: #(#Point 10 10) |
|
671 |
#max: #(#Point 1280 1024) |
|
672 |
#bounds: #(#Rectangle 92 174 535 396) |
|
673 |
#usePreferredExtent: false |
|
674 |
#returnIsOKInDialog: true |
|
675 |
#escapeIsCancelInDialog: true |
|
676 |
) |
|
677 |
#component: |
|
678 |
#(#SpecCollection |
|
679 |
#collection: #( |
|
680 |
#(#ViewSpec |
|
681 |
#name: 'Box' |
|
682 |
#layout: #(#LayoutFrame 3 0 3 0 208 0 98 0) |
|
683 |
) |
|
684 |
#(#LabelSpec |
|
685 |
#label: 'Box' |
|
686 |
#name: 'ViewLabel' |
|
687 |
#layout: #(#AlignmentOrigin 6 0 5 0 0 0) |
|
688 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
689 |
#resizeForLabel: true |
|
690 |
#adjust: #left |
|
691 |
#canUIDrag: false |
|
692 |
) |
|
693 |
#(#LabelSpec |
|
694 |
#label: 'Variable Panels' |
|
695 |
#name: 'VPanelLabel' |
|
696 |
#layout: #(#LayoutFrame 3 0 104 0 208 0 127 0) |
|
697 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
698 |
#adjust: #left |
|
699 |
#canUIDrag: false |
|
700 |
) |
|
701 |
#(#VariableHorizontalPanelSpec |
|
702 |
#name: 'Variable Horizontal Panel' |
|
703 |
#layout: #(#LayoutFrame 3 0 128 0 98 0 218 0) |
|
704 |
#handles: #(#Any 0.5 1.0) |
|
705 |
#component: |
|
706 |
#(#SpecCollection |
|
707 |
#collection: #( |
|
987 | 708 |
#(#LabelSpec |
1142 | 709 |
#label: 'A' |
710 |
#name: 'label4' |
|
711 |
#level: 2 |
|
712 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
987 | 713 |
#canUIDrag: false |
1142 | 714 |
) |
987 | 715 |
#(#LabelSpec |
1142 | 716 |
#label: 'B' |
717 |
#name: 'label5' |
|
718 |
#level: 2 |
|
719 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
720 |
#canUIDrag: false |
|
721 |
) |
|
722 |
) |
|
723 |
||
724 |
) |
|
725 |
) |
|
726 |
#(#VariableVerticalPanelSpec |
|
727 |
#name: 'Variable Vertical Panel' |
|
728 |
#layout: #(#LayoutFrame 113 0 128 0 208 0 218 0) |
|
729 |
#handles: #(#Any 0.5 1.0) |
|
730 |
#component: |
|
731 |
#(#SpecCollection |
|
732 |
#collection: #( |
|
733 |
#(#LabelSpec |
|
734 |
#label: 'A' |
|
735 |
#name: 'label9' |
|
736 |
#level: 2 |
|
737 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
738 |
#canUIDrag: false |
|
739 |
) |
|
740 |
#(#LabelSpec |
|
741 |
#label: 'B' |
|
742 |
#name: 'label10' |
|
743 |
#level: 2 |
|
744 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
987 | 745 |
#canUIDrag: false |
1142 | 746 |
) |
747 |
) |
|
748 |
||
749 |
) |
|
750 |
) |
|
751 |
#(#FramedBoxSpec |
|
752 |
#label: 'Framed Box' |
|
753 |
#name: 'Framed Box' |
|
754 |
#layout: #(#LayoutFrame 228 0 3 0 433 0 98 0) |
|
755 |
#labelPosition: #topLeft |
|
756 |
#translateLabel: true |
|
757 |
) |
|
758 |
#(#LabelSpec |
|
759 |
#label: 'Panels' |
|
760 |
#name: 'PanelLabel' |
|
761 |
#layout: #(#LayoutFrame 228 0 104 0 433 0 127 0) |
|
762 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
763 |
#adjust: #left |
|
764 |
#canUIDrag: false |
|
765 |
) |
|
766 |
#(#HorizontalPanelViewSpec |
|
767 |
#name: 'Horizontal Panel' |
|
768 |
#layout: #(#LayoutFrame 228 0 128 0 312 0 218 0) |
|
769 |
#horizontalLayout: #center |
|
770 |
#verticalLayout: #center |
|
771 |
#horizontalSpace: 3 |
|
772 |
#verticalSpace: 3 |
|
773 |
#component: |
|
774 |
#(#SpecCollection |
|
775 |
#collection: #( |
|
776 |
#(#LabelSpec |
|
777 |
#label: 'A' |
|
778 |
#name: 'label1' |
|
779 |
#level: 2 |
|
780 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
781 |
#extent: #(#Point 23 23) |
|
782 |
#canUIDrag: false |
|
783 |
) |
|
784 |
#(#LabelSpec |
|
785 |
#label: 'B' |
|
786 |
#name: 'label2' |
|
787 |
#level: 2 |
|
788 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
789 |
#extent: #(#Point 23 23) |
|
790 |
#canUIDrag: false |
|
791 |
) |
|
792 |
#(#LabelSpec |
|
793 |
#label: 'C' |
|
794 |
#name: 'label3' |
|
795 |
#level: 2 |
|
796 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
797 |
#extent: #(#Point 23 23) |
|
798 |
#canUIDrag: false |
|
799 |
) |
|
800 |
) |
|
801 |
||
987 | 802 |
) |
1142 | 803 |
) |
804 |
#(#VerticalPanelViewSpec |
|
805 |
#name: 'Vertical Panel' |
|
806 |
#layout: #(#LayoutFrame 320 0 128 0 367 0 218 0) |
|
807 |
#horizontalLayout: #center |
|
808 |
#verticalLayout: #center |
|
809 |
#horizontalSpace: 3 |
|
810 |
#verticalSpace: 3 |
|
811 |
#component: |
|
812 |
#(#SpecCollection |
|
813 |
#collection: #( |
|
814 |
#(#LabelSpec |
|
815 |
#label: 'A' |
|
816 |
#name: 'label6' |
|
817 |
#level: 2 |
|
818 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
819 |
#extent: #(#Point 23 23) |
|
820 |
#canUIDrag: false |
|
821 |
) |
|
822 |
#(#LabelSpec |
|
823 |
#label: 'B' |
|
824 |
#name: 'label7' |
|
825 |
#level: 2 |
|
826 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
827 |
#extent: #(#Point 23 23) |
|
828 |
#canUIDrag: false |
|
829 |
) |
|
830 |
#(#LabelSpec |
|
831 |
#label: 'C' |
|
832 |
#name: 'label8' |
|
833 |
#level: 2 |
|
834 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
835 |
#extent: #(#Point 23 23) |
|
836 |
#canUIDrag: false |
|
837 |
) |
|
838 |
) |
|
839 |
||
840 |
) |
|
841 |
) |
|
842 |
#(#PanelViewSpec |
|
843 |
#name: 'Panel' |
|
844 |
#layout: #(#LayoutFrame 375 0 128 0 433 0 218 0) |
|
845 |
#horizontalLayout: #fitSpace |
|
846 |
#verticalLayout: #fitSpace |
|
847 |
#horizontalSpace: 3 |
|
848 |
#verticalSpace: 3 |
|
849 |
#component: |
|
850 |
#(#SpecCollection |
|
851 |
#collection: #( |
|
852 |
#(#LabelSpec |
|
853 |
#label: 'A' |
|
854 |
#name: 'label11' |
|
855 |
#level: 2 |
|
856 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
857 |
#extent: #(#Point 23 23) |
|
858 |
#canUIDrag: false |
|
859 |
) |
|
860 |
#(#LabelSpec |
|
861 |
#label: 'B' |
|
862 |
#name: 'label12' |
|
863 |
#level: 2 |
|
864 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
865 |
#extent: #(#Point 23 23) |
|
866 |
#canUIDrag: false |
|
867 |
) |
|
868 |
#(#LabelSpec |
|
869 |
#label: 'C' |
|
870 |
#name: 'label13' |
|
871 |
#level: 2 |
|
872 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
873 |
#extent: #(#Point 23 23) |
|
874 |
#canUIDrag: false |
|
875 |
) |
|
876 |
#(#LabelSpec |
|
877 |
#label: 'D' |
|
878 |
#name: 'label14' |
|
879 |
#level: 2 |
|
880 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
881 |
#extent: #(#Point 23 23) |
|
882 |
#canUIDrag: false |
|
883 |
) |
|
884 |
#(#LabelSpec |
|
885 |
#label: 'E' |
|
886 |
#name: 'label15' |
|
887 |
#level: 2 |
|
888 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
889 |
#extent: #(#Point 23 23) |
|
890 |
#canUIDrag: false |
|
891 |
) |
|
892 |
) |
|
893 |
||
894 |
) |
|
895 |
) |
|
896 |
) |
|
897 |
||
898 |
) |
|
658 | 899 |
) |
900 |
! |
|
901 |
||
902 |
standardLists |
|
797 | 903 |
"This resource specification was automatically generated |
904 |
by the UIPainter of ST/X." |
|
142 | 905 |
|
797 | 906 |
"Do not manually edit this!! If it is corrupted, |
907 |
the UIPainter may not be able to read the specification." |
|
142 | 908 |
|
909 |
" |
|
658 | 910 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardLists |
911 |
UISelectionPanel new openInterface:#standardLists |
|
142 | 912 |
" |
913 |
||
914 |
<resource: #canvas> |
|
915 |
||
1142 | 916 |
^ |
917 |
#(#FullSpec |
|
918 |
#name: #standardLists |
|
919 |
#window: |
|
920 |
#(#WindowSpec |
|
921 |
#label: 'Lists' |
|
922 |
#name: 'Lists' |
|
1179 | 923 |
#layout: #(#LayoutFrame 61 0 96 0 501 0 313 0) |
1142 | 924 |
#min: #(#Point 10 10) |
925 |
#max: #(#Point 1280 1024) |
|
1179 | 926 |
#bounds: #(#Rectangle 61 96 502 314) |
1142 | 927 |
) |
928 |
#component: |
|
929 |
#(#SpecCollection |
|
930 |
#collection: #( |
|
931 |
#(#SequenceViewSpec |
|
932 |
#name: 'List' |
|
1143
b04847a679fc
remove some labels from specs
Claus Gittinger <cg@exept.de>
parents:
1142
diff
changeset
|
933 |
#layout: #(#LayoutFrame 3 0 3 0 208 0 101 0) |
1142 | 934 |
#hasHorizontalScrollBar: true |
935 |
#hasVerticalScrollBar: true |
|
936 |
#useIndex: false |
|
937 |
) |
|
938 |
#(#DataSetSpec |
|
939 |
#name: 'Table' |
|
1143
b04847a679fc
remove some labels from specs
Claus Gittinger <cg@exept.de>
parents:
1142
diff
changeset
|
940 |
#layout: #(#LayoutFrame 228 0 3 0 433 0 101 0) |
1142 | 941 |
#hasHorizontalScrollBar: true |
942 |
#hasVerticalScrollBar: true |
|
943 |
#has3Dsepartors: false |
|
944 |
) |
|
1179 | 945 |
#(#SelectionInListModelViewSpec |
946 |
#name: 'New SelectionInListView' |
|
947 |
#layout: #(#LayoutFrame 3 0 110 0 208 0 208 0) |
|
1142 | 948 |
#hasHorizontalScrollBar: true |
949 |
#hasVerticalScrollBar: true |
|
1179 | 950 |
#useIndex: false |
1142 | 951 |
) |
952 |
) |
|
953 |
||
954 |
) |
|
182 | 955 |
) |
956 |
! |
|
957 |
||
190 | 958 |
standardMenus |
753 | 959 |
"This resource specification was automatically generated |
960 |
by the UIPainter of ST/X." |
|
182 | 961 |
|
753 | 962 |
"Do not manually edit this!! If it is corrupted, |
963 |
the UIPainter may not be able to read the specification." |
|
182 | 964 |
|
965 |
" |
|
302 | 966 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus |
967 |
UISelectionPanel new openInterface:#standardMenus |
|
182 | 968 |
" |
969 |
||
970 |
<resource: #canvas> |
|
971 |
||
1142 | 972 |
^ |
973 |
#(#FullSpec |
|
974 |
#name: #standardMenus |
|
975 |
#window: |
|
976 |
#(#WindowSpec |
|
977 |
#label: 'Menus' |
|
978 |
#name: 'Menus' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
979 |
#layout: #(#LayoutFrame 162 0 182 0 638 0 404 0) |
1142 | 980 |
#min: #(#Point 10 10) |
981 |
#max: #(#Point 1280 1024) |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
982 |
#bounds: #(#Rectangle 162 182 639 405) |
1142 | 983 |
) |
984 |
#component: |
|
985 |
#(#SpecCollection |
|
986 |
#collection: #( |
|
987 |
#(#MenuPanelSpec |
|
988 |
#name: 'Tool Bar' |
|
989 |
#layout: #(#LayoutFrame 4 0 134 0 129 0 166 0) |
|
990 |
#textDefault: true |
|
991 |
) |
|
992 |
#(#LabelSpec |
|
993 |
#label: 'Tool Bar' |
|
994 |
#name: 'ToolBarLabel' |
|
995 |
#layout: #(#AlignmentOrigin 4 0 134 0 0 1) |
|
996 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
997 |
#resizeForLabel: true |
|
998 |
#adjust: #left |
|
999 |
#canUIDrag: false |
|
1000 |
) |
|
1001 |
#(#MenuPanelSpec |
|
1002 |
#name: 'Menu Bar' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1003 |
#layout: #(#LayoutFrame 4 0 188 0 129 0 210 0) |
1142 | 1004 |
) |
1005 |
#(#LabelSpec |
|
1006 |
#label: 'Menu Bar' |
|
1007 |
#name: 'MenuBarLabel' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1008 |
#layout: #(#AlignmentOrigin 4 0 187 0 0 1) |
1142 | 1009 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
1010 |
#resizeForLabel: true |
|
1011 |
#adjust: #left |
|
1012 |
#canUIDrag: false |
|
1013 |
) |
|
1014 |
#(#PopUpListSpec |
|
1015 |
#label: 'PopUp List' |
|
1016 |
#name: 'PopUp List' |
|
1017 |
#layout: #(#LayoutFrame 4 0 3 0 129 0 25 0) |
|
1018 |
#useIndex: false |
|
1019 |
) |
|
1020 |
#(#ComboListSpec |
|
1021 |
#name: 'Combo List' |
|
1022 |
#layout: #(#LayoutFrame 4 0 33 0 129 0 53 0) |
|
1023 |
#useIndex: false |
|
1024 |
) |
|
1025 |
#(#ComboBoxSpec |
|
1026 |
#name: 'Combo Box' |
|
1027 |
#layout: #(#LayoutFrame 4 0 61 0 129 0 81 0) |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1028 |
#acceptOnPointerLeave: false |
1142 | 1029 |
) |
1030 |
#(#ExtendedComboBoxSpec |
|
1031 |
#name: 'Extended Combo Box' |
|
1032 |
#layout: #(#LayoutFrame 4 0 88 0 129 0 108 0) |
|
1033 |
#miniScrollerHorizontal: true |
|
1034 |
) |
|
1035 |
#(#TabViewSpec |
|
1036 |
#name: 'Tab Header' |
|
1037 |
#layout: #(#LayoutFrame 146 0 3 0 281 0 39 0) |
|
1038 |
) |
|
1039 |
#(#NoteBookViewSpec |
|
1040 |
#name: 'Note Book' |
|
1041 |
#layout: #(#LayoutFrame 146 0 46 0 281 0 138 0) |
|
1042 |
) |
|
1043 |
#(#UIGalleryViewSpec |
|
1044 |
#name: 'Gallery' |
|
1045 |
#layout: #(#LayoutFrame 298 0 3 0 434 0 138 0) |
|
1046 |
) |
|
1047 |
) |
|
1048 |
||
1049 |
) |
|
142 | 1050 |
) |
1051 |
! |
|
1052 |
||
658 | 1053 |
standardMisc |
753 | 1054 |
"This resource specification was automatically generated |
1055 |
by the UIPainter of ST/X." |
|
93 | 1056 |
|
753 | 1057 |
"Do not manually edit this!! If it is corrupted, |
1058 |
the UIPainter may not be able to read the specification." |
|
93 | 1059 |
|
1060 |
" |
|
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1061 |
UIPainter new openOnClass:Smalltalk::UISelectionPanel andSelector:#standardMisc |
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1062 |
Smalltalk::UISelectionPanel new openInterface:#standardMisc |
93 | 1063 |
" |
1064 |
||
1065 |
<resource: #canvas> |
|
1066 |
||
1142 | 1067 |
^ |
1068 |
#(#FullSpec |
|
1069 |
#name: #standardMisc |
|
1070 |
#window: |
|
1071 |
#(#WindowSpec |
|
1175 | 1072 |
#label: 'NewApplication' |
1073 |
#name: 'NewApplication' |
|
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1074 |
#layout: #(#LayoutFrame 44 0 195 0 482 0 437 0) |
1142 | 1075 |
#min: #(#Point 10 10) |
1076 |
#max: #(#Point 1280 1024) |
|
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1077 |
#bounds: #(#Rectangle 44 195 483 438) |
1142 | 1078 |
) |
1079 |
#component: |
|
1080 |
#(#SpecCollection |
|
1081 |
#collection: #( |
|
1082 |
#(#LabelSpec |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1083 |
#label: 'StepSlider' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1084 |
#name: 'StepSliderLabel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1085 |
#layout: #(#AlignmentOrigin 87 0 9 0 1 0) |
1142 | 1086 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
1087 |
#resizeForLabel: true |
|
1088 |
#canUIDrag: false |
|
1089 |
) |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1090 |
#(#SteppingSliderSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1091 |
#name: 'StepSlider' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1092 |
#layout: #(#LayoutFrame 88 0 7 0 203 0 25 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1093 |
#orientation: #horizontal |
1142 | 1094 |
) |
1095 |
#(#LabelSpec |
|
1096 |
#label: 'Slider' |
|
1097 |
#name: 'SliderLabel' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1098 |
#layout: #(#AlignmentOrigin 87 0 35 0 1 0) |
1142 | 1099 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
1100 |
#resizeForLabel: true |
|
1101 |
#canUIDrag: false |
|
1102 |
) |
|
1103 |
#(#SliderSpec |
|
1104 |
#name: 'Slider' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1105 |
#layout: #(#LayoutFrame 88 0 34 0 203 0 52 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1106 |
#orientation: #horizontal |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1107 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1108 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1109 |
#label: 'ThumbWheel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1110 |
#name: 'ThumbWheelLabel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1111 |
#layout: #(#AlignmentOrigin 88 0 62 0 1 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1112 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1113 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1114 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1115 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1116 |
#(#ThumbWheelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1117 |
#name: 'Thumb Wheel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1118 |
#layout: #(#LayoutFrame 88 0 60 0 203 0 80 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1119 |
#orientation: #horizontal |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1120 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1121 |
#(#LabelSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1122 |
#label: 'ScrollBar' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1123 |
#name: 'ScrollBarLabel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1124 |
#layout: #(#AlignmentOrigin 87 0 103 0 1 0) |
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1125 |
#initiallyInvisible: true |
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1126 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1127 |
#resizeForLabel: true |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1128 |
#canUIDrag: false |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1129 |
) |
1142 | 1130 |
#(#LabelSpec |
1160 | 1131 |
#label: 'Scroller' |
1132 |
#name: 'ScrollerLabel' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1133 |
#layout: #(#AlignmentOrigin 87 0 130 0 1 0) |
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1134 |
#initiallyInvisible: true |
1160 | 1135 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
1136 |
#resizeForLabel: true |
|
1137 |
#canUIDrag: false |
|
1138 |
) |
|
1139 |
#(#ScrollerSpec |
|
1140 |
#name: 'Scroller' |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1141 |
#layout: #(#LayoutFrame 88 0 127 0 203 0 145 0) |
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1142 |
#initiallyInvisible: true |
1160 | 1143 |
#orientation: #horizontal |
1144 |
) |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1145 |
#(#SteppingSliderSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1146 |
#name: 'VStepSlider' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1147 |
#layout: #(#LayoutFrame 226 0 6 0 244 0 106 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1148 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1149 |
#(#SliderSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1150 |
#name: 'VSlider' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1151 |
#layout: #(#LayoutFrame 254 0 6 0 272 0 106 0) |
1142 | 1152 |
) |
1153 |
#(#ThumbWheelSpec |
|
1168
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1154 |
#name: 'VThumbWheel' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1155 |
#layout: #(#LayoutFrame 280 0 6 0 298 0 106 0) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1156 |
) |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1157 |
#(#ScrollerSpec |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1158 |
#name: 'VScroller' |
d297bc428326
separated misc into embed & misc;
Claus Gittinger <cg@exept.de>
parents:
1160
diff
changeset
|
1159 |
#layout: #(#LayoutFrame 345 0 6 0 363 0 106 0) |
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1160 |
#initiallyInvisible: true |
1142 | 1161 |
) |
1162 |
#(#LabelSpec |
|
1163 |
#label: 'Region' |
|
1164 |
#name: 'RegionLabel' |
|
1165 |
#layout: #(#AlignmentOrigin 83 0 177 0 1 0) |
|
1166 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1167 |
#resizeForLabel: true |
|
1168 |
#adjust: #left |
|
1169 |
#canUIDrag: false |
|
1170 |
) |
|
1171 |
#(#RegionSpec |
|
1172 |
#name: 'Region' |
|
1173 |
#layout: #(#LayoutFrame 88 0 171 0 203 0 200 0) |
|
1174 |
#lineWidth: 2 |
|
1175 |
#regionType: #ellipse |
|
1176 |
) |
|
1177 |
#(#LabelSpec |
|
1178 |
#label: 'Separator' |
|
1179 |
#name: 'SeparatorLabel' |
|
1180 |
#layout: #(#AlignmentOrigin 83 0 207 0 1 0) |
|
1181 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1182 |
#resizeForLabel: true |
|
1183 |
#adjust: #left |
|
1184 |
#canUIDrag: false |
|
1185 |
) |
|
1186 |
#(#DividerSpec |
|
1187 |
#name: 'Separator' |
|
1188 |
#layout: #(#LayoutFrame 88 0 213 0 203 0 217 0) |
|
1189 |
) |
|
1190 |
#(#LabelSpec |
|
1191 |
#label: 'Progress Indicator' |
|
1192 |
#name: 'ProgressIndicatorsLabel' |
|
1193 |
#layout: #(#AlignmentOrigin 333 0 117 0 1 0) |
|
1194 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1195 |
#resizeForLabel: true |
|
1196 |
#adjust: #left |
|
1197 |
#canUIDrag: false |
|
1198 |
) |
|
1199 |
#(#ProgressIndicatorSpec |
|
1200 |
#name: 'Progress Indicator' |
|
1201 |
#layout: #(#LayoutFrame 338 0 114 0 433 0 132 0) |
|
1202 |
) |
|
1203 |
#(#LabelSpec |
|
1204 |
#label: 'Round |
|
753 | 1205 |
Progress Indicator' |
1142 | 1206 |
#name: 'RoundProgressIndicatorsLabel' |
1207 |
#layout: #(#AlignmentOrigin 333 0 167 0 1 0) |
|
1208 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1209 |
#resizeForLabel: true |
|
1210 |
#adjust: #left |
|
1211 |
#canUIDrag: false |
|
1212 |
) |
|
1213 |
#(#RoundProgressIndicatorSpec |
|
1214 |
#name: 'Round Progress Indicator' |
|
1215 |
#layout: #(#LayoutFrame 338 0 136 0 425 0 219 0) |
|
1216 |
#level: 0 |
|
1217 |
#borderWidth: 1 |
|
1218 |
) |
|
1175 | 1219 |
#(#ScrollBarSpec |
1220 |
#name: 'ScrollBar' |
|
1221 |
#layout: #(#LayoutFrame 88 0 100 0 203 0 118 0) |
|
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1222 |
#initiallyInvisible: true |
1175 | 1223 |
#orientation: #horizontal |
1224 |
) |
|
1225 |
#(#ScrollBarSpec |
|
1226 |
#name: 'VScrollBar' |
|
1227 |
#layout: #(#LayoutFrame 317 0 6 0 335 0 106 0) |
|
1178
b348c8e9a1c7
made ScrollBars and Scrollers invisible;
Claus Gittinger <cg@exept.de>
parents:
1175
diff
changeset
|
1228 |
#initiallyInvisible: true |
1175 | 1229 |
) |
1142 | 1230 |
) |
1231 |
||
1232 |
) |
|
93 | 1233 |
) |
1234 |
! |
|
1235 |
||
677 | 1236 |
standardTexts |
795
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1237 |
"This resource specification was automatically generated |
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1238 |
by the UIPainter of ST/X." |
93 | 1239 |
|
795
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1240 |
"Do not manually edit this!! If it is corrupted, |
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1241 |
the UIPainter may not be able to read the specification." |
93 | 1242 |
|
1243 |
" |
|
677 | 1244 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardTexts |
1245 |
UISelectionPanel new openInterface:#standardTexts |
|
93 | 1246 |
" |
1247 |
||
1248 |
<resource: #canvas> |
|
1249 |
||
1142 | 1250 |
^ |
1251 |
#(#FullSpec |
|
1252 |
#name: #standardTexts |
|
1253 |
#window: |
|
1254 |
#(#WindowSpec |
|
1255 |
#label: 'Texts' |
|
1256 |
#name: 'Texts' |
|
1257 |
#min: #(#Point 10 10) |
|
1258 |
#max: #(#Point 1280 1024) |
|
1408 | 1259 |
#bounds: #(#Rectangle 12 22 451 202) |
1142 | 1260 |
) |
1261 |
#component: |
|
1262 |
#(#SpecCollection |
|
1263 |
#collection: #( |
|
1264 |
#(#TextEditorSpec |
|
1265 |
#name: 'Text Editor' |
|
1266 |
#layout: #(#LayoutFrame 3 0 3 0 208 0 98 0) |
|
1267 |
#hasHorizontalScrollBar: true |
|
1268 |
#hasVerticalScrollBar: true |
|
1269 |
) |
|
1270 |
#(#HTMLViewSpec |
|
1271 |
#name: 'HTML Browser' |
|
1272 |
#layout: #(#LayoutFrame 228 0 3 0 433 0 98 0) |
|
1273 |
#hasHorizontalScrollBar: true |
|
1274 |
#hasVerticalScrollBar: true |
|
1275 |
) |
|
1276 |
#(#InputFieldSpec |
|
1277 |
#name: 'Entry Field' |
|
1278 |
#layout: #(#LayoutFrame 3 0 113 0 208 0 135 0) |
|
1408 | 1279 |
#acceptOnPointerLeave: false |
1280 |
) |
|
1281 |
#(#FilenameInputFieldSpec |
|
1282 |
#name: 'Filename Entry Field' |
|
1283 |
#layout: #(#LayoutFrame 3 0 141 0 208 0 163 0) |
|
1284 |
#acceptOnPointerLeave: false |
|
1142 | 1285 |
) |
1286 |
#(#LabelSpec |
|
1287 |
#label: 'Label' |
|
1288 |
#name: 'Label' |
|
1289 |
#layout: #(#LayoutFrame 228 0 113 0 433 0 135 0) |
|
1290 |
#translateLabel: true |
|
1291 |
) |
|
1292 |
) |
|
1293 |
||
1294 |
) |
|
97 | 1295 |
) |
1296 |
! |
|
1297 |
||
1179 | 1298 |
standardTrees |
1299 |
"This resource specification was automatically generated |
|
1300 |
by the UIPainter of ST/X." |
|
1301 |
||
1302 |
"Do not manually edit this!! If it is corrupted, |
|
1303 |
the UIPainter may not be able to read the specification." |
|
1304 |
||
1305 |
" |
|
1306 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardTrees |
|
1307 |
UISelectionPanel new openInterface:#standardTrees |
|
1308 |
" |
|
1309 |
||
1310 |
<resource: #canvas> |
|
1311 |
||
1312 |
^ |
|
1313 |
#(#FullSpec |
|
1314 |
#name: #standardTrees |
|
1315 |
#window: |
|
1316 |
#(#WindowSpec |
|
1317 |
#label: 'Trees' |
|
1318 |
#name: 'Trees' |
|
1319 |
#layout: #(#LayoutFrame 61 0 96 0 501 0 313 0) |
|
1320 |
#min: #(#Point 10 10) |
|
1321 |
#max: #(#Point 1280 1024) |
|
1322 |
#bounds: #(#Rectangle 61 96 502 314) |
|
1323 |
) |
|
1324 |
#component: |
|
1325 |
#(#SpecCollection |
|
1326 |
#collection: #( |
|
1327 |
#(#SelectionInTreeViewSpec |
|
1328 |
#name: 'Tree List' |
|
1329 |
#layout: #(#LayoutFrame 4 0 3 0 209 0 101 0) |
|
1330 |
#hasHorizontalScrollBar: true |
|
1331 |
#hasVerticalScrollBar: true |
|
1332 |
#highlightMode: #line |
|
1333 |
) |
|
1334 |
#(#FileSelectionTreeSpec |
|
1335 |
#name: 'File Tree List' |
|
1336 |
#layout: #(#LayoutFrame 229 0 3 0 434 0 101 0) |
|
1337 |
#hasHorizontalScrollBar: true |
|
1338 |
#hasVerticalScrollBar: true |
|
1339 |
#highlightMode: #line |
|
1340 |
) |
|
1341 |
#(#HierarchicalListViewSpec |
|
1342 |
#name: 'New ModelTree List' |
|
1343 |
#layout: #(#LayoutFrame 4 0 110 0 209 0 208 0) |
|
1344 |
#hasHorizontalScrollBar: true |
|
1345 |
#hasVerticalScrollBar: true |
|
1346 |
#highlightMode: #line |
|
1347 |
) |
|
1348 |
) |
|
1349 |
||
1350 |
) |
|
1351 |
) |
|
1352 |
! |
|
1353 |
||
190 | 1354 |
standardUserPanel |
93 | 1355 |
"this window spec was automatically generated by the ST/X UIPainter" |
1356 |
||
1357 |
"do not manually edit this - the painter/builder may not be able to |
|
1358 |
handle the specification if its corrupted." |
|
1359 |
||
1360 |
" |
|
190 | 1361 |
UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel |
1362 |
UISelectionPanel new openInterface:#standardUserPanel |
|
182 | 1363 |
" |
1364 |
||
1365 |
<resource: #canvas> |
|
1366 |
||
1367 |
^ |
|
1368 |
||
1369 |
#(#FullSpec |
|
987 | 1370 |
#'window:' |
1371 |
#(#WindowSpec |
|
1372 |
#'name:' 'UserPanel' |
|
1373 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1374 |
#'label:' 'UserPanel' |
|
1375 |
#'bounds:' #(#Rectangle 0 0 445 162) |
|
1376 |
) |
|
1377 |
#'component:' |
|
1378 |
#(#SpecCollection |
|
1379 |
#'collection:' |
|
1380 |
#( |
|
1381 |
#(#LabelSpec |
|
1382 |
#'name:' 'helpText' |
|
1383 |
#'layout:' #(#Point 10 0) |
|
1384 |
#'labelChannel:' #userDefinedHelpText |
|
1385 |
#'resizeForLabel:' true |
|
1386 |
#'canUIDrag:' false |
|
1387 |
) |
|
1388 |
) |
|
1389 |
) |
|
182 | 1390 |
) |
93 | 1391 |
! ! |
1392 |
||
182 | 1393 |
!UISelectionPanel methodsFor:'actions'! |
1394 |
||
1395 |
defineClassAndSelector |
|
1396 |
|bd cls sel lbl| |
|
1397 |
||
1398 |
bd := IdentityDictionary new. |
|
1399 |
bd at:#className put:( userClass asValue). |
|
1400 |
bd at:#specsKey put:( (userSpecs ? '') asValue). |
|
1401 |
bd at:#labelsKey put:( (userLabels ? '') asValue). |
|
1402 |
bd at:#updateDefaultResources put:(false asValue). |
|
1403 |
||
1404 |
(self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[ |
|
987 | 1405 |
( (cls := (bd at:#className) value) notNil |
1406 |
and:[(sel := (bd at:#specsKey) value) notNil |
|
1407 |
and:[(lbl := (bd at:#labelsKey) value) notNil]] |
|
1408 |
) ifTrue:[ |
|
1409 |
userClass := cls. |
|
1410 |
userSpecs := sel. |
|
1411 |
userLabels := lbl. |
|
182 | 1412 |
|
987 | 1413 |
(bd at:#updateDefaultResources) value ifTrue:[ |
1414 |
UserClass := userClass. |
|
1415 |
UserSpecs := userSpecs. |
|
1416 |
UserLabels := userLabels. |
|
1417 |
] |
|
1418 |
] |
|
182 | 1419 |
]. |
1420 |
! |
|
1421 |
||
1422 |
paste:something |
|
1423 |
"paste something at a point |
|
1424 |
" |
|
1142 | 1425 |
|coll specs point device ext spec| |
182 | 1426 |
|
1427 |
clipBoardSpec isNil ifTrue:[ |
|
987 | 1428 |
clipBoardSpec := SpecCollection new. |
1429 |
clipBoardSpec collection:(OrderedCollection new). |
|
182 | 1430 |
]. |
1142 | 1431 |
coll := clipBoardSpec collection. |
1432 |
device := gallery device. |
|
182 | 1433 |
|
1142 | 1434 |
point := device translatePoint:(device pointerPosition) |
1435 |
from:(device rootView id) |
|
1436 |
to:(gallery canvas id). |
|
182 | 1437 |
|
1438 |
point y < 1 ifTrue:[point y:1]. |
|
1439 |
ext := gallery extent - (10@10). |
|
93 | 1440 |
|
182 | 1441 |
(specs := something) isCollection ifFalse:[ |
987 | 1442 |
specs := Array with:something |
182 | 1443 |
]. |
1444 |
||
1445 |
specs do:[:aSpec| |
|
987 | 1446 |
point x > ext x ifTrue:[point x:1]. |
1447 |
point y > ext y ifTrue:[point y:1]. |
|
182 | 1448 |
|
987 | 1449 |
spec := aSpec copy. |
1450 |
spec layout:(LayoutOrigin fromPoint:point). |
|
1451 |
coll add:spec. |
|
1452 |
point := point + (20@20). |
|
182 | 1453 |
]. |
1454 |
gallery update. |
|
1455 |
! |
|
1456 |
||
1457 |
raiseMenu |
|
1458 |
"can open menu |
|
1459 |
" |
|
251 | 1460 |
|spec menu value paste| |
182 | 1461 |
|
1462 |
spec := self clientSpec value. |
|
112 | 1463 |
|
182 | 1464 |
spec notNil ifTrue:[ |
987 | 1465 |
menu := self class menuSelected decodeAsLiteralArray. |
1466 |
self isClipBoard ifFalse:[ |
|
1467 |
(menu someMenuItemWithValue:#cut) disable. |
|
1468 |
]. |
|
182 | 1469 |
|
987 | 1470 |
(value := menu startUp) == #cut ifTrue:[ |
1471 |
clipBoardSpec collection remove:spec ifAbsent:nil. |
|
1142 | 1472 |
gallery update. |
987 | 1473 |
] ifFalse:[ |
1474 |
value == #copy ifTrue:[ |
|
1475 |
self window setSelection:spec |
|
1476 |
] |
|
1477 |
]. |
|
182 | 1478 |
^ self |
1479 |
]. |
|
1480 |
||
1481 |
self isUserBoard ifTrue:[ |
|
987 | 1482 |
^ self defineClassAndSelector |
182 | 1483 |
]. |
1484 |
||
1485 |
paste := self window getSelection. |
|
1486 |
||
1487 |
(self canPaste:paste) ifTrue:[ |
|
987 | 1488 |
menu := self class menuUnselected decodeAsLiteralArray. |
182 | 1489 |
|
987 | 1490 |
(menu startUp) == #paste ifTrue:[ |
1491 |
self paste:paste |
|
1492 |
] |
|
182 | 1493 |
]. |
112 | 1494 |
! ! |
1495 |
||
1496 |
!UISelectionPanel methodsFor:'aspects'! |
|
1497 |
||
182 | 1498 |
clientSpec |
1142 | 1499 |
^ gallery clientSpecHolder |
93 | 1500 |
! |
1501 |
||
182 | 1502 |
clipBoardSpec |
1503 |
^ clipBoardSpec |
|
1504 |
! |
|
1505 |
||
1142 | 1506 |
gallery |
1507 |
^ gallery |
|
1508 |
! |
|
112 | 1509 |
|
1142 | 1510 |
galleryList |
1511 |
^ gallery listHolder |
|
182 | 1512 |
! |
112 | 1513 |
|
182 | 1514 |
galleryModel |
1142 | 1515 |
^ gallery model |
112 | 1516 |
|
1517 |
! |
|
1518 |
||
182 | 1519 |
majorChannel |
1520 |
"automatically generated by UIPainter ..." |
|
112 | 1521 |
|
182 | 1522 |
|holder| |
1523 |
||
1524 |
(holder := builder bindingAt:#majorChannel) isNil ifTrue:[ |
|
987 | 1525 |
holder := AspectAdaptor new subject:self; forAspect:#majorSelection. |
1526 |
builder aspectAt:#majorChannel put:holder. |
|
139 | 1527 |
]. |
182 | 1528 |
^ holder |
1529 |
! |
|
1530 |
||
1531 |
majorList |
|
1532 |
"automatically generated by UIPainter ... |
|
1533 |
" |
|
1534 |
^ self class specifications collect:[:el| el first] |
|
1535 |
! |
|
1536 |
||
1537 |
minorKeys |
|
1142 | 1538 |
^ gallery minorKeysHolder |
112 | 1539 |
! ! |
1540 |
||
182 | 1541 |
!UISelectionPanel methodsFor:'change & update'! |
112 | 1542 |
|
182 | 1543 |
update:something with:aParameter from:changedObject |
1544 |
"one of my models changed its value |
|
112 | 1545 |
" |
302 | 1546 |
|channel label topView| |
112 | 1547 |
|
182 | 1548 |
(channel := self clientSpec) == changedObject ifTrue:[ |
987 | 1549 |
topView := builder window topView. |
93 | 1550 |
|
987 | 1551 |
(label := channel value) notNil ifTrue:[ |
1552 |
topView label:label name, ' '. |
|
1553 |
] ifFalse:[ |
|
1554 |
topView label:'Widget Gallery ' |
|
1555 |
] |
|
93 | 1556 |
]. |
1557 |
||
182 | 1558 |
super update:something with:aParameter from:changedObject. |
112 | 1559 |
|
1560 |
||
1561 |
! ! |
|
1562 |
||
182 | 1563 |
!UISelectionPanel methodsFor:'drag & drop'! |
112 | 1564 |
|
182 | 1565 |
canDrop:something in:aComponent |
1566 |
^ self canPaste:(something collect:[:el| el theObject ]). |
|
112 | 1567 |
! |
1568 |
||
182 | 1569 |
drop:something in:aComponent at:aPoint |
1570 |
||
1571 |
|spc top| |
|
1572 |
||
1061
7400e3e3daf6
Use #query instead of #raise when invoking QuerySignals
Stefan Vogel <sv@exept.de>
parents:
1044
diff
changeset
|
1573 |
top := DragAndDropManager dragOriginatorQuerySignal query topView. |
182 | 1574 |
|
1575 |
top == aComponent topView ifTrue:[ |
|
987 | 1576 |
spc := self clientSpec value. |
1577 |
spc isNil ifTrue:[^ self]. |
|
182 | 1578 |
|
987 | 1579 |
(clipBoardSpec collection remove:spc ifAbsent:nil) isNil ifTrue:[ |
1580 |
^ self |
|
1581 |
]. |
|
182 | 1582 |
] ifFalse:[ |
987 | 1583 |
spc := something collect:[:el| el theObject]. |
182 | 1584 |
]. |
1585 |
self paste:spc. |
|
1061
7400e3e3daf6
Use #query instead of #raise when invoking QuerySignals
Stefan Vogel <sv@exept.de>
parents:
1044
diff
changeset
|
1586 |
|
7400e3e3daf6
Use #query instead of #raise when invoking QuerySignals
Stefan Vogel <sv@exept.de>
parents:
1044
diff
changeset
|
1587 |
"Modified: / 18.3.1999 / 18:29:19 / stefan" |
182 | 1588 |
! ! |
1589 |
||
1590 |
!UISelectionPanel methodsFor:'queries'! |
|
1591 |
||
1592 |
canPaste:something |
|
1593 |
"returns true if something could be paste |
|
112 | 1594 |
" |
182 | 1595 |
(self isClipBoard and:[something notNil]) ifTrue:[ |
987 | 1596 |
something isCollection ifTrue:[ |
1597 |
something notEmpty ifTrue:[ |
|
1598 |
^ (something at:1) isKindOf:UISpecification |
|
1599 |
] |
|
1600 |
] ifFalse:[ |
|
1601 |
^ something isKindOf:UISpecification |
|
1602 |
] |
|
182 | 1603 |
]. |
1604 |
^ false |
|
112 | 1605 |
|
1606 |
! |
|
1607 |
||
182 | 1608 |
isClipBoard |
1609 |
"returns true if current view is clip board |
|
1610 |
" |
|
291 | 1611 |
majorSelection ~~ 0 ifTrue:[ |
987 | 1612 |
^ (self majorList at:majorSelection) startsWith:'Clip' |
182 | 1613 |
]. |
1614 |
^ false |
|
1615 |
! |
|
1616 |
||
1617 |
isUserBoard |
|
1618 |
"returns true if current view is clip board |
|
112 | 1619 |
" |
291 | 1620 |
majorSelection ~~ 0 ifTrue:[ |
987 | 1621 |
^ (self majorList at:majorSelection) startsWith:'User' |
182 | 1622 |
]. |
1623 |
^ false |
|
1624 |
! ! |
|
1625 |
||
1626 |
!UISelectionPanel methodsFor:'selection'! |
|
1627 |
||
1628 |
majorSelection |
|
291 | 1629 |
^ majorSelection ? 0 |
182 | 1630 |
! |
1631 |
||
1632 |
majorSelection:aSelection |
|
1142 | 1633 |
|spec model| |
112 | 1634 |
|
291 | 1635 |
(majorSelection == aSelection or:[aSelection == 0]) ifTrue:[ |
987 | 1636 |
^ self |
167 | 1637 |
]. |
684 | 1638 |
|
1142 | 1639 |
gallery builder:nil. |
182 | 1640 |
majorSelection := aSelection. |
684 | 1641 |
spec := ((self class specifications) at:majorSelection) last. |
1642 |
||
1142 | 1643 |
model := self galleryModel. |
1644 |
model value:0. |
|
684 | 1645 |
self minorKeys value:nil. |
182 | 1646 |
|
1647 |
spec isSymbol ifFalse:[ |
|
987 | 1648 |
self galleryList value:(spec collect:[:a| a first]). |
1649 |
self minorKeys setValue:(spec collect:[:a| a last]). |
|
182 | 1650 |
] ifTrue:[ |
987 | 1651 |
self perform:spec. |
182 | 1652 |
]. |
1142 | 1653 |
model value:1. |
182 | 1654 |
|
795
9987c25de0f9
ALWAYS USE DEFAULT FONTS !!!!!!!
Claus Gittinger <cg@exept.de>
parents:
753
diff
changeset
|
1655 |
"Modified: / 21.4.1998 / 11:59:08 / cg" |
112 | 1656 |
! ! |
1657 |
||
182 | 1658 |
!UISelectionPanel methodsFor:'startup / release'! |
112 | 1659 |
|
182 | 1660 |
closeRequest |
1661 |
|sav| |
|
112 | 1662 |
|
182 | 1663 |
(sav := masterApplication) notNil ifTrue:[ |
987 | 1664 |
masterApplication := nil. |
1665 |
sav closeRequestFor:(self window). |
|
1666 |
masterApplication := sav. |
|
182 | 1667 |
] ifFalse:[ |
987 | 1668 |
super closeRequest. |
182 | 1669 |
] |
244
b70597d2a39b
do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
1670 |
|
b70597d2a39b
do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
1671 |
"Modified: 28.7.1997 / 09:44:40 / cg" |
182 | 1672 |
! |
112 | 1673 |
|
291 | 1674 |
initialize |
1142 | 1675 |
|holder| |
1676 |
||
291 | 1677 |
super initialize. |
684 | 1678 |
|
1679 |
userClass := UserClass. |
|
1680 |
userSpecs := UserSpecs. |
|
1681 |
userLabels := UserLabels. |
|
1682 |
||
1142 | 1683 |
gallery := UIGalleryView new. |
1684 |
||
1685 |
gallery model:(ValueHolder new). |
|
1686 |
gallery listHolder:(ValueHolder new). |
|
1687 |
gallery minorKeysHolder:(ValueHolder new). |
|
1688 |
gallery menuSelector:#raiseMenu. |
|
1689 |
||
1690 |
gallery clientSpecHolder:(holder := ValueHolder new). |
|
1691 |
holder addDependent:self. |
|
1692 |
||
291 | 1693 |
majorSelection := 0. |
1694 |
! |
|
1695 |
||
684 | 1696 |
postOpenWith:aBuilder |
182 | 1697 |
self majorChannel value:1. |
112 | 1698 |
! ! |
1699 |
||
182 | 1700 |
!UISelectionPanel methodsFor:'user defined'! |
1701 |
||
1702 |
userDefined |
|
1703 |
|cls lbl sel builder| |
|
329 | 1704 |
|
1705 |
cls := self resolveName:userClass. |
|
1706 |
||
1707 |
(cls notNil and:[(cls respondsTo:userLabels)]) ifTrue:[ |
|
987 | 1708 |
lbl := cls perform:userLabels. |
1709 |
sel := Array new:(lbl size) withAll:#userDefinedSpec. |
|
1710 |
self galleryList value:lbl. |
|
1711 |
self minorKeys value:sel. |
|
329 | 1712 |
] ifFalse:[ |
987 | 1713 |
builder := UIBuilder new isEditing:true. |
397 | 1714 |
|
987 | 1715 |
builder application:self. |
1142 | 1716 |
gallery builder:builder. |
987 | 1717 |
self galleryList value:#( '???' ). |
1718 |
self minorKeys value:#( standardUserPanel ). |
|
329 | 1719 |
] |
182 | 1720 |
! |
147 | 1721 |
|
182 | 1722 |
userDefinedHelpText |
1723 |
||
1724 |
^ ' |
|
1725 |
no user defined specifications are configured yet. To assign |
|
1726 |
user defined specifications to the gallery press the middle |
|
1727 |
button of your mouse to open a dialog. |
|
1728 |
' |
|
1729 |
! |
|
1730 |
||
1731 |
userDefinedSpec |
|
1732 |
|cls spc idx| |
|
93 | 1733 |
|
329 | 1734 |
cls := self resolveName:userClass. |
182 | 1735 |
|
329 | 1736 |
(cls notNil and:[(cls respondsTo:userSpecs)]) ifTrue:[ |
987 | 1737 |
spc := cls perform:userSpecs. |
1738 |
idx := self galleryModel value. |
|
329 | 1739 |
|
987 | 1740 |
idx <= spc size ifTrue:[ |
1741 |
spc := spc at:idx. |
|
1742 |
(cls respondsTo:spc) ifTrue:[ |
|
1743 |
^ cls perform:spc |
|
1744 |
] |
|
1745 |
] |
|
93 | 1746 |
]. |
147 | 1747 |
^ nil |
93 | 1748 |
! ! |
1749 |
||
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1750 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'class initialization'! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1751 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1752 |
initialize |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1753 |
"initialize my default user-def from the superclasses specs. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1754 |
I.e. provide a clocks entry" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1755 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1756 |
LabelList := self defaultListOfLabels asOrderedCollection. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1757 |
SelectorList := self defaultListOfSelectors asOrderedCollection. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1758 |
HolderList := OrderedCollection new grow:(SelectorList size). |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1759 |
NextUniqueNumber := 1. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1760 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1761 |
UISelectionPanel |
987 | 1762 |
userClass:self |
1763 |
specSelector:#listOfSelectors |
|
1764 |
labelSelector:#listOfLabels. |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1765 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1766 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1767 |
self initialize |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1768 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1769 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1770 |
"Modified: / 5.12.1997 / 14:25:22 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1771 |
"Created: / 8.12.1997 / 18:49:42 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1772 |
! ! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1773 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1774 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'defaults'! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1775 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1776 |
defaultListOfLabels |
987 | 1777 |
^ #( 'Clocks etc.' 'Business Graphics' ) |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1778 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1779 |
"Created: / 8.12.1997 / 18:50:06 / cg" |
864 | 1780 |
"Modified: / 16.6.1998 / 10:20:12 / cg" |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1781 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1782 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1783 |
defaultListOfSelectors |
987 | 1784 |
^ #( clocksSpec businessGraphicsSpec) |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1785 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1786 |
"Modified: / 5.12.1997 / 14:03:55 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1787 |
"Created: / 8.12.1997 / 18:50:21 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1788 |
! ! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1789 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1790 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'documentation'! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1791 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1792 |
copyright |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1793 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1794 |
COPYRIGHT (c) 1997 by eXept Software AG |
987 | 1795 |
All Rights Reserved |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1796 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1797 |
This software is furnished under a license and may be used |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1798 |
only in accordance with the terms of that license and with the |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1799 |
inclusion of the above copyright notice. This software may not |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1800 |
be provided or otherwise made available to, or used by, any |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1801 |
other person. No title to or ownership of the software is |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1802 |
hereby transferred. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1803 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1804 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1805 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1806 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1807 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1808 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1809 |
documentation |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1810 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1811 |
The standard user-defined selectionPanel entry. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1812 |
Here, a single item named 'clocks' is provided, containing |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1813 |
an analog and digital clock. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1814 |
This is a dump example; the actual user-defined panel may be |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1815 |
extended dynamically. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1816 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1817 |
Frameworks which provide additional widgets may dynamically |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1818 |
add more entries, by sending #addUserSpecHolder:label: |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1819 |
or #removeUserSpecWithLabel:. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1820 |
Typically, this is done when a framework is loaded, by one of the |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1821 |
frameworks class-initialization methods. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1822 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1823 |
[start with:] |
987 | 1824 |
UISelectionPanel open |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1825 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1826 |
[author:] |
987 | 1827 |
Claus Gittinger |
1828 |
Claus Atzkern |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1829 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1830 |
[see also:] |
987 | 1831 |
TabView |
1832 |
NoteBookView |
|
1833 |
UIGalleryView |
|
1834 |
UIPainter |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1835 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1836 |
" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1837 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1838 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1839 |
! ! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1840 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1841 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'installation / deinstallation'! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1842 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1843 |
addUserSpecHolder:aValueHolder label:aLabelString |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1844 |
"add a new entry with the given label. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1845 |
The specHolder is typically either a spec, a valueHolder or a block. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1846 |
In any case, it should return a valid spec from the #value message. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1847 |
This spec is installed under that label." |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1848 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1849 |
|syntheticSelector idx| |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1850 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1851 |
syntheticSelector := ('userSpec' , NextUniqueNumber printString) asSymbol. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1852 |
NextUniqueNumber := NextUniqueNumber + 1. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1853 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1854 |
idx := LabelList indexOf:aLabelString. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1855 |
idx ~~ 0 ifTrue:[ |
987 | 1856 |
SelectorList at:idx put:syntheticSelector. |
1857 |
HolderList at:idx put:aValueHolder |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1858 |
] ifFalse:[ |
987 | 1859 |
LabelList addLast:aLabelString. |
1860 |
SelectorList addLast:syntheticSelector. |
|
1861 |
HolderList addLast:aValueHolder |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1862 |
] |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1863 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1864 |
"Modified: / 5.12.1997 / 14:13:17 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1865 |
"Created: / 8.12.1997 / 18:50:55 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1866 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1867 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1868 |
removeUserSpecWithLabel:aLabelString |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1869 |
"remove the spec which was previously installed under the given label" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1870 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1871 |
|idx| |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1872 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1873 |
idx := LabelList indexOf:aLabelString. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1874 |
idx ~~ 0 ifTrue:[ |
987 | 1875 |
LabelList removeIndex:idx. |
1876 |
SelectorList removeIndex:idx. |
|
1877 |
HolderList removeIndex:idx |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1878 |
]. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1879 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1880 |
"Modified: / 5.12.1997 / 14:13:45 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1881 |
"Created: / 8.12.1997 / 18:51:03 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1882 |
! ! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1883 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1884 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'user defined gallery'! |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1885 |
|
987 | 1886 |
businessGraphicsSpec |
1887 |
"This resource specification was automatically generated |
|
1888 |
by the UIPainter of ST/X." |
|
1889 |
||
1890 |
"Do not manually edit this!! If it is corrupted, |
|
1891 |
the UIPainter may not be able to read the specification." |
|
1892 |
||
1893 |
" |
|
1894 |
UIPainter new openOnClass:UISelectionPanel::UserDefinedGallery andSelector:#businessGraphicsSpec |
|
1895 |
UISelectionPanel::UserDefinedGallery new openInterface:#businessGraphicsSpec |
|
1896 |
" |
|
1897 |
||
1898 |
<resource: #canvas> |
|
1899 |
||
1900 |
^ |
|
1901 |
||
1902 |
#(#FullSpec |
|
1903 |
#window: |
|
1904 |
#(#WindowSpec |
|
1905 |
#name: 'Interface Builder' |
|
1906 |
#layout: #(#LayoutFrame 6 0 582 0 385 0 852 0) |
|
1907 |
#label: 'Interface Builder' |
|
1908 |
#min: #(#Point 10 10) |
|
1909 |
#max: #(#Point 1280 1024) |
|
1910 |
#bounds: #(#Rectangle 6 582 386 853) |
|
1911 |
#usePreferredExtent: false |
|
1912 |
) |
|
1913 |
#component: |
|
1914 |
#(#SpecCollection |
|
1915 |
#collection: |
|
1916 |
#( |
|
1917 |
#(#LabelSpec |
|
1918 |
#name: 'Label2' |
|
1919 |
#layout: #(#LayoutFrame 5 0 5 0 70 0 20 0) |
|
1920 |
#label: 'PieChart' |
|
1921 |
#translateLabel: true |
|
1922 |
#canUIDrag: false |
|
1923 |
) |
|
1924 |
#(#PieChartWidgetSpec |
|
1925 |
#name: 'PIE Chart' |
|
1926 |
#layout: #(#LayoutFrame 15 0 21 0 103 0 141 0) |
|
1927 |
) |
|
1928 |
#(#LabelSpec |
|
1929 |
#name: 'Label1' |
|
1930 |
#layout: #(#LayoutFrame 16 0.0 146 0 131 0 161 0) |
|
1931 |
#label: 'ChartDescription' |
|
1932 |
#translateLabel: true |
|
1933 |
#adjust: #left |
|
1934 |
#canUIDrag: false |
|
1935 |
) |
|
1936 |
#(#ChartDescriptionSpec |
|
1937 |
#name: 'Chart Legend' |
|
1938 |
#layout: #(#LayoutFrame 14 0.0 -4 0.656827 14 0.323684 -4 1.0) |
|
1939 |
) |
|
1940 |
#(#LabelSpec |
|
1941 |
#name: 'Label3' |
|
1942 |
#layout: #(#LayoutFrame 115 0 5 0 180 0 20 0) |
|
1943 |
#label: 'BarChart' |
|
1944 |
#translateLabel: true |
|
1945 |
#canUIDrag: false |
|
1946 |
) |
|
1947 |
#(#BarChartWidgetSpec |
|
1948 |
#name: 'Bar Chart' |
|
1949 |
#layout: #(#LayoutFrame 121 0 21 0 232 0 141 0) |
|
1950 |
) |
|
1951 |
) |
|
1952 |
) |
|
1953 |
) |
|
1954 |
! |
|
1955 |
||
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1956 |
clocksSpec |
864 | 1957 |
"This resource specification was automatically generated |
1958 |
by the UIPainter of ST/X." |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1959 |
|
864 | 1960 |
"Do not manually edit this!! If it is corrupted, |
1961 |
the UIPainter may not be able to read the specification." |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1962 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1963 |
" |
726 | 1964 |
UIPainter new openOnClass:UISelectionPanel::UserDefinedGallery andSelector:#clocksSpec |
1965 |
UISelectionPanel::UserDefinedGallery new openInterface:#clocksSpec |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1966 |
" |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1967 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1968 |
<resource: #canvas> |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1969 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1970 |
^ |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1971 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
1972 |
#(#FullSpec |
987 | 1973 |
#window: |
1974 |
#(#WindowSpec |
|
1975 |
#name: 'Interface Builder' |
|
1976 |
#layout: #(#LayoutFrame 402 0 59 0 781 0 329 0) |
|
1977 |
#label: 'Interface Builder' |
|
1978 |
#min: #(#Point 10 10) |
|
1979 |
#max: #(#Point 1280 1024) |
|
1980 |
#bounds: #(#Rectangle 402 59 782 330) |
|
1981 |
#usePreferredExtent: false |
|
1982 |
) |
|
1983 |
#component: |
|
1984 |
#(#SpecCollection |
|
1985 |
#collection: |
|
1986 |
#( |
|
1987 |
#(#ArbitraryComponentSpec |
|
1988 |
#name: 'Analog Clock' |
|
1989 |
#layout: #(#LayoutFrame 15 0 39 0 129 0 151 0) |
|
1990 |
#component: #ClockView |
|
1991 |
#hasBorder: false |
|
1992 |
) |
|
1993 |
#(#ArbitraryComponentSpec |
|
1994 |
#name: 'Digital Clock' |
|
1995 |
#layout: #(#LayoutOrigin 15 0 176 0) |
|
1996 |
#component: #DigitalClockView |
|
1997 |
#hasBorder: false |
|
1998 |
) |
|
1999 |
#(#ArbitraryComponentSpec |
|
2000 |
#name: 'Digital Number display' |
|
2001 |
#layout: #(#LayoutOrigin 142 0 39 0) |
|
2002 |
#component: #DigitalLedDisplay |
|
2003 |
#hasBorder: false |
|
2004 |
) |
|
2005 |
#(#LabelSpec |
|
2006 |
#name: 'Label1' |
|
2007 |
#layout: #(#LayoutFrame 15 0 16 0 128 0 38 0) |
|
2008 |
#label: 'Analog Clock' |
|
2009 |
#translateLabel: true |
|
2010 |
#adjust: #left |
|
2011 |
#canUIDrag: false |
|
2012 |
) |
|
2013 |
#(#LabelSpec |
|
2014 |
#name: 'Label2' |
|
2015 |
#layout: #(#LayoutFrame 142 0 16 0 270 0 38 0) |
|
2016 |
#label: 'Number Display' |
|
2017 |
#translateLabel: true |
|
2018 |
#adjust: #left |
|
2019 |
#canUIDrag: false |
|
2020 |
) |
|
2021 |
#(#LabelSpec |
|
2022 |
#name: 'Label3' |
|
2023 |
#layout: #(#LayoutFrame 15 0 155 0 128 0 177 0) |
|
2024 |
#label: 'Digital Clock' |
|
2025 |
#translateLabel: true |
|
2026 |
#adjust: #left |
|
2027 |
#canUIDrag: false |
|
2028 |
) |
|
2029 |
#(#MeterWidgetSpec |
|
2030 |
#name: 'Meter Widget' |
|
2031 |
#layout: #(#Rectangle 143 101 248 216) |
|
2032 |
#model: #meterValue |
|
2033 |
) |
|
2034 |
#(#LabelSpec |
|
2035 |
#name: 'Label4' |
|
2036 |
#layout: #(#LayoutFrame 142 0 74 0 269 0 96 0) |
|
2037 |
#label: 'Meter Widget' |
|
2038 |
#translateLabel: true |
|
2039 |
#adjust: #left |
|
2040 |
#canUIDrag: false |
|
2041 |
) |
|
2042 |
#(#MeterClackCounterSpec |
|
2043 |
#name: 'Meter Clack Counter' |
|
2044 |
#layout: #(#Rectangle 291 40 387 72) |
|
2045 |
#model: #model |
|
2046 |
) |
|
2047 |
#(#LabelSpec |
|
2048 |
#name: 'Label5' |
|
2049 |
#layout: #(#LayoutFrame 290 0 16 0 417 0 38 0) |
|
2050 |
#label: 'Meter Clack Counter' |
|
2051 |
#translateLabel: true |
|
2052 |
#adjust: #left |
|
2053 |
#canUIDrag: false |
|
2054 |
) |
|
2055 |
) |
|
2056 |
) |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2057 |
) |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2058 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2059 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2060 |
listOfLabels |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2061 |
^ LabelList |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2062 |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2063 |
"Created: / 5.12.1997 / 13:43:03 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2064 |
"Modified: / 8.12.1997 / 18:51:20 / cg" |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2065 |
! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2066 |
|
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2067 |
listOfSelectors |
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2068 |
^ SelectorList |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2069 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2070 |
"Created: / 5.12.1997 / 13:43:13 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2071 |
"Modified: / 8.12.1997 / 18:51:28 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2072 |
! ! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2073 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2074 |
!UISelectionPanel::UserDefinedGallery class methodsFor:'user spec access'! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2075 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2076 |
doesNotUnderstand:aMessage |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2077 |
"catch queries for a userSpec" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2078 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2079 |
|sel idx| |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2080 |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2081 |
((sel := aMessage selector) startsWith:'userSpec') ifTrue:[ |
987 | 2082 |
idx := SelectorList indexOf:sel. |
2083 |
idx ~~ 0 ifTrue:[ |
|
2084 |
^ (HolderList at:idx) value |
|
2085 |
] |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2086 |
]. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2087 |
^ super doesNotUnderstand:aMessage |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2088 |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2089 |
"Modified: / 5.12.1997 / 14:23:24 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2090 |
"Created: / 8.12.1997 / 18:51:50 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2091 |
! |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2092 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2093 |
respondsTo:aSelector |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2094 |
"catch queries for a userSpec" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2095 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2096 |
|idx| |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2097 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2098 |
(aSelector startsWith:'userSpec') ifTrue:[ |
987 | 2099 |
idx := Number fromString:(aSelector copyFrom:9). |
2100 |
idx := SelectorList indexOf:aSelector. |
|
2101 |
idx ~~ 0 ifTrue:[^ true]. |
|
387
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2102 |
]. |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2103 |
^ super respondsTo:aSelector |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2104 |
|
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2105 |
"Modified: / 5.12.1997 / 14:19:55 / cg" |
8fa6afe1b929
allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2106 |
"Created: / 8.12.1997 / 18:51:57 / cg" |
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2107 |
! ! |
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2108 |
|
93 | 2109 |
!UISelectionPanel class methodsFor:'documentation'! |
2110 |
||
2111 |
version |
|
2112 |
^ '$Header$' |
|
2113 |
! ! |
|
207
a31cc933368a
set user defined specification during initialization of class
ca
parents:
190
diff
changeset
|
2114 |
UISelectionPanel initialize! |