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