88
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
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 |
"
|
86
|
12 |
|
93
|
13 |
'From Smalltalk/X, Version:2.10.5 on 29-apr-1995 at 12:42:53 pm'!
|
90
|
14 |
|
86
|
15 |
ApplicationModel subclass:#NewLauncher
|
|
16 |
instanceVariableNames:'myMenu buttonPanel transcript infoView infoProcess helpIsOn'
|
|
17 |
classVariableNames:'CachedAboutIcon'
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Interface-Smalltalk'
|
|
20 |
!
|
|
21 |
|
88
|
22 |
!NewLauncher class methodsFor:'documentation'!
|
|
23 |
|
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
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 |
version
|
|
39 |
"
|
118
|
40 |
$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.28 1995-08-23 18:08:48 claus Exp $
|
105
|
41 |
"
|
|
42 |
!
|
|
43 |
|
|
44 |
documentation
|
|
45 |
"
|
|
46 |
a new launcher, combining old Launchers menu and transcript into
|
|
47 |
one view. (you no longer have to move two views around all the time ...).
|
106
|
48 |
|
|
49 |
Also, this app makes first use of the new compatibility framework;
|
|
50 |
you will notice, that this is a subclass of ApplicationModel.
|
|
51 |
New applications will no longer be built as subclasses of standardSystemView.
|
105
|
52 |
"
|
|
53 |
!
|
|
54 |
|
|
55 |
customization
|
|
56 |
"
|
|
57 |
Of course, it is possible to change the NewLauncher class itself
|
|
58 |
as appropriate, however, we suggest you create a subclass (say MyLauncher),
|
|
59 |
define it as autoloaded in the patches file, and redefined some methods
|
|
60 |
there. That way, your changes are easier to reintroduce in case of
|
|
61 |
an ST/X upgrade.
|
|
62 |
|
|
63 |
|
|
64 |
adding more buttons to the button-panel:
|
|
65 |
|
|
66 |
see the method #buttonPanelSpec;
|
|
67 |
it defines a list of selectors and icons, which is used by
|
|
68 |
#setupButtonPanelIn:.
|
|
69 |
There, for each entry, a button with that icon is created,
|
|
70 |
which sends a selector-message to the launcher.
|
|
71 |
|
|
72 |
Add entries to that list, and define appropriate methods.
|
|
73 |
For example, to add a button which opens a drawTool,
|
|
74 |
change #buttonPanelSpec to:
|
|
75 |
|
|
76 |
buttonPanelSpec
|
|
77 |
^ #(
|
|
78 |
#(startSystemBrowser 'SBrowser32x32.xbm')
|
|
79 |
#(startFileBrowser 'FBrowser32x32.xbm')
|
|
80 |
#(nil nil)
|
|
81 |
#(startChangesBrowser 'CBrowser32x32.xbm')
|
|
82 |
#(nil nil)
|
|
83 |
#(nil nil)
|
|
84 |
#(startDrawTool 'DrawTool.xbm')
|
|
85 |
)
|
|
86 |
|
|
87 |
the panel adjusts its height as appropriate - you may want to
|
|
88 |
create new (small) icons for a good look.
|
|
89 |
|
|
90 |
adding an entry to a menu:
|
|
91 |
|
|
92 |
see the #setupMenu method; either add another top-menu, or
|
|
93 |
add entries to an existing menu.
|
88
|
94 |
"
|
|
95 |
! !
|
|
96 |
|
86
|
97 |
!NewLauncher class methodsFor:'defaults'!
|
|
98 |
|
93
|
99 |
smallAboutIcon
|
|
100 |
|image|
|
|
101 |
|
|
102 |
image := self aboutIcon.
|
|
103 |
image notNil ifTrue:[
|
|
104 |
image := image magnifiedBy:0.4.
|
|
105 |
].
|
|
106 |
^ image
|
|
107 |
|
|
108 |
"
|
|
109 |
CachedAboutIcon := nil.
|
|
110 |
NewLauncher aboutIcon.
|
|
111 |
NewLauncher smallAboutIcon.
|
|
112 |
"
|
|
113 |
!
|
|
114 |
|
86
|
115 |
aboutIcon
|
|
116 |
|image|
|
|
117 |
|
|
118 |
CachedAboutIcon notNil ifTrue:[^ CachedAboutIcon].
|
|
119 |
|
|
120 |
image := Image fromFile:'SmalltalkX.xbm'.
|
92
|
121 |
image notNil ifTrue:[
|
86
|
122 |
|green dark|
|
|
123 |
|
|
124 |
Display hasColors ifTrue:[
|
105
|
125 |
green := (Color red:0 green:80 blue:20) "darkened".
|
86
|
126 |
dark := Color grey:10.
|
102
|
127 |
image photometric:#palette.
|
86
|
128 |
] ifFalse:[
|
100
|
129 |
dark := Color black.
|
|
130 |
green := Color white.
|
102
|
131 |
image photometric:#blackIs0.
|
86
|
132 |
].
|
102
|
133 |
image colorMap:(Array with:dark with:green).
|
86
|
134 |
Display depth > 2 ifTrue:[
|
|
135 |
image := (Image implementorForDepth:Display depth) fromImage:image.
|
|
136 |
]
|
|
137 |
].
|
|
138 |
CachedAboutIcon := image.
|
|
139 |
^ image
|
|
140 |
|
|
141 |
"
|
92
|
142 |
CachedAboutIcon := nil.
|
|
143 |
NewLauncher aboutIcon
|
|
144 |
"
|
86
|
145 |
! !
|
|
146 |
|
99
|
147 |
!NewLauncher methodsFor:'queries'!
|
|
148 |
|
|
149 |
processName
|
|
150 |
"for monitors only - my name"
|
|
151 |
|
|
152 |
^ 'ST/X Launcher'
|
|
153 |
! !
|
|
154 |
|
93
|
155 |
!NewLauncher methodsFor:'initialize / release'!
|
86
|
156 |
|
98
|
157 |
restarted
|
|
158 |
"image restart - since WindowGroup recreates the process with
|
|
159 |
default prio, we have to raise the prio again.
|
|
160 |
Mhmh - this looks like a bug to me ..."
|
|
161 |
|
|
162 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1).
|
|
163 |
super restarted
|
|
164 |
!
|
|
165 |
|
93
|
166 |
openInterface
|
98
|
167 |
"sent by my superclass to open up my interface"
|
93
|
168 |
|
|
169 |
|top icn w|
|
86
|
170 |
|
|
171 |
top := StandardSystemView new.
|
|
172 |
top label:'Smalltalk/X'.
|
|
173 |
top extent:(400@300 ).
|
|
174 |
|
92
|
175 |
"
|
|
176 |
temporary kludge for SGI;
|
|
177 |
this will be moved into StandardSystemView and be done
|
|
178 |
automatically soon ...
|
|
179 |
"
|
106
|
180 |
Screen current serverVendor = 'Silicon Graphics' ifTrue:[
|
93
|
181 |
icn := self class aboutIcon.
|
92
|
182 |
icn notNil ifTrue:[
|
93
|
183 |
icn := icn magnifiedTo:86@68.
|
92
|
184 |
w := View extent:86@68. "/ icn extent.
|
|
185 |
w viewBackground:icn.
|
|
186 |
top iconView:w
|
|
187 |
]
|
|
188 |
].
|
|
189 |
|
93
|
190 |
self setupViewsIn:top.
|
98
|
191 |
|
|
192 |
top application:self.
|
|
193 |
builder window:top.
|
86
|
194 |
|
|
195 |
"
|
92
|
196 |
open with higher prio to allow interaction even while things
|
|
197 |
are running ...
|
86
|
198 |
"
|
92
|
199 |
top openWithPriority:(Processor userSchedulingPriority + 1).
|
93
|
200 |
!
|
86
|
201 |
|
93
|
202 |
addTopViewsToCurrentProject
|
|
203 |
"ignored here - the launcher is always global (i.e. not project private)."
|
86
|
204 |
|
93
|
205 |
^ self
|
86
|
206 |
!
|
|
207 |
|
|
208 |
setupMenu
|
|
209 |
"setup the pulldown menu"
|
|
210 |
|
92
|
211 |
|l s icon|
|
86
|
212 |
|
|
213 |
myMenu labels:(resources array:#(
|
88
|
214 |
'about'
|
|
215 |
'file'
|
|
216 |
'classes'
|
|
217 |
'tools'
|
|
218 |
'projects'
|
|
219 |
'settings'
|
|
220 |
'demos'
|
|
221 |
'help')).
|
92
|
222 |
"
|
|
223 |
if there is a bitmap, change 'about' to the ST/X icon
|
|
224 |
"
|
|
225 |
icon := self class smallAboutIcon.
|
|
226 |
icon notNil ifTrue:[
|
|
227 |
myMenu labels at:1 put:icon.
|
94
|
228 |
myMenu height:(myMenu height max:(icon height + (View viewSpacing * 2)))
|
92
|
229 |
].
|
86
|
230 |
|
|
231 |
myMenu selectors:#(
|
88
|
232 |
#about
|
|
233 |
#file
|
|
234 |
#classes
|
|
235 |
#tools
|
|
236 |
#projects
|
|
237 |
#settings
|
|
238 |
#demos
|
|
239 |
#help).
|
86
|
240 |
|
|
241 |
myMenu at:#about
|
88
|
242 |
putLabels:(resources array:#(
|
|
243 |
'about Smalltalk/X ...'
|
|
244 |
))
|
|
245 |
selectors:#(
|
|
246 |
#about
|
|
247 |
)
|
|
248 |
receiver:self.
|
86
|
249 |
|
118
|
250 |
(ObjectFileLoader notNil and:[ObjectFileLoader isLoaded]) ifTrue:[
|
|
251 |
l := #(
|
|
252 |
'file browser'
|
|
253 |
'-'
|
|
254 |
'modules'
|
|
255 |
'-'
|
|
256 |
'snapshot'
|
|
257 |
'snapshot & exit'
|
|
258 |
'exit smalltalk'
|
|
259 |
).
|
|
260 |
s := #(
|
|
261 |
#startFileBrowser
|
|
262 |
nil
|
|
263 |
#objectModuleDialog
|
|
264 |
nil
|
|
265 |
#snapshot
|
|
266 |
#snapshotAndExit
|
|
267 |
#exit
|
|
268 |
)
|
|
269 |
] ifFalse:[
|
|
270 |
l := #(
|
|
271 |
'file browser'
|
|
272 |
'-'
|
|
273 |
'snapshot'
|
|
274 |
'snapshot & exit'
|
|
275 |
'exit smalltalk'
|
|
276 |
).
|
|
277 |
s := #(
|
|
278 |
#startFileBrowser
|
|
279 |
nil
|
|
280 |
#snapshot
|
|
281 |
#snapshotAndExit
|
|
282 |
#exit
|
|
283 |
)
|
|
284 |
].
|
|
285 |
|
86
|
286 |
myMenu at:#file
|
118
|
287 |
putLabels:(resources array:l)
|
|
288 |
selectors:s
|
88
|
289 |
receiver:self.
|
86
|
290 |
|
|
291 |
myMenu at:#classes
|
88
|
292 |
putLabels:(resources array:#(
|
|
293 |
'system browser'
|
|
294 |
'class browser'
|
|
295 |
'full class browser'
|
|
296 |
'class hierarchy browser'
|
|
297 |
'class tree'
|
|
298 |
'-'
|
|
299 |
'implementors'
|
|
300 |
'senders'
|
|
301 |
'-'
|
|
302 |
'change browser'
|
|
303 |
))
|
|
304 |
selectors:#(
|
|
305 |
#startSystemBrowser
|
|
306 |
#startClassBrowser
|
|
307 |
#startFullClassBrowser
|
|
308 |
#startClassHierarchyBrowser
|
|
309 |
#startClassTreeView
|
|
310 |
nil
|
|
311 |
#browseImplementors
|
|
312 |
#browseSenders
|
|
313 |
nil
|
|
314 |
#startChangesBrowser
|
|
315 |
)
|
|
316 |
receiver:self.
|
86
|
317 |
|
|
318 |
myMenu at:#projects
|
88
|
319 |
putLabels:(resources array:#(
|
|
320 |
'new project'
|
|
321 |
'-'
|
106
|
322 |
'select project ...'
|
88
|
323 |
))
|
|
324 |
selectors:#(
|
|
325 |
#newProject
|
|
326 |
nil
|
|
327 |
#selectProject
|
|
328 |
)
|
|
329 |
receiver:self.
|
86
|
330 |
|
|
331 |
myMenu at:#settings
|
88
|
332 |
putLabels:(resources array:#(
|
|
333 |
'language'
|
107
|
334 |
'show keyboard mappings'
|
88
|
335 |
'view style'
|
110
|
336 |
'messages'
|
93
|
337 |
'compilation'
|
94
|
338 |
'misc'
|
88
|
339 |
))
|
|
340 |
selectors:#(
|
|
341 |
#languageSetting
|
107
|
342 |
#keyboardSetting
|
88
|
343 |
#viewStyleSetting
|
110
|
344 |
#messageSettings
|
94
|
345 |
#compilerSettings
|
|
346 |
#miscSettings
|
88
|
347 |
)
|
|
348 |
receiver:self.
|
86
|
349 |
|
93
|
350 |
self setupToolsMenu.
|
90
|
351 |
self setupDemoMenu.
|
86
|
352 |
|
|
353 |
ActiveHelp notNil ifTrue:[
|
88
|
354 |
l := #(
|
|
355 |
'\c active help'
|
|
356 |
'ST/X documentation'
|
|
357 |
).
|
|
358 |
s := #(
|
93
|
359 |
#toggleActiveHelp:
|
88
|
360 |
#startDocumentationTool
|
|
361 |
)
|
86
|
362 |
] ifFalse:[
|
88
|
363 |
l := #(
|
|
364 |
'ST/X documentation'
|
|
365 |
).
|
|
366 |
s := #(
|
|
367 |
#startDocumentationTool
|
|
368 |
)
|
86
|
369 |
].
|
|
370 |
|
|
371 |
myMenu at:#help
|
88
|
372 |
putLabels:(resources array:l)
|
|
373 |
selectors:s
|
|
374 |
receiver:self.
|
86
|
375 |
!
|
|
376 |
|
93
|
377 |
setupTranscriptIn:aView
|
|
378 |
|v|
|
|
379 |
|
|
380 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[
|
|
381 |
Transcript topView destroy.
|
|
382 |
].
|
|
383 |
|
|
384 |
v := HVScrollableView
|
|
385 |
for:TextCollector
|
|
386 |
miniScrollerH:true
|
|
387 |
miniScrollerV:false
|
|
388 |
in:aView.
|
|
389 |
|
|
390 |
v origin:(0.0 @ (buttonPanel corner y + View viewSpacing))
|
|
391 |
corner:(1.0 @ 1.0).
|
|
392 |
transcript := v scrolledView.
|
|
393 |
transcript beTranscript.
|
|
394 |
!
|
|
395 |
|
90
|
396 |
setupInfoViewIn:topView
|
93
|
397 |
|spc halfSpc|
|
86
|
398 |
|
90
|
399 |
spc := View viewSpacing.
|
|
400 |
infoView := Label label:'' in:topView.
|
|
401 |
infoView adjust:#left; borderWidth:0.
|
|
402 |
infoView level:-1.
|
|
403 |
transcript superView bottomInset:(infoView height + spc).
|
86
|
404 |
|
100
|
405 |
infoView is3D ifTrue:[
|
|
406 |
halfSpc := spc // 2.
|
|
407 |
] ifFalse:[
|
|
408 |
halfSpc := 0
|
|
409 |
].
|
|
410 |
infoView topInset:(infoView height negated - spc + transcript borderWidth);
|
93
|
411 |
bottomInset:halfSpc;
|
|
412 |
leftInset:halfSpc;
|
|
413 |
rightInset:halfSpc.
|
|
414 |
infoView origin:0.0 @ 1.0 corner:1.0 @ 1.0.
|
|
415 |
infoView model:self; aspect:#info; labelMessage:#info.
|
86
|
416 |
|
93
|
417 |
Project notNil ifTrue:[
|
|
418 |
Project addDependent:self.
|
|
419 |
]
|
90
|
420 |
|
|
421 |
"
|
|
422 |
NewLauncher open
|
|
423 |
"
|
86
|
424 |
!
|
|
425 |
|
93
|
426 |
focusSequence
|
100
|
427 |
^ (Array with:myMenu)
|
|
428 |
,
|
|
429 |
(buttonPanel subViews select:[:element | element isKindOf:Button])
|
108
|
430 |
"/ , (Array with:Transcript)
|
93
|
431 |
!
|
|
432 |
|
86
|
433 |
setupViewsIn:topView
|
|
434 |
"create the pulldown menu, buttonPanel and transcript view"
|
|
435 |
|
107
|
436 |
|tFont|
|
86
|
437 |
|
|
438 |
topView model:self.
|
|
439 |
|
|
440 |
myMenu := PullDownMenu in:topView.
|
106
|
441 |
myMenu origin:0.0 @ 0.0 corner:(1.0 @ myMenu height).
|
86
|
442 |
|
|
443 |
self setupMenu.
|
|
444 |
self setupButtonPanelIn:topView.
|
|
445 |
self setupTranscriptIn:topView.
|
|
446 |
self setupInfoViewIn:topView.
|
103
|
447 |
self setupOtherViewsIn:topView.
|
86
|
448 |
|
100
|
449 |
tFont := transcript font.
|
|
450 |
topView extent:((tFont widthOf:'3')*60)
|
86
|
451 |
@
|
100
|
452 |
((tFont height) * 20).
|
86
|
453 |
|
|
454 |
"
|
|
455 |
NewLauncher open
|
|
456 |
"
|
|
457 |
!
|
|
458 |
|
103
|
459 |
setupOtherViewsIn:aTopView
|
|
460 |
"a hook - allows redefinition in your personal subclass.
|
|
461 |
For example, add a clock:"
|
|
462 |
|
|
463 |
"
|
|
464 |
|sz clock space halfSpace|
|
|
465 |
|
|
466 |
sz := buttonPanel innerHeight - (buttonPanel level abs*2).
|
|
467 |
space := View viewSpacing.
|
|
468 |
halfSpace := space // 2.
|
|
469 |
|
|
470 |
buttonPanel rightInset:sz+(space * 2).
|
|
471 |
|
104
|
472 |
clock := ClockView in:buttonPanel topView.
|
103
|
473 |
clock borderWidth:1.
|
|
474 |
clock showSeconds:false.
|
|
475 |
clock extent:(sz @ sz).
|
|
476 |
clock origin:(1.0 @ (buttonPanel origin y + halfSpace)).
|
|
477 |
clock leftInset:sz negated - 2 - halfSpace.
|
|
478 |
clock rightInset:halfSpace.
|
|
479 |
clock level:1.
|
|
480 |
"
|
|
481 |
!
|
|
482 |
|
86
|
483 |
setupButtonPanelIn:aTopView
|
|
484 |
"create the buttonPanel"
|
|
485 |
|
107
|
486 |
|spc mh|
|
86
|
487 |
|
|
488 |
spc := View viewSpacing // 2.
|
|
489 |
buttonPanel := HorizontalPanelView in:aTopView.
|
|
490 |
buttonPanel level:-1; borderWidth:0.
|
|
491 |
buttonPanel horizontalLayout:#leftSpace.
|
|
492 |
|
90
|
493 |
self buttonPanelSpec do:[:entry |
|
|
494 |
|sel b sep|
|
86
|
495 |
|
90
|
496 |
sel := entry at:1.
|
|
497 |
sel isNil ifTrue:[
|
|
498 |
sep := View in:buttonPanel.
|
|
499 |
sep extent:32@1; borderWidth:0.
|
|
500 |
] ifFalse:[
|
|
501 |
b := Button in:buttonPanel.
|
|
502 |
b form:(Image fromFile:(entry at:2)).
|
100
|
503 |
b model:self; changeMessage:sel
|
90
|
504 |
]
|
86
|
505 |
].
|
|
506 |
|
100
|
507 |
mh := myMenu height.
|
|
508 |
buttonPanel origin:0.0 @ (mh + spc)
|
105
|
509 |
corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)).
|
86
|
510 |
|
|
511 |
buttonPanel leftInset:spc; rightInset:spc.
|
|
512 |
!
|
|
513 |
|
90
|
514 |
setupDemoMenu
|
|
515 |
"setup the demo pulldown menu"
|
|
516 |
|
|
517 |
|m|
|
|
518 |
|
|
519 |
myMenu at:#demos
|
|
520 |
putLabels:(resources array:#(
|
91
|
521 |
'goodies'
|
90
|
522 |
'games'
|
|
523 |
'geometric designs'
|
|
524 |
'simple animations'
|
|
525 |
'3D graphics'
|
|
526 |
'graphic editors'
|
|
527 |
))
|
|
528 |
selectors:#(
|
91
|
529 |
goodies
|
90
|
530 |
games
|
|
531 |
geometricDesigns
|
|
532 |
simpleAnimations
|
|
533 |
#'3Dgraphics'
|
|
534 |
#graphicEditors
|
|
535 |
)
|
|
536 |
receiver:self.
|
|
537 |
|
|
538 |
"
|
|
539 |
only to show two different ways of defining a popUpMenu,
|
|
540 |
we use labels:selectors:receiver: here:
|
|
541 |
"
|
|
542 |
m := myMenu menuAt:#demos.
|
|
543 |
m subMenuAt:#games
|
|
544 |
put:(PopUpMenu
|
|
545 |
labels:(resources array:#(
|
|
546 |
'Tetris'
|
|
547 |
'Tic Tac Toe'
|
|
548 |
))
|
|
549 |
selectors:#(
|
|
550 |
startTetris
|
|
551 |
startTicTacToe
|
|
552 |
)
|
|
553 |
receiver:self).
|
|
554 |
|
|
555 |
"
|
|
556 |
and labels:selector:args:receiver: here:
|
|
557 |
"
|
|
558 |
m subMenuAt:#geometricDesigns
|
|
559 |
put:(PopUpMenu
|
|
560 |
labels:(resources array:#(
|
|
561 |
'Pen demo'
|
|
562 |
'Commander demo'
|
116
|
563 |
'-'
|
115
|
564 |
'Fractal plants demo'
|
116
|
565 |
'Fractal patterns demo'
|
90
|
566 |
))
|
|
567 |
selector:#openDemo:
|
|
568 |
args:#(
|
|
569 |
PenDemo
|
|
570 |
CommanderDemo
|
116
|
571 |
nil
|
115
|
572 |
FractalPlantsDemo
|
116
|
573 |
FractalPatternsDemo
|
91
|
574 |
)
|
90
|
575 |
receiver:self).
|
|
576 |
|
|
577 |
m subMenuAt:#simpleAnimations
|
|
578 |
put:(PopUpMenu
|
|
579 |
labels:(resources array:#(
|
|
580 |
'Animation'
|
|
581 |
'Globe demo'
|
|
582 |
))
|
|
583 |
selector:#openDemo:
|
|
584 |
args:#(
|
|
585 |
Animation
|
|
586 |
GlobeDemo
|
91
|
587 |
)
|
90
|
588 |
receiver:self).
|
|
589 |
|
|
590 |
m subMenuAt:#'3Dgraphics'
|
|
591 |
put:(PopUpMenu
|
|
592 |
labels:(resources
|
|
593 |
array:#(
|
|
594 |
'plane'
|
|
595 |
'tetra'
|
|
596 |
'cube (wireframe)'
|
|
597 |
'cube (solid)'
|
|
598 |
'cube (light)'
|
|
599 |
'cube (light & texture)'
|
|
600 |
'sphere (wireframe)'
|
|
601 |
'sphere (light)'
|
|
602 |
'planet'
|
|
603 |
'teapot'
|
|
604 |
'logo'
|
108
|
605 |
'x/y graph'
|
90
|
606 |
))
|
|
607 |
selector:#openDemo:
|
|
608 |
args:#(
|
|
609 |
GLPlaneDemoView2
|
|
610 |
GLTetraDemoView
|
|
611 |
GLWireCubeDemoView
|
|
612 |
GLCubeDemoView
|
|
613 |
GLCubeDemoView2
|
|
614 |
GLBrickCubeDemoView
|
|
615 |
GLWireSphereDemoView
|
|
616 |
GLSphereDemoView2
|
|
617 |
GLPlanetDemoView
|
|
618 |
GLTeapotDemo
|
|
619 |
Logo3DView1
|
108
|
620 |
GLXYGraph
|
91
|
621 |
)
|
90
|
622 |
receiver:self).
|
|
623 |
|
|
624 |
m subMenuAt:#graphicEditors
|
|
625 |
put:(PopUpMenu
|
|
626 |
labels:(resources array:#(
|
|
627 |
'DrawTool'
|
|
628 |
'LogicTool'
|
|
629 |
))
|
|
630 |
selector:#openDemo:
|
|
631 |
args:#(
|
|
632 |
DrawTool
|
|
633 |
LogicTool
|
91
|
634 |
)
|
90
|
635 |
receiver:self).
|
|
636 |
|
91
|
637 |
m subMenuAt:#goodies
|
|
638 |
put:(PopUpMenu
|
|
639 |
labels:(resources array:#(
|
|
640 |
'clock'
|
|
641 |
'calendar'
|
|
642 |
'-'
|
|
643 |
'mail tool'
|
|
644 |
'news tool'
|
|
645 |
))
|
|
646 |
selector:#openDemo:
|
|
647 |
args:#(
|
|
648 |
Clock
|
|
649 |
Calendar
|
|
650 |
nil
|
|
651 |
MailView
|
|
652 |
NewsView
|
|
653 |
)
|
|
654 |
receiver:self).
|
90
|
655 |
!
|
|
656 |
|
|
657 |
buttonPanelSpec
|
|
658 |
"return a spec for the buttons in the panel;
|
|
659 |
entries consists of selector and bitmap-filename.
|
|
660 |
nil selectors are taken as separators (see setupButtonPanel)"
|
|
661 |
|
|
662 |
^ #(
|
|
663 |
#(startSystemBrowser 'SBrowser32x32.xbm')
|
|
664 |
#(startFileBrowser 'FBrowser32x32.xbm')
|
|
665 |
#(nil nil)
|
|
666 |
#(startChangesBrowser 'CBrowser32x32.xbm')
|
107
|
667 |
"/ #(nil nil)
|
|
668 |
"/ #(nil nil)
|
|
669 |
"/ #(startDocumentationTool 'book11.ico')
|
90
|
670 |
)
|
93
|
671 |
!
|
|
672 |
|
|
673 |
release
|
|
674 |
infoProcess notNil ifTrue:[
|
|
675 |
infoProcess terminate.
|
|
676 |
infoProcess := nil.
|
|
677 |
].
|
|
678 |
super release
|
|
679 |
!
|
|
680 |
|
|
681 |
closeRequest
|
|
682 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[
|
|
683 |
super closeRequest
|
|
684 |
]
|
|
685 |
!
|
|
686 |
|
|
687 |
saveAndTerminate
|
|
688 |
"
|
|
689 |
some windowManagers can send this, to shutDown an application
|
|
690 |
but let it save its state before, for restart. We are already
|
|
691 |
prepared for this ;-)"
|
|
692 |
|
|
693 |
self snapshot.
|
|
694 |
super saveAndTerminate
|
|
695 |
!
|
|
696 |
|
|
697 |
setupToolsMenu
|
|
698 |
"setup the tools pulldown menu"
|
|
699 |
|
|
700 |
|m|
|
|
701 |
|
|
702 |
myMenu at:#tools
|
|
703 |
putLabels:(resources array:#(
|
|
704 |
'workspace'
|
|
705 |
'-'
|
|
706 |
'monitors'
|
|
707 |
'-'
|
|
708 |
'view tree (all views)'
|
|
709 |
'view tree'
|
|
710 |
'inspect view'
|
|
711 |
'destroy view'
|
|
712 |
'-'
|
|
713 |
'hardcopy'
|
|
714 |
))
|
|
715 |
selectors:#(
|
|
716 |
#startWorkspace
|
|
717 |
nil
|
|
718 |
#monitors
|
|
719 |
nil
|
|
720 |
#startFullWindowTreeView
|
|
721 |
#startWindowTreeView
|
|
722 |
#viewInspect
|
|
723 |
#viewDestroy
|
|
724 |
nil
|
|
725 |
#hardcopy
|
|
726 |
)
|
|
727 |
receiver:self.
|
|
728 |
|
|
729 |
|
|
730 |
m := myMenu menuAt:#tools.
|
|
731 |
m subMenuAt:#monitors
|
|
732 |
put:(PopUpMenu
|
|
733 |
labels:(resources array:#(
|
|
734 |
'process'
|
|
735 |
'memory'
|
|
736 |
'event'
|
|
737 |
'-'
|
|
738 |
'memory usage'
|
|
739 |
))
|
|
740 |
selectors:#(
|
|
741 |
#startProcessMonitor
|
|
742 |
#startMemoryMonitor
|
|
743 |
#startEventMonitor
|
|
744 |
nil
|
|
745 |
#startMemoryUsageView
|
|
746 |
)
|
|
747 |
receiver:self).
|
|
748 |
|
|
749 |
m subMenuAt:#hardcopy
|
|
750 |
put:(PopUpMenu
|
|
751 |
labels:(resources array:#(
|
|
752 |
'screen'
|
|
753 |
'area'
|
|
754 |
'view'
|
|
755 |
))
|
|
756 |
selectors:#(
|
|
757 |
#fullScreenHardcopy
|
|
758 |
#screenHardcopy
|
|
759 |
#viewHardcopy
|
|
760 |
)
|
|
761 |
receiver:self).
|
|
762 |
|
86
|
763 |
! !
|
|
764 |
|
|
765 |
!NewLauncher methodsFor:'actions - classes'!
|
|
766 |
|
|
767 |
startFileBrowser
|
106
|
768 |
self withWaitCursorDo:[FileBrowser open]
|
86
|
769 |
!
|
|
770 |
|
90
|
771 |
startChangesBrowser
|
106
|
772 |
self withWaitCursorDo:[ChangesBrowser open]
|
90
|
773 |
!
|
|
774 |
|
86
|
775 |
startSystemBrowser
|
106
|
776 |
self withWaitCursorDo:[SystemBrowser open]
|
86
|
777 |
!
|
|
778 |
|
|
779 |
startWorkspace
|
|
780 |
Workspace open
|
|
781 |
!
|
|
782 |
|
|
783 |
startClassBrowser
|
90
|
784 |
SystemBrowser askThenBrowseClass
|
|
785 |
!
|
|
786 |
|
|
787 |
startFullClassBrowser
|
|
788 |
SystemBrowser askThenBrowseFullClassProtocol
|
86
|
789 |
!
|
|
790 |
|
|
791 |
startClassHierarchyBrowser
|
90
|
792 |
SystemBrowser askThenBrowseClassHierarchy
|
86
|
793 |
!
|
|
794 |
|
|
795 |
browseImplementors
|
|
796 |
|enterBox|
|
|
797 |
|
|
798 |
enterBox := EnterBox title:(resources at:'Browse implementors of:') withCRs.
|
|
799 |
enterBox okText:(resources at:'browse').
|
|
800 |
enterBox action:[:selectorName |
|
|
801 |
|cls|
|
|
802 |
|
106
|
803 |
self withWaitCursorDo:[SystemBrowser browseImplementorsOf:selectorName]
|
86
|
804 |
].
|
|
805 |
enterBox showAtPointer
|
|
806 |
!
|
|
807 |
|
|
808 |
browseSenders
|
|
809 |
|enterBox|
|
|
810 |
|
|
811 |
enterBox := EnterBox title:(resources at:'Browse senders of:') withCRs.
|
|
812 |
enterBox okText:(resources at:'browse').
|
|
813 |
enterBox action:[:selectorName |
|
|
814 |
|cls|
|
|
815 |
|
106
|
816 |
self withWaitCursorDo:[SystemBrowser browseAllCallsOn:selectorName]
|
86
|
817 |
].
|
|
818 |
enterBox showAtPointer
|
|
819 |
!
|
|
820 |
|
|
821 |
startClassTreeView
|
106
|
822 |
self withWaitCursorDo:[ClassTreeGraphView open]
|
86
|
823 |
! !
|
|
824 |
|
90
|
825 |
!NewLauncher methodsFor:'actions - settings'!
|
|
826 |
|
|
827 |
viewStyleSetting
|
100
|
828 |
|listOfStyles resourceDir dir box
|
107
|
829 |
list listView infoLabel infoForwarder newStyle|
|
90
|
830 |
|
|
831 |
"
|
|
832 |
search resources directory for a list of .style files ...
|
|
833 |
"
|
|
834 |
|
|
835 |
resourceDir := Smalltalk getSystemFileName:'resources'.
|
105
|
836 |
resourceDir isNil ifTrue:[
|
|
837 |
self warn:'no styles found (missing ''resources'' directory)'.
|
|
838 |
^ self
|
|
839 |
].
|
90
|
840 |
dir := FileDirectory directoryNamed:resourceDir.
|
|
841 |
|
|
842 |
listOfStyles := dir select:[:aFileName | aFileName endsWith:'.style'].
|
|
843 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName copyWithoutLast:6].
|
100
|
844 |
listOfStyles sort.
|
90
|
845 |
|
100
|
846 |
"/ old code: used a standard ListSelectionBox
|
|
847 |
"/ changed to intercept selection and add info-output.
|
|
848 |
|
|
849 |
"/ box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs.
|
|
850 |
"/ box label:(resources string:'Style selection').
|
|
851 |
"/ box list:listOfStyles.
|
|
852 |
"/ box initialText:View defaultStyle.
|
|
853 |
"/ box selectAction:[:newStyle |
|
|
854 |
"/ ].
|
|
855 |
"/ box action:[:newStyle |
|
|
856 |
"/ transcript topView withCursor:Cursor wait do:[
|
|
857 |
"/ Transcript showCr:'change style to ' , newStyle , ' ...'.
|
|
858 |
"/ View defaultStyle:newStyle asSymbol.
|
|
859 |
"/ ]
|
|
860 |
"/ ].
|
|
861 |
"/ box showAtPointer
|
|
862 |
|
|
863 |
"/ new code: build box 'by 'hand'
|
|
864 |
"/
|
|
865 |
infoForwarder := Plug new.
|
|
866 |
infoForwarder respondTo:#showInfo
|
|
867 |
with:[
|
|
868 |
|nm sheet comment|
|
|
869 |
nm := list selection.
|
|
870 |
sheet := ViewStyle fromFile:(nm , '.style').
|
|
871 |
comment := sheet at:#comment ifAbsent:''.
|
|
872 |
infoLabel label:comment withCRs asStringCollection
|
|
873 |
].
|
|
874 |
|
|
875 |
list := SelectionInList with:listOfStyles.
|
|
876 |
list onChangeSend:#showInfo to:infoForwarder.
|
|
877 |
|
|
878 |
box := Dialog new.
|
90
|
879 |
box label:(resources string:'Style selection').
|
100
|
880 |
|
112
|
881 |
(box addTextLabel:(resources string:'STYLE_MSG') withCRs) borderWidth:0.
|
100
|
882 |
listView := SelectionInListView on:list.
|
|
883 |
listView doubleClickAction:[:sel | box accept value:true. box hide].
|
|
884 |
listView height:200.
|
108
|
885 |
box addComponent:(ScrollableView forView:listView) tabable:true.
|
100
|
886 |
box addVerticalSpace.
|
|
887 |
|
|
888 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
|
|
889 |
|
|
890 |
box addAbortButton; addOkButton.
|
|
891 |
list selection:(View defaultStyle).
|
105
|
892 |
box extent:(box preferredExtent).
|
100
|
893 |
box minExtent:box extent.
|
|
894 |
box maxExtent:box extent.
|
|
895 |
|
|
896 |
box showAtPointer.
|
|
897 |
|
|
898 |
box accepted ifTrue:[
|
|
899 |
newStyle := list selection.
|
|
900 |
newStyle notNil ifTrue:[
|
106
|
901 |
self withWaitCursorDo:[
|
100
|
902 |
Transcript showCr:'change style to ' , newStyle , ' ...'.
|
|
903 |
View defaultStyle:newStyle asSymbol.
|
106
|
904 |
].
|
|
905 |
self reopenLauncher.
|
90
|
906 |
]
|
100
|
907 |
]
|
90
|
908 |
!
|
|
909 |
|
|
910 |
languageSetting
|
|
911 |
|listOfLanguages box|
|
|
912 |
|
|
913 |
"
|
|
914 |
hardwiring here is stupid - need a resource file
|
|
915 |
which lists languagenames which have all texts available
|
|
916 |
in resource files ...
|
|
917 |
"
|
|
918 |
listOfLanguages := #('english'
|
|
919 |
'german'
|
|
920 |
'french'
|
|
921 |
'spanish'
|
|
922 |
'italian'
|
|
923 |
).
|
|
924 |
|
94
|
925 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs.
|
90
|
926 |
box label:(resources string:'Language selection').
|
|
927 |
box list:listOfLanguages.
|
|
928 |
box initialText:(Language).
|
|
929 |
box action:[:newLanguage |
|
106
|
930 |
self withWaitCursorDo:[
|
90
|
931 |
Transcript showCr:'change language to ' , newLanguage , ' ...'.
|
|
932 |
Smalltalk at:#Language put:newLanguage asSymbol.
|
|
933 |
Smalltalk changed:#Language.
|
|
934 |
ResourcePack flushCachedResourcePacks
|
106
|
935 |
].
|
|
936 |
self reopenLauncher.
|
90
|
937 |
].
|
|
938 |
box showAtPointer
|
|
939 |
!
|
|
940 |
|
107
|
941 |
keyboardSetting
|
|
942 |
|mappings listOfRawKeys listOfFunctions
|
|
943 |
box l
|
|
944 |
list1 list2 listView1 listView2
|
|
945 |
frame infoLabel selectionForwarder macroForwarder macroTextView y|
|
|
946 |
|
|
947 |
mappings := Screen current keyboardMap.
|
|
948 |
|
|
949 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
|
|
950 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
|
|
951 |
|
|
952 |
selectionForwarder := Plug new.
|
|
953 |
selectionForwarder respondTo:#showFunction
|
|
954 |
with:[
|
|
955 |
|raw|
|
|
956 |
raw := list1 selection.
|
|
957 |
list2 retractInterrestFor:selectionForwarder.
|
|
958 |
list2 selection:(mappings at:raw asSymbol) asString.
|
|
959 |
list2 onChangeSend:#showRawKey to:selectionForwarder.
|
|
960 |
].
|
|
961 |
selectionForwarder respondTo:#showRawKey
|
|
962 |
with:[
|
|
963 |
|f raw|
|
|
964 |
|
|
965 |
f := list2 selection.
|
|
966 |
list1 retractInterrestFor:selectionForwarder.
|
|
967 |
raw := mappings keyAtValue:f asString.
|
|
968 |
raw isNil ifTrue:[
|
|
969 |
raw := mappings keyAtValue:f first.
|
|
970 |
raw isNil ifTrue:[
|
|
971 |
raw := mappings keyAtValue:f asSymbol.
|
|
972 |
]
|
|
973 |
].
|
|
974 |
list1 selection:raw.
|
|
975 |
list1 onChangeSend:#showFunction to:selectionForwarder.
|
|
976 |
].
|
|
977 |
|
|
978 |
macroForwarder := Plug new.
|
|
979 |
macroForwarder respondTo:#showMacro
|
|
980 |
with:[
|
|
981 |
|f macro indent|
|
|
982 |
f := list2 selection.
|
|
983 |
(f startsWith:'Cmd') ifTrue:[
|
|
984 |
f := f copyFrom:4
|
|
985 |
].
|
|
986 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
|
|
987 |
macro notNil ifTrue:[
|
|
988 |
macro := macro asStringCollection.
|
|
989 |
indent := macro
|
|
990 |
inject:99999 into:[:min :element |
|
|
991 |
|stripped|
|
|
992 |
|
|
993 |
stripped := element withoutLeadingSeparators.
|
|
994 |
stripped size == 0 ifTrue:[
|
|
995 |
min
|
|
996 |
] ifFalse:[
|
|
997 |
min min:(element size - stripped size)
|
|
998 |
]
|
|
999 |
].
|
|
1000 |
indent ~~ 0 ifTrue:[
|
|
1001 |
macro := macro collect:[:line |
|
|
1002 |
line size > indent ifTrue:[
|
|
1003 |
line copyFrom:indent+1
|
|
1004 |
] ifFalse:[
|
|
1005 |
line
|
|
1006 |
].
|
|
1007 |
]
|
|
1008 |
].
|
|
1009 |
].
|
|
1010 |
macroTextView contents:macro.
|
|
1011 |
].
|
|
1012 |
|
|
1013 |
list1 := SelectionInList with:listOfRawKeys.
|
|
1014 |
list1 onChangeSend:#showFunction to:selectionForwarder.
|
|
1015 |
list2 := SelectionInList with:listOfFunctions.
|
|
1016 |
list2 onChangeSend:#showRawKey to:selectionForwarder.
|
|
1017 |
list2 onChangeSend:#showMacro to:macroForwarder.
|
|
1018 |
|
|
1019 |
box := Dialog new.
|
|
1020 |
box label:(resources string:'Keyboard mappings').
|
|
1021 |
|
|
1022 |
l := box addTextLabel:(resources string:'KEY_MSG') withCRs.
|
112
|
1023 |
l adjust:#left; borderWidth:0.
|
107
|
1024 |
|
|
1025 |
frame := View new.
|
|
1026 |
frame extent:300 @ 300.
|
112
|
1027 |
frame borderWidth:0.
|
107
|
1028 |
|
|
1029 |
listView1 := ScrollableView for:SelectionInListView in:frame.
|
|
1030 |
listView1 model:list1.
|
108
|
1031 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
|
107
|
1032 |
|
|
1033 |
listView2 := ScrollableView for:SelectionInListView in:frame.
|
|
1034 |
listView2 model:list2.
|
108
|
1035 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
|
107
|
1036 |
|
|
1037 |
frame topInset:box yPosition.
|
|
1038 |
box addComponent:frame withExtent:350@200.
|
108
|
1039 |
box makeTabable:listView1.
|
|
1040 |
box makeTabable:listView2.
|
107
|
1041 |
frame origin:0.0@0.0 corner:1.0@0.6.
|
|
1042 |
|
|
1043 |
box addVerticalSpace.
|
|
1044 |
|
|
1045 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
|
112
|
1046 |
l adjust:#left; borderWidth:0.
|
107
|
1047 |
l origin:0.0@0.6 corner:1.0@0.6.
|
|
1048 |
l topInset:(View viewSpacing).
|
|
1049 |
l bottomInset:(l preferredExtent y negated - View viewSpacing).
|
|
1050 |
|
|
1051 |
macroTextView := HVScrollableView for:TextView miniScroller:true.
|
108
|
1052 |
box addComponent:macroTextView tabable:true.
|
107
|
1053 |
macroTextView origin:0.0@0.6 corner:1.0@1.0.
|
|
1054 |
y := box yPosition.
|
|
1055 |
|
109
|
1056 |
box "addAbortButton;" addOkButton.
|
112
|
1057 |
macroTextView topInset:(l preferredExtent y + 5).
|
107
|
1058 |
macroTextView bottomInset:(box preferredExtent y - y).
|
|
1059 |
|
|
1060 |
box showAtPointer.
|
|
1061 |
|
|
1062 |
box accepted ifTrue:[
|
112
|
1063 |
"no action yet ..."
|
107
|
1064 |
]
|
|
1065 |
!
|
|
1066 |
|
94
|
1067 |
compilerSettings
|
100
|
1068 |
|box warnings warnSTX warnUnderscore warnOldStyle allowUnderscore immutableArrays
|
110
|
1069 |
warnSTXBox warnUnderscoreBox warnOldStyleBox
|
113
|
1070 |
loadBinaries compileLazy catchRedefs
|
110
|
1071 |
stcCompilation compilationList stcCompilationOptions
|
113
|
1072 |
warnEnabler compileEnabler check|
|
100
|
1073 |
|
|
1074 |
warnings := Compiler warnings asValue.
|
93
|
1075 |
|
|
1076 |
warnSTX := Compiler warnSTXSpecials asValue.
|
100
|
1077 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
|
|
1078 |
warnOldStyle := Compiler warnOldStyleAssignment asValue.
|
93
|
1079 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
|
|
1080 |
immutableArrays := Compiler arraysAreImmutable asValue.
|
110
|
1081 |
stcCompilationOptions := #( always default never).
|
|
1082 |
stcCompilation := SelectionInList new list:(resources array:#('always' 'primitive code only' 'never')).
|
|
1083 |
stcCompilation selectionIndex:2.
|
93
|
1084 |
|
113
|
1085 |
loadBinaries := Smalltalk loadBinaries asValue.
|
|
1086 |
compileLazy := Autoload compileLazy asValue.
|
|
1087 |
catchRedefs := Class catchMethodRedefinitions asValue.
|
|
1088 |
|
|
1089 |
warnEnabler := Plug new.
|
|
1090 |
warnEnabler
|
100
|
1091 |
respondTo:#check
|
|
1092 |
with:[warnings value ifTrue:[
|
|
1093 |
warnSTXBox enable.
|
|
1094 |
warnOldStyleBox enable.
|
|
1095 |
allowUnderscore value ifTrue:[
|
|
1096 |
warnUnderscoreBox enable.
|
|
1097 |
] ifFalse:[
|
|
1098 |
warnUnderscoreBox disable.
|
|
1099 |
].
|
|
1100 |
] ifFalse:[
|
|
1101 |
warnSTXBox disable.
|
|
1102 |
warnUnderscoreBox disable.
|
|
1103 |
warnOldStyleBox disable.
|
|
1104 |
]].
|
|
1105 |
|
113
|
1106 |
compileEnabler := Plug new.
|
|
1107 |
compileEnabler
|
|
1108 |
respondTo:#check
|
|
1109 |
with:[|off|
|
|
1110 |
ObjectFileLoader isNil ifTrue:[
|
|
1111 |
off := true
|
|
1112 |
] ifFalse:[
|
|
1113 |
Compiler canCreateMachineCode ifFalse:[
|
|
1114 |
off := true
|
|
1115 |
] ifTrue:[
|
|
1116 |
off := loadBinaries value not
|
|
1117 |
]
|
|
1118 |
].
|
|
1119 |
off ifTrue:[
|
|
1120 |
stcCompilation selectionIndex:3.
|
|
1121 |
compilationList disable.
|
|
1122 |
] ifFalse:[
|
|
1123 |
compilationList enable.
|
|
1124 |
]].
|
|
1125 |
|
|
1126 |
warnings onChangeSend:#check to:warnEnabler.
|
|
1127 |
allowUnderscore onChangeSend:#check to:warnEnabler.
|
100
|
1128 |
|
93
|
1129 |
box := DialogBox new.
|
106
|
1130 |
box label:(resources string:'Compiler settings').
|
93
|
1131 |
|
113
|
1132 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
|
|
1133 |
box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs.
|
100
|
1134 |
box addHorizontalLine.
|
|
1135 |
|
116
|
1136 |
check := box addCheckBox:(resources string:'load binary objects, if present') on:loadBinaries.
|
110
|
1137 |
compilationList := box addPopUpList:(resources string:'compilation to machine code') on:stcCompilation.
|
|
1138 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
|
113
|
1139 |
|
110
|
1140 |
box addVerticalSpace.
|
|
1141 |
box addHorizontalLine.
|
113
|
1142 |
|
|
1143 |
ObjectFileLoader isNil ifTrue:[
|
|
1144 |
loadBinaries value:false.
|
|
1145 |
check disable
|
|
1146 |
].
|
|
1147 |
loadBinaries onChangeSend:#check to:compileEnabler.
|
110
|
1148 |
|
|
1149 |
"/ if there is no compiler around,
|
|
1150 |
"/ change to compile nothing, and disable the checkBoxes
|
|
1151 |
Compiler canCreateMachineCode ifFalse:[
|
117
|
1152 |
loadBinaries value:false.
|
110
|
1153 |
stcCompilation selectionIndex:3.
|
117
|
1154 |
check disable.
|
110
|
1155 |
compilationList disable.
|
|
1156 |
].
|
|
1157 |
|
113
|
1158 |
box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
|
|
1159 |
box addVerticalSpace.
|
|
1160 |
box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
|
|
1161 |
box addHorizontalLine.
|
|
1162 |
|
106
|
1163 |
box addCheckBox:(resources string:'warnings') on:warnings.
|
100
|
1164 |
box addVerticalSpace.
|
|
1165 |
box leftIndent:30.
|
106
|
1166 |
warnSTXBox := box addCheckBox:(resources string:'ST/X language extensions') on:warnSTX.
|
100
|
1167 |
box addVerticalSpace.
|
106
|
1168 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
|
100
|
1169 |
box addVerticalSpace.
|
106
|
1170 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
|
100
|
1171 |
box addVerticalSpace.
|
|
1172 |
box leftIndent:0.
|
93
|
1173 |
|
96
|
1174 |
box addAbortButton; addOkButton.
|
100
|
1175 |
|
113
|
1176 |
warnEnabler check.
|
93
|
1177 |
box showAtPointer.
|
|
1178 |
|
96
|
1179 |
box accepted ifTrue:[
|
100
|
1180 |
Compiler warnings:warnings value.
|
93
|
1181 |
Compiler warnSTXSpecials:warnSTX value.
|
100
|
1182 |
Compiler warnOldStyleAssignment:warnOldStyle value.
|
|
1183 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value.
|
93
|
1184 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value.
|
|
1185 |
Compiler arraysAreImmutable:immutableArrays value.
|
113
|
1186 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
|
|
1187 |
Smalltalk loadBinaries:loadBinaries value.
|
|
1188 |
Autoload compileLazy:compileLazy value.
|
|
1189 |
Class catchMethodRedefinitions:catchRedefs value.
|
110
|
1190 |
]
|
|
1191 |
!
|
|
1192 |
|
|
1193 |
messageSettings
|
|
1194 |
|box vmInfo vmErrors classInfos|
|
|
1195 |
|
|
1196 |
vmInfo := ObjectMemory infoPrinting asValue.
|
|
1197 |
vmErrors := ObjectMemory debugPrinting asValue.
|
|
1198 |
classInfos := Object infoPrinting asValue.
|
|
1199 |
|
|
1200 |
box := DialogBox new.
|
|
1201 |
box label:(resources string:'Messages').
|
|
1202 |
"/ box extent:200@300.
|
|
1203 |
|
|
1204 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo.
|
|
1205 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors.
|
|
1206 |
box addHorizontalLine.
|
|
1207 |
|
|
1208 |
box addCheckBox:(resources string:'Other info messages') on:classInfos.
|
|
1209 |
|
|
1210 |
box addAbortButton; addOkButton.
|
|
1211 |
box showAtPointer.
|
|
1212 |
|
|
1213 |
box accepted ifTrue:[
|
|
1214 |
ObjectMemory infoPrinting:vmInfo value.
|
|
1215 |
ObjectMemory debugPrinting:vmErrors value.
|
|
1216 |
Object infoPrinting:classInfos value.
|
93
|
1217 |
]
|
94
|
1218 |
!
|
|
1219 |
|
|
1220 |
miscSettings
|
113
|
1221 |
|box check logDoits shadows updChanges|
|
94
|
1222 |
|
|
1223 |
logDoits := Smalltalk logDoits asValue.
|
100
|
1224 |
shadows := PopUpView shadows asValue.
|
102
|
1225 |
updChanges := Class updatingChanges asValue.
|
94
|
1226 |
|
|
1227 |
box := DialogBox new.
|
106
|
1228 |
box label:(resources string:'Other settings').
|
|
1229 |
"/ box extent:200@300.
|
94
|
1230 |
|
106
|
1231 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
|
|
1232 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
|
100
|
1233 |
box addHorizontalLine.
|
102
|
1234 |
|
106
|
1235 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows.
|
94
|
1236 |
|
96
|
1237 |
box addAbortButton; addOkButton.
|
94
|
1238 |
box showAtPointer.
|
|
1239 |
|
96
|
1240 |
box accepted ifTrue:[
|
94
|
1241 |
Smalltalk logDoits:logDoits value.
|
100
|
1242 |
PopUpView shadows:shadows value.
|
102
|
1243 |
Class updateChanges:updChanges value.
|
94
|
1244 |
]
|
90
|
1245 |
! !
|
|
1246 |
|
86
|
1247 |
!NewLauncher methodsFor:'infoview update'!
|
|
1248 |
|
|
1249 |
info
|
100
|
1250 |
|project projectName projectDir packageName|
|
86
|
1251 |
|
93
|
1252 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[
|
88
|
1253 |
projectName := '* none *'.
|
|
1254 |
projectDir := '.'.
|
100
|
1255 |
packageName := '* none *'.
|
86
|
1256 |
] ifFalse:[
|
88
|
1257 |
projectName := project name.
|
|
1258 |
projectDir := project directory.
|
100
|
1259 |
packageName := project packageName.
|
86
|
1260 |
].
|
|
1261 |
|
|
1262 |
^ resources
|
105
|
1263 |
string:'project: ''%1'' fileOut to: ''%3'' package: ''%2'''
|
100
|
1264 |
withArgs:(Array
|
|
1265 |
with:projectName
|
|
1266 |
with:packageName
|
|
1267 |
with:(projectDir contractTo:30))
|
86
|
1268 |
! !
|
|
1269 |
|
|
1270 |
!NewLauncher methodsFor:'actions - about & help'!
|
|
1271 |
|
93
|
1272 |
toggleActiveHelp:aBoolean
|
|
1273 |
ActiveHelp notNil ifTrue:[
|
|
1274 |
helpIsOn := aBoolean.
|
|
1275 |
helpIsOn ifTrue:[
|
|
1276 |
ActiveHelp start
|
|
1277 |
] ifFalse:[
|
|
1278 |
ActiveHelp stop
|
|
1279 |
]
|
|
1280 |
].
|
|
1281 |
!
|
|
1282 |
|
86
|
1283 |
about
|
|
1284 |
|box|
|
|
1285 |
|
|
1286 |
box := AboutBox new.
|
|
1287 |
box autoHideAfter:10 with:[].
|
|
1288 |
box showAtCenter
|
|
1289 |
!
|
|
1290 |
|
89
|
1291 |
startDocumentationTool
|
105
|
1292 |
"
|
|
1293 |
although that one is not yet finished,
|
|
1294 |
its better than nothing ...
|
|
1295 |
"
|
|
1296 |
XtHTML notNil ifTrue:[
|
108
|
1297 |
"
|
|
1298 |
temporary kludge;
|
|
1299 |
not all machines can autoload binaries;
|
|
1300 |
however, on my SGI (which can) we want it
|
|
1301 |
to load automatically.
|
|
1302 |
"
|
|
1303 |
XtHTML isLoaded ifFalse:[
|
|
1304 |
(OperatingSystem getSystemType = 'iris') ifTrue:[
|
|
1305 |
XtHTML autoload
|
|
1306 |
]
|
|
1307 |
].
|
|
1308 |
XtHTML isLoaded ifTrue:[
|
|
1309 |
XtHTML openFull.
|
|
1310 |
^ self
|
|
1311 |
].
|
105
|
1312 |
].
|
89
|
1313 |
|
106
|
1314 |
self warn:'Sorry, the ST/X HTML reader is not (yet)
|
116
|
1315 |
included in this architectures release.
|
108
|
1316 |
|
106
|
1317 |
Please use Mosaic, netscape, chimera or any
|
116
|
1318 |
other HTML viewer to see the documentation.
|
|
1319 |
|
|
1320 |
The documentation is found in the ''doc/online'' directory.'.
|
86
|
1321 |
! !
|
|
1322 |
|
|
1323 |
!NewLauncher methodsFor:'actions - tools'!
|
|
1324 |
|
|
1325 |
startProcessMonitor
|
|
1326 |
ProcessMonitor open
|
|
1327 |
!
|
|
1328 |
|
|
1329 |
startMemoryMonitor
|
|
1330 |
MemoryMonitor open
|
|
1331 |
!
|
|
1332 |
|
93
|
1333 |
startEventMonitor
|
|
1334 |
EventMonitor open
|
|
1335 |
!
|
|
1336 |
|
86
|
1337 |
startMemoryUsageView
|
|
1338 |
MemoryUsageView open
|
|
1339 |
!
|
|
1340 |
|
|
1341 |
startWindowTreeView
|
|
1342 |
|v|
|
|
1343 |
|
|
1344 |
v := self pickAView.
|
|
1345 |
v notNil ifTrue:[
|
93
|
1346 |
WindowTreeView openOn:v topView
|
86
|
1347 |
]
|
|
1348 |
!
|
|
1349 |
|
93
|
1350 |
fullScreenHardcopy
|
|
1351 |
"after a second (to allow redraw of views under menu ...),
|
|
1352 |
save the contents of the whole screen."
|
|
1353 |
|
|
1354 |
Processor addTimedBlock:[
|
|
1355 |
self saveScreenImage:(Image fromScreen) defaultName:'screen'
|
|
1356 |
] afterSeconds:1
|
|
1357 |
!
|
|
1358 |
|
|
1359 |
startFullWindowTreeView
|
|
1360 |
WindowTreeView open
|
|
1361 |
!
|
|
1362 |
|
|
1363 |
viewInspect
|
86
|
1364 |
|v|
|
|
1365 |
|
|
1366 |
v := self pickAView.
|
|
1367 |
v notNil ifTrue:[
|
88
|
1368 |
v topView inspect
|
86
|
1369 |
]
|
|
1370 |
|
|
1371 |
!
|
|
1372 |
|
|
1373 |
viewDestroy
|
|
1374 |
|v|
|
|
1375 |
|
|
1376 |
v := self pickAView.
|
|
1377 |
v notNil ifTrue:[
|
88
|
1378 |
v topView destroy
|
86
|
1379 |
]
|
93
|
1380 |
!
|
86
|
1381 |
|
93
|
1382 |
screenHardcopy
|
|
1383 |
"after a second (to allow redraw of views under menu ...),
|
|
1384 |
let user specify a rectangular area on the screen
|
|
1385 |
and save its contents."
|
|
1386 |
|
|
1387 |
|area|
|
|
1388 |
|
|
1389 |
Processor addTimedBlock:[
|
|
1390 |
area := Rectangle fromUser.
|
|
1391 |
(area width > 0 and:[area height > 0]) ifTrue:[
|
|
1392 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
|
|
1393 |
]
|
|
1394 |
] afterSeconds:1
|
|
1395 |
!
|
|
1396 |
|
|
1397 |
viewHardcopy
|
|
1398 |
"after a second (to allow redraw of views under menu ...),
|
|
1399 |
let user specify a view and save its contents."
|
|
1400 |
|
|
1401 |
Processor addTimedBlock:[
|
|
1402 |
|v|
|
|
1403 |
|
106
|
1404 |
v := Screen current viewFromUser.
|
93
|
1405 |
v notNil ifTrue:[
|
|
1406 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
|
|
1407 |
]
|
|
1408 |
] afterSeconds:1
|
86
|
1409 |
! !
|
|
1410 |
|
|
1411 |
!NewLauncher methodsFor:'actions - goodies'!
|
|
1412 |
|
|
1413 |
startNewsTool
|
|
1414 |
NewsView open
|
|
1415 |
!
|
|
1416 |
|
|
1417 |
startMailTool
|
|
1418 |
MailView open
|
|
1419 |
!
|
|
1420 |
|
|
1421 |
startClock
|
|
1422 |
RoundClock open
|
|
1423 |
!
|
|
1424 |
|
|
1425 |
startCalendar
|
|
1426 |
Calendar open
|
|
1427 |
! !
|
|
1428 |
|
|
1429 |
!NewLauncher methodsFor:'change & update'!
|
|
1430 |
|
|
1431 |
update:something with:aParameter from:changedObject
|
|
1432 |
((something == #currentProject)
|
|
1433 |
or:[changedObject == Project]) ifTrue:[
|
|
1434 |
self changed:#info.
|
|
1435 |
^ self
|
|
1436 |
].
|
|
1437 |
! !
|
|
1438 |
|
|
1439 |
!NewLauncher methodsFor:'actions - file'!
|
|
1440 |
|
|
1441 |
snapshot
|
|
1442 |
|saveBox|
|
|
1443 |
|
|
1444 |
saveBox := EnterBox title:(resources at:'filename for image:') withCRs.
|
|
1445 |
saveBox okText:(resources at:'save').
|
|
1446 |
saveBox action:[:fileName |
|
|
1447 |
(ObjectMemory snapShotOn:fileName) ifFalse:[
|
|
1448 |
"
|
|
1449 |
snapshot failed for some reason (disk full, no permission etc.)
|
|
1450 |
"
|
|
1451 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)').
|
|
1452 |
]
|
|
1453 |
].
|
|
1454 |
|
|
1455 |
saveBox initialText:(ObjectMemory nameForSnapshot).
|
|
1456 |
saveBox label:'save image'.
|
|
1457 |
saveBox showAtPointer
|
|
1458 |
|
|
1459 |
!
|
|
1460 |
|
|
1461 |
exit
|
|
1462 |
(self confirm:(resources string:'Are you certain you want to exit without saving ?'))
|
|
1463 |
ifTrue:[
|
100
|
1464 |
self saveAllViews.
|
86
|
1465 |
Smalltalk exit
|
|
1466 |
]
|
|
1467 |
!
|
|
1468 |
|
|
1469 |
snapshotAndExit
|
|
1470 |
|saveBox|
|
|
1471 |
|
|
1472 |
saveBox := EnterBox title:(resources at:'filename for image:') withCRs.
|
|
1473 |
saveBox okText:(resources at:'save & exit').
|
|
1474 |
saveBox action:[:fileName |
|
|
1475 |
(ObjectMemory snapShotOn:fileName) ifFalse:[
|
|
1476 |
"
|
|
1477 |
snapshot failed for some reason (disk full, no permission etc.)
|
|
1478 |
Do NOT exit in this case.
|
|
1479 |
"
|
|
1480 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)').
|
|
1481 |
] ifTrue:[
|
|
1482 |
"
|
100
|
1483 |
saveAllViews tells all views to shutdown neatly
|
86
|
1484 |
(i.e. offer a chance to save the contents to a file).
|
|
1485 |
|
|
1486 |
This is NOT required - all data should be in the snapshot ...
|
|
1487 |
... however, if remote disks/mountable filesystems are involved,
|
|
1488 |
which may not be present the next time, it may make sense to
|
|
1489 |
uncomment it and query for saving - time will show which is better.
|
|
1490 |
"
|
|
1491 |
"
|
100
|
1492 |
self saveAllViews.
|
86
|
1493 |
"
|
|
1494 |
Smalltalk exit
|
|
1495 |
]
|
|
1496 |
].
|
|
1497 |
|
|
1498 |
saveBox initialText:(ObjectMemory nameForSnapshot).
|
|
1499 |
saveBox label:'save image & exit'.
|
|
1500 |
saveBox showAtPointer
|
|
1501 |
|
118
|
1502 |
!
|
|
1503 |
|
|
1504 |
objectModuleDialog
|
|
1505 |
|loadedModules
|
|
1506 |
box l unloadButton
|
|
1507 |
moduleList list1 listView1
|
|
1508 |
frame y|
|
|
1509 |
|
|
1510 |
loadedModules := ObjectFileLoader loadedObjectFiles asOrderedCollection.
|
|
1511 |
|
|
1512 |
list1 := SelectionInList with:loadedModules.
|
|
1513 |
|
|
1514 |
box := Dialog new.
|
|
1515 |
box label:(resources string:'Unloadable binary objectModules').
|
|
1516 |
|
|
1517 |
frame := View new.
|
|
1518 |
frame extent:400 @ 300.
|
|
1519 |
frame borderWidth:0.
|
|
1520 |
|
|
1521 |
listView1 := HVScrollableView for:SelectionInListView in:frame.
|
|
1522 |
listView1 model:list1.
|
|
1523 |
listView1 origin:0.0@0.0 corner:1.0@1.0; inset:2.
|
|
1524 |
|
|
1525 |
frame topInset:box yPosition.
|
|
1526 |
box addComponent:frame withExtent:350@200.
|
|
1527 |
box makeTabable:listView1.
|
|
1528 |
frame origin:0.0@0.0 corner:1.0@1.0.
|
|
1529 |
|
|
1530 |
unloadButton := Button label:(resources string:'unload').
|
|
1531 |
unloadButton action:[
|
|
1532 |
|module|
|
|
1533 |
module := list1 selection.
|
|
1534 |
module notNil ifTrue:[
|
|
1535 |
ObjectFileLoader unloadObjectFile:module.
|
|
1536 |
loadedModules := ObjectFileLoader loadedObjectFiles asOrderedCollection.
|
|
1537 |
list1 list:loadedModules.
|
|
1538 |
loadedModules isEmpty ifTrue:[unloadButton disable].
|
|
1539 |
]
|
|
1540 |
].
|
|
1541 |
loadedModules isEmpty ifTrue:[unloadButton disable].
|
|
1542 |
box addButton:unloadButton.
|
|
1543 |
box addAbortButtonLabelled:(resources string:'close').
|
|
1544 |
|
|
1545 |
y := box yPosition.
|
|
1546 |
frame bottomInset:(box preferredExtent y - y).
|
|
1547 |
|
|
1548 |
box showAtPointer.
|
|
1549 |
|
|
1550 |
box accepted ifTrue:[
|
|
1551 |
"no action yet ..."
|
|
1552 |
]
|
86
|
1553 |
! !
|
|
1554 |
|
|
1555 |
!NewLauncher methodsFor:'actions - projects'!
|
|
1556 |
|
|
1557 |
newProject
|
93
|
1558 |
Project notNil ifTrue:[
|
|
1559 |
(ProjectView for:(Project new)) open
|
|
1560 |
]
|
86
|
1561 |
!
|
|
1562 |
|
|
1563 |
selectProject
|
|
1564 |
|list box|
|
|
1565 |
|
93
|
1566 |
Project notNil ifTrue:[
|
|
1567 |
list := Project allInstances.
|
|
1568 |
box := ListSelectionBox new.
|
|
1569 |
box list:(list collect:[:p | p name]).
|
|
1570 |
box title:(resources string:'select a project').
|
|
1571 |
box action:[:selection |
|
|
1572 |
|project|
|
86
|
1573 |
|
93
|
1574 |
project := list detect:[:p | p name = selection] ifNone:[nil].
|
|
1575 |
project isNil ifTrue:[
|
106
|
1576 |
Transcript showCr:'no such project.'
|
93
|
1577 |
] ifFalse:[
|
|
1578 |
project showViews.
|
|
1579 |
Project current:project
|
|
1580 |
]
|
|
1581 |
].
|
|
1582 |
box showAtPointer
|
|
1583 |
]
|
86
|
1584 |
! !
|
|
1585 |
|
|
1586 |
!NewLauncher methodsFor:'private'!
|
|
1587 |
|
106
|
1588 |
reopenLauncher
|
|
1589 |
"for now (since style & language settings currently do
|
|
1590 |
not affect living views ...)"
|
|
1591 |
|
|
1592 |
|contents|
|
|
1593 |
|
|
1594 |
contents := Transcript endEntry; contents.
|
|
1595 |
self class open.
|
|
1596 |
Transcript contents:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor
|
|
1597 |
!
|
|
1598 |
|
100
|
1599 |
saveAllViews
|
86
|
1600 |
"tell each topview that we are going to terminate and give it chance
|
|
1601 |
to save its contents."
|
|
1602 |
|
|
1603 |
ObjectMemory changed:#aboutToExit
|
|
1604 |
!
|
|
1605 |
|
|
1606 |
pickAView
|
|
1607 |
|v|
|
|
1608 |
|
|
1609 |
(Delay forSeconds:1) wait.
|
106
|
1610 |
v := Screen current viewFromUser.
|
86
|
1611 |
v isNil ifTrue:[
|
88
|
1612 |
self warn:'sorry, this is not a smalltalk view'.
|
|
1613 |
^ nil
|
86
|
1614 |
].
|
|
1615 |
^ v
|
93
|
1616 |
!
|
|
1617 |
|
|
1618 |
saveScreenImage:anImage defaultName:defaultName
|
|
1619 |
"save an image into a file
|
|
1620 |
- ask user for filename using a fileSelectionBox."
|
|
1621 |
|
|
1622 |
|fileName|
|
|
1623 |
|
|
1624 |
fileName := Dialog
|
|
1625 |
requestFileName:'save image in:'
|
|
1626 |
default:(defaultName , '.tiff')
|
|
1627 |
ok:'save'
|
|
1628 |
abort:'abort'
|
|
1629 |
pattern:'*.tiff'.
|
|
1630 |
|
|
1631 |
fileName notNil ifTrue:[
|
|
1632 |
anImage saveOn:fileName
|
|
1633 |
].
|
86
|
1634 |
! !
|
|
1635 |
|
90
|
1636 |
!NewLauncher methodsFor:'actions - demos'!
|
|
1637 |
|
|
1638 |
openDemo:className
|
|
1639 |
(Smalltalk at:className) open
|
|
1640 |
|
|
1641 |
!
|
|
1642 |
|
|
1643 |
startTicTacToe
|
|
1644 |
TicTacToe open
|
|
1645 |
!
|
|
1646 |
|
|
1647 |
startTetris
|
|
1648 |
Tetris open
|
|
1649 |
! !
|
|
1650 |
|
86
|
1651 |
!NewLauncher methodsFor:'help'!
|
|
1652 |
|
|
1653 |
helpTextFor:aComponent
|
|
1654 |
|sel|
|
|
1655 |
|
|
1656 |
aComponent == transcript ifTrue:[
|
88
|
1657 |
^ resources string:'this is the Transcript.\It is used to send\messages to the user.'
|
|
1658 |
].
|
|
1659 |
|
|
1660 |
aComponent == infoView ifTrue:[
|
|
1661 |
^ resources string:'this shows the name of the current\project and the directory\where a fileOut operation writes the file.'
|
86
|
1662 |
].
|
|
1663 |
|
|
1664 |
(buttonPanel subViews includes:aComponent) ifTrue:[
|
88
|
1665 |
"kludge: look for its change selector"
|
94
|
1666 |
sel := aComponent changeMessage.
|
88
|
1667 |
sel == #startSystemBrowser ifTrue:[
|
|
1668 |
^ resources string:'opens a\SystemBrowser'
|
|
1669 |
].
|
|
1670 |
sel == #startFileBrowser ifTrue:[
|
|
1671 |
^ resources string:'opens a\FileBrowser'
|
|
1672 |
].
|
86
|
1673 |
].
|
|
1674 |
^ nil
|
|
1675 |
! !
|