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