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