author | tz |
Thu, 02 Apr 1998 21:04:45 +0200 | |
changeset 1527 | 58d10367b84d |
parent 1515 | 293aa84c6b80 |
child 1531 | 9cc7272b9162 |
permissions | -rw-r--r-- |
1406 | 1 |
" |
1430 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
1406 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
15 |
ToolApplicationModel subclass:#NewLauncher |
|
1479 | 16 |
instanceVariableNames:'transcript isMainLauncher settingsSelection aspects helpIsOn' |
1406 | 17 |
classVariableNames:'OpenLaunchers NotifyingEmergencyHandler' |
18 |
poolDictionaries:'' |
|
1469 | 19 |
category:'Interface-Smalltalk' |
1406 | 20 |
! |
21 |
||
22 |
!NewLauncher class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
1430 | 26 |
COPYRIGHT (c) 1997 by eXept Software AG |
1406 | 27 |
All Rights Reserved |
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
||
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
1411 | 42 |
The future launcher. |
43 |
||
44 |
[start with:] |
|
45 |
NewLauncher open |
|
46 |
||
47 |
[see also:] |
|
48 |
Launcher |
|
49 |
||
50 |
[author:] |
|
1453 | 51 |
Thomas Zwick, eXept Software AG |
1406 | 52 |
" |
53 |
! ! |
|
54 |
||
55 |
!NewLauncher class methodsFor:'accessing'! |
|
56 |
||
57 |
current |
|
58 |
"return the launcher running on the current screen. |
|
59 |
(for access via addMenu/ removeMenu)" |
|
60 |
||
1434 | 61 |
OpenLaunchers notNil ifTrue:[ |
62 |
OpenLaunchers do:[:aLauncher | |
|
63 |
aLauncher window graphicsDevice == Screen current ifTrue:[ |
|
64 |
^ aLauncher |
|
65 |
] |
|
66 |
]. |
|
1406 | 67 |
]. |
68 |
^ nil |
|
69 |
||
1434 | 70 |
"Modified: / 29.1.1998 / 22:08:12 / cg" |
1406 | 71 |
! |
72 |
||
73 |
label |
|
74 |
||
75 |
^'Launcher' |
|
76 |
||
77 |
||
1434 | 78 |
! |
79 |
||
80 |
openLaunchers |
|
81 |
||
82 |
^OpenLaunchers ? (OpenLaunchers := OrderedCollection new) |
|
1406 | 83 |
! ! |
84 |
||
85 |
!NewLauncher class methodsFor:'defaults'! |
|
86 |
||
87 |
notifyingEmergencyHandler |
|
88 |
"return a block (used as an emergency handler |
|
89 |
for exceptions), which does errorNotification before going |
|
90 |
into the debugger." |
|
91 |
||
92 |
"Remember the handlerBlock, to be able to determine if the current |
|
93 |
handler is the notifying one." |
|
94 |
||
95 |
^ NotifyingEmergencyHandler ? (NotifyingEmergencyHandler := Exception notifyingEmergencyHandler) |
|
96 |
! ! |
|
97 |
||
98 |
!NewLauncher class methodsFor:'interface specs'! |
|
99 |
||
100 |
windowSpec |
|
1527 | 101 |
"This resource specification was automatically generated |
102 |
by the UIPainter of ST/X." |
|
103 |
||
104 |
"Do not manually edit this!! If it is corrupted, |
|
105 |
the UIPainter may not be able to read the specification." |
|
1406 | 106 |
|
107 |
" |
|
108 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpec |
|
109 |
NewLauncher new openInterface:#windowSpec |
|
1527 | 110 |
NewLauncher open |
1406 | 111 |
" |
112 |
||
113 |
<resource: #canvas> |
|
114 |
||
115 |
^ |
|
116 |
||
117 |
#(#FullSpec |
|
1527 | 118 |
#window: |
1406 | 119 |
#(#WindowSpec |
1527 | 120 |
#name: 'Launcher' |
121 |
#layout: #(#LayoutFrame 407 0 353 0 697 0 554 0) |
|
122 |
#label: 'Launcher' |
|
123 |
#min: #(#Point 374 240) |
|
124 |
#max: #(#Point 1152 900) |
|
125 |
#bounds: #(#Rectangle 407 353 698 555) |
|
126 |
#menu: #menu |
|
127 |
#usePreferredExtent: false |
|
128 |
#icon: #stxIcon |
|
1406 | 129 |
) |
1527 | 130 |
#component: |
1406 | 131 |
#(#SpecCollection |
1527 | 132 |
#collection: |
1406 | 133 |
#( |
134 |
#(#MenuPanelSpec |
|
1527 | 135 |
#name: 'menuToolbarView' |
136 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 38 0) |
|
137 |
#menu: #menuToolbar |
|
138 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1406 | 139 |
) |
140 |
#(#ArbitraryComponentSpec |
|
1527 | 141 |
#name: 'transcriptView' |
142 |
#layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0) |
|
143 |
#hasHorizontalScrollBar: true |
|
144 |
#hasVerticalScrollBar: true |
|
145 |
#miniScrollerHorizontal: true |
|
146 |
#component: #TextCollector |
|
147 |
#hasBorder: false |
|
1406 | 148 |
) |
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
149 |
#(#UISubSpecification |
1527 | 150 |
#name: 'infoBarSubSpec' |
151 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
152 |
#majorKey: #ToolApplicationModel |
|
153 |
#minorKey: #windowSpecForInfoBarWithClock |
|
1406 | 154 |
) |
155 |
) |
|
156 |
) |
|
157 |
) |
|
158 |
! |
|
159 |
||
1411 | 160 |
windowSpecForStyleSettings |
161 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
162 |
||
163 |
"do not manually edit this - the painter/builder may not be able to |
|
164 |
handle the specification if its corrupted." |
|
165 |
||
166 |
" |
|
167 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForStyleSettings |
|
168 |
NewLauncher new openInterface:#windowSpecForStyleSettings |
|
169 |
" |
|
170 |
||
171 |
<resource: #canvas> |
|
172 |
||
173 |
^ |
|
174 |
||
175 |
#(#FullSpec |
|
176 |
#'window:' |
|
177 |
#(#WindowSpec |
|
178 |
#'name:' 'Style Settings' |
|
179 |
#'layout:' #(#LayoutFrame 238 0 252 0 675 0 678 0) |
|
180 |
#'label:' 'Style Settings' |
|
181 |
#'min:' #(#Point 420 220) |
|
182 |
#'max:' #(#Point 1152 900) |
|
183 |
#'bounds:' #(#Rectangle 238 252 676 679) |
|
184 |
#'usePreferredExtent:' false |
|
185 |
) |
|
186 |
#'component:' |
|
187 |
#(#SpecCollection |
|
188 |
#'collection:' |
|
189 |
#( |
|
190 |
#(#NoteBookViewSpec |
|
191 |
#'name:' 'noteBookView_Temporal' |
|
192 |
#'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0) |
|
193 |
#'model:' #selectionOfSettings |
|
194 |
#'menu:' |
|
195 |
#('Views' |
|
196 |
'Fonts' 'Language' |
|
197 |
'Keyboard' 'Misc' |
|
198 |
) |
|
199 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993) |
|
200 |
#'level:' 1 |
|
201 |
#'canvas:' #settingsCanvas |
|
202 |
) |
|
203 |
#(#HorizontalPanelViewSpec |
|
204 |
#'name:' 'horizontalPanelView_Temporal' |
|
205 |
#'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0) |
|
206 |
#'component:' |
|
207 |
#(#SpecCollection |
|
208 |
#'collection:' |
|
209 |
#( |
|
210 |
#(#ActionButtonSpec |
|
211 |
#'name:' 'helpButton_Temporal' |
|
212 |
#'label:' 'Help' |
|
213 |
#'style:' #(#FontDescription #helvetica #bold #roman 12) |
|
214 |
#'model:' #'doForCurrentSettings:' |
|
215 |
#'actionValue:' #help |
|
216 |
#'extent:' #(#Point 213 24) |
|
217 |
) |
|
218 |
#(#ActionButtonSpec |
|
219 |
#'name:' 'closeButton_Temporal' |
|
220 |
#'label:' 'Close' |
|
221 |
#'style:' #(#FontDescription #helvetica #bold #roman 12) |
|
222 |
#'model:' #accept |
|
223 |
#'extent:' #(#Point 214 24) |
|
224 |
) |
|
225 |
) |
|
226 |
) |
|
227 |
#'level:' 1 |
|
228 |
#'horizontalLayout:' #fitSpace |
|
229 |
#'verticalLayout:' #center |
|
230 |
#'horizontalSpace:' 3 |
|
231 |
#'verticalSpace:' 3 |
|
232 |
) |
|
233 |
) |
|
234 |
) |
|
235 |
) |
|
236 |
! |
|
237 |
||
238 |
windowSpecForSystemSettings |
|
239 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
240 |
||
241 |
"do not manually edit this - the painter/builder may not be able to |
|
242 |
handle the specification if its corrupted." |
|
243 |
||
244 |
" |
|
245 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForSystemSettings |
|
246 |
NewLauncher new openInterface:#windowSpecForSystemSettings |
|
247 |
" |
|
248 |
||
249 |
<resource: #canvas> |
|
250 |
||
251 |
^ |
|
252 |
||
253 |
#(#FullSpec |
|
254 |
#'window:' |
|
255 |
#(#WindowSpec |
|
256 |
#'name:' 'Style Settings' |
|
257 |
#'layout:' #(#LayoutFrame 96 0 317 0 533 0 743 0) |
|
258 |
#'label:' 'Style Settings' |
|
259 |
#'min:' #(#Point 420 220) |
|
260 |
#'max:' #(#Point 1152 900) |
|
261 |
#'bounds:' #(#Rectangle 96 317 534 744) |
|
262 |
#'usePreferredExtent:' false |
|
263 |
) |
|
264 |
#'component:' |
|
265 |
#(#SpecCollection |
|
266 |
#'collection:' |
|
267 |
#( |
|
268 |
#(#NoteBookViewSpec |
|
269 |
#'name:' 'noteBookView_Temporal' |
|
270 |
#'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0) |
|
271 |
#'model:' #selectionOfSettings |
|
272 |
#'menu:' |
|
273 |
#('Sources' |
|
274 |
'Messages' 'Memory' |
|
275 |
'Screen' 'Printer' |
|
276 |
) |
|
277 |
#'backgroundColor:' #(#Color 66.9993 66.9993 66.9993) |
|
278 |
#'level:' 1 |
|
279 |
#'canvas:' #settingsCanvas |
|
280 |
) |
|
281 |
#(#HorizontalPanelViewSpec |
|
282 |
#'name:' 'horizontalPanelView_Temporal' |
|
283 |
#'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0) |
|
284 |
#'component:' |
|
285 |
#(#SpecCollection |
|
286 |
#'collection:' |
|
287 |
#( |
|
288 |
#(#ActionButtonSpec |
|
289 |
#'name:' 'helpButton_Temporal' |
|
290 |
#'label:' 'Help' |
|
291 |
#'style:' #(#FontDescription #helvetica #bold #roman 12) |
|
292 |
#'model:' #'doForCurrentSettings:' |
|
293 |
#'actionValue:' #help |
|
294 |
#'extent:' #(#Point 213 24) |
|
295 |
) |
|
296 |
#(#ActionButtonSpec |
|
297 |
#'name:' 'closeButton_Temporal' |
|
298 |
#'label:' 'Close' |
|
299 |
#'style:' #(#FontDescription #helvetica #bold #roman 12) |
|
300 |
#'model:' #accept |
|
301 |
#'extent:' #(#Point 214 24) |
|
302 |
) |
|
303 |
) |
|
304 |
) |
|
305 |
#'level:' 1 |
|
306 |
#'horizontalLayout:' #fitSpace |
|
307 |
#'verticalLayout:' #center |
|
308 |
#'horizontalSpace:' 3 |
|
309 |
#'verticalSpace:' 3 |
|
310 |
) |
|
311 |
) |
|
312 |
) |
|
313 |
) |
|
314 |
! |
|
315 |
||
316 |
windowSpecOfFontsSettings |
|
317 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
318 |
||
319 |
"do not manually edit this - the painter/builder may not be able to |
|
320 |
handle the specification if its corrupted." |
|
321 |
||
322 |
" |
|
323 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfFontsSettings |
|
324 |
NewLauncher new openInterface:#windowSpecOfFontsSettings |
|
325 |
" |
|
326 |
||
327 |
<resource: #canvas> |
|
328 |
||
329 |
^ |
|
330 |
||
331 |
#(#FullSpec |
|
332 |
#'window:' |
|
333 |
#(#WindowSpec |
|
334 |
#'name:' 'Smalltalk/X' |
|
335 |
#'layout:' #(#LayoutFrame 234 0 432 0 671 0 811 0) |
|
336 |
#'label:' 'Smalltalk/X' |
|
337 |
#'min:' #(#Point 420 220) |
|
338 |
#'max:' #(#Point 1152 900) |
|
339 |
#'bounds:' #(#Rectangle 234 432 672 812) |
|
340 |
#'usePreferredExtent:' false |
|
341 |
) |
|
342 |
#'component:' |
|
343 |
#(#SpecCollection |
|
344 |
#'collection:' |
|
345 |
#( |
|
346 |
#(#FramedBoxSpec |
|
347 |
#'name:' 'preViewFramedBox_Temporal' |
|
348 |
#'layout:' #(#LayoutFrame 0 0.0 -80 1 0 1.0 0 1.0) |
|
349 |
#'component:' |
|
350 |
#(#SpecCollection |
|
351 |
#'collection:' |
|
352 |
#( |
|
353 |
#(#LabelSpec |
|
354 |
#'name:' 'previewFontLabel_Temporal' |
|
355 |
#'layout:' #(#LayoutFrame 16 0.0 18 0.0 16 1.0 13 1.0) |
|
356 |
#'adjust:' #left |
|
357 |
) |
|
358 |
) |
|
359 |
) |
|
360 |
#'label:' 'Font Preview' |
|
361 |
#'labelPosition:' #topLeft |
|
362 |
) |
|
363 |
#(#FramedBoxSpec |
|
364 |
#'name:' 'fontDescriptionFramedBox_Temporal' |
|
365 |
#'layout:' #(#LayoutFrame 0 0.5 95 0.0 0 1 -80 1.0) |
|
366 |
#'component:' |
|
367 |
#(#SpecCollection |
|
368 |
#'collection:' |
|
369 |
#( |
|
370 |
#(#LabelSpec |
|
371 |
#'name:' 'fontFamilyLabel_Temporal' |
|
372 |
#'layout:' #(#LayoutFrame 15 0.0 22 0 15 1.0 44 0) |
|
373 |
#'level:' -1 |
|
374 |
#'adjust:' #left |
|
375 |
) |
|
376 |
#(#LabelSpec |
|
377 |
#'name:' 'fontFaceLabel_Temporal' |
|
378 |
#'layout:' #(#LayoutFrame 15 0.0 49 0 15 1.0 71 0) |
|
379 |
#'level:' -1 |
|
380 |
#'adjust:' #left |
|
381 |
) |
|
382 |
#(#LabelSpec |
|
383 |
#'name:' 'fontStyleLabel_Temporal' |
|
384 |
#'layout:' #(#LayoutFrame 15 0.0 77 0 15 1.0 99 0) |
|
385 |
#'level:' -1 |
|
386 |
#'adjust:' #left |
|
387 |
) |
|
388 |
#(#LabelSpec |
|
389 |
#'name:' 'fontSizeLabel_Temporal' |
|
390 |
#'layout:' #(#LayoutFrame 15 0.0 105 0 15 1.0 127 0) |
|
391 |
#'level:' -1 |
|
392 |
#'adjust:' #left |
|
393 |
) |
|
394 |
#(#LabelSpec |
|
395 |
#'name:' 'fontEncodingLabel_Temporal' |
|
396 |
#'layout:' #(#LayoutFrame 15 0.0 133 0 15 1.0 155 0) |
|
397 |
#'level:' -1 |
|
398 |
#'adjust:' #left |
|
399 |
) |
|
400 |
) |
|
401 |
) |
|
402 |
#'label:' 'Font Description' |
|
403 |
#'labelPosition:' #topLeft |
|
404 |
) |
|
405 |
#(#ActionButtonSpec |
|
406 |
#'name:' 'changeAllButton_Temporal' |
|
407 |
#'layout:' #(#LayoutFrame 5 0.5 36 0 -5 1 60 0) |
|
408 |
#'label:' 'Change for all View Classes...' |
|
409 |
#'translateLabel:' true |
|
410 |
#'model:' #'changeFontFor:' |
|
411 |
#'actionValue:' 'All' |
|
412 |
) |
|
413 |
#(#ActionButtonSpec |
|
414 |
#'name:' 'defaultButton_Temporal' |
|
415 |
#'layout:' #(#LayoutFrame 5 0.5 64 0 -5 1 88 0) |
|
416 |
#'label:' 'Set Default Fonts' |
|
417 |
#'translateLabel:' true |
|
418 |
#'model:' #'changeFontFor:' |
|
419 |
#'actionValue:' 'Default' |
|
420 |
) |
|
421 |
#(#ActionButtonSpec |
|
422 |
#'name:' 'changeFontButton_Temporal' |
|
423 |
#'layout:' #(#LayoutFrame 5 0.5 8 0 -5 1.0 32 0) |
|
424 |
#'label:' 'Change Font...' |
|
425 |
#'translateLabel:' true |
|
426 |
#'model:' #changeFont |
|
427 |
#'actionValue:' '' |
|
428 |
) |
|
429 |
#(#FramedBoxSpec |
|
430 |
#'name:' 'viewClassesFramedBox_Temporal' |
|
431 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 0.5 -80 1.0) |
|
432 |
#'component:' |
|
433 |
#(#SpecCollection |
|
434 |
#'collection:' |
|
435 |
#( |
|
436 |
#(#SelectionInTreeViewSpec |
|
437 |
#'name:' 'viewClassesListView_Temporal' |
|
438 |
#'layout:' #(#LayoutFrame 15 0.0 17 0.0 15 1.0 17 1.0) |
|
439 |
#'model:' #selectionOfViewClass |
|
440 |
#'hasHorizontalScrollBar:' true |
|
441 |
#'hasVerticalScrollBar:' true |
|
442 |
#'miniScrollerHorizontal:' true |
|
443 |
#'miniScrollerVertical:' true |
|
444 |
#'valueChangeSelector:' #updatePreviewFontLabel |
|
445 |
#'hierarchicalList:' #listOfViewClasses |
|
446 |
) |
|
447 |
) |
|
448 |
) |
|
449 |
#'label:' 'View Classes' |
|
450 |
#'labelPosition:' #topLeft |
|
451 |
) |
|
452 |
) |
|
453 |
) |
|
454 |
) |
|
455 |
! |
|
456 |
||
457 |
windowSpecOfKeyboardSettings |
|
458 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
459 |
||
460 |
"do not manually edit this - the painter/builder may not be able to |
|
461 |
handle the specification if its corrupted." |
|
462 |
||
463 |
" |
|
464 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfKeyboardSettings |
|
465 |
NewLauncher new openInterface:#windowSpecOfKeyboardSettings |
|
466 |
" |
|
467 |
||
468 |
<resource: #canvas> |
|
469 |
||
470 |
^ |
|
471 |
||
472 |
#(#FullSpec |
|
473 |
#'window:' |
|
474 |
#(#WindowSpec |
|
475 |
#'name:' 'Smalltalk/X' |
|
476 |
#'layout:' #(#LayoutFrame 71 0 497 0 508 0 894 0) |
|
477 |
#'label:' 'Smalltalk/X' |
|
478 |
#'min:' #(#Point 420 220) |
|
479 |
#'max:' #(#Point 1152 900) |
|
480 |
#'bounds:' #(#Rectangle 71 497 509 895) |
|
481 |
#'usePreferredExtent:' false |
|
482 |
) |
|
483 |
#'component:' |
|
484 |
#(#SpecCollection |
|
485 |
#'collection:' |
|
486 |
#( |
|
487 |
#(#SequenceViewSpec |
|
488 |
#'name:' 'rawKeysListView_Temporal' |
|
489 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 0.5 0 0.6) |
|
490 |
#'model:' #listOfRawKeys |
|
491 |
#'hasHorizontalScrollBar:' true |
|
492 |
#'hasVerticalScrollBar:' true |
|
493 |
#'miniScrollerHorizontal:' true |
|
494 |
#'useIndex:' false |
|
495 |
) |
|
496 |
#(#SequenceViewSpec |
|
497 |
#'name:' 'functionsListView_Temporal' |
|
498 |
#'layout:' #(#LayoutFrame 0 0.5 0 0.0 0 1.0 0 0.6) |
|
499 |
#'model:' #listOfFunctions |
|
500 |
#'hasHorizontalScrollBar:' true |
|
501 |
#'hasVerticalScrollBar:' true |
|
502 |
#'miniScrollerHorizontal:' true |
|
503 |
#'useIndex:' false |
|
504 |
) |
|
505 |
#(#TextEditorSpec |
|
506 |
#'name:' 'keyMacroTextEditor_Temporal' |
|
507 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.6 0 1.0 0 1.0) |
|
508 |
#'model:' #keyMacroText |
|
509 |
#'hasHorizontalScrollBar:' true |
|
510 |
#'hasVerticalScrollBar:' true |
|
511 |
#'miniScrollerHorizontal:' true |
|
512 |
#'isReadOnly:' true |
|
513 |
) |
|
514 |
) |
|
515 |
) |
|
516 |
) |
|
517 |
! |
|
518 |
||
519 |
windowSpecOfLanguageSettings |
|
520 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
521 |
||
522 |
"do not manually edit this - the painter/builder may not be able to |
|
523 |
handle the specification if its corrupted." |
|
524 |
||
525 |
" |
|
526 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfLanguageSettings |
|
527 |
NewLauncher new openInterface:#windowSpecOfLanguageSettings |
|
528 |
" |
|
529 |
||
530 |
<resource: #canvas> |
|
531 |
||
532 |
^ |
|
533 |
||
534 |
#(#FullSpec |
|
535 |
#'window:' |
|
536 |
#(#WindowSpec |
|
537 |
#'name:' 'Smalltalk/X' |
|
538 |
#'layout:' #(#LayoutFrame 255 0 459 0 692 0 838 0) |
|
539 |
#'label:' 'Smalltalk/X' |
|
540 |
#'min:' #(#Point 420 220) |
|
541 |
#'max:' #(#Point 1152 900) |
|
542 |
#'bounds:' #(#Rectangle 255 459 693 839) |
|
543 |
#'usePreferredExtent:' false |
|
544 |
) |
|
545 |
#'component:' |
|
546 |
#(#SpecCollection |
|
547 |
#'collection:' |
|
548 |
#( |
|
549 |
#(#SequenceViewSpec |
|
550 |
#'name:' 'languagesListView_Temporal' |
|
551 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
552 |
#'model:' #selectionOfLanguage |
|
553 |
#'hasHorizontalScrollBar:' true |
|
554 |
#'hasVerticalScrollBar:' true |
|
555 |
#'miniScrollerHorizontal:' true |
|
556 |
#'useIndex:' false |
|
557 |
#'sequenceList:' #listOfLanguages |
|
558 |
) |
|
559 |
) |
|
560 |
) |
|
561 |
) |
|
562 |
! |
|
563 |
||
564 |
windowSpecOfMemorySettings |
|
565 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
566 |
||
567 |
"do not manually edit this - the painter/builder may not be able to |
|
568 |
handle the specification if its corrupted." |
|
569 |
||
570 |
" |
|
571 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings |
|
572 |
NewLauncher new openInterface:#windowSpecOfMiscSettings |
|
573 |
" |
|
574 |
||
575 |
<resource: #canvas> |
|
576 |
||
577 |
^ |
|
578 |
||
579 |
#(#FullSpec |
|
580 |
#'window:' |
|
581 |
#(#WindowSpec |
|
582 |
#'name:' 'Smalltalk/X' |
|
583 |
#'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0) |
|
584 |
#'label:' 'Smalltalk/X' |
|
585 |
#'min:' #(#Point 420 220) |
|
586 |
#'max:' #(#Point 1152 900) |
|
587 |
#'bounds:' #(#Rectangle 9 394 447 774) |
|
588 |
#'usePreferredExtent:' false |
|
589 |
) |
|
590 |
#'component:' |
|
591 |
#(#SpecCollection |
|
592 |
#'collection:' |
|
593 |
#( |
|
594 |
#(#CheckBoxSpec |
|
595 |
#'name:' 'checkBox1_Temporal' |
|
596 |
#'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0) |
|
597 |
#'model:' #shadowsUnderPopupViews |
|
598 |
#'label:' 'Shadows under popup views' |
|
599 |
) |
|
600 |
#(#CheckBoxSpec |
|
601 |
#'name:' 'checkBox2_Temporal' |
|
602 |
#'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0) |
|
603 |
#'model:' #boxesReturnsFocus |
|
604 |
#'label:' 'Boxes returns focus to previously active view' |
|
605 |
) |
|
606 |
#(#CheckBoxSpec |
|
607 |
#'name:' 'checkBox3_Temporal' |
|
608 |
#'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0) |
|
609 |
#'model:' #viewsCatchFocus |
|
610 |
#'label:' 'Views catch focus when mapped' |
|
611 |
) |
|
612 |
#(#CheckBoxSpec |
|
613 |
#'name:' 'checkBox4_Temporal' |
|
614 |
#'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0) |
|
615 |
#'model:' #hostnameInWindowLabels |
|
616 |
#'label:' 'Hostname in window labels.' |
|
617 |
) |
|
618 |
#(#CheckBoxSpec |
|
619 |
#'name:' 'checkBox5_Temporal' |
|
620 |
#'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0) |
|
621 |
#'model:' #showAccelerators |
|
622 |
#'label:' 'Show accelerator keys in menus' |
|
623 |
) |
|
624 |
) |
|
625 |
) |
|
626 |
) |
|
1406 | 627 |
! |
628 |
||
1411 | 629 |
windowSpecOfMessagesSettings |
630 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
631 |
||
632 |
"do not manually edit this - the painter/builder may not be able to |
|
633 |
handle the specification if its corrupted." |
|
634 |
||
635 |
" |
|
636 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings |
|
637 |
NewLauncher new openInterface:#windowSpecOfMiscSettings |
|
638 |
" |
|
639 |
||
640 |
<resource: #canvas> |
|
641 |
||
642 |
^ |
|
643 |
||
644 |
#(#FullSpec |
|
645 |
#'window:' |
|
646 |
#(#WindowSpec |
|
647 |
#'name:' 'Smalltalk/X' |
|
648 |
#'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0) |
|
649 |
#'label:' 'Smalltalk/X' |
|
650 |
#'min:' #(#Point 420 220) |
|
651 |
#'max:' #(#Point 1152 900) |
|
652 |
#'bounds:' #(#Rectangle 9 394 447 774) |
|
653 |
#'usePreferredExtent:' false |
|
654 |
) |
|
655 |
#'component:' |
|
656 |
#(#SpecCollection |
|
657 |
#'collection:' |
|
658 |
#( |
|
659 |
#(#CheckBoxSpec |
|
660 |
#'name:' 'checkBox1_Temporal' |
|
661 |
#'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0) |
|
662 |
#'model:' #shadowsUnderPopupViews |
|
663 |
#'label:' 'Shadows under popup views' |
|
664 |
) |
|
665 |
#(#CheckBoxSpec |
|
666 |
#'name:' 'checkBox2_Temporal' |
|
667 |
#'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0) |
|
668 |
#'model:' #boxesReturnsFocus |
|
669 |
#'label:' 'Boxes returns focus to previously active view' |
|
670 |
) |
|
671 |
#(#CheckBoxSpec |
|
672 |
#'name:' 'checkBox3_Temporal' |
|
673 |
#'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0) |
|
674 |
#'model:' #viewsCatchFocus |
|
675 |
#'label:' 'Views catch focus when mapped' |
|
676 |
) |
|
677 |
#(#CheckBoxSpec |
|
678 |
#'name:' 'checkBox4_Temporal' |
|
679 |
#'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0) |
|
680 |
#'model:' #hostnameInWindowLabels |
|
681 |
#'label:' 'Hostname in window labels.' |
|
682 |
) |
|
683 |
#(#CheckBoxSpec |
|
684 |
#'name:' 'checkBox5_Temporal' |
|
685 |
#'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0) |
|
686 |
#'model:' #showAccelerators |
|
687 |
#'label:' 'Show accelerator keys in menus' |
|
688 |
) |
|
689 |
) |
|
690 |
) |
|
691 |
) |
|
692 |
! |
|
693 |
||
694 |
windowSpecOfMiscSettings |
|
695 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
696 |
||
697 |
"do not manually edit this - the painter/builder may not be able to |
|
698 |
handle the specification if its corrupted." |
|
699 |
||
700 |
" |
|
701 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings |
|
702 |
NewLauncher new openInterface:#windowSpecOfMiscSettings |
|
703 |
" |
|
704 |
||
705 |
<resource: #canvas> |
|
706 |
||
707 |
^ |
|
708 |
||
709 |
#(#FullSpec |
|
710 |
#'window:' |
|
711 |
#(#WindowSpec |
|
712 |
#'name:' 'Smalltalk/X' |
|
713 |
#'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0) |
|
714 |
#'label:' 'Smalltalk/X' |
|
715 |
#'min:' #(#Point 420 220) |
|
716 |
#'max:' #(#Point 1152 900) |
|
717 |
#'bounds:' #(#Rectangle 9 394 447 774) |
|
718 |
#'usePreferredExtent:' false |
|
719 |
) |
|
720 |
#'component:' |
|
721 |
#(#SpecCollection |
|
722 |
#'collection:' |
|
723 |
#( |
|
724 |
#(#CheckBoxSpec |
|
725 |
#'name:' 'checkBox1_Temporal' |
|
726 |
#'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0) |
|
727 |
#'model:' #shadowsUnderPopupViews |
|
728 |
#'label:' 'Shadows under popup views' |
|
729 |
) |
|
730 |
#(#CheckBoxSpec |
|
731 |
#'name:' 'checkBox2_Temporal' |
|
732 |
#'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0) |
|
733 |
#'model:' #boxesReturnsFocus |
|
734 |
#'label:' 'Boxes returns focus to previously active view' |
|
735 |
) |
|
736 |
#(#CheckBoxSpec |
|
737 |
#'name:' 'checkBox3_Temporal' |
|
738 |
#'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0) |
|
739 |
#'model:' #viewsCatchFocus |
|
740 |
#'label:' 'Views catch focus when mapped' |
|
741 |
) |
|
742 |
#(#CheckBoxSpec |
|
743 |
#'name:' 'checkBox4_Temporal' |
|
744 |
#'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0) |
|
745 |
#'model:' #hostnameInWindowLabels |
|
746 |
#'label:' 'Hostname in window labels.' |
|
747 |
) |
|
748 |
#(#CheckBoxSpec |
|
749 |
#'name:' 'checkBox5_Temporal' |
|
750 |
#'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0) |
|
751 |
#'model:' #showAccelerators |
|
752 |
#'label:' 'Show accelerator keys in menus' |
|
753 |
) |
|
754 |
) |
|
755 |
) |
|
756 |
) |
|
757 |
! |
|
758 |
||
759 |
windowSpecOfPrinterSettings |
|
760 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
761 |
||
762 |
"do not manually edit this - the painter/builder may not be able to |
|
763 |
handle the specification if its corrupted." |
|
764 |
||
765 |
" |
|
766 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings |
|
767 |
NewLauncher new openInterface:#windowSpecOfMiscSettings |
|
768 |
" |
|
769 |
||
770 |
<resource: #canvas> |
|
771 |
||
772 |
^ |
|
773 |
||
774 |
#(#FullSpec |
|
775 |
#'window:' |
|
776 |
#(#WindowSpec |
|
777 |
#'name:' 'Smalltalk/X' |
|
778 |
#'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0) |
|
779 |
#'label:' 'Smalltalk/X' |
|
780 |
#'min:' #(#Point 420 220) |
|
781 |
#'max:' #(#Point 1152 900) |
|
782 |
#'bounds:' #(#Rectangle 9 394 447 774) |
|
783 |
#'usePreferredExtent:' false |
|
784 |
) |
|
785 |
#'component:' |
|
786 |
#(#SpecCollection |
|
787 |
#'collection:' |
|
788 |
#( |
|
789 |
#(#CheckBoxSpec |
|
790 |
#'name:' 'checkBox1_Temporal' |
|
791 |
#'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0) |
|
792 |
#'model:' #shadowsUnderPopupViews |
|
793 |
#'label:' 'Shadows under popup views' |
|
794 |
) |
|
795 |
#(#CheckBoxSpec |
|
796 |
#'name:' 'checkBox2_Temporal' |
|
797 |
#'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0) |
|
798 |
#'model:' #boxesReturnsFocus |
|
799 |
#'label:' 'Boxes returns focus to previously active view' |
|
800 |
) |
|
801 |
#(#CheckBoxSpec |
|
802 |
#'name:' 'checkBox3_Temporal' |
|
803 |
#'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0) |
|
804 |
#'model:' #viewsCatchFocus |
|
805 |
#'label:' 'Views catch focus when mapped' |
|
806 |
) |
|
807 |
#(#CheckBoxSpec |
|
808 |
#'name:' 'checkBox4_Temporal' |
|
809 |
#'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0) |
|
810 |
#'model:' #hostnameInWindowLabels |
|
811 |
#'label:' 'Hostname in window labels.' |
|
812 |
) |
|
813 |
#(#CheckBoxSpec |
|
814 |
#'name:' 'checkBox5_Temporal' |
|
815 |
#'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0) |
|
816 |
#'model:' #showAccelerators |
|
817 |
#'label:' 'Show accelerator keys in menus' |
|
818 |
) |
|
819 |
) |
|
820 |
) |
|
821 |
) |
|
822 |
! |
|
823 |
||
824 |
windowSpecOfScreenSettings |
|
825 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
826 |
||
827 |
"do not manually edit this - the painter/builder may not be able to |
|
828 |
handle the specification if its corrupted." |
|
829 |
||
830 |
" |
|
831 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings |
|
832 |
NewLauncher new openInterface:#windowSpecOfMiscSettings |
|
833 |
" |
|
834 |
||
835 |
<resource: #canvas> |
|
836 |
||
837 |
^ |
|
838 |
||
839 |
#(#FullSpec |
|
840 |
#'window:' |
|
841 |
#(#WindowSpec |
|
842 |
#'name:' 'Smalltalk/X' |
|
843 |
#'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0) |
|
844 |
#'label:' 'Smalltalk/X' |
|
845 |
#'min:' #(#Point 420 220) |
|
846 |
#'max:' #(#Point 1152 900) |
|
847 |
#'bounds:' #(#Rectangle 9 394 447 774) |
|
848 |
#'usePreferredExtent:' false |
|
849 |
) |
|
850 |
#'component:' |
|
851 |
#(#SpecCollection |
|
852 |
#'collection:' |
|
853 |
#( |
|
854 |
#(#CheckBoxSpec |
|
855 |
#'name:' 'checkBox1_Temporal' |
|
856 |
#'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0) |
|
857 |
#'model:' #shadowsUnderPopupViews |
|
858 |
#'label:' 'Shadows under popup views' |
|
859 |
) |
|
860 |
#(#CheckBoxSpec |
|
861 |
#'name:' 'checkBox2_Temporal' |
|
862 |
#'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0) |
|
863 |
#'model:' #boxesReturnsFocus |
|
864 |
#'label:' 'Boxes returns focus to previously active view' |
|
865 |
) |
|
866 |
#(#CheckBoxSpec |
|
867 |
#'name:' 'checkBox3_Temporal' |
|
868 |
#'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0) |
|
869 |
#'model:' #viewsCatchFocus |
|
870 |
#'label:' 'Views catch focus when mapped' |
|
871 |
) |
|
872 |
#(#CheckBoxSpec |
|
873 |
#'name:' 'checkBox4_Temporal' |
|
874 |
#'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0) |
|
875 |
#'model:' #hostnameInWindowLabels |
|
876 |
#'label:' 'Hostname in window labels.' |
|
877 |
) |
|
878 |
#(#CheckBoxSpec |
|
879 |
#'name:' 'checkBox5_Temporal' |
|
880 |
#'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0) |
|
881 |
#'model:' #showAccelerators |
|
882 |
#'label:' 'Show accelerator keys in menus' |
|
883 |
) |
|
884 |
) |
|
885 |
) |
|
886 |
) |
|
887 |
! |
|
888 |
||
889 |
windowSpecOfSourcesSettings |
|
890 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
891 |
||
892 |
"do not manually edit this - the painter/builder may not be able to |
|
893 |
handle the specification if its corrupted." |
|
894 |
||
895 |
" |
|
896 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfSourcesSettings |
|
897 |
NewLauncher new openInterface:#windowSpecOfSourcesSettings |
|
898 |
" |
|
899 |
||
900 |
<resource: #canvas> |
|
901 |
||
902 |
^ |
|
903 |
||
904 |
#(#FullSpec |
|
905 |
#'window:' |
|
906 |
#(#WindowSpec |
|
907 |
#'name:' 'Smalltalk/X' |
|
908 |
#'layout:' #(#LayoutFrame 42 0 472 0 479 0 851 0) |
|
909 |
#'label:' 'Smalltalk/X' |
|
910 |
#'min:' #(#Point 420 220) |
|
911 |
#'max:' #(#Point 1152 900) |
|
912 |
#'bounds:' #(#Rectangle 42 472 480 852) |
|
913 |
#'usePreferredExtent:' false |
|
914 |
) |
|
915 |
#'component:' |
|
916 |
#(#SpecCollection |
|
917 |
#'collection:' |
|
918 |
#( |
|
919 |
#(#FramedBoxSpec |
|
920 |
#'name:' 'framedBox1_Temporal' |
|
921 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 159 0) |
|
922 |
#'component:' |
|
923 |
#(#SpecCollection |
|
924 |
#'collection:' |
|
925 |
#( |
|
926 |
#(#CheckBoxSpec |
|
927 |
#'name:' 'checkBox1_Temporal' |
|
928 |
#'layout:' #(#LayoutFrame 17 0.0 21 0 7 1.0 43 0) |
|
929 |
#'model:' #rememberChangedMethods |
|
930 |
#'label:' 'Remember changed methods (for previous method in browser)' |
|
931 |
) |
|
932 |
#(#CheckBoxSpec |
|
933 |
#'name:' 'checkBox2_Temporal' |
|
934 |
#'layout:' #(#LayoutFrame 17 0.0 49 0 7 1.0 71 0) |
|
935 |
#'model:' #logCompilesInChangesFile |
|
936 |
#'label:' 'Log compiles in changes file' |
|
937 |
) |
|
938 |
#(#CheckBoxSpec |
|
939 |
#'name:' 'checkBox3_Temporal' |
|
940 |
#'layout:' #(#LayoutFrame 17 0.0 77 0 7 1.0 99 0) |
|
941 |
#'model:' #logDoItsInChangesFile |
|
942 |
#'label:' 'Log doIts in changes file' |
|
943 |
) |
|
944 |
#(#LabelSpec |
|
945 |
#'name:' 'label1_Temporal' |
|
946 |
#'layout:' #(#AlignmentOrigin 230 0 123 0 1 0.5) |
|
947 |
#'label:' 'Name of changes file:' |
|
948 |
#'adjust:' #right |
|
949 |
) |
|
950 |
#(#InputFieldSpec |
|
951 |
#'name:' 'inputField1_Temporal' |
|
952 |
#'layout:' #(#LayoutFrame 233 0.0 109 0 13 1.0 131 0) |
|
953 |
#'model:' #nameOfChangesFile |
|
954 |
) |
|
955 |
) |
|
956 |
) |
|
957 |
#'label:' 'Changes Log' |
|
958 |
#'labelPosition:' #topLeft |
|
959 |
) |
|
960 |
#(#FramedBoxSpec |
|
961 |
#'name:' 'framedBox2_Temporal' |
|
962 |
#'layout:' #(#LayoutFrame 0 0.0 159 0 0 1.0 0 1.0) |
|
963 |
#'component:' |
|
964 |
#(#SpecCollection |
|
965 |
#'collection:' |
|
966 |
#( |
|
967 |
#(#CheckBoxSpec |
|
968 |
#'name:' 'checkBox4_Temporal' |
|
969 |
#'layout:' #(#LayoutFrame 17 0.0 26 0 7 1.0 48 0) |
|
970 |
#'enableChannel:' #hasSourceCodeManager |
|
971 |
#'model:' #sourceCodeFromSourceCodeManagement |
|
972 |
#'label:' 'Source code from Source Code Management' |
|
973 |
) |
|
974 |
#(#LabelSpec |
|
975 |
#'name:' 'label3_Temporal' |
|
976 |
#'layout:' #(#AlignmentOrigin 230 0 95 0 1 0.5) |
|
977 |
#'label:' 'Directory of source code cache:' |
|
978 |
#'adjust:' #right |
|
979 |
) |
|
980 |
#(#LabelSpec |
|
981 |
#'name:' 'label2_Temporal' |
|
982 |
#'layout:' #(#AlignmentOrigin 230 0 69 0 1 0.5) |
|
983 |
#'label:' 'Directory of repository:' |
|
984 |
#'adjust:' #right |
|
985 |
) |
|
986 |
#(#InputFieldSpec |
|
987 |
#'name:' 'inputField2_Temporal' |
|
988 |
#'layout:' #(#LayoutFrame 233 0 55 0 13 1.0 77 0) |
|
989 |
#'enableChannel:' #hasSourceCodeManager |
|
990 |
#'model:' #directoryOfRepository |
|
991 |
) |
|
992 |
#(#InputFieldSpec |
|
993 |
#'name:' 'inputField3_Temporal' |
|
994 |
#'layout:' #(#LayoutFrame 233 0 81 0 13 1.0 103 0) |
|
995 |
#'model:' #directoryOfSourceCodeCache |
|
996 |
) |
|
997 |
#(#CheckBoxSpec |
|
998 |
#'name:' 'checkBox5_Temporal' |
|
999 |
#'layout:' #(#LayoutFrame 17 0.0 120 0 7 1.0 142 0) |
|
1000 |
#'enableChannel:' #hasSourceCodeManager |
|
1001 |
#'model:' #useLocalSourceCode |
|
1002 |
#'label:' 'If present, use local source code (suppress checking out)' |
|
1003 |
) |
|
1004 |
) |
|
1005 |
) |
|
1006 |
#'label:' 'Source Code Management' |
|
1007 |
#'labelPosition:' #topLeft |
|
1008 |
) |
|
1009 |
) |
|
1010 |
) |
|
1011 |
) |
|
1012 |
! |
|
1013 |
||
1014 |
windowSpecOfViewsSettings |
|
1015 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
1016 |
||
1017 |
"do not manually edit this - the painter/builder may not be able to |
|
1018 |
handle the specification if its corrupted." |
|
1019 |
||
1020 |
" |
|
1021 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfViewsSettings |
|
1022 |
NewLauncher new openInterface:#windowSpecOfViewsSettings |
|
1023 |
" |
|
1024 |
||
1025 |
<resource: #canvas> |
|
1026 |
||
1027 |
^ |
|
1028 |
||
1029 |
#(#FullSpec |
|
1030 |
#'window:' |
|
1031 |
#(#WindowSpec |
|
1032 |
#'name:' 'Smalltalk/X' |
|
1033 |
#'layout:' #(#LayoutFrame 68 0 262 0 505 0 641 0) |
|
1034 |
#'label:' 'Smalltalk/X' |
|
1035 |
#'min:' #(#Point 420 220) |
|
1036 |
#'max:' #(#Point 1152 900) |
|
1037 |
#'bounds:' #(#Rectangle 68 262 506 642) |
|
1038 |
#'usePreferredExtent:' false |
|
1039 |
) |
|
1040 |
#'component:' |
|
1041 |
#(#SpecCollection |
|
1042 |
#'collection:' |
|
1043 |
#( |
|
1044 |
#(#FramedBoxSpec |
|
1045 |
#'name:' 'styleFramedBox_Temporal' |
|
1046 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -130 1) |
|
1047 |
#'component:' |
|
1048 |
#(#SpecCollection |
|
1049 |
#'collection:' |
|
1050 |
#( |
|
1051 |
#(#SequenceViewSpec |
|
1052 |
#'name:' 'viewStylesListView_Temporal' |
|
1053 |
#'layout:' #(#LayoutFrame 17 0.0 19 0.0 17 1.0 19 1.0) |
|
1054 |
#'model:' #listOfViewStyles |
|
1055 |
#'hasHorizontalScrollBar:' true |
|
1056 |
#'hasVerticalScrollBar:' true |
|
1057 |
#'miniScrollerHorizontal:' true |
|
1058 |
#'useIndex:' true |
|
1059 |
) |
|
1060 |
) |
|
1061 |
) |
|
1062 |
#'label:' 'Style:' |
|
1063 |
#'labelPosition:' #topLeft |
|
1064 |
) |
|
1065 |
#(#FramedBoxSpec |
|
1066 |
#'name:' 'descriptionFramedBox_Temporal' |
|
1067 |
#'layout:' #(#LayoutFrame 0 0.0 -130 1 -120 1.0 0 1) |
|
1068 |
#'component:' |
|
1069 |
#(#SpecCollection |
|
1070 |
#'collection:' |
|
1071 |
#( |
|
1072 |
#(#LabelSpec |
|
1073 |
#'name:' 'infoLabel_Temporal' |
|
1074 |
#'layout:' #(#LayoutFrame 16 0.0 17 0.0 16 1.0 17 1.0) |
|
1075 |
#'labelChannel:' #infoLabel |
|
1076 |
#'level:' -1 |
|
1077 |
#'adjust:' #left |
|
1078 |
) |
|
1079 |
) |
|
1080 |
) |
|
1081 |
#'label:' 'Description' |
|
1082 |
#'labelPosition:' #topLeft |
|
1083 |
) |
|
1084 |
#(#ViewSpec |
|
1085 |
#'name:' 'applyButtonView_Temporal' |
|
1086 |
#'layout:' #(#LayoutFrame -120 1 -130 1 0 1.0 0 1.0) |
|
1087 |
#'component:' |
|
1088 |
#(#SpecCollection |
|
1089 |
#'collection:' |
|
1090 |
#( |
|
1091 |
#(#ActionButtonSpec |
|
1092 |
#'name:' 'applyButton_Temporal' |
|
1093 |
#'layout:' #(#LayoutFrame -113 1.0 -125 1 -6 1.0 -97 1) |
|
1094 |
#'label:' 'Apply' |
|
1095 |
#'model:' #'doForCurrentSettings:' |
|
1096 |
#'actionValue:' 'apply' |
|
1097 |
) |
|
1098 |
) |
|
1099 |
) |
|
1100 |
) |
|
1101 |
) |
|
1102 |
) |
|
1103 |
) |
|
1406 | 1104 |
! ! |
1105 |
||
1441 | 1106 |
!NewLauncher class methodsFor:'menu specs'! |
1107 |
||
1108 |
menu |
|
1515 | 1109 |
"This resource specification was automatically generated |
1110 |
by the MenuEditor of ST/X." |
|
1111 |
||
1112 |
"Do not manually edit this!! If it is corrupted, |
|
1113 |
the MenuEditor may not be able to read the specification." |
|
1441 | 1114 |
|
1115 |
" |
|
1116 |
MenuEditor new openOnClass:NewLauncher andSelector:#menu |
|
1117 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp |
|
1118 |
" |
|
1119 |
||
1120 |
<resource: #menu> |
|
1121 |
||
1122 |
^ |
|
1123 |
||
1124 |
#(#Menu |
|
1125 |
||
1126 |
#( |
|
1127 |
#(#MenuItem |
|
1479 | 1128 |
#label: 'about' |
1129 |
#translateLabel: true |
|
1130 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
1131 |
#submenuChannel: #menuAbout |
|
1441 | 1132 |
) |
1133 |
#(#MenuItem |
|
1479 | 1134 |
#label: 'File' |
1135 |
#translateLabel: true |
|
1136 |
#submenu: |
|
1441 | 1137 |
#(#Menu |
1138 |
||
1139 |
#( |
|
1140 |
#(#MenuItem |
|
1479 | 1141 |
#label: 'File Browser' |
1142 |
#translateLabel: true |
|
1143 |
#value: #openApplication: |
|
1144 |
#argument: 'FileBrowser' |
|
1145 |
#labelImage: #(#ResourceRetriever nil #startFileBrowserIcon 'File Browser') |
|
1441 | 1146 |
) |
1147 |
#(#MenuItem |
|
1479 | 1148 |
#label: '-' |
1441 | 1149 |
) |
1150 |
#(#MenuItem |
|
1479 | 1151 |
#label: 'Modules...' |
1152 |
#translateLabel: true |
|
1153 |
#value: #objectModuleDialog |
|
1154 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 1155 |
) |
1156 |
#(#MenuItem |
|
1527 | 1157 |
#label: '-' |
1158 |
) |
|
1159 |
#(#MenuItem |
|
1479 | 1160 |
#label: 'Build Library...' |
1161 |
#translateLabel: true |
|
1162 |
#value: #openApplication: |
|
1163 |
#argument: 'LibraryBuilder' |
|
1441 | 1164 |
) |
1165 |
#(#MenuItem |
|
1479 | 1166 |
#label: 'Build Application...' |
1167 |
#translateLabel: true |
|
1515 | 1168 |
#value: #openApplication: |
1169 |
#argument: 'ApplicationBuilder' |
|
1441 | 1170 |
) |
1171 |
#(#MenuItem |
|
1479 | 1172 |
#label: '-' |
1441 | 1173 |
) |
1174 |
#(#MenuItem |
|
1479 | 1175 |
#label: 'Save Image' |
1176 |
#translateLabel: true |
|
1177 |
#value: #saveImage |
|
1178 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1179 |
#labelImage: #(#ResourceRetriever nil #saveIcon 'Save Image') |
|
1441 | 1180 |
) |
1181 |
#(#MenuItem |
|
1479 | 1182 |
#label: 'Save Image As...' |
1183 |
#translateLabel: true |
|
1184 |
#value: #saveImageAs |
|
1185 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1186 |
#labelImage: #(#ResourceRetriever nil #saveIcon 'Save Image As...') |
|
1441 | 1187 |
) |
1188 |
#(#MenuItem |
|
1479 | 1189 |
#label: '-' |
1441 | 1190 |
) |
1191 |
#(#MenuItem |
|
1479 | 1192 |
#label: 'Exit...' |
1193 |
#translateLabel: true |
|
1194 |
#value: #exit |
|
1195 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 1196 |
) |
1197 |
) nil |
|
1198 |
nil |
|
1199 |
) |
|
1200 |
) |
|
1201 |
#(#MenuItem |
|
1479 | 1202 |
#label: 'Classes' |
1203 |
#translateLabel: true |
|
1204 |
#submenu: |
|
1441 | 1205 |
#(#Menu |
1206 |
||
1207 |
#( |
|
1208 |
#(#MenuItem |
|
1479 | 1209 |
#label: 'System Browser' |
1210 |
#translateLabel: true |
|
1211 |
#value: #openApplication: |
|
1212 |
#argument: 'SystemBrowser' |
|
1213 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon 'System Browser') |
|
1441 | 1214 |
) |
1215 |
#(#MenuItem |
|
1479 | 1216 |
#label: '-' |
1441 | 1217 |
) |
1218 |
#(#MenuItem |
|
1479 | 1219 |
#label: 'Class Browser...' |
1220 |
#translateLabel: true |
|
1221 |
#value: #startClassBrowser |
|
1441 | 1222 |
) |
1223 |
#(#MenuItem |
|
1479 | 1224 |
#label: 'Full Class Browser...' |
1225 |
#translateLabel: true |
|
1226 |
#value: #startFullClassBrowser |
|
1441 | 1227 |
) |
1228 |
#(#MenuItem |
|
1479 | 1229 |
#label: 'Class Hierarchy Browser...' |
1230 |
#translateLabel: true |
|
1231 |
#value: #startClassHierarchyBrowser |
|
1441 | 1232 |
) |
1233 |
#(#MenuItem |
|
1479 | 1234 |
#label: 'Class Tree' |
1235 |
#translateLabel: true |
|
1236 |
#value: #openApplication: |
|
1237 |
#argument: 'ClassTreeGraphView' |
|
1441 | 1238 |
) |
1239 |
#(#MenuItem |
|
1479 | 1240 |
#label: '-' |
1441 | 1241 |
) |
1242 |
#(#MenuItem |
|
1479 | 1243 |
#label: 'Implementors...' |
1244 |
#translateLabel: true |
|
1245 |
#value: #browseImplementors |
|
1441 | 1246 |
) |
1247 |
#(#MenuItem |
|
1479 | 1248 |
#label: 'Senders...' |
1249 |
#translateLabel: true |
|
1250 |
#value: #browseSenders |
|
1441 | 1251 |
) |
1252 |
#(#MenuItem |
|
1479 | 1253 |
#label: '-' |
1441 | 1254 |
) |
1255 |
#(#MenuItem |
|
1479 | 1256 |
#label: 'Special' |
1257 |
#translateLabel: true |
|
1258 |
#value: #special |
|
1259 |
#submenu: |
|
1441 | 1260 |
#(#Menu |
1261 |
||
1262 |
#( |
|
1263 |
#(#MenuItem |
|
1479 | 1264 |
#label: 'References To Undeclared' |
1265 |
#translateLabel: true |
|
1266 |
#value: #browseUndeclared |
|
1441 | 1267 |
) |
1268 |
#(#MenuItem |
|
1479 | 1269 |
#label: 'Resource Methods...' |
1270 |
#translateLabel: true |
|
1271 |
#value: #browseResources |
|
1441 | 1272 |
) |
1273 |
#(#MenuItem |
|
1479 | 1274 |
#label: 'Show Break/Trace Points' |
1275 |
#translateLabel: true |
|
1276 |
#value: #browseAllBreakAndTracePoints |
|
1441 | 1277 |
) |
1278 |
#(#MenuItem |
|
1479 | 1279 |
#label: '-' |
1441 | 1280 |
) |
1281 |
#(#MenuItem |
|
1479 | 1282 |
#label: 'Remove All Break/Trace Points' |
1283 |
#translateLabel: true |
|
1284 |
#value: #removeAllBreakAndTracePoints |
|
1441 | 1285 |
) |
1286 |
) nil |
|
1287 |
nil |
|
1288 |
) |
|
1289 |
) |
|
1290 |
) nil |
|
1291 |
nil |
|
1292 |
) |
|
1293 |
) |
|
1294 |
#(#MenuItem |
|
1479 | 1295 |
#label: 'Tools' |
1296 |
#translateLabel: true |
|
1297 |
#submenu: |
|
1441 | 1298 |
#(#Menu |
1299 |
||
1300 |
#( |
|
1301 |
#(#MenuItem |
|
1479 | 1302 |
#label: 'Workspace' |
1303 |
#value: #openApplication: |
|
1304 |
#argument: 'Workspace' |
|
1305 |
#labelImage: #(#ResourceRetriever nil #startWorkspaceIcon 'Workspace') |
|
1441 | 1306 |
) |
1307 |
#(#MenuItem |
|
1479 | 1308 |
#label: '-' |
1441 | 1309 |
) |
1310 |
#(#MenuItem |
|
1480 | 1311 |
#label: 'GUI Painter' |
1479 | 1312 |
#value: #openApplication: |
1313 |
#argument: 'UIPainter' |
|
1480 | 1314 |
#labelImage: #(#ResourceRetriever nil #startUIPainterIcon 'GUI Painter') |
1441 | 1315 |
) |
1316 |
#(#MenuItem |
|
1479 | 1317 |
#label: 'Menu Editor' |
1318 |
#value: #openApplication: |
|
1319 |
#argument: 'MenuEditor' |
|
1320 |
#labelImage: #(#ResourceRetriever nil #startMenuEditorIcon 'Menu Editor') |
|
1441 | 1321 |
) |
1322 |
#(#MenuItem |
|
1479 | 1323 |
#label: 'Image Editor' |
1324 |
#value: #openApplication: |
|
1325 |
#argument: 'ImageEditor' |
|
1326 |
#labelImage: #(#ResourceRetriever nil #startImageEditorIcon 'Image Editor') |
|
1441 | 1327 |
) |
1328 |
#(#MenuItem |
|
1479 | 1329 |
#label: '-' |
1441 | 1330 |
) |
1331 |
#(#MenuItem |
|
1479 | 1332 |
#label: 'Changes Browser' |
1333 |
#translateLabel: true |
|
1334 |
#value: #openApplication: |
|
1335 |
#argument: 'ChangesBrowser' |
|
1336 |
#labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon 'Changes Browser') |
|
1441 | 1337 |
) |
1338 |
#(#MenuItem |
|
1479 | 1339 |
#label: '-' |
1441 | 1340 |
) |
1341 |
#(#MenuItem |
|
1479 | 1342 |
#label: 'Old Launcher' |
1343 |
#translateLabel: true |
|
1344 |
#value: #startOldLauncher |
|
1441 | 1345 |
) |
1346 |
#(#MenuItem |
|
1479 | 1347 |
#label: '-' |
1348 |
) |
|
1349 |
#(#MenuItem |
|
1350 |
#label: 'Monitors' |
|
1351 |
#translateLabel: true |
|
1352 |
#submenu: |
|
1441 | 1353 |
#(#Menu |
1354 |
||
1355 |
#( |
|
1356 |
#(#MenuItem |
|
1479 | 1357 |
#label: 'Processes' |
1358 |
#translateLabel: true |
|
1359 |
#value: #openApplication: |
|
1360 |
#argument: 'ProcessMonitor' |
|
1441 | 1361 |
) |
1362 |
#(#MenuItem |
|
1479 | 1363 |
#label: 'Semaphores' |
1364 |
#translateLabel: true |
|
1365 |
#value: #openApplication: |
|
1366 |
#argument: 'SemaphoreMonitor' |
|
1441 | 1367 |
) |
1368 |
#(#MenuItem |
|
1479 | 1369 |
#label: 'Memory' |
1370 |
#translateLabel: true |
|
1371 |
#value: #openApplication: |
|
1372 |
#argument: 'MemoryMonitor' |
|
1441 | 1373 |
) |
1374 |
#(#MenuItem |
|
1479 | 1375 |
#label: 'Irq Latency' |
1376 |
#translateLabel: true |
|
1377 |
#value: #startLatencyMonitor |
|
1441 | 1378 |
) |
1379 |
#(#MenuItem |
|
1479 | 1380 |
#label: 'Event View' |
1381 |
#translateLabel: true |
|
1382 |
#value: #openApplication: |
|
1383 |
#argument: 'EventMonitor' |
|
1441 | 1384 |
) |
1385 |
#(#MenuItem |
|
1479 | 1386 |
#label: 'Event Trace' |
1387 |
#translateLabel: true |
|
1388 |
#value: #startStopEventTrace |
|
1441 | 1389 |
) |
1390 |
#(#MenuItem |
|
1479 | 1391 |
#label: '-' |
1441 | 1392 |
) |
1393 |
#(#MenuItem |
|
1479 | 1394 |
#label: 'Memory Usage' |
1395 |
#translateLabel: true |
|
1396 |
#value: #openApplication: |
|
1397 |
#argument: 'MemoryUsageView' |
|
1441 | 1398 |
) |
1399 |
) nil |
|
1400 |
nil |
|
1401 |
) |
|
1402 |
) |
|
1403 |
#(#MenuItem |
|
1479 | 1404 |
#label: '-' |
1441 | 1405 |
) |
1406 |
#(#MenuItem |
|
1479 | 1407 |
#label: 'Views' |
1408 |
#translateLabel: true |
|
1409 |
#submenu: |
|
1441 | 1410 |
#(#Menu |
1411 |
||
1412 |
#( |
|
1413 |
#(#MenuItem |
|
1479 | 1414 |
#label: 'Iconify All' |
1415 |
#translateLabel: true |
|
1416 |
#value: #iconifyAllWindows |
|
1441 | 1417 |
) |
1418 |
#(#MenuItem |
|
1479 | 1419 |
#label: 'De-iconify All' |
1420 |
#translateLabel: true |
|
1421 |
#value: #deIconifyAllWindows |
|
1441 | 1422 |
) |
1423 |
#(#MenuItem |
|
1479 | 1424 |
#label: '-' |
1441 | 1425 |
) |
1426 |
#(#MenuItem |
|
1479 | 1427 |
#label: 'Find And Raise...' |
1428 |
#translateLabel: true |
|
1429 |
#value: #findAndRaiseWindow |
|
1441 | 1430 |
) |
1431 |
#(#MenuItem |
|
1479 | 1432 |
#label: '-' |
1441 | 1433 |
) |
1434 |
#(#MenuItem |
|
1479 | 1435 |
#label: 'View Tree (all views)' |
1436 |
#translateLabel: true |
|
1437 |
#value: #openApplication: |
|
1438 |
#argument: 'WindowTreeView' |
|
1441 | 1439 |
) |
1440 |
#(#MenuItem |
|
1479 | 1441 |
#label: 'View Tree' |
1442 |
#translateLabel: true |
|
1443 |
#value: #startWindowTreeView |
|
1441 | 1444 |
) |
1445 |
#(#MenuItem |
|
1479 | 1446 |
#label: '-' |
1441 | 1447 |
) |
1448 |
#(#MenuItem |
|
1479 | 1449 |
#label: 'Select And Inspect View' |
1450 |
#translateLabel: true |
|
1451 |
#value: #viewInspect |
|
1441 | 1452 |
) |
1453 |
#(#MenuItem |
|
1479 | 1454 |
#label: '-' |
1441 | 1455 |
) |
1456 |
#(#MenuItem |
|
1479 | 1457 |
#label: 'Select And Destroy View' |
1458 |
#translateLabel: true |
|
1459 |
#value: #viewDestroy |
|
1441 | 1460 |
) |
1461 |
#(#MenuItem |
|
1479 | 1462 |
#label: 'Find And Destroy...' |
1463 |
#translateLabel: true |
|
1464 |
#value: #findAndDestroyWindow |
|
1441 | 1465 |
) |
1466 |
) nil |
|
1467 |
nil |
|
1468 |
) |
|
1469 |
) |
|
1470 |
#(#MenuItem |
|
1479 | 1471 |
#label: '-' |
1441 | 1472 |
) |
1473 |
#(#MenuItem |
|
1479 | 1474 |
#label: 'Hardcopy' |
1475 |
#translateLabel: true |
|
1476 |
#submenu: |
|
1441 | 1477 |
#(#Menu |
1478 |
||
1479 |
#( |
|
1480 |
#(#MenuItem |
|
1479 | 1481 |
#label: 'Screen' |
1482 |
#translateLabel: true |
|
1483 |
#value: #fullScreenHardcopy |
|
1441 | 1484 |
) |
1485 |
#(#MenuItem |
|
1479 | 1486 |
#label: 'Area' |
1487 |
#translateLabel: true |
|
1488 |
#value: #screenHardcopy |
|
1441 | 1489 |
) |
1490 |
#(#MenuItem |
|
1479 | 1491 |
#label: 'View' |
1492 |
#translateLabel: true |
|
1493 |
#value: #viewHardcopy |
|
1441 | 1494 |
) |
1495 |
) nil |
|
1496 |
nil |
|
1497 |
) |
|
1498 |
) |
|
1499 |
#(#MenuItem |
|
1479 | 1500 |
#label: '-' |
1441 | 1501 |
) |
1502 |
#(#MenuItem |
|
1479 | 1503 |
#label: 'Misc' |
1504 |
#translateLabel: true |
|
1505 |
#submenu: |
|
1441 | 1506 |
#(#Menu |
1507 |
||
1508 |
#( |
|
1509 |
#(#MenuItem |
|
1479 | 1510 |
#label: 'Garbage Collect' |
1511 |
#translateLabel: true |
|
1512 |
#value: #garbageCollect |
|
1441 | 1513 |
) |
1514 |
#(#MenuItem |
|
1479 | 1515 |
#label: 'Garbage Collect And Compress' |
1516 |
#translateLabel: true |
|
1517 |
#value: #compressingGarbageCollect |
|
1441 | 1518 |
) |
1476
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
1519 |
#(#MenuItem |
1479 | 1520 |
#label: '-' |
1489
7fb50b2351a5
also make last sep-line invisible in tools-misc menu
Claus Gittinger <cg@exept.de>
parents:
1488
diff
changeset
|
1521 |
#isVisible: #javaSupportPresent |
1476
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
1522 |
) |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
1523 |
#(#MenuItem |
1479 | 1524 |
#label: 'Reinit Java VM' |
1525 |
#isVisible: #javaSupportPresent |
|
1526 |
#value: #initJavaVM |
|
1476
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
1527 |
) |
1441 | 1528 |
) nil |
1529 |
nil |
|
1530 |
) |
|
1531 |
) |
|
1532 |
) nil |
|
1533 |
nil |
|
1534 |
) |
|
1535 |
) |
|
1536 |
#(#MenuItem |
|
1479 | 1537 |
#label: 'Projects' |
1538 |
#translateLabel: true |
|
1539 |
#submenu: |
|
1441 | 1540 |
#(#Menu |
1541 |
||
1542 |
#( |
|
1543 |
#(#MenuItem |
|
1479 | 1544 |
#label: 'New Project' |
1545 |
#translateLabel: true |
|
1546 |
#value: #newProject |
|
1441 | 1547 |
) |
1548 |
#(#MenuItem |
|
1479 | 1549 |
#label: '-' |
1441 | 1550 |
) |
1551 |
#(#MenuItem |
|
1479 | 1552 |
#label: 'Select Project...' |
1553 |
#translateLabel: true |
|
1554 |
#value: #selectProject |
|
1441 | 1555 |
) |
1556 |
) nil |
|
1557 |
nil |
|
1558 |
) |
|
1559 |
) |
|
1560 |
#(#MenuItem |
|
1479 | 1561 |
#label: 'Settings' |
1562 |
#translateLabel: true |
|
1563 |
#submenuChannel: #menuSettings |
|
1441 | 1564 |
) |
1565 |
#(#MenuItem |
|
1479 | 1566 |
#label: 'Demos' |
1567 |
#translateLabel: true |
|
1568 |
#submenu: |
|
1441 | 1569 |
#(#Menu |
1570 |
||
1571 |
#( |
|
1572 |
#(#MenuItem |
|
1479 | 1573 |
#label: 'Goodies' |
1574 |
#translateLabel: true |
|
1575 |
#submenu: |
|
1441 | 1576 |
#(#Menu |
1577 |
||
1578 |
#( |
|
1579 |
#(#MenuItem |
|
1479 | 1580 |
#label: 'Clock' |
1581 |
#translateLabel: true |
|
1582 |
#value: #openDemo: |
|
1583 |
#argument: 'Clock' |
|
1441 | 1584 |
) |
1585 |
#(#MenuItem |
|
1479 | 1586 |
#label: 'Digital Clock' |
1587 |
#translateLabel: true |
|
1588 |
#value: #openDemo: |
|
1589 |
#argument: 'DigitalClockView' |
|
1441 | 1590 |
) |
1591 |
#(#MenuItem |
|
1479 | 1592 |
#label: 'Calendar' |
1593 |
#translateLabel: true |
|
1594 |
#value: #openDemo: |
|
1595 |
#argument: 'Calendar' |
|
1441 | 1596 |
) |
1597 |
#(#MenuItem |
|
1479 | 1598 |
#label: 'Calculator' |
1599 |
#translateLabel: true |
|
1600 |
#value: #openDemo: |
|
1601 |
#argument: 'CalculatorView' |
|
1441 | 1602 |
) |
1603 |
#(#MenuItem |
|
1479 | 1604 |
#label: '-' |
1441 | 1605 |
) |
1606 |
#(#MenuItem |
|
1479 | 1607 |
#label: 'Mail Tool' |
1608 |
#translateLabel: true |
|
1609 |
#value: #openDemo: |
|
1610 |
#argument: 'MailView' |
|
1441 | 1611 |
) |
1612 |
#(#MenuItem |
|
1479 | 1613 |
#label: 'News Tool' |
1614 |
#translateLabel: true |
|
1615 |
#value: #openDemo: |
|
1616 |
#argument: 'NewsView' |
|
1441 | 1617 |
) |
1618 |
#(#MenuItem |
|
1479 | 1619 |
#label: 'FTP Tool' |
1620 |
#translateLabel: true |
|
1621 |
#value: #openDemo: |
|
1622 |
#argument: 'FTPTool' |
|
1441 | 1623 |
) |
1624 |
) nil |
|
1625 |
nil |
|
1626 |
) |
|
1627 |
) |
|
1628 |
#(#MenuItem |
|
1479 | 1629 |
#label: 'Games' |
1630 |
#translateLabel: true |
|
1631 |
#submenu: |
|
1441 | 1632 |
#(#Menu |
1633 |
||
1634 |
#( |
|
1635 |
#(#MenuItem |
|
1479 | 1636 |
#label: 'Tetris' |
1637 |
#translateLabel: true |
|
1638 |
#value: #openDemo: |
|
1639 |
#argument: 'Games::Tetris' |
|
1441 | 1640 |
) |
1641 |
#(#MenuItem |
|
1479 | 1642 |
#label: 'Tic Tac Toe' |
1643 |
#translateLabel: true |
|
1644 |
#value: #openDemo: |
|
1645 |
#argument: 'TicTacToeGame' |
|
1441 | 1646 |
) |
1647 |
#(#MenuItem |
|
1479 | 1648 |
#label: 'Tic Tac Toe (2 players)' |
1649 |
#translateLabel: true |
|
1650 |
#value: #startTicTacToe2 |
|
1441 | 1651 |
) |
1652 |
) nil |
|
1653 |
nil |
|
1654 |
) |
|
1655 |
) |
|
1656 |
#(#MenuItem |
|
1479 | 1657 |
#label: 'Geometric Designs' |
1658 |
#translateLabel: true |
|
1659 |
#submenu: |
|
1441 | 1660 |
#(#Menu |
1661 |
||
1662 |
#( |
|
1663 |
#(#MenuItem |
|
1479 | 1664 |
#label: 'Pen Demo' |
1665 |
#translateLabel: true |
|
1666 |
#value: #openDemo: |
|
1667 |
#argument: 'PenDemo' |
|
1441 | 1668 |
) |
1669 |
#(#MenuItem |
|
1479 | 1670 |
#label: 'Commander Demo' |
1671 |
#translateLabel: true |
|
1672 |
#value: #openDemo: |
|
1673 |
#argument: 'CommanderDemo' |
|
1441 | 1674 |
) |
1675 |
#(#MenuItem |
|
1479 | 1676 |
#label: '-' |
1441 | 1677 |
) |
1678 |
#(#MenuItem |
|
1479 | 1679 |
#label: 'Fractal Plants Demo' |
1680 |
#translateLabel: true |
|
1681 |
#value: #openDemo: |
|
1682 |
#argument: 'FractalPlantsDemo' |
|
1441 | 1683 |
) |
1684 |
#(#MenuItem |
|
1479 | 1685 |
#label: 'Fractal Patterns Demo' |
1686 |
#translateLabel: true |
|
1687 |
#value: #openDemo: |
|
1688 |
#argument: 'FractalPatternsDemo' |
|
1441 | 1689 |
) |
1690 |
#(#MenuItem |
|
1479 | 1691 |
#label: 'More Fractal Patterns Demo' |
1692 |
#translateLabel: true |
|
1693 |
#value: #openDemo: |
|
1694 |
#argument: 'ArmchairUniverseDemo' |
|
1441 | 1695 |
) |
1696 |
) nil |
|
1697 |
nil |
|
1698 |
) |
|
1699 |
) |
|
1700 |
#(#MenuItem |
|
1479 | 1701 |
#label: 'Simple Animations' |
1702 |
#translateLabel: true |
|
1703 |
#submenu: |
|
1441 | 1704 |
#(#Menu |
1705 |
||
1706 |
#( |
|
1707 |
#(#MenuItem |
|
1479 | 1708 |
#label: 'Walking Man' |
1709 |
#translateLabel: true |
|
1710 |
#value: #openDemo: |
|
1711 |
#argument: 'Animation' |
|
1441 | 1712 |
) |
1713 |
#(#MenuItem |
|
1479 | 1714 |
#label: 'Globe Demo' |
1715 |
#translateLabel: true |
|
1716 |
#value: #openDemo: |
|
1717 |
#argument: 'GlobeDemo' |
|
1441 | 1718 |
) |
1719 |
) nil |
|
1720 |
nil |
|
1721 |
) |
|
1722 |
) |
|
1723 |
#(#MenuItem |
|
1479 | 1724 |
#label: '3D Graphics' |
1725 |
#translateLabel: true |
|
1726 |
#submenu: |
|
1441 | 1727 |
#(#Menu |
1728 |
||
1729 |
#( |
|
1730 |
#(#MenuItem |
|
1479 | 1731 |
#label: 'Plane' |
1732 |
#translateLabel: true |
|
1733 |
#value: #openDemo: |
|
1734 |
#argument: 'GLPlaneDemoView2' |
|
1441 | 1735 |
) |
1736 |
#(#MenuItem |
|
1479 | 1737 |
#label: 'Tetra' |
1738 |
#translateLabel: true |
|
1739 |
#value: #openDemo: |
|
1740 |
#argument: 'GLTetraDemoView' |
|
1441 | 1741 |
) |
1742 |
#(#MenuItem |
|
1479 | 1743 |
#label: 'Cube (wireframe)' |
1744 |
#translateLabel: true |
|
1745 |
#value: #openDemo: |
|
1746 |
#argument: 'GLWireCubeDemoView' |
|
1441 | 1747 |
) |
1748 |
#(#MenuItem |
|
1479 | 1749 |
#label: 'Cube (solid)' |
1750 |
#translateLabel: true |
|
1751 |
#value: #openDemo: |
|
1752 |
#argument: 'GLCubeDemoView' |
|
1441 | 1753 |
) |
1754 |
#(#MenuItem |
|
1479 | 1755 |
#label: 'Sphere (wireframe)' |
1756 |
#translateLabel: true |
|
1757 |
#value: #openDemo: |
|
1758 |
#argument: 'GLWireSphereDemoView' |
|
1441 | 1759 |
) |
1760 |
#(#MenuItem |
|
1479 | 1761 |
#label: 'Doughnut (wireframe)' |
1762 |
#translateLabel: true |
|
1763 |
#value: #openDemo: |
|
1764 |
#argument: 'GLDoughnutDemoView' |
|
1441 | 1765 |
) |
1766 |
#(#MenuItem |
|
1479 | 1767 |
#label: 'Planet' |
1768 |
#translateLabel: true |
|
1769 |
#value: #openDemo: |
|
1770 |
#argument: 'GLPlanetDemoView' |
|
1441 | 1771 |
) |
1772 |
#(#MenuItem |
|
1479 | 1773 |
#label: 'Teapot' |
1774 |
#translateLabel: true |
|
1775 |
#value: #openDemo: |
|
1776 |
#argument: 'GLTeapotDemo' |
|
1441 | 1777 |
) |
1778 |
#(#MenuItem |
|
1479 | 1779 |
#label: 'Logo' |
1780 |
#translateLabel: true |
|
1781 |
#value: #openDemo: |
|
1782 |
#argument: 'Logo3DView1' |
|
1441 | 1783 |
) |
1784 |
#(#MenuItem |
|
1479 | 1785 |
#label: 'Rubics Cube' |
1786 |
#translateLabel: true |
|
1787 |
#value: #openDemo: |
|
1788 |
#argument: 'RubicsCubeView' |
|
1441 | 1789 |
) |
1790 |
#(#MenuItem |
|
1479 | 1791 |
#label: 'X/Y Graph' |
1792 |
#translateLabel: true |
|
1793 |
#value: #openDemo: |
|
1794 |
#argument: 'GLXYGraph' |
|
1441 | 1795 |
) |
1796 |
#(#MenuItem |
|
1479 | 1797 |
#label: '-' |
1441 | 1798 |
) |
1799 |
#(#MenuItem |
|
1479 | 1800 |
#label: 'Cube (light)' |
1801 |
#translateLabel: true |
|
1802 |
#value: #openDemo: |
|
1803 |
#argument: 'GLCubeDemoView2' |
|
1441 | 1804 |
) |
1805 |
#(#MenuItem |
|
1479 | 1806 |
#label: 'Cube (light && texture)' |
1807 |
#translateLabel: true |
|
1808 |
#value: #openDemo: |
|
1809 |
#accessCharacterPosition: 13 |
|
1810 |
#argument: 'GLBrickCubeDemoView' |
|
1441 | 1811 |
) |
1812 |
#(#MenuItem |
|
1479 | 1813 |
#label: 'Sphere (light)' |
1814 |
#translateLabel: true |
|
1815 |
#value: #openDemo: |
|
1816 |
#argument: 'GLSphereDemoView2' |
|
1441 | 1817 |
) |
1818 |
#(#MenuItem |
|
1479 | 1819 |
#label: 'Colored Octahedron' |
1820 |
#translateLabel: true |
|
1821 |
#value: #openDemo: |
|
1822 |
#argument: 'GLOctaHedronDemoView' |
|
1441 | 1823 |
) |
1824 |
) nil |
|
1825 |
nil |
|
1826 |
) |
|
1827 |
) |
|
1828 |
#(#MenuItem |
|
1479 | 1829 |
#label: 'Graphic Editors' |
1830 |
#translateLabel: true |
|
1831 |
#submenu: |
|
1441 | 1832 |
#(#Menu |
1833 |
||
1834 |
#( |
|
1835 |
#(#MenuItem |
|
1479 | 1836 |
#label: 'Draw Tool' |
1837 |
#translateLabel: true |
|
1838 |
#value: #openDemo: |
|
1839 |
#argument: 'DrawTool' |
|
1441 | 1840 |
) |
1841 |
#(#MenuItem |
|
1479 | 1842 |
#label: 'Logic Tool' |
1843 |
#translateLabel: true |
|
1844 |
#value: #openDemo: |
|
1845 |
#argument: 'LogicTool' |
|
1441 | 1846 |
) |
1847 |
#(#MenuItem |
|
1479 | 1848 |
#label: 'Paint Demo' |
1849 |
#translateLabel: true |
|
1850 |
#value: #openDemo: |
|
1851 |
#argument: 'ColorDrawDemo3' |
|
1441 | 1852 |
) |
1853 |
) nil |
|
1854 |
nil |
|
1855 |
) |
|
1856 |
) |
|
1857 |
#(#MenuItem |
|
1479 | 1858 |
#label: 'GUI' |
1859 |
#translateLabel: true |
|
1860 |
#submenu: |
|
1441 | 1861 |
#(#Menu |
1862 |
||
1863 |
#( |
|
1864 |
#(#MenuItem |
|
1479 | 1865 |
#label: 'Widget Gallery' |
1866 |
#translateLabel: true |
|
1867 |
#value: #openDemo: |
|
1868 |
#argument: 'CodingExamples_GUI::GUIDemo' |
|
1441 | 1869 |
) |
1870 |
#(#MenuItem |
|
1479 | 1871 |
#label: '-' |
1441 | 1872 |
) |
1873 |
#(#MenuItem |
|
1479 | 1874 |
#label: 'Calculator' |
1875 |
#translateLabel: true |
|
1876 |
#value: #openDemo: |
|
1877 |
#argument: 'CodingExamples_GUI::GUIDemoCalculator' |
|
1441 | 1878 |
) |
1879 |
) nil |
|
1880 |
nil |
|
1881 |
) |
|
1882 |
) |
|
1883 |
) nil |
|
1884 |
nil |
|
1885 |
) |
|
1886 |
) |
|
1887 |
#(#MenuItem |
|
1479 | 1888 |
#label: 'Help' |
1889 |
#translateLabel: true |
|
1890 |
#startGroup: #right |
|
1891 |
#submenu: |
|
1441 | 1892 |
#(#Menu |
1893 |
||
1894 |
#( |
|
1895 |
#(#MenuItem |
|
1479 | 1896 |
#label: 'What''s New' |
1897 |
#translateLabel: true |
|
1898 |
#value: #startWhatsNewDocumentation |
|
1441 | 1899 |
) |
1900 |
#(#MenuItem |
|
1479 | 1901 |
#label: 'Index' |
1902 |
#translateLabel: true |
|
1903 |
#value: #startDocumentationIndex |
|
1441 | 1904 |
) |
1905 |
#(#MenuItem |
|
1479 | 1906 |
#label: '-' |
1441 | 1907 |
) |
1908 |
#(#MenuItem |
|
1479 | 1909 |
#label: 'ST/X Online Documentation' |
1910 |
#translateLabel: true |
|
1911 |
#value: #startDocumentationTool |
|
1441 | 1912 |
) |
1913 |
#(#MenuItem |
|
1479 | 1914 |
#label: 'Class Documentation' |
1915 |
#translateLabel: true |
|
1916 |
#value: #startClassDocumentation |
|
1441 | 1917 |
) |
1918 |
#(#MenuItem |
|
1479 | 1919 |
#label: '-' |
1441 | 1920 |
) |
1921 |
#(#MenuItem |
|
1479 | 1922 |
#label: 'Print Documentation...' |
1923 |
#translateLabel: true |
|
1924 |
#value: #showBookPrintDocument |
|
1441 | 1925 |
) |
1926 |
#(#MenuItem |
|
1479 | 1927 |
#label: '-' |
1441 | 1928 |
) |
1929 |
#(#MenuItem |
|
1479 | 1930 |
#label: 'Active Help' |
1931 |
#translateLabel: true |
|
1932 |
#value: #toggleActiveHelp: |
|
1933 |
#indication: #activeHelp |
|
1441 | 1934 |
) |
1935 |
) nil |
|
1936 |
nil |
|
1937 |
) |
|
1938 |
) |
|
1939 |
) nil |
|
1940 |
nil |
|
1941 |
) |
|
1942 |
! |
|
1943 |
||
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1944 |
menuAbout |
1527 | 1945 |
"This resource specification was automatically generated |
1946 |
by the MenuEditor of ST/X." |
|
1947 |
||
1948 |
"Do not manually edit this!! If it is corrupted, |
|
1949 |
the MenuEditor may not be able to read the specification." |
|
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1950 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1951 |
" |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1952 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuAbout |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1953 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuAbout)) startUp |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1954 |
" |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1955 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1956 |
<resource: #menu> |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1957 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1958 |
^ |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1959 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1960 |
#(#Menu |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1961 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1962 |
#( |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1963 |
#(#MenuItem |
1527 | 1964 |
#label: 'About Smalltalk/X...' |
1965 |
#translateLabel: true |
|
1966 |
#value: #openAbout |
|
1967 |
#activeHelpKey: #aboutSTX |
|
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1968 |
) |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1969 |
#(#MenuItem |
1527 | 1970 |
#label: 'Licence Conditions' |
1971 |
#translateLabel: true |
|
1972 |
#value: #openLicenceConditions |
|
1973 |
#activeHelpKey: #licenceConditions |
|
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1974 |
) |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1975 |
#(#MenuItem |
1527 | 1976 |
#label: '-' |
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1977 |
) |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1978 |
#(#MenuItem |
1527 | 1979 |
#label: 'About This Application...' |
1980 |
#translateLabel: true |
|
1981 |
#value: #openAboutThisApplication |
|
1982 |
#activeHelpKey: #aboutThisAppliaction |
|
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1983 |
) |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1984 |
) nil |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1985 |
nil |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1986 |
) |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1987 |
! |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
1988 |
|
1441 | 1989 |
menuNewSettings |
1527 | 1990 |
"This resource specification was automatically generated |
1991 |
by the MenuEditor of ST/X." |
|
1992 |
||
1993 |
"Do not manually edit this!! If it is corrupted, |
|
1994 |
the MenuEditor may not be able to read the specification." |
|
1441 | 1995 |
|
1996 |
" |
|
1997 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuNewSettings |
|
1998 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuNewSettings)) startUp |
|
1999 |
" |
|
2000 |
||
2001 |
<resource: #menu> |
|
2002 |
||
2003 |
^ |
|
2004 |
||
2005 |
#(#Menu |
|
2006 |
||
2007 |
#( |
|
2008 |
#(#MenuItem |
|
1527 | 2009 |
#label: 'Style...' |
2010 |
#translateLabel: true |
|
2011 |
#value: #openSettingsFor: |
|
2012 |
#argument: 'StyleSettings' |
|
1441 | 2013 |
) |
2014 |
#(#MenuItem |
|
1527 | 2015 |
#label: 'System...' |
2016 |
#translateLabel: true |
|
2017 |
#value: #openSettingsFor: |
|
2018 |
#argument: 'SystemSettings' |
|
1441 | 2019 |
) |
2020 |
#(#MenuItem |
|
1527 | 2021 |
#label: 'Compilation...' |
2022 |
#translateLabel: true |
|
2023 |
#value: #openSettingsFor: |
|
2024 |
#argument: 'CompilationSettings' |
|
2025 |
#labelImage: #(#ResourceRetriever nil #'```````````````') |
|
1441 | 2026 |
) |
2027 |
#(#MenuItem |
|
1527 | 2028 |
#label: '-' |
1441 | 2029 |
) |
2030 |
#(#MenuItem |
|
1527 | 2031 |
#label: 'Save Settings...' |
2032 |
#translateLabel: true |
|
2033 |
#value: #saveSettings |
|
1441 | 2034 |
) |
2035 |
#(#MenuItem |
|
1527 | 2036 |
#label: 'Restore Settings...' |
2037 |
#translateLabel: true |
|
2038 |
#value: #restoreSettings |
|
2039 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2040 |
) |
2041 |
) nil |
|
2042 |
nil |
|
2043 |
) |
|
2044 |
! |
|
2045 |
||
2046 |
menuSettings |
|
1527 | 2047 |
"This resource specification was automatically generated |
2048 |
by the MenuEditor of ST/X." |
|
2049 |
||
2050 |
"Do not manually edit this!! If it is corrupted, |
|
2051 |
the MenuEditor may not be able to read the specification." |
|
1441 | 2052 |
|
2053 |
" |
|
2054 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuSettings |
|
2055 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuSettings)) startUp |
|
2056 |
" |
|
2057 |
||
2058 |
<resource: #menu> |
|
2059 |
||
2060 |
^ |
|
2061 |
||
2062 |
#(#Menu |
|
2063 |
||
2064 |
#( |
|
2065 |
#(#MenuItem |
|
1527 | 2066 |
#label: 'View Style...' |
2067 |
#translateLabel: true |
|
2068 |
#value: #viewStyleSetting |
|
2069 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2070 |
) |
2071 |
#(#MenuItem |
|
1527 | 2072 |
#label: 'Fonts...' |
2073 |
#translateLabel: true |
|
2074 |
#value: #fontSettings |
|
2075 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2076 |
) |
2077 |
#(#MenuItem |
|
1527 | 2078 |
#label: 'Language...' |
2079 |
#translateLabel: true |
|
2080 |
#value: #languageSetting |
|
2081 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2082 |
) |
2083 |
#(#MenuItem |
|
1527 | 2084 |
#label: 'Keyboard Mappings...' |
2085 |
#translateLabel: true |
|
2086 |
#value: #keyboardSetting |
|
1441 | 2087 |
) |
2088 |
#(#MenuItem |
|
1527 | 2089 |
#label: '-' |
1441 | 2090 |
) |
2091 |
#(#MenuItem |
|
1527 | 2092 |
#label: 'Messages...' |
2093 |
#translateLabel: true |
|
2094 |
#value: #messageSettings |
|
2095 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2096 |
) |
2097 |
#(#MenuItem |
|
1527 | 2098 |
#label: 'Compilation...' |
2099 |
#translateLabel: true |
|
2100 |
#value: #compilerSettings |
|
2101 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2102 |
) |
2103 |
#(#MenuItem |
|
1527 | 2104 |
#label: 'Object Memory...' |
2105 |
#translateLabel: true |
|
2106 |
#value: #memorySettings |
|
2107 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2108 |
) |
2109 |
#(#MenuItem |
|
1527 | 2110 |
#label: 'Source And Debugger...' |
2111 |
#translateLabel: true |
|
2112 |
#value: #sourceAndDebuggerSettings |
|
2113 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2114 |
) |
2115 |
#(#MenuItem |
|
1527 | 2116 |
#label: '-' |
1441 | 2117 |
) |
2118 |
#(#MenuItem |
|
1527 | 2119 |
#label: 'Printer...' |
2120 |
#translateLabel: true |
|
2121 |
#value: #printerSettings |
|
2122 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2123 |
) |
2124 |
#(#MenuItem |
|
1527 | 2125 |
#label: 'Screen...' |
2126 |
#translateLabel: true |
|
2127 |
#value: #displaySettings |
|
2128 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2129 |
) |
2130 |
#(#MenuItem |
|
1527 | 2131 |
#label: '-' |
1441 | 2132 |
) |
2133 |
#(#MenuItem |
|
1527 | 2134 |
#label: 'Misc...' |
2135 |
#translateLabel: true |
|
2136 |
#value: #miscSettings |
|
2137 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2138 |
) |
2139 |
#(#MenuItem |
|
1527 | 2140 |
#label: '-' |
1441 | 2141 |
) |
2142 |
#(#MenuItem |
|
1527 | 2143 |
#label: 'Save Settings...' |
2144 |
#translateLabel: true |
|
2145 |
#value: #saveSettings |
|
1441 | 2146 |
) |
2147 |
#(#MenuItem |
|
1527 | 2148 |
#label: 'Restore Settings...' |
2149 |
#translateLabel: true |
|
2150 |
#value: #restoreSettings |
|
2151 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
1441 | 2152 |
) |
2153 |
) nil |
|
2154 |
nil |
|
2155 |
) |
|
2156 |
! |
|
2157 |
||
2158 |
menuToolbar |
|
1527 | 2159 |
"This resource specification was automatically generated |
2160 |
by the MenuEditor of ST/X." |
|
2161 |
||
2162 |
"Do not manually edit this!! If it is corrupted, |
|
2163 |
the MenuEditor may not be able to read the specification." |
|
1441 | 2164 |
|
2165 |
" |
|
2166 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar |
|
2167 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp |
|
2168 |
" |
|
2169 |
||
2170 |
<resource: #menu> |
|
2171 |
||
2172 |
^ |
|
2173 |
||
2174 |
#(#Menu |
|
2175 |
||
2176 |
#( |
|
2177 |
#(#MenuItem |
|
1527 | 2178 |
#label: 'open workspace' |
2179 |
#isButton: true |
|
2180 |
#value: #openApplication: |
|
2181 |
#argument: 'Workspace' |
|
2182 |
#labelImage: #(#ResourceRetriever nil #startWorkspaceIcon) |
|
1441 | 2183 |
) |
2184 |
#(#MenuItem |
|
1527 | 2185 |
#label: 'open file browser' |
2186 |
#isButton: true |
|
2187 |
#value: #openApplication: |
|
2188 |
#argument: 'FileBrowser' |
|
2189 |
#labelImage: #(#ResourceRetriever nil #startFileBrowserIcon) |
|
1441 | 2190 |
) |
2191 |
#(#MenuItem |
|
1527 | 2192 |
#label: 'save image' |
2193 |
#isButton: true |
|
2194 |
#value: #saveImageAs |
|
2195 |
#labelImage: #(#ResourceRetriever nil #saveImageIcon) |
|
1441 | 2196 |
) |
2197 |
#(#MenuItem |
|
1527 | 2198 |
#label: '' |
1441 | 2199 |
) |
2200 |
#(#MenuItem |
|
1527 | 2201 |
#label: 'open system browser' |
2202 |
#isButton: true |
|
2203 |
#value: #openApplication: |
|
2204 |
#activeHelpKey: #'#startSystemBrowser' |
|
2205 |
#argument: 'SystemBrowser' |
|
2206 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon) |
|
1441 | 2207 |
) |
2208 |
#(#MenuItem |
|
1527 | 2209 |
#label: 'open changes browser' |
2210 |
#isButton: true |
|
2211 |
#value: #openApplication: |
|
2212 |
#argument: 'ChangesBrowser' |
|
2213 |
#labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon) |
|
1441 | 2214 |
) |
2215 |
#(#MenuItem |
|
1527 | 2216 |
#label: '' |
1441 | 2217 |
) |
2218 |
#(#MenuItem |
|
1527 | 2219 |
#label: 'open GUI Builder' |
2220 |
#isButton: true |
|
2221 |
#value: #openApplication: |
|
2222 |
#argument: 'UIPainter' |
|
2223 |
#labelImage: #(#ResourceRetriever nil #startUIPainterIcon) |
|
1441 | 2224 |
) |
2225 |
#(#MenuItem |
|
1527 | 2226 |
#label: 'open menu editor' |
2227 |
#isButton: true |
|
2228 |
#value: #openApplication: |
|
2229 |
#argument: 'MenuEditor' |
|
2230 |
#labelImage: #(#ResourceRetriever nil #startMenuEditorIcon) |
|
1441 | 2231 |
) |
2232 |
#(#MenuItem |
|
1527 | 2233 |
#label: 'open image editor' |
2234 |
#isButton: true |
|
2235 |
#value: #openApplication: |
|
2236 |
#argument: 'ImageEditor' |
|
2237 |
#labelImage: #(#ResourceRetriever nil #startImageEditorIcon) |
|
1441 | 2238 |
) |
2239 |
#(#MenuItem |
|
1527 | 2240 |
#label: '' |
1441 | 2241 |
) |
2242 |
#(#MenuItem |
|
1527 | 2243 |
#label: 'garbage collect' |
2244 |
#isButton: true |
|
2245 |
#value: #compressingGarbageCollect |
|
2246 |
#labelImage: #(#ResourceRetriever nil #garbageCollectIcon) |
|
1441 | 2247 |
) |
2248 |
) nil |
|
2249 |
nil |
|
2250 |
) |
|
2251 |
! ! |
|
2252 |
||
1424 | 2253 |
!NewLauncher class methodsFor:'resources'! |
2254 |
||
2255 |
garbageCollectIcon |
|
1527 | 2256 |
"This resource specification was automatically generated |
2257 |
by the ImageEditor of ST/X." |
|
2258 |
||
2259 |
"Do not manually edit this!! If it is corrupted, |
|
2260 |
the ImageEditor may not be able to read the specification." |
|
2261 |
||
1424 | 2262 |
" |
1527 | 2263 |
ImageEditor openOnClass:self andSelector:#garbageCollectIcon |
1424 | 2264 |
" |
2265 |
||
2266 |
<resource: #image> |
|
2267 |
||
2268 |
^Icon |
|
2269 |
constantNamed:#'NewLauncher garbageCollectIcon' |
|
1527 | 2270 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'DQD@@@.;.1D[DQDQD@@QDP@@.;.;,[,@@ADP@ADQ@@.;@@.;.1@@@A@@DQD@B;@@@[.;DCH@D@@QDP@K,@@K.;,Q@2@P@ADQ@K.;@@DQDQDPL @@DQDKB;B0@QDQ@@@C@@@QD[B0B0,ADP@"H"@@@ADQ@@@@@@DQ@P@@@0@@DQ@@@@C 8@@ADQL3@@@Q@@@@;.;.@@DCL0H@@@@@@@@NC @@@PLC@ @@@@@@C.;.8@@A@0LB@@@@@@@@8N@@@@DC@0H@@@@@B (@@AD@@PLC@ @@@@****@LG@@A@0LB@@@@@JB CL3L0@DC@0H@@@B***(@0L@Q@SLCL @@@@(J@L3L3AD@L"H @@@@@QDQC@0QDQD@@@DP@@@ADQD@@@@QD@@@@@@@@ @B@ @B@@HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@H@@@H@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@G1@@@C>0@@A1=0@@XO^@@FG30@C0@^@AZ@? @)P?8@@@O>@@B#? @C<?8@@TO>@@_#? @B ?8@E@O>@G9S? @)>?8@?JO>@EO3? @APO @@@@@@]7]7\DUUUDAEUUQ@U7]5\EUUUTAUUUU@]U]W\@@a') ; yourself); yourself]! |
1424 | 2271 |
|
2272 |
saveImageIcon |
|
1527 | 2273 |
"This resource specification was automatically generated |
2274 |
by the ImageEditor of ST/X." |
|
2275 |
||
2276 |
"Do not manually edit this!! If it is corrupted, |
|
2277 |
the ImageEditor may not be able to read the specification." |
|
2278 |
||
1424 | 2279 |
" |
1527 | 2280 |
ImageEditor openOnClass:self andSelector:#saveImageIcon |
1424 | 2281 |
" |
2282 |
||
2283 |
<resource: #image> |
|
2284 |
||
2285 |
^Icon |
|
2286 |
constantNamed:#'NewLauncher saveImageIcon' |
|
1527 | 2287 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UPSL3L0A@ET7L3L0?PAUML3L3OT@US\3L3C5@ET43L3L?PAUM3L3LO4@USSL3L3=@ET7L3L0?PAUML3L3O4@US\3L3C=@ET43L3L?PAUM@@@@O4@US?????=@ET?UUUU?PAUO7??6?4@US=T?=+=@ET?ZO?Z?PAUO4C?6/4@U]U**)WU@ET@@@@@@@AUUUUUUUUU%Y%UUUTE%%UUUUTU)UEUUUUEUUUUUUVYUUTEUTUUUUDUAUUUUUUQUPUUVUUUUUTU%P@a') ; colorMapFromArray:#[255 255 255 0 0 0 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C??>@@@@@@@@@@@@;*9R<H*(W)BJ*E:@S.9R,B)HT)@*REJP:$9R<@@a') ; yourself); yourself]! |
1424 | 2288 |
|
2289 |
startChangesBrowserIcon |
|
1527 | 2290 |
"This resource specification was automatically generated |
2291 |
by the ImageEditor of ST/X." |
|
2292 |
||
2293 |
"Do not manually edit this!! If it is corrupted, |
|
2294 |
the ImageEditor may not be able to read the specification." |
|
2295 |
||
1424 | 2296 |
" |
1527 | 2297 |
ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon |
1424 | 2298 |
" |
2299 |
||
2300 |
<resource: #image> |
|
2301 |
||
2302 |
^Icon |
|
2303 |
constantNamed:#'NewLauncher startChangesBrowserIcon' |
|
1527 | 2304 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@B****@@@@@@@@@ @@@B****H@@@@@@@@"@@@C????H @@@@@@@2H@@C????L"@@@@@@@3H@@AUUUUL2@@@@@@@SL@@AUUUUD3@@@_=UUQL@@@EUUUTS@@@A]7UUD@@@@U7]5Q@@@@E7]5T@@@@AUUUU@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH@@@@@@@@LB@L@@@@@@@@@@@@@@@@J@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@??8@@O?>@@O?? @C??8@C??>@@??? @???8@O??>@O??? C??? C???8@???8@O??>@C??>@@??? @O?? @C??8@@??8@@O?>@@@@@@@@@@@@@Z.$7LH+-YDBJ+TQ@#.=WHH*+UABJ*5PPZ*$7X@@a') ; yourself); yourself]! |
1424 | 2305 |
|
2306 |
startFileBrowserIcon |
|
1527 | 2307 |
"This resource specification was automatically generated |
2308 |
by the ImageEditor of ST/X." |
|
2309 |
||
2310 |
"Do not manually edit this!! If it is corrupted, |
|
2311 |
the ImageEditor may not be able to read the specification." |
|
2312 |
||
1424 | 2313 |
" |
1527 | 2314 |
ImageEditor openOnClass:self andSelector:#startFileBrowserIcon |
1424 | 2315 |
" |
2316 |
||
2317 |
<resource: #image> |
|
2318 |
||
2319 |
^Icon |
|
2320 |
constantNamed:#'NewLauncher startFileBrowserIcon' |
|
1527 | 2321 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@@@@@@@L0F@@@@@@A @@@@@@@@3@XN;.;.8F@@@@@@@@CLA ;.@@@@@@@@@@@@@L0FC.8O[6=/[0@@@@@@3@X@; [6=/[6@@@@@@CLA DNC6<@@F<@@@@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??<@@_??@@G??0@A??<@@_??8@G??>@A??? @_??8@G??>@A??? @_??8@G??>@A??? @_??@@G??0@A??<@@_??@@G??0@@??<@@G??@@@@@@@G.P=0AADHP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a') ; yourself); yourself]! |
1424 | 2322 |
|
2323 |
startImageEditorIcon |
|
1527 | 2324 |
"This resource specification was automatically generated |
2325 |
by the ImageEditor of ST/X." |
|
2326 |
||
2327 |
"Do not manually edit this!! If it is corrupted, |
|
2328 |
the ImageEditor may not be able to read the specification." |
|
2329 |
||
1424 | 2330 |
" |
1527 | 2331 |
ImageEditor openOnClass:self andSelector:#startImageEditorIcon |
1424 | 2332 |
" |
2333 |
||
2334 |
<resource: #image> |
|
2335 |
||
2336 |
^Icon |
|
2337 |
constantNamed:#'NewLauncher startImageEditorIcon' |
|
1527 | 2338 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"HDQEUVY @@@@@BH"H3L QDUUY&@@@@@@HA@#L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL3L3L "H&Y]7@@@@@@H"H"H"BH"Y%7\@@@@@@#L3L3HDQEUVY @@@@@BH"H"H QDUUY&@@@@@@H3L3L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL#L3L "H&Y]7@@@@@@H2L3L2BH"Y%7\@@@@@@"H"H"HBH"H"H @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@0@0@0L@L@@@@@@@@@@0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@;[7/@D>%J@AJ)P @RK5.@D"%J@AH)R @:JW/@@@a') ; yourself); yourself]! |
1424 | 2339 |
|
2340 |
startMenuEditorIcon |
|
1527 | 2341 |
"This resource specification was automatically generated |
2342 |
by the ImageEditor of ST/X." |
|
2343 |
||
2344 |
"Do not manually edit this!! If it is corrupted, |
|
2345 |
the ImageEditor may not be able to read the specification." |
|
2346 |
||
1424 | 2347 |
" |
1527 | 2348 |
ImageEditor openOnClass:self andSelector:#startMenuEditorIcon |
1424 | 2349 |
" |
2350 |
||
2351 |
<resource: #image> |
|
2352 |
||
2353 |
^Icon |
|
2354 |
constantNamed:#'NewLauncher startMenuEditorIcon' |
|
1527 | 2355 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@QH"H DQHQD"H @@@@@ATBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@IRHBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUQIU@RT%IRT%@@@@@@IRHBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@H"HBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@APT@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@T@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@6=D$@O(YI@B*GRP@"9T$@H(WI@BJD2P@"=D<@@@a') ; yourself); yourself]! |
1424 | 2356 |
|
2357 |
startSystemBrowserIcon |
|
1527 | 2358 |
"This resource specification was automatically generated |
2359 |
by the ImageEditor of ST/X." |
|
2360 |
||
2361 |
"Do not manually edit this!! If it is corrupted, |
|
2362 |
the ImageEditor may not be able to read the specification." |
|
2363 |
||
1424 | 2364 |
" |
1527 | 2365 |
ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon |
1424 | 2366 |
" |
2367 |
||
2368 |
<resource: #image> |
|
2369 |
||
2370 |
^Icon |
|
2371 |
constantNamed:#'NewLauncher startSystemBrowserIcon' |
|
1527 | 2372 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@ADQDQDQG0@@@@@@@@@@D"H"H"H.@@@@@@@@@@@RH"H"H"8@@@@@@@@@@O;.;.;.; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@SL3L3L>@@@@@@@@@@@O;.;.;.8@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@VY&Y&Y.@@@@@@@@@@@O;.;.;.8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@N@NC @@8@@@C @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@8@C @@@@8b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRTQDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]! |
1424 | 2373 |
|
2374 |
startUIPainterIcon |
|
1527 | 2375 |
"This resource specification was automatically generated |
2376 |
by the ImageEditor of ST/X." |
|
2377 |
||
2378 |
"Do not manually edit this!! If it is corrupted, |
|
2379 |
the ImageEditor may not be able to read the specification." |
|
2380 |
||
1424 | 2381 |
" |
1527 | 2382 |
ImageEditor openOnClass:self andSelector:#startUIPainterIcon |
1424 | 2383 |
" |
2384 |
||
2385 |
<resource: #image> |
|
2386 |
||
2387 |
^Icon |
|
2388 |
constantNamed:#'NewLauncher startUIPainterIcon' |
|
1527 | 2389 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@3H"H DQHQD"H @@@@@CLBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@IRLBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUSMU@RT%IRT%@@@@@@IRLBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@H"LBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@AP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@@@AP@E@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''8???90O??>TC??? ???8HO??>A#??? X???8@O??>@C??? @???8@@@@@@@@@@@@>QN@@H$Q@@BADP@@.QD@@H$Q@@BIDP@@>_N@@@@a') ; yourself); yourself]! |
1424 | 2390 |
|
2391 |
startWorkspaceIcon |
|
1527 | 2392 |
"This resource specification was automatically generated |
2393 |
by the ImageEditor of ST/X." |
|
2394 |
||
2395 |
"Do not manually edit this!! If it is corrupted, |
|
2396 |
the ImageEditor may not be able to read the specification." |
|
2397 |
||
1424 | 2398 |
" |
1527 | 2399 |
ImageEditor openOnClass:self andSelector:#startWorkspaceIcon |
1424 | 2400 |
" |
2401 |
||
2402 |
<resource: #image> |
|
2403 |
||
2404 |
^Icon |
|
2405 |
constantNamed:#'NewLauncher startWorkspaceIcon' |
|
1527 | 2406 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@QDQDQDQDQDQDQ@0@@@AUPUUUUAUAQDQDB@@@@EUAUUUTE@@DQDPH@@@@P@E@@UPUPTQDQ@ @@@AAPTEAUAUAQDQDB@@@@D@AP@ETET@DQDPH@@@@QDQDQDQDQEADQ@ @@@ADQDQDQDQDTPQDB@@@@DQDQDQDQDQQDDPH@@@@QDQDQDQDQEDDQ@ @@@ADQDQDQDQDQEADB@@@@DQDQDQDQDQDTDPH@@@@QDQDQDQDQDQDQ@0@@@@@@@@@@@@@@@@@@@@@@L"H"H"H"H"H"H0L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@@@@@@@@@@@@ //R@HJJT BB"%P@$(/X@IJJU@BR"%H@[O)R@@@a') ; yourself); yourself]! ! |
1424 | 2407 |
|
1479 | 2408 |
!NewLauncher methodsFor:'actions - classes'! |
1406 | 2409 |
|
2410 |
browseAllBreakAndTracePoints |
|
2411 |
"open a browser showing all breakPointed/traced methods |
|
2412 |
(but, to get rid of them, there is also a menu itme to remove them all)" |
|
2413 |
||
2414 |
SystemBrowser browseMethods: WrappedMethod allInstances title:'all breakPointed/traced methods' |
|
2415 |
||
2416 |
! |
|
2417 |
||
2418 |
browseImplementors |
|
2419 |
"open an implementors- browser after asking for a selector" |
|
2420 |
||
2421 |
|enterBox selector| |
|
2422 |
||
2423 |
enterBox := EnterBox |
|
2424 |
title:(resources at:'Browse implementors of:') withCRs |
|
2425 |
okText:(resources at:'browse') |
|
2426 |
action:[:acceptedString | selector := acceptedString]. |
|
2427 |
enterBox showAtPointer. |
|
2428 |
||
2429 |
selector notNil ifTrue:[ |
|
2430 |
self withWaitCursorDo:[ |
|
2431 |
SystemBrowser browseImplementorsOf:selector |
|
2432 |
] |
|
2433 |
]. |
|
2434 |
||
2435 |
! |
|
2436 |
||
2437 |
browseResources |
|
2438 |
"open a resource- browser after asking for a resource string" |
|
2439 |
||
2440 |
|box resourceHolder valueHolder component rsrc value t anyString| |
|
2441 |
||
2442 |
anyString := resources string:'* any *'. |
|
2443 |
||
2444 |
resourceHolder := ValueHolder newString. |
|
2445 |
valueHolder := '*' asValue. |
|
2446 |
||
2447 |
box := DialogBox new. |
|
2448 |
box label:(resources at:'Resource search:'). |
|
2449 |
component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs. |
|
2450 |
component adjust:#left. |
|
2451 |
box addVerticalSpace:10. |
|
2452 |
||
2453 |
component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs. |
|
2454 |
component adjust:#left. |
|
2455 |
component := box addComboBoxOn:resourceHolder tabable:true. |
|
2456 |
component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')). |
|
2457 |
||
2458 |
component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs. |
|
2459 |
component adjust:#left. |
|
2460 |
box addInputFieldOn:valueHolder tabable:true. |
|
2461 |
||
2462 |
box addVerticalSpace:10. |
|
2463 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
|
2464 |
box addAbortButton; addOkButton. |
|
2465 |
||
2466 |
box showAtPointer. |
|
2467 |
box destroy. |
|
2468 |
||
2469 |
box accepted ifTrue:[ |
|
2470 |
rsrc := resourceHolder value. |
|
2471 |
value := valueHolder value. |
|
2472 |
||
2473 |
(rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[ |
|
2474 |
t := 'methods with any resource'. |
|
2475 |
rsrc := nil |
|
2476 |
] ifFalse:[ |
|
2477 |
t := 'methods with #' , rsrc , '-resource'. |
|
2478 |
rsrc := rsrc withoutSeparators asSymbol |
|
2479 |
]. |
|
2480 |
(value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[ |
|
2481 |
t := t , ' and any value'. |
|
2482 |
value := nil |
|
2483 |
] ifFalse:[ |
|
2484 |
t := t , ' and value ' , value. |
|
2485 |
]. |
|
2486 |
self withWaitCursorDo:[ |
|
2487 |
SystemBrowser browseForResource:rsrc |
|
2488 |
containing:value |
|
2489 |
in:(Smalltalk allClasses) |
|
2490 |
title:t |
|
2491 |
] |
|
2492 |
]. |
|
2493 |
||
2494 |
! |
|
2495 |
||
2496 |
browseSenders |
|
2497 |
"open a senders- browser after asking for a selector" |
|
2498 |
||
2499 |
|enterBox selector| |
|
2500 |
||
2501 |
enterBox := EnterBox |
|
2502 |
title:(resources at:'Browse senders of:') withCRs |
|
2503 |
okText:(resources at:'browse') |
|
2504 |
action:[:acceptedString | selector := acceptedString]. |
|
2505 |
enterBox showAtPointer. |
|
2506 |
||
2507 |
selector notNil ifTrue:[ |
|
2508 |
self withWaitCursorDo:[ |
|
2509 |
SystemBrowser browseAllCallsOn:selector |
|
2510 |
] |
|
2511 |
]. |
|
2512 |
||
2513 |
! |
|
2514 |
||
2515 |
browseUndeclared |
|
2516 |
"open a browser on methods refering to undeclared variables" |
|
2517 |
||
2518 |
self withWaitCursorDo:[ |
|
2519 |
SystemBrowser |
|
2520 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
|
2521 |
title:(resources string:'references to undeclared variables') |
|
2522 |
warnIfNone:true |
|
2523 |
] |
|
2524 |
||
2525 |
! |
|
2526 |
||
1467
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2527 |
removeAllBreakAndTracePoints |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2528 |
"remove all break- and trace points" |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2529 |
|
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2530 |
MessageTracer cleanup |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2531 |
|
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2532 |
! |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2533 |
|
1406 | 2534 |
startClassBrowser |
2535 |
"open a classBrowser; asks for class" |
|
2536 |
||
2537 |
SystemBrowser askThenBrowseClass |
|
2538 |
||
2539 |
! |
|
2540 |
||
2541 |
startClassHierarchyBrowser |
|
2542 |
"open a classHierarchyBrowser; asks for class" |
|
2543 |
||
2544 |
SystemBrowser askThenBrowseClassHierarchy |
|
2545 |
||
2546 |
! |
|
2547 |
||
2548 |
startFullClassBrowser |
|
2549 |
"open a fullClass systemBrowser; asks for class" |
|
2550 |
||
2551 |
SystemBrowser askThenBrowseFullClassProtocol |
|
2552 |
||
2553 |
! ! |
|
2554 |
||
1479 | 2555 |
!NewLauncher methodsFor:'actions - demos'! |
1406 | 2556 |
|
2557 |
openDemo:className |
|
2558 |
"open a demo, given its name. |
|
2559 |
Looks in both the Smalltalk- and the Demos-Namespace |
|
2560 |
for that class." |
|
2561 |
||
2562 |
self openApplication:className nameSpace:Demos |
|
2563 |
||
2564 |
! |
|
2565 |
||
2566 |
startTicTacToe2 |
|
2567 |
"opens a 2-user ticTacToe game" |
|
2568 |
||
2569 |
self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
|
2570 |
! ! |
|
2571 |
||
1479 | 2572 |
!NewLauncher methodsFor:'actions - file'! |
1406 | 2573 |
|
2574 |
exit |
|
2575 |
"saves a snapshot image and exits, after asking for a fileName" |
|
2576 |
||
2577 |
|fileName saveAndExit box| |
|
2578 |
||
2579 |
box := EnterBox2 title:'Save image before exiting?' |
|
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2580 |
okText:' Save & Exit ' |
1406 | 2581 |
abortText:'Cancel' |
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2582 |
action:[:str|fileName := str. saveAndExit := true]. |
1406 | 2583 |
box label: 'Exiting ST/X'. |
2584 |
box initialText: ObjectMemory nameForSnapshot. |
|
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2585 |
box okText2:'Exit' action2:[:str|saveAndExit := false]; showAtPointer. |
1406 | 2586 |
|
2587 |
saveAndExit notNil |
|
2588 |
ifTrue:[ |
|
2589 |
saveAndExit |
|
2590 |
ifTrue: |
|
2591 |
[ |
|
2592 |
self saveImageAs: fileName |
|
2593 |
]. |
|
2594 |
Smalltalk exit |
|
2595 |
] |
|
2596 |
||
2597 |
||
2598 |
||
2599 |
! |
|
2600 |
||
2601 |
objectModuleDialog |
|
2602 |
"opens a moduleInfo dialog" |
|
2603 |
||
2604 |
|allModules moduleNames |
|
2605 |
allObjects methodObjects methodNames |
|
2606 |
cObjects cObjectNames |
|
2607 |
otherObjects otherObjectNames |
|
2608 |
box l handles unloadButton |
|
2609 |
list1 list2 listView1 listView2 |
|
2610 |
y panel |
|
2611 |
showBuiltIn showModules showMethods showCObjects showOthers |
|
2612 |
moduleListUpdater check canDoIt menu| |
|
2613 |
||
2614 |
showBuiltIn := true asValue. |
|
2615 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
2616 |
||
2617 |
showModules := canDoIt asValue. |
|
2618 |
showMethods := canDoIt asValue. |
|
2619 |
showCObjects := canDoIt asValue. |
|
2620 |
showOthers := canDoIt asValue. |
|
2621 |
||
2622 |
list1 := SelectionInList new. |
|
2623 |
list2 := SelectionInList new. |
|
2624 |
||
2625 |
moduleListUpdater := [ |
|
2626 |
|l| |
|
2627 |
||
2628 |
list2 list:nil. |
|
2629 |
||
2630 |
l := Array new. |
|
2631 |
handles := Array new. |
|
2632 |
||
2633 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
2634 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
2635 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
2636 |
allModules := allModules select:[:i | |
|
2637 |
|wantToSee| |
|
2638 |
||
2639 |
wantToSee := i dynamic. |
|
2640 |
showBuiltIn value ifTrue:[ |
|
2641 |
wantToSee := wantToSee not |
|
2642 |
]. |
|
2643 |
wantToSee |
|
2644 |
] |
|
2645 |
]. |
|
2646 |
||
2647 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
2648 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
2649 |
moduleNames := allModules collect:[:entry | entry name]. |
|
2650 |
l := l , moduleNames. |
|
2651 |
handles := handles , allModules. |
|
2652 |
]. |
|
2653 |
||
2654 |
showMethods value ifTrue:[ |
|
2655 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2656 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
2657 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
2658 |
'compiled method - removed' , ' (in ' , mH pathName , ')' |
|
2659 |
] ifFalse:[ |
|
2660 |
'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')' |
|
2661 |
]. |
|
2662 |
]. |
|
2663 |
l := l , methodNames. |
|
2664 |
handles := handles , methodObjects. |
|
2665 |
]. |
|
2666 |
||
2667 |
showCObjects value ifTrue:[ |
|
2668 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2669 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
2670 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
2671 |
l := l , cObjectNames. |
|
2672 |
handles := handles , cObjects. |
|
2673 |
]. |
|
2674 |
||
2675 |
showOthers value ifTrue:[ |
|
2676 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2677 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
2678 |
or:[h isMethodHandle |
|
2679 |
or:[h isClassLibHandle]]) not]) asArray. |
|
2680 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
2681 |
l := l , otherObjectNames. |
|
2682 |
handles := handles , otherObjects. |
|
2683 |
]. |
|
2684 |
||
2685 |
list1 list:l. |
|
2686 |
unloadButton disable. |
|
2687 |
]. |
|
2688 |
||
2689 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
|
2690 |
showModules onChangeSend:#value to:moduleListUpdater. |
|
2691 |
showMethods onChangeSend:#value to:moduleListUpdater. |
|
2692 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
|
2693 |
showOthers onChangeSend:#value to:moduleListUpdater. |
|
2694 |
||
2695 |
box := Dialog new. |
|
2696 |
box label:(resources string:'Module dialog'). |
|
2697 |
||
2698 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
2699 |
listView1 model:list1. |
|
2700 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
2701 |
listView1 action:[:sel | |
|
2702 |
|info classNames tabs module| |
|
2703 |
||
2704 |
listView1 middleButtonMenu:nil. |
|
2705 |
||
2706 |
box withWaitCursorDo:[ |
|
2707 |
|nm fileName addr entry1 entry2 entry3 method| |
|
2708 |
||
2709 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6). |
|
2710 |
||
2711 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
2712 |
info := allModules at:sel ifAbsent:nil. |
|
2713 |
]. |
|
2714 |
info isNil ifTrue:[ |
|
2715 |
"/ selected a method, cObject or unknown |
|
2716 |
||
2717 |
module := handles at:sel. |
|
2718 |
fileName := module pathName. |
|
2719 |
||
2720 |
module isMethodHandle ifTrue:[ |
|
2721 |
||
2722 |
(method := module method) isNil ifTrue:[ |
|
2723 |
nm := '** removed **'. |
|
2724 |
] ifFalse:[ |
|
2725 |
menu := PopUpMenu |
|
2726 |
labels:#('inspect' 'browse') |
|
2727 |
selectors:#(inspect browse). |
|
2728 |
menu actionAt:#inspect put:[ method inspect ]. |
|
2729 |
menu actionAt:#browse put:[ |who| |
|
2730 |
who := method who. |
|
2731 |
SystemBrowser |
|
2732 |
openInClass:(who methodClass) |
|
2733 |
selector:(who methodSelector) |
|
2734 |
]. |
|
2735 |
listView1 middleButtonMenu:menu. |
|
2736 |
||
2737 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
2738 |
]. |
|
2739 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2740 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
2741 |
||
2742 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2743 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
2744 |
||
2745 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2746 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)). |
|
2747 |
||
2748 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
2749 |
] ifFalse:[ |
|
2750 |
(module isFunctionObjectHandle |
|
2751 |
and:[module functions notEmpty]) ifTrue:[ |
|
2752 |
||
2753 |
menu := PopUpMenu |
|
2754 |
labels:#('inspect') |
|
2755 |
selectors:#(inspect). |
|
2756 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
2757 |
listView1 middleButtonMenu:menu. |
|
2758 |
||
2759 |
list2 list:((module functions select:[:f | f notNil]) |
|
2760 |
collect:[:f | |entry| |
|
2761 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2762 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
2763 |
entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)). |
|
2764 |
entry |
|
2765 |
]). |
|
2766 |
] ifFalse:[ |
|
2767 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
2768 |
] |
|
2769 |
]. |
|
2770 |
||
2771 |
unloadButton enable. |
|
2772 |
] ifFalse:[ |
|
2773 |
"/ selected a package |
|
2774 |
||
2775 |
"/ fill bottom list with class-info |
|
2776 |
||
2777 |
classNames := info classNames asSortedCollection. |
|
2778 |
classNames := classNames collect:[:cName | |
|
2779 |
|cls entry rev listEntry| |
|
2780 |
||
2781 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2782 |
listEntry colAt:1 put:cName. |
|
2783 |
||
2784 |
cls := Smalltalk classNamed:cName. |
|
2785 |
cls isNil ifTrue:[ |
|
2786 |
listEntry colAt:2 put:'(class removed)'. |
|
2787 |
] ifFalse:[ |
|
2788 |
rev := cls binaryRevision. |
|
2789 |
rev notNil ifTrue:[ |
|
2790 |
cls isLoaded ifFalse:[ |
|
2791 |
entry := '(stub for: ' , rev. |
|
2792 |
] ifTrue:[ |
|
2793 |
entry :='(bin: ' , rev. |
|
2794 |
]. |
|
2795 |
cls revision ~= rev ifTrue:[ |
|
2796 |
entry := entry , ' / src: ' , cls revision |
|
2797 |
]. |
|
2798 |
listEntry colAt:2 put:entry , ')' |
|
2799 |
] ifFalse:[ |
|
2800 |
cls revision notNil ifTrue:[ |
|
2801 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
2802 |
] |
|
2803 |
] |
|
2804 |
]. |
|
2805 |
listEntry |
|
2806 |
]. |
|
2807 |
list2 list:classNames. |
|
2808 |
info dynamic ifTrue:[ |
|
2809 |
unloadButton enable. |
|
2810 |
] ifFalse:[ |
|
2811 |
unloadButton disable. |
|
2812 |
]. |
|
2813 |
] |
|
2814 |
] |
|
2815 |
]. |
|
2816 |
||
2817 |
||
2818 |
panel := HorizontalPanelView new. |
|
2819 |
||
2820 |
panel add:(l := Label label:'show:'). |
|
2821 |
l adjust:#left; borderWidth:0. |
|
2822 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
|
2823 |
box makeTabable:check. |
|
2824 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
|
2825 |
canDoIt ifFalse:[ |
|
2826 |
check disable |
|
2827 |
] ifTrue:[ |
|
2828 |
box makeTabable:check. |
|
2829 |
]. |
|
2830 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
|
2831 |
canDoIt ifFalse:[ |
|
2832 |
check disable |
|
2833 |
] ifTrue:[ |
|
2834 |
box makeTabable:check. |
|
2835 |
]. |
|
2836 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
|
2837 |
canDoIt ifFalse:[ |
|
2838 |
check disable |
|
2839 |
] ifTrue:[ |
|
2840 |
box makeTabable:check. |
|
2841 |
]. |
|
2842 |
panel add:(check := CheckBox label:'others' model:showOthers). |
|
2843 |
canDoIt ifFalse:[ |
|
2844 |
check disable |
|
2845 |
] ifTrue:[ |
|
2846 |
box makeTabable:check. |
|
2847 |
]. |
|
2848 |
||
2849 |
panel horizontalLayout:#fitSpace. |
|
2850 |
"/ panel horizontalLayout:#leftSpace. |
|
2851 |
||
2852 |
box addComponent:panel tabable:false. |
|
2853 |
||
2854 |
box addVerticalSpace. |
|
2855 |
box addComponent:listView1 tabable:true. |
|
2856 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
2857 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
2858 |
||
2859 |
l := box addTextLabel:(resources string:'contained classes/subsets:'). |
|
2860 |
l adjust:#left; borderWidth:0. |
|
2861 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
2862 |
l topInset:(View viewSpacing). |
|
2863 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
2864 |
||
2865 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
2866 |
listView2 model:list2; printItems:false. |
|
2867 |
box addComponent:listView2 tabable:true. |
|
2868 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
2869 |
listView2 disable. |
|
2870 |
||
2871 |
unloadButton := Button label:(resources string:'unload'). |
|
2872 |
unloadButton action:[ |
|
2873 |
self withWaitCursorDo:[ |
|
2874 |
box withWaitCursorDo:[ |
|
2875 |
|info idx pathName| |
|
2876 |
||
2877 |
idx := list1 selectionIndex. |
|
2878 |
info := allModules at:idx ifAbsent:nil. |
|
2879 |
||
2880 |
list1 selectionIndex:nil. |
|
2881 |
||
2882 |
info isNil ifTrue:[ |
|
2883 |
"/ selected a method |
|
2884 |
"/ idx := idx - allModules size. |
|
2885 |
pathName := (handles at:idx) pathName. |
|
2886 |
||
2887 |
] ifFalse:[ |
|
2888 |
"/ selected a package |
|
2889 |
pathName := info pathName. |
|
2890 |
]. |
|
2891 |
ObjectFileLoader unloadObjectFile:pathName. |
|
2892 |
moduleListUpdater value. |
|
2893 |
unloadButton disable. |
|
2894 |
] |
|
2895 |
] |
|
2896 |
]. |
|
2897 |
moduleListUpdater value. |
|
2898 |
||
2899 |
box addButton:unloadButton. |
|
2900 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
|
2901 |
||
2902 |
y := box yPosition. |
|
2903 |
listView2 topInset:(l preferredExtent y + 5). |
|
2904 |
listView2 bottomInset:(box preferredExtent y - y). |
|
2905 |
||
2906 |
"/ box width:(400 min:(box device width * 2 // 3)); |
|
2907 |
"/ height:(450 min:(box device height - 50)); |
|
2908 |
"/ sizeFixed:true. |
|
2909 |
box open. |
|
2910 |
||
2911 |
box destroy. |
|
2912 |
||
2913 |
"Modified: 17.9.1995 / 16:47:50 / claus" |
|
2914 |
"Modified: 18.10.1997 / 03:43:39 / cg" |
|
2915 |
||
2916 |
||
2917 |
! |
|
2918 |
||
2919 |
saveImage |
|
2920 |
"save image" |
|
2921 |
||
2922 |
self showCursor:Cursor write. |
|
2923 |
[ |
|
2924 |
(ObjectMemory snapShotOn:ObjectMemory nameForSnapshot) ifFalse:[ |
|
2925 |
self warn:(resources string:'Failed to save snapshot image (disk full or not writable)'). |
|
2926 |
] |
|
2927 |
] valueNowOrOnUnwindDo:[ |
|
2928 |
self restoreCursors. |
|
2929 |
]. |
|
2930 |
||
2931 |
! |
|
2932 |
||
2933 |
saveImageAs |
|
2934 |
"save image, after asking for a file name" |
|
2935 |
||
2936 |
self saveImageAs: ( |
|
2937 |
FileSelectionBrowser |
|
2938 |
request: 'Save Image As' |
|
2939 |
fileName: ObjectMemory nameForSnapshot |
|
2940 |
inDirectory: Filename currentDirectory name |
|
2941 |
withFileFilters: #('*.img')) |
|
2942 |
||
2943 |
! |
|
2944 |
||
2945 |
saveImageAs: aFileName |
|
2946 |
||
2947 |
aFileName notNil ifTrue:[ |
|
2948 |
self showCursor:Cursor write. |
|
2949 |
[ |
|
2950 |
(ObjectMemory snapShotOn:aFileName) ifFalse:[ |
|
2951 |
self warn:(resources string:'Failed to save snapshot image (disk full or not writable)'). |
|
2952 |
] |
|
2953 |
] valueNowOrOnUnwindDo:[ |
|
2954 |
self restoreCursors. |
|
2955 |
]. |
|
2956 |
]. |
|
2957 |
! ! |
|
2958 |
||
1479 | 2959 |
!NewLauncher methodsFor:'actions - help'! |
1406 | 2960 |
|
1429 | 2961 |
activeHelp |
2962 |
||
2963 |
^helpIsOn ? (helpIsOn := false) |
|
2964 |
! |
|
2965 |
||
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2966 |
openLicenceConditions |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2967 |
"open an HTML browser on the 'LICENCE' document" |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2968 |
|
1488
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2969 |
self withWaitCursorDo:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2970 |
|lang doc| |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2971 |
|
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2972 |
((lang := Smalltalk language) = 'de' |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2973 |
or:[lang = 'german']) ifTrue:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2974 |
doc := 'german/LICENCE_STX.html' |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2975 |
] ifFalse:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2976 |
doc := 'english/LICENCE_STX.html' |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2977 |
]. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2978 |
doc := resources at:'LICENCEFILE' default:doc. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2979 |
self showDocumentation:('../' , doc) |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2980 |
] |
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2981 |
|
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2982 |
"Created: / 5.2.1998 / 21:43:19 / cg" |
1488
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
2983 |
"Modified: / 25.2.1998 / 21:23:41 / cg" |
1462
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2984 |
! |
dcd1444dcc27
need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2985 |
|
1411 | 2986 |
showBookPrintDocument |
2987 |
"open an HTML browser on the 'book'-printing document" |
|
2988 |
||
2989 |
self showDocumentation:'BOOK.html' |
|
2990 |
! |
|
2991 |
||
1406 | 2992 |
showDocumentation:aRelativeDocFilePath |
2993 |
"open an HTML browser on some document" |
|
2994 |
||
2995 |
" |
|
2996 |
although that one is not yet finished, |
|
2997 |
its better than nothing ... |
|
2998 |
" |
|
2999 |
HTMLDocumentView notNil ifTrue:[ |
|
1488
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3000 |
self withWaitCursorDo:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3001 |
" |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3002 |
temporary kludge; |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3003 |
not all machines can autoload binaries; |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3004 |
however, on my SGI (which can) we want it |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3005 |
to load automatically. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3006 |
" |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3007 |
HTMLDocumentView isLoaded ifFalse:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3008 |
ErrorSignal catch:[HTMLDocumentView autoload] |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3009 |
]. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3010 |
HTMLDocumentView isLoaded ifTrue:[ |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3011 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3012 |
^ self |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3013 |
]. |
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3014 |
] |
1406 | 3015 |
]. |
3016 |
||
3017 |
self warn:'Sorry, the ST/X HTML reader is not |
|
3018 |
included in this release. |
|
3019 |
||
3020 |
Please use Mosaic, netscape, chimera or any |
|
3021 |
other HTML viewer to see the documentation. |
|
3022 |
||
3023 |
The documentation is found in the ''doc/online'' directory.'. |
|
1488
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3024 |
|
1e2b835c0d96
show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents:
1480
diff
changeset
|
3025 |
"Modified: / 25.2.1998 / 21:24:20 / cg" |
1406 | 3026 |
! |
3027 |
||
1411 | 3028 |
startClassDocumentation |
3029 |
"open an HTML browser on the 'classDoc/TOP' document" |
|
3030 |
||
3031 |
self showDocumentation:'classDoc/TOP.html' |
|
3032 |
||
3033 |
! |
|
3034 |
||
3035 |
startDocumentationIndex |
|
3036 |
"open an HTML browser on the 'index' document" |
|
3037 |
||
3038 |
self showDocumentation:'index.html' |
|
3039 |
! |
|
3040 |
||
1406 | 3041 |
startDocumentationTool |
3042 |
"open an HTML browser on the 'TOP' document" |
|
3043 |
||
3044 |
self showDocumentation:'TOP.html' |
|
3045 |
||
1411 | 3046 |
! |
3047 |
||
3048 |
startWhatsNewDocumentation |
|
3049 |
"open an HTML browser on the 'whatsNew.html' document" |
|
3050 |
||
3051 |
self showDocumentation:'whatsNew.html' |
|
3052 |
||
3053 |
! |
|
3054 |
||
3055 |
toggleActiveHelp:aBoolean |
|
3056 |
"turn on/off active help" |
|
3057 |
||
1429 | 3058 |
ActiveHelp notNil ifTrue:[ |
3059 |
helpIsOn := aBoolean. |
|
3060 |
helpIsOn ifTrue:[ |
|
3061 |
ActiveHelp start |
|
3062 |
] ifFalse:[ |
|
3063 |
ActiveHelp stop |
|
3064 |
] |
|
3065 |
]. |
|
1411 | 3066 |
|
1406 | 3067 |
! ! |
3068 |
||
1479 | 3069 |
!NewLauncher methodsFor:'actions - old settings'! |
1406 | 3070 |
|
3071 |
compilerSettings |
|
3072 |
"open a dialog on compiler related settings" |
|
3073 |
||
3074 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
|
3075 |
allowDollar allowUnderscore immutableArrays |
|
3076 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
|
3077 |
warnCompatibility warnCompatibilityBox warnDollarBox |
|
3078 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
|
3079 |
stcLibraries stcLibraryPath cc ccOptions historyLines fullHistoryUpdate catchRedefs keepSourceOptions keepSource |
|
3080 |
constantFoldingOptions constantFolding justInTimeCompilation |
|
3081 |
warnEnabler check component oldIndent t supportsJustInTimeCompilation y |
|
3082 |
y2 fullDebugSupport yMax |
|
3083 |
compileLazy loadBinaries canLoadBinaries| |
|
3084 |
||
3085 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
3086 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
3087 |
compileLazy := Autoload compileLazy asValue. |
|
3088 |
||
3089 |
||
3090 |
warnings := Compiler warnings asValue. |
|
3091 |
||
3092 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
3093 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
3094 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
|
3095 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
3096 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
|
3097 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
|
3098 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
|
3099 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
|
3100 |
immutableArrays := Compiler arraysAreImmutable asValue. |
|
3101 |
||
3102 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
|
3103 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
|
3104 |
constantFolding selectionIndex:3. |
|
3105 |
||
3106 |
stcCompilationOptions := #( always default never). |
|
3107 |
stcCompilation := SelectionInList new |
|
3108 |
list:(resources array:#('always' |
|
3109 |
'primitive code only' |
|
3110 |
'never' |
|
3111 |
)). |
|
3112 |
stcCompilation selectionIndex:2. |
|
3113 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
|
3114 |
ifTrue:[ |
|
3115 |
justInTimeCompilation := ObjectMemory justInTimeCompilation:nil. |
|
3116 |
fullDebugSupport := ObjectMemory fullSingleStepSupport:nil. |
|
3117 |
] ifFalse:[ |
|
3118 |
justInTimeCompilation := false. |
|
3119 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
|
3120 |
]. |
|
3121 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
3122 |
fullDebugSupport := fullDebugSupport asValue. |
|
3123 |
||
3124 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
|
3125 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
3126 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
3127 |
ccOptions := Compiler ccCompilationOptions asValue. |
|
3128 |
cc := Compiler ccPath asValue. |
|
3129 |
||
3130 |
ObjectFileLoader notNil ifTrue:[ |
|
3131 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
|
3132 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
|
3133 |
]. |
|
3134 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
|
3135 |
stcLibraryPath := t asValue. |
|
3136 |
] |
|
3137 |
]. |
|
3138 |
||
3139 |
catchRedefs := Class catchMethodRedefinitions asValue. |
|
3140 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
|
3141 |
historyLines ifFalse:[ |
|
3142 |
fullHistoryUpdate := false |
|
3143 |
] ifTrue:[ |
|
3144 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
|
3145 |
]. |
|
3146 |
historyLines := historyLines asValue. |
|
3147 |
||
3148 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
|
3149 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
|
3150 |
keepSource selectionIndex:1. |
|
3151 |
||
3152 |
warnEnabler := [ |
|
3153 |
warnings value ifTrue:[ |
|
3154 |
warnSTXBox enable. |
|
3155 |
warnOldStyleBox enable. |
|
3156 |
warnCommonMistakesBox enable. |
|
3157 |
warnCompatibilityBox enable. |
|
3158 |
allowUnderscore value ifTrue:[ |
|
3159 |
warnUnderscoreBox enable. |
|
3160 |
] ifFalse:[ |
|
3161 |
warnUnderscoreBox disable. |
|
3162 |
]. |
|
3163 |
allowDollar value ifTrue:[ |
|
3164 |
warnDollarBox enable. |
|
3165 |
] ifFalse:[ |
|
3166 |
warnDollarBox disable. |
|
3167 |
]. |
|
3168 |
] ifFalse:[ |
|
3169 |
warnSTXBox disable. |
|
3170 |
warnUnderscoreBox disable. |
|
3171 |
warnDollarBox disable. |
|
3172 |
warnOldStyleBox disable. |
|
3173 |
warnCommonMistakesBox disable. |
|
3174 |
warnCompatibilityBox disable. |
|
3175 |
]]. |
|
3176 |
||
3177 |
warnings onChangeSend:#value to:warnEnabler. |
|
3178 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
|
3179 |
allowDollar onChangeSend:#value to:warnEnabler. |
|
3180 |
||
3181 |
box := DialogBox new. |
|
3182 |
box label:(resources string:'Compiler settings'). |
|
3183 |
||
3184 |
box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs. |
|
3185 |
y := box yPosition. |
|
3186 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
3187 |
HistoryManager isNil ifTrue:[check disable]. |
|
3188 |
box yPosition:y. |
|
3189 |
check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate. |
|
3190 |
check left:0.5. |
|
3191 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
|
3192 |
||
3193 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
|
3194 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
|
3195 |
||
3196 |
box addHorizontalLine. |
|
3197 |
||
3198 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
3199 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
3200 |
canLoadBinaries ifFalse:[ |
|
3201 |
loadBinaries value:false. |
|
3202 |
check disable |
|
3203 |
]. |
|
3204 |
supportsJustInTimeCompilation ifTrue:[ |
|
3205 |
component := box |
|
3206 |
addCheckBox:(resources string:'just in time compilation to machine code') |
|
3207 |
on:justInTimeCompilation. |
|
3208 |
]. |
|
3209 |
||
3210 |
box addHorizontalLine. |
|
3211 |
||
3212 |
ObjectFileLoader notNil ifTrue:[ |
|
3213 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
|
3214 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
|
3215 |
||
3216 |
component := box |
|
3217 |
addLabelledInputField:(resources string:'include directories:') |
|
3218 |
adjust:#right |
|
3219 |
on:stcIncludes |
|
3220 |
tabable:true |
|
3221 |
separateAtX:0.3. |
|
3222 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3223 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3224 |
canLoadBinaries ifFalse:[component disable]. |
|
3225 |
||
3226 |
"/ box addVerticalSpace. |
|
3227 |
||
3228 |
component := box |
|
3229 |
addLabelledInputField:(resources string:'defines:') |
|
3230 |
adjust:#right |
|
3231 |
on:stcDefines |
|
3232 |
tabable:true |
|
3233 |
separateAtX:0.3. |
|
3234 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3235 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3236 |
canLoadBinaries ifFalse:[component disable]. |
|
3237 |
||
3238 |
"/ box addVerticalSpace. |
|
3239 |
||
3240 |
component := box |
|
3241 |
addLabelledInputField:(resources string:'stc options:') |
|
3242 |
adjust:#right |
|
3243 |
on:stcOptions |
|
3244 |
tabable:true |
|
3245 |
separateAtX:0.3. |
|
3246 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3247 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3248 |
canLoadBinaries ifFalse:[component disable]. |
|
3249 |
||
3250 |
"/ box addVerticalSpace. |
|
3251 |
||
3252 |
component := box |
|
3253 |
addLabelledInputField:(resources string:'cc command:') |
|
3254 |
adjust:#right |
|
3255 |
on:cc |
|
3256 |
tabable:true |
|
3257 |
separateAtX:0.3. |
|
3258 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3259 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3260 |
canLoadBinaries ifFalse:[component disable]. |
|
3261 |
||
3262 |
component := box |
|
3263 |
addLabelledInputField:(resources string:'cc options:') |
|
3264 |
adjust:#right |
|
3265 |
on:ccOptions |
|
3266 |
tabable:true |
|
3267 |
separateAtX:0.3. |
|
3268 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3269 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3270 |
canLoadBinaries ifFalse:[component disable]. |
|
3271 |
||
3272 |
stcLibraries notNil ifTrue:[ |
|
3273 |
"/ box addVerticalSpace. |
|
3274 |
||
3275 |
component := box |
|
3276 |
addLabelledInputField:(resources string:'C-libraries:') |
|
3277 |
adjust:#right |
|
3278 |
on:stcLibraries |
|
3279 |
tabable:true |
|
3280 |
separateAtX:0.3. |
|
3281 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3282 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3283 |
canLoadBinaries ifFalse:[component disable]. |
|
3284 |
]. |
|
3285 |
||
3286 |
stcLibraryPath notNil ifTrue:[ |
|
3287 |
"/ box addVerticalSpace. |
|
3288 |
||
3289 |
component := box |
|
3290 |
addLabelledInputField:(resources string:'stc libPath:') |
|
3291 |
adjust:#right |
|
3292 |
on:stcLibraryPath |
|
3293 |
tabable:true |
|
3294 |
separateAtX:0.3. |
|
3295 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3296 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3297 |
canLoadBinaries ifFalse:[component disable]. |
|
3298 |
]. |
|
3299 |
||
3300 |
"/ box addVerticalSpace. |
|
3301 |
box addHorizontalLine. |
|
3302 |
||
3303 |
"/ if there is no compiler around, |
|
3304 |
"/ change to compile nothing, and disable the checkBoxes |
|
3305 |
Compiler canCreateMachineCode ifFalse:[ |
|
3306 |
stcCompilation selectionIndex:3. |
|
3307 |
compilationList disable. |
|
3308 |
]. |
|
3309 |
]. |
|
3310 |
||
3311 |
y := box yPosition. |
|
3312 |
||
3313 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
|
3314 |
component width:0.4. |
|
3315 |
||
3316 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
|
3317 |
component width:0.4. |
|
3318 |
||
3319 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
|
3320 |
component width:0.4. |
|
3321 |
y2 := box yPosition. |
|
3322 |
||
3323 |
box yPosition:y. |
|
3324 |
box leftIndent:0. |
|
3325 |
||
3326 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
|
3327 |
component superView left:0.5; width:0.5. |
|
3328 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
|
3329 |
||
3330 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
|
3331 |
component left:0.5; width:0.4. |
|
3332 |
box yPosition:(box yPosition max:y2). |
|
3333 |
||
3334 |
||
3335 |
box addHorizontalLine. |
|
3336 |
||
3337 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
3338 |
"/ box addVerticalSpace. |
|
3339 |
oldIndent := box leftIndent. |
|
3340 |
box leftIndent:30. |
|
3341 |
||
3342 |
y := box yPosition. |
|
3343 |
||
3344 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
|
3345 |
warnSTXBox width:0.4. |
|
3346 |
||
3347 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
|
3348 |
warnUnderscoreBox width:0.4. |
|
3349 |
||
3350 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
|
3351 |
warnDollarBox width:0.4. |
|
3352 |
||
3353 |
yMax := box yPosition. |
|
3354 |
||
3355 |
box yPosition:y. |
|
3356 |
box leftIndent:0. |
|
3357 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
|
3358 |
warnOldStyleBox left:0.5; width:0.4. |
|
3359 |
||
3360 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
|
3361 |
warnCommonMistakesBox left:0.5; width:0.4. |
|
3362 |
||
3363 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
|
3364 |
warnCompatibilityBox left:0.5; width:0.4. |
|
3365 |
||
3366 |
box leftIndent:oldIndent. |
|
3367 |
box yPosition:(yMax max: box yPosition). |
|
3368 |
||
3369 |
box |
|
3370 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
|
3371 |
addAbortButton; |
|
3372 |
addOkButton. |
|
3373 |
||
3374 |
warnEnabler value. |
|
3375 |
box open. |
|
3376 |
||
3377 |
box accepted ifTrue:[ |
|
3378 |
HistoryManager notNil ifTrue:[ |
|
3379 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
|
3380 |
historyLines value ifTrue:[ |
|
3381 |
HistoryManager activate |
|
3382 |
] ifFalse:[ |
|
3383 |
HistoryManager deactivate |
|
3384 |
]. |
|
3385 |
]. |
|
3386 |
Class catchMethodRedefinitions:catchRedefs value. |
|
3387 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
|
3388 |
Compiler warnings:warnings value. |
|
3389 |
Compiler warnSTXSpecials:warnSTX value. |
|
3390 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
|
3391 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
|
3392 |
Compiler warnDollarInIdentifier:warnDollar value. |
|
3393 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
|
3394 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
|
3395 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
|
3396 |
Compiler allowDollarInIdentifier:allowDollar value. |
|
3397 |
Compiler arraysAreImmutable:immutableArrays value. |
|
3398 |
fullDebugSupport value ifTrue:[ |
|
3399 |
Compiler lineNumberInfo:#full. |
|
3400 |
] ifFalse:[ |
|
3401 |
Compiler lineNumberInfo:true |
|
3402 |
]. |
|
3403 |
||
3404 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
|
3405 |
Compiler stcCompilationIncludes:stcIncludes value. |
|
3406 |
Compiler stcCompilationDefines:stcDefines value. |
|
3407 |
Compiler stcCompilationOptions:stcOptions value. |
|
3408 |
Compiler ccCompilationOptions:ccOptions value. |
|
3409 |
Compiler ccPath:cc value. |
|
3410 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
|
3411 |
||
3412 |
supportsJustInTimeCompilation ifTrue:[ |
|
3413 |
justInTimeCompilation value ifTrue:[ |
|
3414 |
Method allInstancesDo:[:m | m checked:false]. |
|
3415 |
]. |
|
3416 |
ObjectMemory justInTimeCompilation:justInTimeCompilation value. |
|
3417 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
|
3418 |
]. |
|
3419 |
ObjectFileLoader notNil ifTrue:[ |
|
3420 |
stcLibraries notNil ifTrue:[ |
|
3421 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
|
3422 |
]. |
|
3423 |
stcLibraryPath notNil ifTrue:[ |
|
3424 |
ObjectFileLoader libPath:(stcLibraryPath value). |
|
3425 |
] |
|
3426 |
]. |
|
3427 |
Autoload compileLazy:compileLazy value. |
|
3428 |
Smalltalk loadBinaries:loadBinaries value. |
|
3429 |
]. |
|
3430 |
box destroy |
|
3431 |
||
3432 |
! |
|
3433 |
||
3434 |
displaySettings |
|
3435 |
"open a dialog on display related settings" |
|
3436 |
||
3437 |
|box listOfSizes sizeInfos |
|
3438 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
|
3439 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
|
3440 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList| |
|
3441 |
||
3442 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
|
3443 |
listOfSizes == #default ifTrue:[ |
|
3444 |
"/ nothing in resource file; offer at least some. |
|
3445 |
sizeInfos := #( |
|
3446 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
3447 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
3448 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
3449 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
3450 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
3451 |
). |
|
3452 |
] ifFalse:[ |
|
3453 |
sizeInfos := resources array:listOfSizes. |
|
3454 |
]. |
|
3455 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
|
3456 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
|
3457 |
||
3458 |
screen := Screen current. |
|
3459 |
visual := screen visualType. |
|
3460 |
||
3461 |
isColorMonitor := screen hasColors asValue. |
|
3462 |
deepIcons := screen supportsDeepIcons asValue. |
|
3463 |
useFixPalette := screen fixColors notNil asValue. |
|
3464 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
|
3465 |
||
3466 |
sizeList := SelectionInList with:sizeNames. |
|
3467 |
sizeX := screen widthInMillimeter asValue. |
|
3468 |
sizeY := screen heightInMillimeter asValue. |
|
3469 |
||
3470 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
|
3471 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
|
3472 |
clipEncodingList := SelectionInList new. |
|
3473 |
clipEncodingList list:clipEncodings. |
|
3474 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
|
3475 |
||
3476 |
ditherList := SelectionInList new. |
|
3477 |
||
3478 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
|
3479 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
|
3480 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
3481 |
] ifFalse:[ |
|
3482 |
visual ~~ #TrueColor ifTrue:[ |
|
3483 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
3484 |
ditherSyms := #(ordered floydSteinberg). |
|
3485 |
] |
|
3486 |
]. |
|
3487 |
ditherSyms notNil ifTrue:[ |
|
3488 |
ditherList list:ditherStyles. |
|
3489 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
3490 |
]. |
|
3491 |
||
3492 |
box := DialogBox new. |
|
3493 |
box label:(resources string:'Display screen settings'). |
|
3494 |
||
3495 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
3496 |
adjust:#left. |
|
3497 |
||
3498 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
3499 |
label:'monitor size'. |
|
3500 |
||
3501 |
idx := sizes findFirst:[:entry | |
|
3502 |
((entry at:1) = sizeX value) |
|
3503 |
and:[((entry at:2) = sizeY value)] |
|
3504 |
]. |
|
3505 |
idx ~~ 0 ifTrue:[ |
|
3506 |
sizeList selectionIndex:idx |
|
3507 |
]. |
|
3508 |
||
3509 |
sizeList onChangeSend:#value to:[ |
|
3510 |
|idx| |
|
3511 |
||
3512 |
idx := sizeList selectionIndex. |
|
3513 |
sizeX value:((sizes at:idx) at:1). |
|
3514 |
sizeY value:((sizes at:idx) at:2). |
|
3515 |
]. |
|
3516 |
||
3517 |
y := box yPosition. |
|
3518 |
component := box addTextLabel:(resources string:'screen size:'). |
|
3519 |
component width:0.3; adjust:#right; borderWidth:0. |
|
3520 |
||
3521 |
box yPosition:y. |
|
3522 |
component := box addInputFieldOn:nil tabable:true. |
|
3523 |
component width:0.25; left:0.3; |
|
3524 |
immediateAccept:false; acceptOnLeave:false; |
|
3525 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3526 |
converter:(PrintConverter new initForInteger); |
|
3527 |
model:sizeX. |
|
3528 |
||
3529 |
box yPosition:y. |
|
3530 |
component := box addTextLabel:(' x '). |
|
3531 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
3532 |
||
3533 |
box yPosition:y. |
|
3534 |
component := box addInputFieldOn:nil tabable:true. |
|
3535 |
component width:0.25; left:0.65; |
|
3536 |
immediateAccept:false; acceptOnLeave:false; |
|
3537 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3538 |
converter:(PrintConverter new initForInteger); |
|
3539 |
model:sizeY. |
|
3540 |
||
3541 |
box yPosition:y. |
|
3542 |
component := box addTextLabel:('(mm)'). |
|
3543 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
3544 |
||
3545 |
box addVerticalSpace. |
|
3546 |
box addHorizontalLine. |
|
3547 |
box addVerticalSpace. |
|
3548 |
||
3549 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
|
3550 |
with:Screen current depth printString |
|
3551 |
with:Screen current visualType |
|
3552 |
with:Screen current serverVendor)) |
|
3553 |
adjust:#left. |
|
3554 |
||
3555 |
box addVerticalSpace. |
|
3556 |
box addHorizontalLine. |
|
3557 |
box addVerticalSpace. |
|
3558 |
||
3559 |
box addCheckBox:(resources string:'color monitor') on:isColorMonitor. |
|
3560 |
||
3561 |
visual == #PseudoColor ifTrue:[ |
|
3562 |
box addVerticalSpace. |
|
3563 |
component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
3564 |
||
3565 |
box addVerticalSpace. |
|
3566 |
component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette. |
|
3567 |
]. |
|
3568 |
||
3569 |
ditherSyms notNil ifTrue:[ |
|
3570 |
box addVerticalSpace. |
|
3571 |
component := box addPopUpList:(resources string:'image display:') on:ditherList. |
|
3572 |
component defaultLabel:'image display'. |
|
3573 |
component superView horizontalLayout:#leftSpace. |
|
3574 |
]. |
|
3575 |
||
3576 |
box addVerticalSpace. |
|
3577 |
box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons. |
|
3578 |
||
3579 |
box addVerticalSpace. |
|
3580 |
box addHorizontalLine. |
|
3581 |
box addVerticalSpace. |
|
3582 |
||
3583 |
component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList. |
|
3584 |
component superView horizontalLayout:#leftSpace. |
|
3585 |
||
3586 |
box |
|
3587 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
|
3588 |
addAbortButton; addOkButton. |
|
3589 |
box open. |
|
3590 |
||
3591 |
box accepted ifTrue:[ |
|
3592 |
Image flushDeviceImages. |
|
3593 |
||
3594 |
screen visualType == #PseudoColor ifTrue:[ |
|
3595 |
useFixPalette value ifTrue:[ |
|
3596 |
Color colorAllocationFailSignal handle:[:ex | |
|
3597 |
self warn:(resources string:'Could not allocate colors.'). |
|
3598 |
] do:[ |
|
3599 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
3600 |
] |
|
3601 |
] ifFalse:[ |
|
3602 |
screen releaseFixColors |
|
3603 |
]. |
|
3604 |
||
3605 |
useFixGrayPalette value ifTrue:[ |
|
3606 |
Color colorAllocationFailSignal handle:[:ex | |
|
3607 |
self warn:(resources string:'Could not allocate colors.'). |
|
3608 |
] do:[ |
|
3609 |
Color getGrayColors:32 on:screen |
|
3610 |
] |
|
3611 |
] ifFalse:[ |
|
3612 |
screen releaseFixGrayColors |
|
3613 |
] |
|
3614 |
]. |
|
3615 |
screen hasColors:isColorMonitor value. |
|
3616 |
screen widthInMillimeter:sizeX value. |
|
3617 |
screen heightInMillimeter:sizeY value. |
|
3618 |
||
3619 |
screen supportsDeepIcons:deepIcons value. |
|
3620 |
ditherSyms notNil ifTrue:[ |
|
3621 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
3622 |
]. |
|
3623 |
||
3624 |
self withWaitCursorDo:[ |
|
3625 |
View defaultStyle:(View defaultStyle). |
|
3626 |
]. |
|
3627 |
||
3628 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
3629 |
]. |
|
3630 |
box destroy |
|
3631 |
||
3632 |
! |
|
3633 |
||
1411 | 3634 |
fontBoxForEncoding:encodingMatch |
3635 |
"open a fontBox, showing fonts which match some encoding |
|
3636 |
(used when changing to japanese ...)" |
|
3637 |
||
3638 |
|box y b |
|
3639 |
labelDef buttonDef listDef menuDef textDef |
|
3640 |
models labels allOfThem filter| |
|
3641 |
||
3642 |
encodingMatch notNil ifTrue:[ |
|
3643 |
filter := [:f | f encoding notNil |
|
3644 |
and:[encodingMatch match:f encoding]]. |
|
3645 |
]. |
|
3646 |
||
3647 |
models := OrderedCollection new. |
|
3648 |
labels := OrderedCollection new. |
|
3649 |
||
3650 |
models add:(allOfThem := nil asValue). |
|
3651 |
models add:(labelDef := Label defaultFont asValue). |
|
3652 |
models add:(buttonDef := Button defaultFont asValue). |
|
3653 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
3654 |
models add:(menuDef := MenuView defaultFont asValue). |
|
3655 |
models add:(textDef := TextView defaultFont asValue). |
|
3656 |
||
3657 |
box := Dialog new. |
|
3658 |
box label:(resources string:'Font settings'). |
|
3659 |
||
3660 |
models |
|
3661 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
3662 |
do:[:model :title | |
|
3663 |
|y2 lbl f i| |
|
3664 |
||
3665 |
f := model value. |
|
3666 |
||
3667 |
(box addTextLabel:title) adjust:#left. |
|
3668 |
||
3669 |
y := box yPosition. |
|
3670 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
3671 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
3672 |
y2 := box yPosition. |
|
3673 |
box yPosition:y. |
|
3674 |
i := box leftIndent. |
|
3675 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
3676 |
(lbl := box addTextLabel:'') |
|
3677 |
adjust:#left; |
|
3678 |
font:(model value); |
|
3679 |
labelChannel:(BlockValue |
|
3680 |
with:[:v | |f| |
|
3681 |
f := v value. |
|
3682 |
f isNil ifTrue:[ |
|
3683 |
'' |
|
3684 |
] ifFalse:[ |
|
3685 |
f userFriendlyName |
|
3686 |
] |
|
3687 |
] |
|
3688 |
argument:model). |
|
3689 |
labels add:lbl. |
|
3690 |
||
3691 |
box leftIndent:i. |
|
3692 |
box yPosition:(box yPosition max:y2). |
|
3693 |
box addVerticalSpace. |
|
3694 |
box addHorizontalLine. |
|
3695 |
box addVerticalSpace. |
|
3696 |
||
3697 |
b action:[ |
|
3698 |
|f| |
|
1429 | 3699 |
|
1411 | 3700 |
f := FontPanel |
3701 |
fontFromUserInitial:(model value) |
|
3702 |
title:(resources string:'font for %1' with:title) |
|
3703 |
filter:filter. |
|
3704 |
f notNil ifTrue:[ |
|
3705 |
model == allOfThem ifTrue:[ |
|
3706 |
models do:[:m | m value:f]. |
|
3707 |
labels do:[:l | l font:f] |
|
3708 |
] ifFalse:[ |
|
1429 | 3709 |
model value:f. |
1411 | 3710 |
lbl font:f. |
3711 |
]. |
|
3712 |
] |
|
3713 |
]. |
|
3714 |
model == allOfThem ifTrue:[ |
|
3715 |
box addVerticalSpace |
|
3716 |
] |
|
3717 |
]. |
|
3718 |
||
3719 |
box addAbortButton; addOkButton. |
|
3720 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
3721 |
action:[ |
|
3722 |
"/ fetch defaults |
|
3723 |
View updateAllStyleCaches. |
|
3724 |
labelDef value: Label defaultFont. |
|
3725 |
buttonDef value: Button defaultFont. |
|
3726 |
listDef value: SelectionInListView defaultFont. |
|
3727 |
menuDef value: MenuView defaultFont. |
|
3728 |
textDef value: TextView defaultFont. |
|
3729 |
]. |
|
3730 |
||
3731 |
box open. |
|
3732 |
box accepted ifTrue:[ |
|
3733 |
Label defaultFont:labelDef value. |
|
3734 |
Button defaultFont:buttonDef value. |
|
3735 |
Toggle defaultFont:buttonDef value. |
|
3736 |
SelectionInListView defaultFont:listDef value. |
|
3737 |
MenuView defaultFont:menuDef value. |
|
3738 |
PullDownMenu defaultFont:menuDef value. |
|
3739 |
TextView defaultFont:textDef value. |
|
3740 |
EditTextView defaultFont:textDef value. |
|
3741 |
CodeView defaultFont:textDef value. |
|
3742 |
]. |
|
3743 |
box destroy. |
|
3744 |
^ box accepted |
|
3745 |
||
3746 |
||
3747 |
! |
|
3748 |
||
1406 | 3749 |
fontSettings |
3750 |
"open a dialog on font related settings" |
|
3751 |
||
3752 |
(self fontBoxForEncoding:nil) ifTrue:[self reOpen] |
|
3753 |
||
3754 |
! |
|
3755 |
||
3756 |
keyboardSetting |
|
3757 |
"open a dialog on keyboard related settings" |
|
3758 |
||
3759 |
|mappings listOfRawKeys listOfFunctions |
|
3760 |
box l |
|
3761 |
list1 list2 listView1 listView2 |
|
3762 |
frame selectionForwarder macroForwarder macroTextView y| |
|
3763 |
||
3764 |
mappings := Screen current keyboardMap. |
|
3765 |
||
3766 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
3767 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
3768 |
||
3769 |
selectionForwarder := Plug new. |
|
3770 |
selectionForwarder respondTo:#showFunction |
|
3771 |
with:[ |
|
3772 |
|raw| |
|
3773 |
raw := list1 selection. |
|
3774 |
list2 retractInterestsFor:selectionForwarder. |
|
3775 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
3776 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3777 |
]. |
|
3778 |
selectionForwarder respondTo:#showRawKey |
|
3779 |
with:[ |
|
3780 |
|f raw| |
|
3781 |
||
3782 |
f := list2 selection. |
|
3783 |
list1 retractInterestsFor:selectionForwarder. |
|
3784 |
raw := mappings keyAtValue:f asString. |
|
3785 |
raw isNil ifTrue:[ |
|
3786 |
raw := mappings keyAtValue:f first. |
|
3787 |
raw isNil ifTrue:[ |
|
3788 |
raw := mappings keyAtValue:f asSymbol. |
|
3789 |
] |
|
3790 |
]. |
|
3791 |
list1 selection:raw. |
|
3792 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3793 |
]. |
|
3794 |
||
3795 |
macroForwarder := [ |
|
3796 |
|f macro indent| |
|
3797 |
f := list2 selection. |
|
3798 |
(f startsWith:'Cmd') ifTrue:[ |
|
3799 |
f := f copyFrom:4 |
|
3800 |
]. |
|
3801 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
3802 |
macro notNil ifTrue:[ |
|
3803 |
macro := macro asStringCollection. |
|
3804 |
indent := macro |
|
3805 |
inject:99999 into:[:min :element | |
|
3806 |
|stripped| |
|
3807 |
||
3808 |
stripped := element withoutLeadingSeparators. |
|
3809 |
stripped size == 0 ifTrue:[ |
|
3810 |
min |
|
3811 |
] ifFalse:[ |
|
3812 |
min min:(element size - stripped size) |
|
3813 |
] |
|
3814 |
]. |
|
3815 |
indent ~~ 0 ifTrue:[ |
|
3816 |
macro := macro collect:[:line | |
|
3817 |
line size > indent ifTrue:[ |
|
3818 |
line copyFrom:indent+1 |
|
3819 |
] ifFalse:[ |
|
3820 |
line |
|
3821 |
]. |
|
3822 |
] |
|
3823 |
]. |
|
3824 |
]. |
|
3825 |
macroTextView contents:macro. |
|
3826 |
]. |
|
3827 |
||
3828 |
list1 := SelectionInList with:listOfRawKeys. |
|
3829 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3830 |
||
3831 |
list2 := SelectionInList with:listOfFunctions. |
|
3832 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3833 |
list2 onChangeSend:#value to:macroForwarder. |
|
3834 |
||
3835 |
box := Dialog new. |
|
3836 |
box label:(resources string:'Keyboard mappings'). |
|
3837 |
||
3838 |
l := box addTextLabel:(resources string:'KEY_MSG') withCRs. |
|
3839 |
l adjust:#left; borderWidth:0. |
|
3840 |
||
3841 |
frame := View new. |
|
3842 |
frame extent:300 @ 300. |
|
3843 |
frame borderWidth:0. |
|
3844 |
||
3845 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
3846 |
listView1 model:list1. |
|
3847 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
3848 |
||
3849 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
3850 |
listView2 model:list2. |
|
3851 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
3852 |
||
3853 |
frame topInset:box yPosition. |
|
3854 |
box addComponent:frame withExtent:350@200. |
|
3855 |
box makeTabable:listView1. |
|
3856 |
box makeTabable:listView2. |
|
3857 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
3858 |
||
3859 |
box addVerticalSpace. |
|
3860 |
||
3861 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
3862 |
l adjust:#left; borderWidth:0. |
|
3863 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
3864 |
l topInset:(View viewSpacing). |
|
3865 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
3866 |
||
3867 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
3868 |
box addComponent:macroTextView tabable:true. |
|
3869 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
3870 |
y := box yPosition. |
|
3871 |
||
3872 |
box |
|
3873 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
|
3874 |
"addAbortButton;" |
|
3875 |
addOkButtonLabelled:(resources string:'dismiss'). |
|
3876 |
||
3877 |
macroTextView topInset:(l preferredExtent y + 5). |
|
3878 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
3879 |
||
3880 |
box open. |
|
3881 |
||
3882 |
box accepted ifTrue:[ |
|
3883 |
"no action yet ..." |
|
3884 |
]. |
|
3885 |
box destroy |
|
3886 |
||
3887 |
||
3888 |
! |
|
3889 |
||
3890 |
languageSetting |
|
3891 |
"open a dialog on language related settings" |
|
3892 |
||
3893 |
|listOfLanguages translatedLanguages switch box languageList flags| |
|
3894 |
||
3895 |
" |
|
3896 |
get list of supported languages from the launchers resources ... |
|
3897 |
" |
|
3898 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
|
3899 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
3900 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
|
3901 |
item := resources at:lang. |
|
3902 |
item isString ifTrue:[ |
|
3903 |
item |
|
3904 |
] ifFalse:[ |
|
3905 |
item at:1 |
|
3906 |
] |
|
3907 |
]. |
|
3908 |
flags := listOfLanguages collect:[:lang | |item| |
|
3909 |
item := resources at:lang. |
|
3910 |
item isArray ifTrue:[ |
|
3911 |
item at:2 |
|
3912 |
] ifFalse:[ |
|
3913 |
nil |
|
3914 |
] |
|
3915 |
]. |
|
3916 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
|
3917 |
||
3918 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
|
3919 |
LabelAndIcon icon:flag string:lang. |
|
3920 |
]. |
|
3921 |
||
3922 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs. |
|
3923 |
box label:(resources string:'Language selection'). |
|
3924 |
box list:languageList. |
|
3925 |
box initialText:(Language). |
|
3926 |
box action:[:newLanguage | |
|
3927 |
self withWaitCursorDo:[ |
|
3928 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
3929 |
||
3930 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
3931 |
idx ~~ 0 ifTrue:[ |
|
3932 |
language := listOfLanguages at:idx |
|
3933 |
] ifFalse:[ |
|
3934 |
language := newLanguage |
|
3935 |
]. |
|
3936 |
||
3937 |
"/ check if the new language needs a differently encoded font; |
|
3938 |
"/ ask user to switch font and allow cancellation. |
|
3939 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
3940 |
||
3941 |
oldLanguage := Smalltalk language. |
|
3942 |
Smalltalk language:language asSymbol. |
|
3943 |
ResourcePack flushCachedResourcePacks. |
|
1465 | 3944 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
1406 | 3945 |
Smalltalk language:oldLanguage. |
3946 |
||
3947 |
switch := true. |
|
3948 |
enc := MenuView defaultFont encoding. |
|
3949 |
(fontPref match:enc) ifFalse:[ |
|
3950 |
"/ look if there is one at all. |
|
3951 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3952 |
matchingFonts size == 0 ifTrue:[ |
|
3953 |
(Dialog |
|
3954 |
confirm:(resources |
|
3955 |
string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
3956 |
with:fontPref) withCRs) |
|
3957 |
ifFalse:[ |
|
3958 |
switch := false |
|
3959 |
] |
|
3960 |
] ifFalse:[ |
|
3961 |
answer := Dialog |
|
3962 |
confirmWithCancel:(resources |
|
3963 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
3964 |
with:fontPref) withCRs |
|
3965 |
labels:(resources |
|
3966 |
array:#('cancel' 'no' 'yes')) |
|
3967 |
default:3. |
|
3968 |
answer isNil ifTrue:[ |
|
3969 |
switch := false |
|
3970 |
] ifFalse:[ |
|
3971 |
answer ifTrue:[ |
|
3972 |
switch := (self fontBoxForEncoding:fontPref) |
|
3973 |
] |
|
3974 |
]. |
|
3975 |
]. |
|
3976 |
]. |
|
3977 |
||
3978 |
switch ifTrue:[ |
|
3979 |
transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
3980 |
Smalltalk language:language asSymbol. |
|
3981 |
ResourcePack flushCachedResourcePacks |
|
3982 |
]. |
|
3983 |
]. |
|
3984 |
switch ifTrue:[ |
|
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
3985 |
self reOpen. |
1406 | 3986 |
DebugView newDebugger. |
3987 |
] |
|
3988 |
]. |
|
3989 |
box |
|
3990 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
|
3991 |
box open. |
|
3992 |
box destroy |
|
3993 |
||
1465 | 3994 |
"Modified: / 6.2.1998 / 00:01:01 / cg" |
1406 | 3995 |
! |
3996 |
||
3997 |
memorySettings |
|
3998 |
"open a dialog on objectMemory related settings" |
|
3999 |
||
4000 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
4001 |
compressLimit |
|
4002 |
oldIncr component fields codeLimit codeTrigger stackLimit| |
|
4003 |
||
4004 |
"/ |
|
4005 |
"/ extract relevant system settings ... |
|
4006 |
"/ |
|
4007 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
4008 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
4009 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
4010 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
4011 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
4012 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
|
4013 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
|
4014 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
4015 |
stackLimit := Process defaultMaximumStackSize asValue. |
|
4016 |
||
4017 |
"/ |
|
4018 |
"/ create a box on those values ... |
|
4019 |
"/ |
|
4020 |
fields := OrderedCollection new. |
|
4021 |
||
4022 |
box := DialogBox new. |
|
4023 |
box label:(resources string:'Memory manager settings'). |
|
4024 |
||
4025 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
|
4026 |
||
4027 |
You have been warned.') adjust:#left. |
|
4028 |
box addHorizontalLine. |
|
4029 |
||
4030 |
component := box |
|
4031 |
addLabelledInputField:(resources string:'size of newSpace:') |
|
4032 |
adjust:#right |
|
4033 |
on:nil "/ newSpaceSize |
|
4034 |
tabable:true |
|
4035 |
separateAtX:0.7. |
|
4036 |
component acceptOnLeave:false. |
|
4037 |
component converter:(PrintConverter new initForNumber). |
|
4038 |
component model:newSpaceSize. |
|
4039 |
fields add:component. |
|
4040 |
||
4041 |
box addHorizontalLine. |
|
4042 |
||
4043 |
||
4044 |
component := box |
|
4045 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
|
4046 |
adjust:#right |
|
4047 |
on:nil "/ igcLimit |
|
4048 |
tabable:true |
|
4049 |
separateAtX:0.7. |
|
4050 |
component acceptOnLeave:false. |
|
4051 |
component converter:(PrintConverter new initForNumber). |
|
4052 |
component model:igcLimit. |
|
4053 |
fields add:component. |
|
4054 |
||
4055 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
|
4056 |
box addHorizontalLine. |
|
4057 |
||
4058 |
component := box |
|
4059 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
|
4060 |
adjust:#right |
|
4061 |
on:nil "/ igcFreeLimit |
|
4062 |
tabable:true |
|
4063 |
separateAtX:0.7. |
|
4064 |
component acceptOnLeave:false. |
|
4065 |
component converter:(PrintConverter new initForNumber). |
|
4066 |
component model:igcFreeLimit. |
|
4067 |
fields add:component. |
|
4068 |
||
4069 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
|
4070 |
box addHorizontalLine. |
|
4071 |
||
4072 |
component := box |
|
4073 |
addLabelledInputField:(resources string:'incremental GC amount:') |
|
4074 |
adjust:#right |
|
4075 |
on:nil "/ igcFreeAmount |
|
4076 |
tabable:true |
|
4077 |
separateAtX:0.7. |
|
4078 |
component acceptOnLeave:false. |
|
4079 |
component converter:(PrintConverter new initForNumber). |
|
4080 |
component model:igcFreeAmount. |
|
4081 |
fields add:component. |
|
4082 |
||
4083 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
|
4084 |
box addHorizontalLine. |
|
4085 |
||
4086 |
component := box |
|
4087 |
addLabelledInputField:(resources string:'oldspace increment:') |
|
4088 |
adjust:#right |
|
4089 |
on:nil "/ oldIncr |
|
4090 |
tabable:true |
|
4091 |
separateAtX:0.7. |
|
4092 |
component acceptOnLeave:false. |
|
4093 |
component converter:(PrintConverter new initForNumber). |
|
4094 |
component model:oldIncr. |
|
4095 |
fields add:component. |
|
4096 |
||
4097 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
|
4098 |
box addHorizontalLine. |
|
4099 |
||
4100 |
component := box |
|
4101 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
|
4102 |
adjust:#right |
|
4103 |
on:nil "/ compressLimit |
|
4104 |
tabable:true |
|
4105 |
separateAtX:0.7. |
|
4106 |
component acceptOnLeave:false. |
|
4107 |
component converter:(PrintConverter new initForNumber). |
|
4108 |
component model:compressLimit. |
|
4109 |
fields add:component. |
|
4110 |
||
4111 |
box addTextLabel:'(suppress compressing GC if more memory is in use)'. |
|
4112 |
box addHorizontalLine. |
|
4113 |
||
4114 |
component := box |
|
4115 |
addLabelledInputField:(resources string:'stack limit:') |
|
4116 |
adjust:#right |
|
4117 |
on:nil |
|
4118 |
tabable:true |
|
4119 |
separateAtX:0.7. |
|
4120 |
component acceptOnLeave:false. |
|
4121 |
component converter:(PrintConverter new initForNumber). |
|
4122 |
component model:stackLimit. |
|
4123 |
fields add:component. |
|
4124 |
||
4125 |
box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'. |
|
4126 |
box addHorizontalLine. |
|
4127 |
||
4128 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
|
4129 |
component := box |
|
4130 |
addLabelledInputField:(resources string:'dynamic code limit:') |
|
4131 |
adjust:#right |
|
4132 |
on:nil |
|
4133 |
tabable:true |
|
4134 |
separateAtX:0.7. |
|
4135 |
component acceptOnLeave:false. |
|
4136 |
component converter:(PrintConverter new initForNumberOrNil). |
|
4137 |
component model:codeLimit. |
|
4138 |
fields add:component. |
|
4139 |
||
4140 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
|
4141 |
box addHorizontalLine. |
|
4142 |
||
4143 |
component := box |
|
4144 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
|
4145 |
adjust:#right |
|
4146 |
on:nil |
|
4147 |
tabable:true |
|
4148 |
separateAtX:0.7. |
|
4149 |
component acceptOnLeave:false. |
|
4150 |
component converter:(PrintConverter new initForNumberOrNil). |
|
4151 |
component model:codeTrigger. |
|
4152 |
fields add:component. |
|
4153 |
||
4154 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
|
4155 |
box addHorizontalLine. |
|
4156 |
]. |
|
4157 |
||
4158 |
box addAbortButton; addOkButton. |
|
4159 |
box |
|
4160 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
|
4161 |
||
4162 |
"/ |
|
4163 |
"/ show the box ... |
|
4164 |
"/ |
|
4165 |
box open. |
|
4166 |
||
4167 |
"/ |
|
4168 |
"/ update system settings |
|
4169 |
"/ |
|
4170 |
box accepted ifTrue:[ |
|
4171 |
fields do:[:comp | comp accept]. |
|
4172 |
||
4173 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
4174 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
4175 |
]. |
|
4176 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
4177 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
4178 |
]. |
|
4179 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
4180 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
4181 |
]. |
|
4182 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
4183 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
4184 |
]. |
|
4185 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
4186 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
4187 |
]. |
|
4188 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
4189 |
Process defaultMaximumStackSize:stackLimit value. |
|
4190 |
]. |
|
4191 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
4192 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
4193 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
4194 |
]. |
|
4195 |
box destroy |
|
4196 |
! |
|
4197 |
||
4198 |
messageSettings |
|
4199 |
"open a dialog on infoMessage related settings" |
|
4200 |
||
4201 |
|box vmInfo vmErrors displayErrors classInfos| |
|
4202 |
||
4203 |
vmInfo := ObjectMemory infoPrinting asValue. |
|
4204 |
vmErrors := ObjectMemory debugPrinting asValue. |
|
4205 |
classInfos := Object infoPrinting asValue. |
|
4206 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
|
4207 |
||
4208 |
box := DialogBox new. |
|
4209 |
box label:(resources string:'Messages'). |
|
4210 |
||
4211 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
|
4212 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
|
4213 |
box addHorizontalLine. |
|
4214 |
||
4215 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
|
4216 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
|
4217 |
||
4218 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
|
4219 |
box addAbortButton; addOkButton. |
|
4220 |
box open. |
|
4221 |
||
4222 |
box accepted ifTrue:[ |
|
4223 |
ObjectMemory infoPrinting:vmInfo value. |
|
4224 |
ObjectMemory debugPrinting:vmErrors value. |
|
4225 |
Object infoPrinting:classInfos value. |
|
4226 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
4227 |
]. |
|
4228 |
box destroy |
|
4229 |
||
4230 |
||
4231 |
! |
|
4232 |
||
4233 |
miscSettings |
|
4234 |
"open a dialog on misc other settings" |
|
4235 |
||
4236 |
|box shadows takeFocus returnFocus |
|
4237 |
hostNameInLabel showAccelerators |
|
4238 |
preemptive hostNameInLabelHolder| |
|
4239 |
||
4240 |
"/ |
|
4241 |
"/ extract relevant system settings ... |
|
4242 |
"/ |
|
4243 |
shadows := PopUpView shadows asValue. |
|
4244 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
|
4245 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
4246 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
4247 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
4248 |
||
4249 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
4250 |
preemptive := Processor isTimeSlicing asValue. |
|
4251 |
||
4252 |
"/ |
|
4253 |
"/ create a box on those values ... |
|
4254 |
"/ |
|
4255 |
box := DialogBox new. |
|
4256 |
box label:(resources string:'Other settings'). |
|
4257 |
||
4258 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
4259 |
box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus. |
|
4260 |
box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus. |
|
4261 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder. |
|
4262 |
box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators. |
|
4263 |
||
4264 |
box addHorizontalLine. |
|
4265 |
||
4266 |
box addCheckBox:(resources string:'preemptive scheduling') on:preemptive. |
|
4267 |
||
4268 |
box |
|
4269 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
|
4270 |
addAbortButton; |
|
4271 |
addOkButton. |
|
4272 |
||
4273 |
"/ |
|
4274 |
"/ show the box ... |
|
4275 |
"/ |
|
4276 |
box open. |
|
4277 |
||
4278 |
"/ |
|
4279 |
"/ update system settings |
|
4280 |
"/ |
|
4281 |
box accepted ifTrue:[ |
|
4282 |
PopUpView shadows:shadows value. |
|
4283 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
4284 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
4285 |
||
4286 |
Screen allScreens do:[:aDisplay | |
|
4287 |
aDisplay allViewsDo:[:aView | |
|
4288 |
|l| |
|
4289 |
||
4290 |
aView isTopView ifTrue:[ |
|
1475
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4291 |
aView isPopUpView ifFalse:[ |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4292 |
l := aView label. |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4293 |
aView label:(l , ' '); label:l. "/ force a change |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4294 |
] |
1406 | 4295 |
] |
4296 |
] |
|
4297 |
] |
|
4298 |
]. |
|
4299 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
4300 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
4301 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
4302 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
4303 |
preemptive value ifTrue:[ |
|
4304 |
Processor startTimeSlicing |
|
4305 |
] ifFalse:[ |
|
4306 |
Processor stopTimeSlicing |
|
4307 |
] |
|
4308 |
] |
|
4309 |
]. |
|
4310 |
box destroy |
|
4311 |
||
4312 |
||
4313 |
! |
|
4314 |
||
4315 |
printerSettings |
|
4316 |
"open a dialog on printer related settings" |
|
4317 |
||
4318 |
|box |
|
4319 |
possiblePrinters possibleTypes printerType printCommand |
|
4320 |
pageFormat landscape updater |
|
4321 |
formatLabel formatComponent landscapeLabel landscapeComponent |
|
4322 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
|
4323 |
topMarginComponent leftMarginComponent |
|
4324 |
rightMarginComponent |
|
4325 |
bottomMarginComponent supportsColor supportsColorComponent |
|
4326 |
y y1 commandListPop component commandList row| |
|
4327 |
||
4328 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
4329 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
4330 |
||
4331 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
4332 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
4333 |
printCommand := Printer printCommand asValue. |
|
4334 |
||
4335 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
|
4336 |
pageFormat selection:(Printer pageFormat). |
|
4337 |
landscape := Printer landscape asValue. |
|
4338 |
||
4339 |
topMargin := Printer topMargin asValue. |
|
4340 |
leftMargin := Printer leftMargin asValue. |
|
4341 |
rightMargin := Printer rightMargin asValue. |
|
4342 |
bottomMargin := Printer bottomMargin asValue. |
|
4343 |
supportsColor := Printer supportsColor asValue. |
|
4344 |
||
4345 |
box := DialogBox new. |
|
4346 |
box label:(resources string:'Printer settings'). |
|
4347 |
||
4348 |
"/ either use a popUpList ... |
|
4349 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
4350 |
||
4351 |
"/ or a comboList; |
|
4352 |
"/ which one looks better ? |
|
4353 |
y := box yPosition. |
|
4354 |
component := box addTextLabel:(resources string:'printer type:'). |
|
4355 |
component width:0.25; adjust:#right; borderWidth:0. |
|
4356 |
box yPosition:y. |
|
4357 |
component := box addComboListOn:printerType tabable:true. |
|
4358 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
|
4359 |
component width:0.75; left:0.25. |
|
4360 |
"/ end of question |
|
4361 |
||
4362 |
y := box yPosition. |
|
4363 |
component := box addTextLabel:(resources string:'print command:'). |
|
4364 |
component width:0.25; adjust:#right; borderWidth:0. |
|
4365 |
box yPosition:y. |
|
4366 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
|
4367 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
4368 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
4369 |
"/ some common print commands ... |
|
4370 |
||
4371 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
|
4372 |
commandList isNil ifTrue:[ |
|
4373 |
commandList := PrinterStream defaultCommands. |
|
4374 |
commandList isNil ifTrue:[ |
|
4375 |
commandList := #('lpr' |
|
4376 |
'lp' |
|
4377 |
). |
|
4378 |
] |
|
4379 |
]. |
|
4380 |
||
4381 |
commandListPop list:commandList. |
|
4382 |
box addVerticalSpace. |
|
4383 |
box addHorizontalLine. |
|
4384 |
box addVerticalSpace. |
|
4385 |
||
4386 |
row := OrderedCollection new. |
|
4387 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
|
4388 |
formatLabel borderWidth:0. |
|
4389 |
row add:(formatComponent := PopUpList on:pageFormat). |
|
4390 |
formatComponent label:'unknown'. |
|
4391 |
||
4392 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
4393 |
landscapeLabel borderWidth:0. |
|
4394 |
row add:(landscapeComponent := CheckToggle on:landscape). |
|
4395 |
||
4396 |
y := box yPosition. |
|
4397 |
box |
|
4398 |
addRow:(1 to:2) |
|
4399 |
fromX:0 |
|
4400 |
toX:0.5 |
|
4401 |
collect:[:idx | row at:idx] |
|
4402 |
tabable:false |
|
4403 |
horizontalLayout:#leftSpace |
|
4404 |
verticalLayout:#center. |
|
4405 |
y1 := box yPosition. |
|
4406 |
box yPosition:y. |
|
4407 |
||
4408 |
box |
|
4409 |
addRow:(3 to:4) |
|
4410 |
fromX:0.5 |
|
4411 |
toX:1.0 |
|
4412 |
collect:[:idx | row at:idx] |
|
4413 |
tabable:false |
|
4414 |
horizontalLayout:#leftSpace |
|
4415 |
verticalLayout:#center. |
|
4416 |
||
4417 |
box yPosition:(box yPosition max:y1). |
|
4418 |
||
4419 |
box makeTabable:(formatComponent). |
|
4420 |
box makeTabable:(landscapeComponent). |
|
4421 |
||
4422 |
box addVerticalSpace. |
|
4423 |
box addHorizontalLine. |
|
4424 |
box addVerticalSpace. |
|
4425 |
||
4426 |
y := box yPosition. |
|
4427 |
||
4428 |
topMarginComponent := box |
|
4429 |
addLabelledInputField:(resources string:'top margin:') |
|
4430 |
adjust:#right |
|
4431 |
on:nil "/ topMargin |
|
4432 |
tabable:true |
|
4433 |
from:0.0 to:0.5 |
|
4434 |
separateAtX:0.6. |
|
4435 |
topMarginComponent converter:(PrintConverter new initForNumber). |
|
4436 |
topMarginComponent model:topMargin. |
|
4437 |
y1 := box yPosition. |
|
4438 |
||
4439 |
box yPosition:y. |
|
4440 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
4441 |
unitList selectionIndex:1. |
|
4442 |
||
4443 |
component := box addComponent:(PopUpList on:unitList). |
|
4444 |
component |
|
4445 |
left:0.6; |
|
4446 |
width:0.3. |
|
4447 |
||
4448 |
box yPosition:y1. |
|
4449 |
||
4450 |
leftMarginComponent := box |
|
4451 |
addLabelledInputField:(resources string:'left margin:') |
|
4452 |
adjust:#right |
|
4453 |
on:nil "/ leftMargin |
|
4454 |
tabable:true |
|
4455 |
from:0.0 to:0.5 |
|
4456 |
separateAtX:0.6. |
|
4457 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
|
4458 |
leftMarginComponent model:leftMargin. |
|
4459 |
||
4460 |
rightMarginComponent := box |
|
4461 |
addLabelledInputField:(resources string:'right margin:') |
|
4462 |
adjust:#right |
|
4463 |
on:nil "/ rightMargin |
|
4464 |
tabable:true |
|
4465 |
from:0.0 to:0.5 |
|
4466 |
separateAtX:0.6. |
|
4467 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
|
4468 |
rightMarginComponent model:rightMargin. |
|
4469 |
||
4470 |
bottomMarginComponent := box |
|
4471 |
addLabelledInputField:(resources string:'bottom margin:') |
|
4472 |
adjust:#right |
|
4473 |
on:nil "/ bottomMargin |
|
4474 |
tabable:true |
|
4475 |
from:0.0 to:0.5 |
|
4476 |
separateAtX:0.6. |
|
4477 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
|
4478 |
bottomMarginComponent model:bottomMargin. |
|
4479 |
||
4480 |
box addHorizontalLine. |
|
4481 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
4482 |
box addVerticalSpace. |
|
4483 |
||
4484 |
updater := [ |p fg hasPageSize hasMargins| |
|
4485 |
||
4486 |
printerType selectionIndex ~~ 0 ifTrue:[ |
|
4487 |
p := possiblePrinters at:(printerType selectionIndex). |
|
4488 |
hasPageSize := p supportsPageSizes. |
|
4489 |
hasMargins := p supportsMargins. |
|
4490 |
] ifFalse:[ |
|
4491 |
hasPageSize := false. |
|
4492 |
hasMargins := false. |
|
4493 |
]. |
|
4494 |
hasPageSize ifTrue:[ |
|
4495 |
fg := Button new foregroundColor. |
|
4496 |
formatComponent enable. |
|
4497 |
landscapeComponent enable. |
|
4498 |
||
4499 |
formatComponent label:p pageFormat. |
|
4500 |
pageFormat value:(p pageFormat). |
|
4501 |
landscape value:(p landscape). |
|
4502 |
] ifFalse:[ |
|
4503 |
fg := Button new disabledForegroundColor. |
|
4504 |
formatComponent disable. |
|
4505 |
landscapeComponent disable. |
|
4506 |
||
4507 |
formatComponent label:'unknown'. |
|
4508 |
landscape value:nil. |
|
4509 |
]. |
|
4510 |
hasMargins ifTrue:[ |
|
4511 |
unitList selectionIndex == 2 ifTrue:[ |
|
4512 |
unit := #mm |
|
4513 |
] ifFalse:[ |
|
4514 |
unit := #inch |
|
4515 |
]. |
|
4516 |
||
4517 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
4518 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
4519 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
4520 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
4521 |
||
4522 |
topMarginComponent enable. |
|
4523 |
leftMarginComponent enable. |
|
4524 |
rightMarginComponent enable. |
|
4525 |
bottomMarginComponent enable. |
|
4526 |
] ifFalse:[ |
|
4527 |
topMarginComponent disable. |
|
4528 |
leftMarginComponent disable. |
|
4529 |
rightMarginComponent disable. |
|
4530 |
bottomMarginComponent disable. |
|
4531 |
]. |
|
4532 |
formatLabel foregroundColor:fg. |
|
4533 |
landscapeLabel foregroundColor:fg. |
|
4534 |
||
4535 |
p notNil ifTrue:[ |
|
4536 |
commandList := p defaultCommands. |
|
4537 |
commandList notNil ifTrue:[ |
|
4538 |
commandListPop list:commandList |
|
4539 |
]. |
|
4540 |
||
4541 |
printCommand value:(p printCommand). |
|
4542 |
]. |
|
4543 |
p supportsPostscript ifFalse:[ |
|
4544 |
supportsColorComponent disable. |
|
4545 |
supportsColor value:false |
|
4546 |
] ifTrue:[ |
|
4547 |
supportsColorComponent enable. |
|
4548 |
supportsColor value:(Printer supportsColor). |
|
4549 |
] |
|
4550 |
]. |
|
4551 |
unitList onChangeSend:#value to:updater. |
|
4552 |
printerType onChangeSend:#value to:updater. |
|
4553 |
updater value. |
|
4554 |
||
4555 |
box addVerticalSpace; |
|
4556 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
|
4557 |
addAbortButton; addOkButton. |
|
4558 |
box open. |
|
4559 |
||
4560 |
box accepted ifTrue:[ |
|
4561 |
Printer := possiblePrinters at:(printerType selectionIndex). |
|
4562 |
Printer printCommand:printCommand value. |
|
4563 |
||
4564 |
Printer supportsPageSizes ifTrue:[ |
|
4565 |
Printer pageFormat:(pageFormat selection). |
|
4566 |
Printer landscape:(landscape value). |
|
4567 |
]. |
|
4568 |
Printer supportsMargins ifTrue:[ |
|
4569 |
unitList selectionIndex == 2 ifTrue:[ |
|
4570 |
unit := #mm |
|
4571 |
] ifFalse:[ |
|
4572 |
unit := #inch |
|
4573 |
]. |
|
4574 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
4575 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
4576 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
4577 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
4578 |
]. |
|
4579 |
Printer supportsPostscript ifTrue:[ |
|
4580 |
Printer supportsColor:supportsColor value. |
|
4581 |
]. |
|
4582 |
]. |
|
4583 |
box destroy |
|
4584 |
||
4585 |
! |
|
4586 |
||
4587 |
restoreSettings |
|
4588 |
"restore settings from a settings-file." |
|
4589 |
||
4590 |
"a temporary kludge - we need a central systemSettings object for this, |
|
4591 |
which can be saved/restored with a single store/read." |
|
4592 |
||
4593 |
|fileName| |
|
4594 |
||
4595 |
fileName := Dialog |
|
4596 |
requestFileName:(resources string:'restore settings from:') |
|
4597 |
default:'settings.stx' |
|
4598 |
ok:(resources string:'restore') |
|
4599 |
abort:(resources string:'cancel') |
|
4600 |
pattern:'*.stx' |
|
4601 |
fromDirectory:nil. |
|
4602 |
||
4603 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
4604 |
"/ canceled |
|
4605 |
^ self |
|
4606 |
]. |
|
4607 |
||
4608 |
self withWaitCursorDo:[ |
|
4609 |
Smalltalk fileIn:fileName. |
|
4610 |
self reOpen |
|
4611 |
]. |
|
4612 |
||
4613 |
||
4614 |
! |
|
4615 |
||
4616 |
saveSettings |
|
4617 |
"save settings to a settings-file." |
|
4618 |
||
4619 |
"a temporary kludge - we need a central systemSettings object for this, |
|
4620 |
which can be saved/restored with a single store/read." |
|
4621 |
||
4622 |
|s screen fileName| |
|
4623 |
||
4624 |
fileName := Dialog |
|
4625 |
requestFileName:(resources string:'save settings in:') |
|
4626 |
default:'settings.stx' |
|
4627 |
ok:(resources string:'save') |
|
4628 |
abort:(resources string:'cancel') |
|
4629 |
pattern:'*.stx' |
|
4630 |
fromDirectory:nil. |
|
4631 |
||
4632 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
4633 |
"/ canceled |
|
4634 |
^ self |
|
4635 |
]. |
|
4636 |
||
4637 |
s := fileName asFilename writeStream. |
|
4638 |
s isNil ifTrue:[ |
|
4639 |
self warn:'cannot write the ''' , fileName , ''' file'. |
|
4640 |
^ self |
|
4641 |
]. |
|
4642 |
||
4643 |
s nextPutLine:'"/ ST/X saved settings'; |
|
4644 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
4645 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
4646 |
nextPutLine:'"/'; |
|
4647 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
4648 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
4649 |
nextPutLine:'"/'. |
|
4650 |
s cr. |
|
4651 |
||
4652 |
s nextPutLine:'"/'. |
|
4653 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
4654 |
s nextPutLine:'"/'. |
|
4655 |
s cr. |
|
4656 |
||
4657 |
s nextPutLine:'"/'. |
|
4658 |
s nextPutLine:'"/ Display settings:'. |
|
4659 |
s nextPutLine:'"/'. |
|
4660 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
4661 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
4662 |
screen := Screen current. |
|
4663 |
screen fixColors notNil ifTrue:[ |
|
4664 |
s nextPutLine:' Image flushDeviceImages.'. |
|
4665 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
4666 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
4667 |
s nextPutLine:' ].'. |
|
4668 |
] ifFalse:[ |
|
4669 |
s nextPutLine:' Display releaseFixColors.'. |
|
4670 |
]. |
|
4671 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
4672 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
4673 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
4674 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
4675 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
4676 |
s nextPutLine:' View defaultStyle:(View defaultStyle). "/ to flush any device images'. |
|
4677 |
s nextPutLine:'].'. |
|
4678 |
s cr. |
|
4679 |
||
4680 |
s nextPutLine:'"/'. |
|
4681 |
s nextPutLine:'"/ Compiler settings:'. |
|
4682 |
s nextPutLine:'"/'. |
|
4683 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
4684 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
4685 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
4686 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
4687 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
4688 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
4689 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
4690 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
4691 |
||
4692 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
4693 |
||
4694 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
4695 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
4696 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
4697 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
4698 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
4699 |
||
4700 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
4701 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
4702 |
||
4703 |
HistoryManager notNil ifTrue:[ |
|
4704 |
HistoryManager isActive ifTrue:[ |
|
4705 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
4706 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
4707 |
] ifFalse:[ |
|
4708 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
4709 |
]. |
|
4710 |
]. |
|
4711 |
||
4712 |
ObjectFileLoader notNil ifTrue:[ |
|
4713 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
|
4714 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
4715 |
]. |
|
4716 |
||
4717 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
4718 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
4719 |
||
4720 |
s cr. |
|
4721 |
s nextPutLine:'"/'. |
|
4722 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
4723 |
s nextPutLine:'"/'. |
|
4724 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
4725 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
4726 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
4727 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
4728 |
||
4729 |
||
4730 |
s cr. |
|
4731 |
s nextPutLine:'"/'. |
|
4732 |
s nextPutLine:'"/ Misc settings:'. |
|
4733 |
s nextPutLine:'"/'. |
|
4734 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
4735 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
4736 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
4737 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
4738 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
4739 |
||
4740 |
"/ claus - I dont think its a good idea to save those ... |
|
4741 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
4742 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
4743 |
||
4744 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
4745 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
4746 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
4747 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
4748 |
(Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[ |
|
4749 |
s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'. |
|
4750 |
]. |
|
4751 |
||
4752 |
s cr. |
|
4753 |
s nextPutLine:'"/'. |
|
4754 |
s nextPutLine:'"/ Printer settings:'. |
|
4755 |
s nextPutLine:'"/'. |
|
4756 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
4757 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
4758 |
||
4759 |
Printer supportsPageSizes ifTrue:[ |
|
4760 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
4761 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
4762 |
]. |
|
4763 |
Printer supportsMargins ifTrue:[ |
|
4764 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
4765 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
4766 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
4767 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
4768 |
]. |
|
4769 |
Printer supportsPostscript ifTrue:[ |
|
4770 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
4771 |
]. |
|
4772 |
||
4773 |
s cr. |
|
4774 |
s nextPutLine:'"/'. |
|
4775 |
s nextPutLine:'"/ Font settings:'. |
|
4776 |
s nextPutLine:'"/'. |
|
4777 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
4778 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
4779 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
4780 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
4781 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
4782 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
4783 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
4784 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
4785 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
4786 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
4787 |
||
4788 |
s cr. |
|
4789 |
s nextPutLine:'"/'. |
|
4790 |
s nextPutLine:'"/ Language setting:'. |
|
4791 |
s nextPutLine:'"/'. |
|
4792 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
4793 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
4794 |
s close. |
|
4795 |
||
4796 |
" |
|
4797 |
Transcript topView application saveSettings |
|
4798 |
" |
|
4799 |
||
4800 |
||
4801 |
! |
|
4802 |
||
4803 |
sourceAndDebuggerSettings |
|
4804 |
"open a dialog on misc other settings" |
|
4805 |
||
4806 |
|box check logDoits updChanges changeFileName |
|
4807 |
useManager hasManager |
|
4808 |
repository repositoryHolder localSourceFirst |
|
4809 |
sourceCacheDir cacheEntry |
|
4810 |
component localCheck oldIndent nm fn manager |
|
1527 | 4811 |
keepMethodHistory showErrorNotifier showVerboseStack |
4812 |
syntaxColoring| |
|
1406 | 4813 |
|
4814 |
"/ |
|
4815 |
"/ extract relevant system settings ... |
|
4816 |
"/ |
|
4817 |
keepMethodHistory := Class methodHistory notNil asValue. |
|
4818 |
logDoits := Smalltalk logDoits asValue. |
|
4819 |
updChanges := Class updatingChanges asValue. |
|
4820 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
4821 |
||
4822 |
hasManager := AbstractSourceCodeManager notNil |
|
4823 |
and:[AbstractSourceCodeManager isLoaded]. |
|
4824 |
||
4825 |
hasManager ifTrue:[ |
|
4826 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
|
4827 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
|
4828 |
manager notNil ifTrue:[ |
|
4829 |
repository := manager repositoryName. |
|
4830 |
repository notNil ifTrue:[ |
|
4831 |
repositoryHolder := repository asValue |
|
4832 |
] ifFalse:[ |
|
4833 |
repositoryHolder := '' asValue |
|
4834 |
]. |
|
4835 |
]. |
|
4836 |
] ifFalse:[ |
|
4837 |
useManager := false. |
|
4838 |
localSourceFirst := false |
|
4839 |
]. |
|
4840 |
showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue. |
|
4841 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
|
1527 | 4842 |
syntaxColoring := UserPreferences current syntaxColoring asValue. |
1406 | 4843 |
|
4844 |
sourceCacheDir := nil asValue. |
|
4845 |
||
4846 |
"/ |
|
4847 |
"/ create a box on those values ... |
|
4848 |
"/ |
|
4849 |
box := DialogBox new. |
|
4850 |
box label:(resources string:'Source & Debugger settings'). |
|
4851 |
||
4852 |
box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory. |
|
4853 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
|
4854 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
4855 |
||
4856 |
component := box |
|
4857 |
addLabelledInputField:(resources string:'change file name:') |
|
4858 |
adjust:#right |
|
4859 |
on:changeFileName |
|
4860 |
tabable:true |
|
4861 |
separateAtX:0.4. |
|
4862 |
component immediateAccept:true; acceptOnLeave:false. |
|
4863 |
||
4864 |
"/ y := box yPosition. |
|
4865 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
|
4866 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
|
4867 |
"/ box yPosition:y. |
|
4868 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
|
4869 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
|
4870 |
||
4871 |
box addHorizontalLine. |
|
4872 |
||
4873 |
hasManager ifTrue:[ |
|
4874 |
check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager. |
|
4875 |
oldIndent := box leftIndent. |
|
4876 |
box leftIndent:30. |
|
4877 |
||
4878 |
repositoryHolder notNil ifTrue:[ |
|
4879 |
component := box |
|
4880 |
addLabelledInputField:(resources string:'repository:') |
|
4881 |
adjust:#right |
|
4882 |
on:repositoryHolder |
|
4883 |
tabable:true |
|
4884 |
separateAtX:0.4. |
|
4885 |
component immediateAccept:true; acceptOnLeave:false. |
|
4886 |
component enableChannel:useManager. |
|
4887 |
]. |
|
4888 |
||
4889 |
cacheEntry := box |
|
4890 |
addLabelledInputField:(resources string:'source cache dir:') |
|
4891 |
adjust:#right |
|
4892 |
on:sourceCacheDir |
|
4893 |
tabable:true |
|
4894 |
separateAtX:0.4. |
|
4895 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
|
4896 |
cacheEntry enableChannel:useManager. |
|
4897 |
||
4898 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
|
4899 |
localCheck enableChannel:useManager. |
|
4900 |
||
4901 |
box leftIndent:oldIndent. |
|
4902 |
||
4903 |
(AbstractSourceCodeManager isNil |
|
4904 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
|
4905 |
useManager value:false. |
|
4906 |
cacheEntry disable. |
|
4907 |
check disable. |
|
4908 |
localCheck enable. |
|
4909 |
] ifFalse:[ |
|
4910 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
|
4911 |
]. |
|
4912 |
box addHorizontalLine. |
|
4913 |
]. |
|
4914 |
||
4915 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
|
4916 |
box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack. |
|
4917 |
||
1527 | 4918 |
box addHorizontalLine. |
4919 |
box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
4920 |
||
1406 | 4921 |
box |
4922 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
4923 |
addAbortButton; |
|
4924 |
addOkButton. |
|
4925 |
||
4926 |
"/ |
|
4927 |
"/ show the box ... |
|
4928 |
"/ |
|
4929 |
box open. |
|
4930 |
||
4931 |
"/ |
|
4932 |
"/ update system settings |
|
4933 |
"/ |
|
4934 |
box accepted ifTrue:[ |
|
4935 |
Class keepMethodHistory:keepMethodHistory value. |
|
4936 |
Smalltalk logDoits:logDoits value. |
|
4937 |
Class updateChanges:updChanges value. |
|
4938 |
ObjectMemory nameForChanges:changeFileName value. |
|
4939 |
||
4940 |
(hasManager and:[useManager value]) ifTrue:[ |
|
4941 |
manager isNil ifTrue:[ |
|
4942 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
|
4943 |
manager := Smalltalk at:#SourceCodeManager. |
|
4944 |
]. |
|
4945 |
Class tryLocalSourceFirst:(localSourceFirst value). |
|
4946 |
localSourceFirst value ifFalse:[ |
|
4947 |
nm := sourceCacheDir value. |
|
4948 |
||
4949 |
(fn := nm asFilename) exists ifFalse:[ |
|
4950 |
(self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
|
4951 |
fn makeDirectory; |
|
4952 |
makeReadableForAll; |
|
4953 |
makeWritableForAll; |
|
4954 |
makeExecutableForAll. |
|
4955 |
] |
|
4956 |
]. |
|
4957 |
(fn exists |
|
4958 |
and:[fn isDirectory |
|
4959 |
and:[fn isReadable |
|
4960 |
and:[fn isWritable]]]) ifTrue:[ |
|
4961 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
|
4962 |
] |
|
4963 |
]. |
|
4964 |
||
4965 |
repositoryHolder notNil ifTrue:[ |
|
4966 |
repositoryHolder value size > 0 ifTrue:[ |
|
4967 |
manager initializeForRepository:repositoryHolder value. |
|
4968 |
]. |
|
4969 |
]. |
|
4970 |
||
4971 |
showErrorNotifier value ifFalse:[ |
|
4972 |
Exception emergencyHandler:nil |
|
4973 |
] ifTrue:[ |
|
4974 |
Exception emergencyHandler:(Launcher notifyingEmergencyHandler) |
|
4975 |
]. |
|
4976 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
|
1527 | 4977 |
UserPreferences current syntaxColoring:syntaxColoring value. |
1406 | 4978 |
|
4979 |
] ifFalse:[ |
|
4980 |
Smalltalk at:#SourceCodeManager put:nil |
|
4981 |
] |
|
4982 |
]. |
|
4983 |
box destroy |
|
4984 |
! |
|
4985 |
||
4986 |
viewStyleSetting |
|
4987 |
"open a dialog on viewStyle related settings" |
|
4988 |
||
4989 |
|listOfStyles resourceDir dir box |
|
4990 |
list listView scrView infoLabel infoForwarder newStyle |
|
1491 | 4991 |
someRsrcFile didApply| |
1406 | 4992 |
|
4993 |
" |
|
4994 |
search resources directory for a list of .style files ... |
|
4995 |
" |
|
4996 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
4997 |
someRsrcFile notNil ifTrue:[ |
|
4998 |
resourceDir := someRsrcFile asFilename directoryName |
|
4999 |
] ifFalse:[ |
|
5000 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
|
5001 |
]. |
|
5002 |
||
5003 |
resourceDir isNil ifTrue:[ |
|
5004 |
self warn:'no styles found (missing ''resources'' directory)'. |
|
5005 |
^ self |
|
5006 |
]. |
|
5007 |
dir := resourceDir asFilename directoryContents. |
|
5008 |
||
5009 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
5010 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
5011 |
Filename isCaseSensitive ifFalse:[ |
|
5012 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
5013 |
]. |
|
5014 |
listOfStyles sort. |
|
5015 |
||
5016 |
"/ old code: used a standard ListSelectionBox |
|
5017 |
"/ changed to intercept selection and add info-output. |
|
5018 |
||
5019 |
"/ box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs. |
|
5020 |
"/ box label:(resources string:'Style selection'). |
|
5021 |
"/ box list:listOfStyles. |
|
5022 |
"/ box initialText:View defaultStyle. |
|
5023 |
"/ box selectAction:[:newStyle | |
|
5024 |
"/ ]. |
|
5025 |
"/ box action:[:newStyle | |
|
5026 |
"/ transcript topView withCursor:Cursor wait do:[ |
|
5027 |
"/ transcript showCR:'change style to ' , newStyle , ' ...'. |
|
5028 |
"/ View defaultStyle:newStyle asSymbol. |
|
5029 |
"/ ] |
|
5030 |
"/ ]. |
|
5031 |
"/ box showAtPointer |
|
5032 |
||
5033 |
"/ new code: build box 'by 'hand' |
|
5034 |
"/ |
|
5035 |
infoForwarder := [ |
|
5036 |
|nm sheet comment| |
|
5037 |
nm := list selection. |
|
5038 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
5039 |
comment := sheet at:#comment ifAbsent:''. |
|
5040 |
infoLabel label:comment withCRs asStringCollection |
|
5041 |
]. |
|
5042 |
||
5043 |
list := SelectionInList with:listOfStyles. |
|
5044 |
list onChangeSend:#value to:infoForwarder. |
|
5045 |
||
5046 |
box := Dialog new. |
|
5047 |
box label:(resources string:'Style selection'). |
|
5048 |
||
5049 |
(box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left. |
|
5050 |
listView := SelectionInListView on:list. |
|
5051 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
5052 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
|
5053 |
||
5054 |
box addVerticalSpace. |
|
5055 |
||
5056 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
|
5057 |
||
5058 |
box addAbortButton. |
|
1467
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
5059 |
"b := box addButton:(Button label:(resources string:'apply'))." |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
5060 |
"b action:[didApply := true. self changeViewStyleTo:(list selection)]." |
1406 | 5061 |
box addOkButton. |
5062 |
list selection:(View defaultStyle). |
|
5063 |
||
5064 |
box stickAtBottomWithVariableHeight:scrView. |
|
5065 |
box stickAtBottomWithFixHeight:infoLabel. |
|
5066 |
box open. |
|
5067 |
||
5068 |
box accepted ifTrue:[ |
|
5069 |
((newStyle := list selection) ~= View defaultStyle |
|
5070 |
or:[didApply ~~ true]) ifTrue:[ |
|
5071 |
self changeViewStyleTo:newStyle. |
|
5072 |
]. |
|
5073 |
]. |
|
5074 |
box destroy |
|
5075 |
! ! |
|
5076 |
||
1479 | 5077 |
!NewLauncher methodsFor:'actions - projects'! |
1411 | 5078 |
|
5079 |
newProject |
|
5080 |
"creates a new project & opens a projectView for it" |
|
5081 |
||
5082 |
Project notNil ifTrue: [(ProjectView for: Project new) open] |
|
5083 |
! |
|
5084 |
||
5085 |
selectProject |
|
5086 |
"asks for and switch to another project" |
|
5087 |
||
5088 |
|list box| |
|
5089 |
||
5090 |
Project notNil ifTrue:[ |
|
5091 |
list := Project allInstances. |
|
5092 |
box := ListSelectionBox new. |
|
5093 |
box list:(list collect:[:p | p name]). |
|
5094 |
box title:(resources string:'select a project'). |
|
5095 |
box action:[:selection | |
|
5096 |
|project| |
|
5097 |
||
5098 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
|
5099 |
project isNil ifTrue:[ |
|
5100 |
transcript showCR:'no such project.' |
|
5101 |
] ifFalse:[ |
|
5102 |
project showViews. |
|
5103 |
Project current:project |
|
5104 |
] |
|
5105 |
]. |
|
5106 |
box showAtPointer. |
|
5107 |
box destroy |
|
5108 |
] |
|
5109 |
! ! |
|
5110 |
||
1479 | 5111 |
!NewLauncher methodsFor:'actions - settings'! |
5112 |
||
5113 |
aspects |
|
5114 |
||
5115 |
^aspects ? (aspects := IdentityDictionary new) |
|
5116 |
! |
|
1411 | 5117 |
|
5118 |
changeFont |
|
5119 |
||
1491 | 5120 |
|viewClassName viewClass| |
1411 | 5121 |
|
1479 | 5122 |
viewClassName := (self aspects at: #selectionOfViewClass) value name. |
1411 | 5123 |
|
5124 |
viewClass := Smalltalk at: viewClassName asSymbol. |
|
5125 |
viewClass defaultFont: (self chooseFontFromViewClass: viewClass). |
|
5126 |
self updatePreviewFontLabel |
|
5127 |
! |
|
5128 |
||
5129 |
changeFontFor: viewClassName |
|
5130 |
||
5131 |
viewClassName = 'All' |
|
5132 |
ifTrue: |
|
5133 |
[ |
|
5134 |
|choosedFontForAll| |
|
5135 |
choosedFontForAll := self chooseFontFromViewClass: View. |
|
5136 |
SimpleView withAllSubclasses do: |
|
5137 |
[:viewCls| |
|
5138 |
viewCls defaultFont: choosedFontForAll. |
|
5139 |
] |
|
5140 |
]. |
|
5141 |
viewClassName = 'Default' |
|
5142 |
ifTrue: |
|
5143 |
[ |
|
5144 |
SimpleView updateAllStyleCaches. |
|
5145 |
]. |
|
5146 |
||
5147 |
self updatePreviewFontLabel |
|
5148 |
! |
|
5149 |
||
5150 |
chooseFontFromViewClass: aViewClass |
|
5151 |
||
5152 |
^FontPanel |
|
5153 |
fontFromUserInitial: aViewClass defaultFont |
|
5154 |
title:(resources string:'font for %1' with:aViewClass name) |
|
5155 |
filter:nil |
|
5156 |
||
5157 |
! |
|
5158 |
||
5159 |
createAspectsForFontsSettings |
|
5160 |
"create aspects for font settings" |
|
5161 |
||
1491 | 5162 |
|listOfViewClasses selectionOfViewClass| |
1411 | 5163 |
|
5164 |
listOfViewClasses := (TreeItem newAsTreeFromSmalltalkClass: (Smalltalk at:#SimpleView)). |
|
5165 |
selectionOfViewClass := listOfViewClasses asValue. |
|
5166 |
selectionOfViewClass onChangeSend:#updatePreviewFontLabel to: self. |
|
5167 |
||
1479 | 5168 |
self aspects |
1411 | 5169 |
at: #listOfViewClasses put: listOfViewClasses; |
5170 |
at: #selectionOfViewClass put: selectionOfViewClass |
|
5171 |
! |
|
5172 |
||
5173 |
createAspectsForKeyboardSettings |
|
5174 |
"create aspects for keyboard settings" |
|
5175 |
||
5176 |
|mappings listOfRawKeys listOfFunctions list1 list2 selectionForwarder macroForwarder keyMacroText| |
|
5177 |
||
5178 |
mappings := Screen current keyboardMap. |
|
5179 |
||
5180 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
5181 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
5182 |
keyMacroText := ValueHolder new. |
|
5183 |
selectionForwarder := Plug new. |
|
5184 |
selectionForwarder respondTo:#showFunction |
|
5185 |
with: |
|
5186 |
[ |
|
5187 |
|raw| |
|
5188 |
raw := list1 selection. |
|
5189 |
list2 retractInterestsFor:selectionForwarder. |
|
5190 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
5191 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
5192 |
]. |
|
5193 |
selectionForwarder respondTo:#showRawKey |
|
5194 |
with: |
|
5195 |
[ |
|
5196 |
|f raw| |
|
5197 |
f := list2 selection. |
|
5198 |
list1 retractInterestsFor:selectionForwarder. |
|
5199 |
raw := mappings keyAtValue:f asString. |
|
5200 |
raw isNil |
|
5201 |
ifTrue: |
|
5202 |
[ |
|
5203 |
raw := mappings keyAtValue:f first. |
|
5204 |
raw isNil ifTrue: [raw := mappings keyAtValue:f asSymbol] |
|
5205 |
]. |
|
5206 |
list1 selection:raw. |
|
5207 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
5208 |
]. |
|
5209 |
||
5210 |
macroForwarder := |
|
5211 |
[ |
|
5212 |
|f macro indent| |
|
5213 |
f := list2 selection. |
|
5214 |
(f startsWith:'Cmd') ifTrue:[f := f copyFrom:4]. |
|
5215 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
5216 |
macro notNil |
|
5217 |
ifTrue: |
|
5218 |
[ |
|
5219 |
macro := macro asStringCollection. |
|
5220 |
indent := macro |
|
5221 |
inject:99999 into: |
|
5222 |
[:min :element| |
|
5223 |
|stripped| |
|
5224 |
stripped := element withoutLeadingSeparators. |
|
5225 |
stripped size == 0 |
|
5226 |
ifTrue:[min] |
|
5227 |
ifFalse:[min min:(element size - stripped size)] |
|
5228 |
]. |
|
5229 |
indent ~~ 0 |
|
5230 |
ifTrue: |
|
5231 |
[ |
|
5232 |
macro := macro collect: |
|
5233 |
[:line | |
|
5234 |
line size > indent |
|
5235 |
ifTrue:[line copyFrom:indent+1] |
|
5236 |
ifFalse:[line] |
|
5237 |
] |
|
5238 |
] |
|
5239 |
]. |
|
5240 |
keyMacroText value:macro |
|
5241 |
]. |
|
5242 |
||
5243 |
list1 := SelectionInList with:listOfRawKeys. |
|
5244 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
5245 |
||
5246 |
list2 := SelectionInList with:listOfFunctions. |
|
5247 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
5248 |
list2 onChangeSend:#value to:macroForwarder. |
|
5249 |
||
1479 | 5250 |
self aspects |
1411 | 5251 |
at: #listOfRawKeys put: list1; |
5252 |
at: #listOfFunctions put: list2; |
|
5253 |
at: #keyMacroText put: keyMacroText; |
|
5254 |
at: #help put: [self showDocumentation:'Launcher/keyboardSetting.html']; |
|
5255 |
at: #dismiss put: [] |
|
5256 |
||
5257 |
||
5258 |
! |
|
5259 |
||
5260 |
createAspectsForLanguageSettings |
|
5261 |
"create aspects for language settings" |
|
5262 |
||
1491 | 5263 |
|listOfLanguages translatedLanguages switch languageList flags| |
1411 | 5264 |
|
5265 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
|
5266 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
5267 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
|
5268 |
item := resources at:lang. |
|
5269 |
item isString ifTrue:[ |
|
5270 |
item |
|
5271 |
] ifFalse:[ |
|
5272 |
item at:1 |
|
5273 |
] |
|
5274 |
]. |
|
5275 |
flags := listOfLanguages collect:[:lang | |item| |
|
5276 |
item := resources at:lang. |
|
5277 |
item isArray ifTrue:[ |
|
5278 |
item at:2 |
|
5279 |
] ifFalse:[ |
|
5280 |
nil |
|
5281 |
] |
|
5282 |
]. |
|
5283 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
|
5284 |
||
5285 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
|
5286 |
LabelAndIcon icon:flag string:lang. |
|
5287 |
]. |
|
5288 |
||
1479 | 5289 |
self aspects |
1411 | 5290 |
at: #listOfLanguages put: languageList asValue; |
5291 |
at: #selectionOflanguage put: Language asValue; |
|
5292 |
at: #apply put: [:newLanguage | |
|
5293 |
self withWaitCursorDo:[ |
|
5294 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
5295 |
||
5296 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
5297 |
idx ~~ 0 ifTrue:[ |
|
5298 |
language := listOfLanguages at:idx |
|
5299 |
] ifFalse:[ |
|
5300 |
language := newLanguage |
|
5301 |
]. |
|
5302 |
||
5303 |
"/ check if the new language needs a differently encoded font; |
|
5304 |
"/ ask user to switch font and allow cancellation. |
|
5305 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
5306 |
||
5307 |
oldLanguage := Smalltalk language. |
|
5308 |
Smalltalk language:language asSymbol. |
|
5309 |
ResourcePack flushCachedResourcePacks. |
|
1465 | 5310 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
1411 | 5311 |
Smalltalk language:oldLanguage. |
5312 |
||
5313 |
switch := true. |
|
5314 |
enc := MenuView defaultFont encoding. |
|
5315 |
(fontPref match:enc) ifFalse:[ |
|
5316 |
"/ look if there is one at all. |
|
5317 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
5318 |
matchingFonts size == 0 ifTrue:[ |
|
5319 |
(Dialog |
|
5320 |
confirm:(resources |
|
5321 |
string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
5322 |
with:fontPref) withCRs) |
|
5323 |
ifFalse:[ |
|
5324 |
switch := false |
|
5325 |
] |
|
5326 |
] ifFalse:[ |
|
5327 |
answer := Dialog |
|
5328 |
confirmWithCancel:(resources |
|
5329 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
5330 |
with:fontPref) withCRs |
|
5331 |
labels:(resources |
|
5332 |
array:#('cancel' 'no' 'yes')) |
|
5333 |
default:3. |
|
5334 |
answer isNil ifTrue:[ |
|
5335 |
switch := false |
|
5336 |
] ifFalse:[ |
|
5337 |
answer ifTrue:[ |
|
5338 |
switch := (self fontBoxForEncoding:fontPref) |
|
5339 |
] |
|
5340 |
]. |
|
5341 |
]. |
|
5342 |
]. |
|
5343 |
||
5344 |
switch ifTrue:[ |
|
5345 |
transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
5346 |
Smalltalk language:language asSymbol. |
|
5347 |
ResourcePack flushCachedResourcePacks |
|
5348 |
]. |
|
5349 |
]. |
|
5350 |
switch ifTrue:[ |
|
5351 |
self reOpen. |
|
5352 |
DebugView newDebugger. |
|
5353 |
] |
|
5354 |
]. |
|
1465 | 5355 |
|
5356 |
"Modified: / 6.2.1998 / 00:00:58 / cg" |
|
1411 | 5357 |
! |
5358 |
||
5359 |
createAspectsForMemorySettings |
|
5360 |
"create aspects for memory settings" |
|
5361 |
||
5362 |
||
5363 |
||
5364 |
! |
|
5365 |
||
5366 |
createAspectsForMessagesSettings |
|
5367 |
"create aspects for messages settings" |
|
5368 |
||
5369 |
||
5370 |
||
5371 |
! |
|
5372 |
||
5373 |
createAspectsForMiscSettings |
|
5374 |
"create aspects for misc settings" |
|
5375 |
||
5376 |
|shadowsUnderPopupViews boxesReturnsFocus viewsCatchFocus hostnameInWindowLabels showAccelerators| |
|
5377 |
||
5378 |
shadowsUnderPopupViews := PopUpView shadows asValue. |
|
5379 |
shadowsUnderPopupViews onChangeSend: #value to: [PopUpView shadows: shadowsUnderPopupViews value]. |
|
5380 |
boxesReturnsFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
5381 |
boxesReturnsFocus onChangeSend: #value to: [StandardSystemView returnFocusWhenClosingModalBoxes: boxesReturnsFocus value]. |
|
5382 |
viewsCatchFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
5383 |
viewsCatchFocus onChangeSend: #value to: [StandardSystemView takeFocusWhenMapped: viewsCatchFocus value]. |
|
5384 |
hostnameInWindowLabels := StandardSystemView includeHostNameInLabel asValue. |
|
5385 |
hostnameInWindowLabels onChangeSend: #value to: |
|
5386 |
[ |
|
5387 |
hostnameInWindowLabels value ~~ StandardSystemView includeHostNameInLabel |
|
5388 |
ifTrue: |
|
5389 |
[ |
|
5390 |
StandardSystemView includeHostNameInLabel:hostnameInWindowLabels value. |
|
5391 |
Screen allScreens do: |
|
5392 |
[:aDisplay| |
|
5393 |
aDisplay allViewsDo: |
|
5394 |
[:aView| |
|
5395 |
|l| |
|
5396 |
aView isTopView ifTrue: [l := aView label.aView label:(l , ' '); label:l] |
|
5397 |
] |
|
5398 |
] |
|
5399 |
] |
|
5400 |
]. |
|
5401 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
5402 |
showAccelerators onChangeSend: #value to: [MenuView showAcceleratorKeys: showAccelerators value]. |
|
5403 |
||
1479 | 5404 |
self aspects |
1411 | 5405 |
at: #shadowsUnderPopupViews put: shadowsUnderPopupViews; |
5406 |
at: #boxesReturnsFocus put: boxesReturnsFocus; |
|
5407 |
at: #viewsCatchFocus put: viewsCatchFocus; |
|
5408 |
at: #hostnameInWindowLabels put: hostnameInWindowLabels; |
|
5409 |
at: #showAccelerators put: showAccelerators |
|
5410 |
||
5411 |
! |
|
5412 |
||
5413 |
createAspectsForPrinterSettings |
|
5414 |
"create aspects for printer settings" |
|
5415 |
||
5416 |
||
5417 |
||
5418 |
! |
|
5419 |
||
5420 |
createAspectsForScreenSettings |
|
5421 |
"create aspects for screen settings" |
|
5422 |
||
5423 |
||
5424 |
||
5425 |
! |
|
5426 |
||
5427 |
createAspectsForSourcesSettings |
|
5428 |
"create aspects for sources settings" |
|
5429 |
||
5430 |
|rememberChangedMethods logCompilesInChangesFile logDoItsInChangesFile |
|
5431 |
sourceCodeFromSourceCodeManagement hasSourceCodeManager manager directoryOfSourceCodeCache |
|
5432 |
nameOfChangesFile directoryOfRepository useLocalSourceCode| |
|
5433 |
||
5434 |
rememberChangedMethods := Class methodHistory notNil asValue. |
|
5435 |
rememberChangedMethods onChangeSend: #value to: [Class keepMethodHistory: rememberChangedMethods value]. |
|
5436 |
logCompilesInChangesFile := Class updatingChanges asValue. |
|
5437 |
logCompilesInChangesFile onChangeSend: #value to: [Class updateChanges: logCompilesInChangesFile value]. |
|
5438 |
logDoItsInChangesFile := Smalltalk logDoits asValue. |
|
5439 |
logDoItsInChangesFile onChangeSend: #value to: [Smalltalk logDoits: logDoItsInChangesFile value]. |
|
5440 |
||
5441 |
nameOfChangesFile := ObjectMemory nameForChanges asValue. |
|
5442 |
nameOfChangesFile onChangeSend: #value to: [ObjectMemory nameForChanges:nameOfChangesFile value]. |
|
5443 |
||
5444 |
hasSourceCodeManager := AbstractSourceCodeManager notNil and:[AbstractSourceCodeManager isLoaded]. |
|
5445 |
sourceCodeFromSourceCodeManagement := (hasSourceCodeManager and: [(manager := Smalltalk at:#SourceCodeManager) notNil]) asValue. |
|
5446 |
sourceCodeFromSourceCodeManagement onChangeSend: #value to: |
|
5447 |
[sourceCodeFromSourceCodeManagement value |
|
5448 |
ifTrue: [Smalltalk at:#SourceCodeManager put: AbstractSourceCodeManager defaultManager] |
|
5449 |
ifFalse: [Smalltalk at:#SourceCodeManager put: nil]]. |
|
5450 |
||
5451 |
manager notNil |
|
5452 |
ifTrue: |
|
5453 |
[ |
|
5454 |
|repository| |
|
5455 |
repository := manager repositoryName. |
|
5456 |
repository notNil ifTrue:[ |
|
5457 |
directoryOfRepository := repository asValue |
|
5458 |
] ifFalse:[ |
|
5459 |
directoryOfRepository := '' asValue |
|
5460 |
]. |
|
5461 |
]. |
|
5462 |
directoryOfRepository onChangeSend: #value to: [manager initializeForRepository: directoryOfRepository value]. |
|
5463 |
||
5464 |
directoryOfSourceCodeCache := AbstractSourceCodeManager cacheDirectoryName. |
|
5465 |
directoryOfSourceCodeCache onChangeSend: #value to: []. |
|
5466 |
||
5467 |
useLocalSourceCode := Class tryLocalSourceFirst asValue. |
|
5468 |
useLocalSourceCode onChangeSend: #value to: [Class tryLocalSourceFirst: useLocalSourceCode value]. |
|
5469 |
||
1479 | 5470 |
self aspects |
1411 | 5471 |
at: #rememberChangedMethods put: rememberChangedMethods; |
5472 |
at: #logCompilesInChangesFile put: logCompilesInChangesFile; |
|
5473 |
at: #logDoItsInChangesFile put: logDoItsInChangesFile; |
|
5474 |
at: #hasSourceCodeManager put: hasSourceCodeManager asValue; |
|
5475 |
at: #nameOfChangesFile put: nameOfChangesFile; |
|
5476 |
at: #sourceCodeFromSourceCodeManagement put: sourceCodeFromSourceCodeManagement; |
|
5477 |
at: #directoryOfRepository put: directoryOfRepository; |
|
5478 |
at: #directoryOfSourceCodeCache put: directoryOfSourceCodeCache; |
|
5479 |
at: #useLocalSourceCode put: useLocalSourceCode |
|
5480 |
||
5481 |
! |
|
5482 |
||
5483 |
createAspectsForViewsSettings |
|
5484 |
"open a dialog on viewStyle related settings" |
|
5485 |
||
5486 |
|listOfStyles resourceDir dir listOfViewStyles selection infoLabel infoForwarder someRsrcFile| |
|
5487 |
||
5488 |
"search resources directory for a list of .style files ..." |
|
5489 |
||
5490 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
5491 |
someRsrcFile notNil |
|
5492 |
ifTrue:[resourceDir := someRsrcFile asFilename directoryName] |
|
5493 |
ifFalse:[resourceDir := Smalltalk getSystemFileName:'resources']. |
|
5494 |
||
5495 |
resourceDir isNil ifTrue:[self warn:'no styles found (missing ''resources'' directory)'. ^ self]. |
|
5496 |
dir := resourceDir asFilename directoryContents. |
|
5497 |
||
5498 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
5499 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
5500 |
Filename isCaseSensitive |
|
5501 |
ifFalse: |
|
5502 |
[ |
|
5503 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
5504 |
]. |
|
5505 |
listOfStyles sort. |
|
5506 |
||
5507 |
infoLabel := ValueHolder with: View defaultStyle. |
|
5508 |
selection := ValueHolder with: (listOfStyles indexOf: View defaultStyle). |
|
5509 |
||
5510 |
infoForwarder := |
|
5511 |
[ |
|
5512 |
|nm sheet comment| |
|
5513 |
nm := listOfViewStyles selection. |
|
5514 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
5515 |
comment := sheet at:#comment ifAbsent:''. |
|
5516 |
infoLabel value:comment withCRs asStringCollection asString trimBlanks |
|
5517 |
]. |
|
5518 |
||
5519 |
listOfViewStyles := SelectionInList with:listOfStyles. |
|
5520 |
listOfViewStyles onChangeSend:#value to:infoForwarder. |
|
5521 |
listOfViewStyles selectionIndexHolder: selection. |
|
5522 |
||
1479 | 5523 |
self aspects |
1411 | 5524 |
at: #listOfViewStyles put: listOfViewStyles; |
5525 |
at: #infoLabel put: infoLabel; |
|
5526 |
at: #apply put: [self changeViewStyleTo: (listOfStyles at: selection value)] |
|
5527 |
||
5528 |
! |
|
5529 |
||
5530 |
doForCurrentSettings: aDoKey |
|
5531 |
||
1479 | 5532 |
(self aspects at: aDoKey asSymbol ifAbsent: [^self warn: 'No action found for ', aDoKey, '!!']) value |
1411 | 5533 |
! |
5534 |
||
5535 |
openSettingsFor: aSetting |
|
5536 |
||
1479 | 5537 |
self aspects at: #settingsCanvas put: SubCanvas new. |
1411 | 5538 |
aSetting = 'StyleSettings' ifTrue: [self selectionOfSettings value: 'Views']. |
5539 |
aSetting = 'SystemSettings' ifTrue: [self selectionOfSettings value: 'Sources']. |
|
5540 |
super openDialogInterface: (#windowSpecFor, aSetting) asSymbol. |
|
1479 | 5541 |
aspects := nil. |
1411 | 5542 |
self removeAllTemporalViews. |
5543 |
self builder bindings removeKey: #selectionOfSettings |
|
5544 |
! |
|
5545 |
||
5546 |
settingsSelection |
|
5547 |
||
5548 |
^settingsSelection |
|
5549 |
! |
|
5550 |
||
5551 |
settingsSelection: aSettingsSelection |
|
5552 |
||
5553 |
settingsSelection := aSettingsSelection. |
|
5554 |
||
5555 |
self perform: ('createAspectsFor', settingsSelection, 'Settings') asSymbol. |
|
1479 | 5556 |
(self aspects at: #settingsCanvas) client: self spec: ('windowSpecOf', settingsSelection, 'Settings') asSymbol. |
1411 | 5557 |
! |
5558 |
||
5559 |
updatePreviewFontLabel |
|
5560 |
||
5561 |
|viewClassFont viewClass viewClassName| |
|
1479 | 5562 |
viewClassFont := (viewClass := Smalltalk at: (self aspects at: #selectionOfViewClass) value name ifAbsent: [SimpleView]) defaultFont. |
1411 | 5563 |
(self builder componentAt: #fontFamilyLabel_Temporal) label: 'Family: ' , viewClassFont family asBoldText. |
5564 |
(self builder componentAt: #fontFaceLabel_Temporal) label: 'Face: ' , viewClassFont face asBoldText. |
|
5565 |
(self builder componentAt: #fontStyleLabel_Temporal) label: 'Style: ' , viewClassFont style asBoldText. |
|
5566 |
(self builder componentAt: #fontSizeLabel_Temporal) label: 'Size: ' , viewClassFont size printString asBoldText. |
|
5567 |
(self builder componentAt: #fontEncodingLabel_Temporal) label: 'Encoding: ', viewClassFont encoding asBoldText. |
|
5568 |
||
5569 |
(viewClassName := viewClass name) size > 10 |
|
5570 |
ifTrue: [viewClassName := (viewClassName copyFrom: 1 to: 10) asBoldText, '...'] |
|
5571 |
ifFalse: [viewClassName := viewClassName asBoldText]. |
|
5572 |
||
5573 |
(self builder componentAt: #changeFontButton_Temporal) |
|
5574 |
sizeFixed: true; |
|
5575 |
label: 'Change Font of ', viewClassName. |
|
5576 |
||
5577 |
(self builder componentAt: #previewFontLabel_Temporal) |
|
5578 |
font: viewClassFont; |
|
5579 |
label: 'The quick brown fox jumps over the lazy dog |
|
5580 |
1234567890!!@#$%^&*(){}[]:"~;,./<>?äöüÄÖÜßéèêÅ©' |
|
5581 |
! ! |
|
5582 |
||
1479 | 5583 |
!NewLauncher methodsFor:'actions - tools'! |
1406 | 5584 |
|
5585 |
compressingGarbageCollect |
|
5586 |
"perform a compressing garbageCollect" |
|
5587 |
||
5588 |
ObjectMemory verboseGarbageCollect |
|
5589 |
||
5590 |
! |
|
5591 |
||
5592 |
deIconifyAllWindows |
|
5593 |
|setOfViews| |
|
5594 |
||
5595 |
setOfViews := Project current views asIdentitySet. |
|
5596 |
setOfViews addAll:(Project defaultProject views). |
|
5597 |
||
5598 |
setOfViews do:[:aTopView | |
|
5599 |
aTopView device == Screen current ifTrue:[ |
|
5600 |
aTopView expand |
|
5601 |
]. |
|
5602 |
]. |
|
5603 |
||
5604 |
! |
|
5605 |
||
5606 |
findAndDestroyWindow |
|
5607 |
"find a window (by name) and destroy it" |
|
5608 |
||
5609 |
|v| |
|
5610 |
v := self findWindow:'select view to close:'. |
|
5611 |
v notNil ifTrue:[v destroy] |
|
5612 |
||
5613 |
! |
|
5614 |
||
5615 |
findAndRaiseWindow |
|
5616 |
"find a window (by name) and raise it" |
|
5617 |
||
5618 |
|v| |
|
5619 |
||
5620 |
v := self findWindow:'select view to raise deiconified:'. |
|
5621 |
v notNil ifTrue:[v raiseDeiconified] |
|
5622 |
||
5623 |
! |
|
5624 |
||
5625 |
fullScreenHardcopy |
|
5626 |
"after a second (to allow redraw of views under menu ...), |
|
5627 |
save the contents of the whole screen." |
|
5628 |
||
5629 |
Processor |
|
5630 |
addTimedBlock:[ |
|
5631 |
self |
|
5632 |
saveScreenImage:(Image fromScreen) |
|
5633 |
defaultName:'screen' |
|
5634 |
] |
|
5635 |
afterSeconds:1 |
|
5636 |
||
5637 |
! |
|
5638 |
||
5639 |
garbageCollect |
|
5640 |
"perform a non-compressing garbageCollect" |
|
5641 |
||
5642 |
ObjectMemory reclaimSymbols |
|
5643 |
||
5644 |
! |
|
5645 |
||
5646 |
iconifyAllWindows |
|
5647 |
|setOfViews| |
|
5648 |
||
5649 |
setOfViews := Project current views asIdentitySet. |
|
5650 |
setOfViews addAll:(Project defaultProject views). |
|
5651 |
||
5652 |
setOfViews do:[:aTopView | |
|
5653 |
aTopView device == Screen current ifTrue:[ |
|
5654 |
aTopView collapse |
|
5655 |
] |
|
5656 |
] |
|
5657 |
||
5658 |
! |
|
5659 |
||
1476
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5660 |
initJavaVM |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5661 |
JavaVM initializeVM |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5662 |
|
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5663 |
"Created: / 9.2.1998 / 12:06:07 / cg" |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5664 |
! |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5665 |
|
1406 | 5666 |
pickAView |
5667 |
"let user pick a view and return it" |
|
5668 |
||
5669 |
|v| |
|
5670 |
||
5671 |
(Delay forSeconds:1) wait. |
|
5672 |
v := Screen current viewFromUser. |
|
5673 |
v isNil ifTrue:[ |
|
5674 |
self warn:'Sorry, this is not a smalltalk view'. |
|
5675 |
^ nil |
|
5676 |
]. |
|
5677 |
^ v |
|
5678 |
||
5679 |
! |
|
5680 |
||
5681 |
screenHardcopy |
|
5682 |
"after a second (to allow redraw of views under menu ...), |
|
5683 |
let user specify a rectangular area on the screen |
|
5684 |
and save its contents." |
|
5685 |
||
5686 |
|area| |
|
5687 |
||
5688 |
Processor |
|
5689 |
addTimedBlock:[ |
|
5690 |
[Screen current leftButtonPressed] whileTrue:[Processor yield]. |
|
5691 |
||
5692 |
area := Rectangle fromUser. |
|
5693 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
5694 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
5695 |
] |
|
5696 |
] |
|
5697 |
afterSeconds:1 |
|
5698 |
||
5699 |
! |
|
5700 |
||
5701 |
startLatencyMonitor |
|
5702 |
"open an interruptLatencyMonitor view" |
|
5703 |
||
5704 |
InterruptLatencyMonitor notNil ifTrue:[ |
|
5705 |
Autoload autoloadFailedSignal catch:[ |
|
5706 |
InterruptLatencyMonitor autoload. |
|
5707 |
]. |
|
5708 |
InterruptLatencyMonitor isLoaded ifTrue:[ |
|
5709 |
InterruptLatencyMonitor open. |
|
5710 |
^ self. |
|
5711 |
] |
|
5712 |
]. |
|
5713 |
self warn:'Sorry - the irq latency monitor is only available |
|
5714 |
in the full commercial release'. |
|
5715 |
||
5716 |
! |
|
5717 |
||
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5718 |
startOldLauncher |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5719 |
Launcher openAt:(self window origin) |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5720 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5721 |
"Created: / 5.2.1998 / 19:33:41 / cg" |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5722 |
! |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
5723 |
|
1406 | 5724 |
startStopEventTrace |
5725 |
"start/stop event tracing for a particular view" |
|
5726 |
||
5727 |
|v wg| |
|
5728 |
||
5729 |
v := Screen current viewFromUser. |
|
5730 |
v notNil ifTrue:[ |
|
5731 |
v := v topView. |
|
5732 |
wg := v windowGroup. |
|
5733 |
wg notNil ifTrue:[ |
|
5734 |
"/ |
|
5735 |
"/ toggle eventTrace in its windowGroup |
|
5736 |
"/ |
|
5737 |
wg traceEvents:(wg preEventHook isNil) |
|
5738 |
] |
|
5739 |
] |
|
5740 |
||
5741 |
! |
|
5742 |
||
5743 |
startWindowTreeView |
|
5744 |
"open a windowTree view (on a topView)" |
|
5745 |
||
5746 |
|v| |
|
5747 |
||
5748 |
v := self pickAView. |
|
5749 |
v notNil ifTrue:[ |
|
5750 |
WindowTreeView openOn:v topView |
|
5751 |
] |
|
5752 |
||
5753 |
! |
|
5754 |
||
5755 |
viewDestroy |
|
5756 |
"let user pick a view and destroy it. |
|
5757 |
Even allow destroying non-smalltalk views |
|
5758 |
(also for views which I forgot due to some error)" |
|
5759 |
||
5760 |
|device v id i c| |
|
5761 |
||
5762 |
(Delay forSeconds:1) wait. |
|
5763 |
||
5764 |
device := Screen current. |
|
5765 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
|
5766 |
i isNil ifTrue:[ |
|
5767 |
c := Cursor crossHair |
|
5768 |
] ifFalse:[ |
|
5769 |
c := Cursor fromImage:i |
|
5770 |
]. |
|
5771 |
id := device viewIdFromPoint:(device pointFromUserShowing:c). |
|
5772 |
(v := device viewFromId:id) notNil ifTrue:[ |
|
5773 |
v topView destroy. |
|
5774 |
^ self |
|
5775 |
]. |
|
5776 |
id = device rootView id ifTrue:[ |
|
5777 |
^ self |
|
5778 |
]. |
|
5779 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
|
5780 |
ifTrue:[ |
|
5781 |
device destroyView:nil withId:id |
|
5782 |
]. |
|
5783 |
||
5784 |
||
5785 |
! |
|
5786 |
||
5787 |
viewHardcopy |
|
5788 |
"after a second (to allow redraw of views under menu ...), |
|
5789 |
let user specify a view and save its contents." |
|
5790 |
||
5791 |
Processor |
|
5792 |
addTimedBlock:[ |
|
5793 |
|v| |
|
5794 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
|
5795 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
5796 |
] |
|
5797 |
] |
|
5798 |
afterSeconds:1 |
|
5799 |
||
5800 |
! |
|
5801 |
||
5802 |
viewInspect |
|
5803 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
|
5804 |
||
5805 |
|v| |
|
5806 |
||
5807 |
(v := self pickAView) notNil |
|
5808 |
ifTrue: |
|
5809 |
[ |
|
5810 |
v inspect |
|
5811 |
] |
|
5812 |
||
5813 |
! ! |
|
5814 |
||
5815 |
!NewLauncher methodsFor:'aspects'! |
|
5816 |
||
1479 | 5817 |
aspectFor:aKey |
5818 |
||
5819 |
^self aspects at: aKey ifAbsent: [super aspectFor:aKey] |
|
5820 |
! |
|
5821 |
||
1406 | 5822 |
enableDangerousMenuItemsInRemoteLauncher |
5823 |
||
5824 |
|holder| |
|
5825 |
(holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[ |
|
5826 |
builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher put:(holder := true asValue). |
|
5827 |
]. |
|
5828 |
^ holder |
|
5829 |
! |
|
5830 |
||
1476
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5831 |
javaSupportPresent |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5832 |
^ (JavaVM notNil and:[JavaVM isBehavior and:[JavaVM isLoaded]]) asValue |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5833 |
|
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5834 |
"Created: / 13.2.1998 / 14:25:59 / cg" |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5835 |
"Modified: / 13.2.1998 / 14:26:31 / cg" |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5836 |
! |
ddcfe70b729e
added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents:
1475
diff
changeset
|
5837 |
|
1411 | 5838 |
selectionOfSettings |
1406 | 5839 |
|
5840 |
|holder| |
|
1411 | 5841 |
(holder := builder bindingAt:#selectionOfSettings) isNil ifTrue:[ |
5842 |
builder aspectAt:#selectionOfSettings put:(holder := |
|
5843 |
AspectAdaptor new subject: self; forAspect: #settingsSelection) |
|
1406 | 5844 |
]. |
5845 |
^ holder |
|
1411 | 5846 |
! ! |
5847 |
||
1406 | 5848 |
!NewLauncher methodsFor:'change & update'! |
5849 |
||
5850 |
update:something with:aParameter from:changedObject |
|
5851 |
"care for project changes & update my infoView" |
|
5852 |
||
5853 |
((something == #currentProject) or:[changedObject == Project]) ifTrue: [self updateInfo] |
|
5854 |
||
5855 |
! |
|
5856 |
||
5857 |
updateInfo |
|
5858 |
"update the infoView from the current project" |
|
5859 |
||
1420 | 5860 |
|project projectName projectDir packageName defNameSpace msg args projectInfo| |
1406 | 5861 |
|
5862 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
|
5863 |
projectName := '* none *'. |
|
5864 |
projectDir := '.'. |
|
5865 |
packageName := '* none *'. |
|
5866 |
] ifFalse:[ |
|
5867 |
projectName := project name. |
|
5868 |
projectDir := project directory. |
|
5869 |
packageName := project packageName. |
|
5870 |
defNameSpace := project defaultNameSpace. |
|
5871 |
]. |
|
5872 |
defNameSpace isNil ifTrue:[ |
|
5873 |
defNameSpace := Smalltalk. |
|
5874 |
]. |
|
5875 |
||
5876 |
defNameSpace == Smalltalk ifTrue:[ |
|
1449 | 5877 |
msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'''. |
1406 | 5878 |
args := Array |
5879 |
with:projectName |
|
5880 |
with:packageName |
|
5881 |
with:(projectDir contractTo:30). |
|
5882 |
] ifFalse:[ |
|
1449 | 5883 |
msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'' nameSpace: %4'. |
1406 | 5884 |
args := Array |
5885 |
with:projectName |
|
5886 |
with:packageName |
|
5887 |
with:(projectDir contractTo:30) |
|
5888 |
with:defNameSpace name. |
|
5889 |
]. |
|
5890 |
||
1420 | 5891 |
self valueOfInfoLabel value:(projectInfo := resources string:msg withArgs:args). |
5892 |
^projectInfo |
|
1406 | 5893 |
! ! |
5894 |
||
1479 | 5895 |
!NewLauncher methodsFor:'help'! |
5896 |
||
5897 |
defaultInfoLabel |
|
5898 |
||
5899 |
^self updateInfo |
|
5900 |
||
5901 |
! ! |
|
5902 |
||
1406 | 5903 |
!NewLauncher methodsFor:'private'! |
5904 |
||
5905 |
changeViewStyleTo:newStyle |
|
5906 |
||
5907 |
newStyle notNil ifTrue:[ |
|
5908 |
self withWaitCursorDo:[ |
|
5909 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
|
5910 |
View defaultStyle:newStyle asSymbol. |
|
5911 |
]. |
|
5912 |
self reOpen |
|
5913 |
] |
|
5914 |
||
5915 |
! |
|
5916 |
||
5917 |
findWindow:title |
|
5918 |
"a helper for find & destroy and find & raise operations; |
|
5919 |
let user choose a view and return it; return nil on cancel" |
|
5920 |
||
5921 |
|knownTopViews nameList box| |
|
5922 |
||
5923 |
knownTopViews := IdentitySet new. |
|
5924 |
Screen allScreens do:[:aScreen | |
|
5925 |
aScreen knownViews do:[:aView | |
|
5926 |
|top showIt wg| |
|
5927 |
||
5928 |
aView notNil ifTrue:[ |
|
5929 |
top := aView topView. |
|
5930 |
(top isKindOf:DebugView) ifTrue:[ |
|
5931 |
"/ although modal, show it. |
|
5932 |
showIt := top realized |
|
5933 |
] ifFalse:[ |
|
5934 |
wg := top windowGroup. |
|
5935 |
showIt := (wg notNil and:[wg isModal not]). |
|
5936 |
]. |
|
5937 |
showIt ifTrue:[ |
|
5938 |
knownTopViews add:top |
|
5939 |
] |
|
5940 |
] |
|
5941 |
] |
|
5942 |
]. |
|
5943 |
||
5944 |
knownTopViews := knownTopViews asOrderedCollection. |
|
5945 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
|
5946 |
l1 := v1 label ? 'aView'. |
|
5947 |
l2 := v2 label ? 'aView'. |
|
5948 |
l1 < l2 |
|
5949 |
]. |
|
5950 |
nameList := knownTopViews collect:[:v | |
|
5951 |
|isDead wg p l| |
|
5952 |
||
5953 |
l := v label ? 'aView'. |
|
5954 |
((wg := v windowGroup) notNil |
|
5955 |
and:[(p := wg process) notNil |
|
5956 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
5957 |
l |
|
5958 |
] ifFalse:[ |
|
5959 |
l , ' (dead ?)' |
|
5960 |
] |
|
5961 |
]. |
|
5962 |
||
5963 |
box := ListSelectionBox new. |
|
5964 |
box noEnterField. |
|
5965 |
box list:nameList. |
|
5966 |
box label:(resources string:'view selection'). |
|
5967 |
box title:(resources string:title) withCRs. |
|
5968 |
box action:[:selection | |
|
5969 |
|v| |
|
5970 |
||
5971 |
v := knownTopViews at:box selectionIndex. |
|
5972 |
box destroy. |
|
5973 |
^ v |
|
5974 |
]. |
|
5975 |
box extent:400@300. |
|
5976 |
box showAtPointer. |
|
5977 |
^ nil |
|
5978 |
||
5979 |
! |
|
5980 |
||
5981 |
openApplication: className |
|
5982 |
"open an application, given by the classe name." |
|
5983 |
||
5984 |
self openApplication:className nameSpace:nil |
|
5985 |
! |
|
5986 |
||
5987 |
openApplication:className nameSpace:aNameSpace |
|
5988 |
"open some application, given the classes name. |
|
5989 |
Look for it in Smalltalk and the given nameSpace" |
|
5990 |
||
5991 |
self openApplication:className nameSpace:aNameSpace with:#open |
|
5992 |
! |
|
5993 |
||
5994 |
openApplication:className nameSpace:aNameSpace with:aSelector |
|
5995 |
"open some application, given the classes name. |
|
5996 |
Look for it in Smalltalk and the given nameSpace" |
|
5997 |
||
5998 |
|cls| |
|
5999 |
||
6000 |
cls := Smalltalk at:className asSymbol. |
|
6001 |
cls isNil ifTrue:[ |
|
6002 |
"/ look if its in the nameSpace |
|
6003 |
aNameSpace notNil ifTrue:[ |
|
6004 |
cls := aNameSpace at:className asSymbol |
|
6005 |
] |
|
6006 |
]. |
|
6007 |
||
6008 |
cls isNil ifTrue:[ |
|
6009 |
self warn:(resources string:'Sorry, the %1 class is not available.' with:className). |
|
6010 |
] ifFalse:[ |
|
6011 |
Autoload autoloadFailedSignal handle:[:ex | |
|
6012 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className) |
|
6013 |
] do:[ |
|
6014 |
self withWaitCursorDo:[cls perform:aSelector] |
|
6015 |
] |
|
6016 |
] |
|
6017 |
||
6018 |
! |
|
6019 |
||
6020 |
reOpen |
|
6021 |
"reopen a new launcher. |
|
6022 |
for now (since style & language settings currently do |
|
6023 |
not affect living views ...)" |
|
6024 |
||
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6025 |
|contents builder newLauncher| |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6026 |
|
1406 | 6027 |
contents := transcript endEntry; list. |
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6028 |
builder := self class openAt:(self window origin). |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6029 |
builder window waitUntilVisible. |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6030 |
newLauncher := builder application. |
1406 | 6031 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor. |
6032 |
DebugView newDebugger. |
|
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6033 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6034 |
"Modified: / 5.2.1998 / 20:08:31 / cg" |
1406 | 6035 |
! |
6036 |
||
6037 |
saveAllViews |
|
6038 |
"tell each topview that we are going to terminate and give it chance |
|
6039 |
to save its contents." |
|
6040 |
||
6041 |
ObjectMemory changed:#aboutToExit |
|
1437 | 6042 |
! |
6043 |
||
6044 |
saveScreenImage:anImage defaultName:defaultName |
|
6045 |
"save an image into a file |
|
6046 |
- ask user for filename using a fileSelectionBox." |
|
6047 |
||
6048 |
|fileName| |
|
6049 |
||
6050 |
fileName := Dialog |
|
6051 |
requestFileName:(resources string:'save image in:') |
|
6052 |
default:(defaultName , '.tiff') |
|
6053 |
ok:(resources string:'save') |
|
6054 |
abort:(resources string:'cancel') |
|
6055 |
pattern:'*.tiff'. |
|
6056 |
||
6057 |
fileName notNil ifTrue:[ |
|
6058 |
anImage saveOn:fileName |
|
6059 |
]. |
|
6060 |
||
6061 |
"Modified: / 21.2.1996 / 13:09:28 / cg" |
|
6062 |
"Created: / 29.1.1998 / 23:20:36 / cg" |
|
1406 | 6063 |
! ! |
6064 |
||
6065 |
!NewLauncher methodsFor:'queries'! |
|
6066 |
||
1441 | 6067 |
preferredExtent |
6068 |
||
1467
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
6069 |
^super preferredExtent max: Screen current extent//(2.5@3.5) |
1441 | 6070 |
|
6071 |
||
6072 |
! |
|
6073 |
||
1406 | 6074 |
processName |
6075 |
"for monitors only - my name" |
|
6076 |
||
6077 |
^ 'ST/X Launcher' |
|
6078 |
||
6079 |
! |
|
6080 |
||
6081 |
transcript |
|
6082 |
"my transcript" |
|
6083 |
||
6084 |
^ transcript |
|
6085 |
! ! |
|
6086 |
||
6087 |
!NewLauncher methodsFor:'startup / release'! |
|
6088 |
||
6089 |
addTopViewsToCurrentProject |
|
6090 |
"ignored here - the launcher is always global (i.e. not project private)." |
|
6091 |
||
6092 |
^ self |
|
6093 |
||
6094 |
! |
|
6095 |
||
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6096 |
allButOpenInterface:anInterface |
1406 | 6097 |
"sent by my superclass to open up my interface" |
6098 |
||
6099 |
"/ if there is already a transcript on my device, |
|
6100 |
"/ I am a slave launcher with limited functionality. |
|
6101 |
||
6102 |
Transcript notNil ifTrue:[ |
|
6103 |
Transcript ~~ Stderr ifTrue:[ |
|
6104 |
isMainLauncher := (Transcript graphicsDevice == device). |
|
6105 |
self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher. |
|
6106 |
] ifFalse:[ |
|
6107 |
isMainLauncher := true |
|
6108 |
] |
|
6109 |
] ifFalse:[ |
|
6110 |
isMainLauncher := true |
|
6111 |
]. |
|
6112 |
||
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6113 |
super allButOpenInterface:anInterface. |
1432 | 6114 |
|
1406 | 6115 |
self setupTranscript; updateInfo. |
6116 |
Project notNil ifTrue: [Project addDependent:self]. |
|
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6117 |
self class openLaunchers add: self. |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6118 |
^ builder |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6119 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6120 |
"Created: / 5.2.1998 / 19:45:07 / cg" |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6121 |
"Modified: / 5.2.1998 / 19:56:43 / cg" |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6122 |
! |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6123 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6124 |
closeRequest |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6125 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6126 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6127 |
super closeRequest |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6128 |
] |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6129 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6130 |
! |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6131 |
|
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6132 |
postOpenWith:aBuilder |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6133 |
"increase my priority" |
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
6134 |
|
1406 | 6135 |
self builder window windowGroup process priority:(Processor userSchedulingPriority + 1). |
1497 | 6136 |
super postOpenWith:aBuilder. |
6137 |
self startClockOnTimedBlock: |
|
6138 |
[ |
|
6139 |
|now hours minutes suffix| |
|
6140 |
||
6141 |
now := Time now. |
|
6142 |
||
6143 |
hours := now hours. |
|
6144 |
minutes := now minutes printString. |
|
6145 |
suffix := ''. |
|
6146 |
||
6147 |
(resources at:'TIME_FORMAT' ifAbsent:12) == 12 ifTrue:[ |
|
6148 |
suffix := ' am '. |
|
6149 |
hours > 12 ifTrue: [hours := hours - 12. suffix := ' pm ']. |
|
6150 |
]. |
|
6151 |
||
6152 |
minutes size = 1 ifTrue: [minutes := '0', minutes]. |
|
6153 |
||
6154 |
self valueOfTimeLabel value: hours printString, ':', minutes, suffix. |
|
6155 |
||
6156 |
Processor removeTimedBlock: timeBlock. |
|
6157 |
Processor addTimedBlock: timeBlock afterSeconds: 1 |
|
6158 |
]. |
|
6159 |
||
1406 | 6160 |
! |
6161 |
||
6162 |
restarted |
|
6163 |
"image restart - since WindowGroup recreates the process with |
|
6164 |
the default priority, we have to raise the prio again. |
|
6165 |
Mhmh - this looks like a bug to me ... |
|
6166 |
Also, the cursor (which was stored as a write or waitCursor) must |
|
6167 |
be reset to normal." |
|
6168 |
||
6169 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
|
1469 | 6170 |
builder window extent: self preferredExtent. |
1406 | 6171 |
super restarted |
6172 |
||
6173 |
! |
|
6174 |
||
6175 |
saveAndTerminateRequest |
|
6176 |
"some windowManagers can send this, to shutDown an application |
|
6177 |
but let it save its state before, for later restart. |
|
6178 |
Although I have not yet encountered such a windowManager, |
|
6179 |
we are already prepared for this ;-)" |
|
6180 |
||
6181 |
self snapshot. |
|
6182 |
super saveAndTerminateRequest |
|
6183 |
||
6184 |
! |
|
6185 |
||
6186 |
setupTranscript |
|
6187 |
"create the transcript view" |
|
6188 |
||
6189 |
|launcher oldLauncher| |
|
6190 |
||
6191 |
"/ check if this is an additional launcher on a remote display. |
|
6192 |
"/ if so, do not close the real launcher. |
|
6193 |
||
6194 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
|
6195 |
isMainLauncher ifTrue:[ |
|
6196 |
launcher := Transcript topView application |
|
6197 |
] ifFalse:[ |
|
6198 |
launcher := self class current. |
|
6199 |
]. |
|
6200 |
launcher notNil ifTrue:[ |
|
6201 |
launcher window graphicsDevice == device ifTrue:[ |
|
1434 | 6202 |
OpenLaunchers notNil ifTrue:[ |
6203 |
OpenLaunchers removeIdentical:launcher ifAbsent:nil. |
|
6204 |
]. |
|
1406 | 6205 |
(oldLauncher := Smalltalk at: #Launcher) notNil |
1433
cd876a0d81c9
OpenLaunchers method made lowercase (method selector convention)
Claus Gittinger <cg@exept.de>
parents:
1432
diff
changeset
|
6206 |
ifTrue: [oldLauncher openLaunchers removeIdentical:launcher ifAbsent:nil]. |
1406 | 6207 |
launcher close |
6208 |
] |
|
6209 |
] |
|
6210 |
]. |
|
6211 |
||
6212 |
transcript := (builder componentAt: #transcriptView) subViews first. |
|
6213 |
||
6214 |
isMainLauncher ifTrue:[ |
|
6215 |
transcript beTranscript. |
|
6216 |
] ifFalse:[ |
|
6217 |
transcript showCR:'**************** Notice ***********************'. |
|
6218 |
transcript showCR:'** this is NOT the Transcript **'. |
|
6219 |
transcript showCR:'** The real Transcript is on the main screen **'. |
|
6220 |
transcript showCR:'** **'. |
|
6221 |
transcript showCR:'** Menus affecting common state are disabled **'. |
|
6222 |
transcript showCR:'***********************************************'. |
|
6223 |
] |
|
6224 |
||
1434 | 6225 |
"Modified: / 29.1.1998 / 22:06:03 / cg" |
1413 | 6226 |
! |
6227 |
||
6228 |
uninitialize |
|
6229 |
||
6230 |
super uninitialize. |
|
6231 |
||
6232 |
Display beep. |
|
1434 | 6233 |
OpenLaunchers notNil ifTrue:[OpenLaunchers removeIdentical:self ifAbsent:nil]. |
1449 | 6234 |
Project notNil ifTrue:[Project removeDependent:self] |
1406 | 6235 |
! ! |
6236 |
||
6237 |
!NewLauncher class methodsFor:'documentation'! |
|
6238 |
||
6239 |
version |
|
1527 | 6240 |
^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.47 1998-04-02 19:04:45 tz Exp $' |
1406 | 6241 |
! ! |