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