author | Claus Gittinger <cg@exept.de> |
Sun, 12 May 1996 15:37:12 +0200 | |
changeset 538 | 43effd124313 |
parent 537 | 9af64613ec8c |
child 549 | 4ed344b70424 |
permissions | -rw-r--r-- |
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 |
|
13 |
ApplicationModel subclass:#NewLauncher |
|
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
14 |
instanceVariableNames:'myMenu buttonPanel transcript infoView infoProcess helpIsOn' |
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
15 |
classVariableNames:'CachedAboutIcon' |
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
16 |
poolDictionaries:'' |
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
17 |
category:'Interface-Smalltalk' |
86 | 18 |
! |
19 |
||
88 | 20 |
!NewLauncher class methodsFor:'documentation'! |
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
105 | 36 |
customization |
37 |
" |
|
38 |
Of course, it is possible to change the NewLauncher class itself |
|
39 |
as appropriate, however, we suggest you create a subclass (say MyLauncher), |
|
524 | 40 |
define it as autoloaded in the patches file, and redefine some methods |
41 |
in that class. |
|
42 |
That way, your changes are easier to reintroduce in case of an ST/X upgrade. |
|
105 | 43 |
|
44 |
||
45 |
adding more buttons to the button-panel: |
|
46 |
||
47 |
see the method #buttonPanelSpec; |
|
524 | 48 |
it defines a list of selectors and icons, which is used by |
49 |
#setupButtonPanelIn:. |
|
50 |
There, for each entry, a button with that icon is created, |
|
51 |
which sends a selector-message to the launcher. |
|
52 |
||
53 |
Add entries to that list, and define appropriate methods. |
|
54 |
For example, to add a button which opens a drawTool, |
|
55 |
change #buttonPanelSpec to: |
|
56 |
||
57 |
buttonPanelSpec |
|
58 |
^ #( |
|
59 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
|
60 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
61 |
#(nil nil) |
|
62 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
63 |
#(nil nil) |
|
64 |
#(nil nil) |
|
65 |
#(startDrawTool 'DrawTool.xbm') |
|
66 |
) |
|
67 |
||
68 |
the panel adjusts its height as appropriate - you may want to |
|
69 |
create new (small) icons for a good look. |
|
105 | 70 |
|
71 |
adding an entry to a menu: |
|
72 |
||
524 | 73 |
see the #setupMenu method; either add another top-menu, or |
74 |
add entries to an existing menu. |
|
88 | 75 |
" |
219 | 76 |
! |
77 |
||
78 |
documentation |
|
79 |
" |
|
80 |
a new launcher, combining old Launchers menu and transcript into |
|
81 |
one view. (you no longer have to move two views around all the time ...). |
|
82 |
||
83 |
Also, this app makes first use of the new compatibility framework; |
|
84 |
you will notice, that this is a subclass of ApplicationModel. |
|
85 |
New applications will no longer be built as subclasses of standardSystemView. |
|
511 | 86 |
|
87 |
[author:] |
|
88 |
Claus Gittinger |
|
219 | 89 |
" |
88 | 90 |
! ! |
91 |
||
86 | 92 |
!NewLauncher class methodsFor:'defaults'! |
93 |
||
94 |
aboutIcon |
|
95 |
|image| |
|
96 |
||
97 |
CachedAboutIcon notNil ifTrue:[^ CachedAboutIcon]. |
|
98 |
||
99 |
image := Image fromFile:'SmalltalkX.xbm'. |
|
92 | 100 |
image notNil ifTrue:[ |
86 | 101 |
|green dark| |
102 |
||
103 |
Display hasColors ifTrue:[ |
|
105 | 104 |
green := (Color red:0 green:80 blue:20) "darkened". |
86 | 105 |
dark := Color grey:10. |
102 | 106 |
image photometric:#palette. |
86 | 107 |
] ifFalse:[ |
100 | 108 |
dark := Color black. |
109 |
green := Color white. |
|
102 | 110 |
image photometric:#blackIs0. |
86 | 111 |
]. |
102 | 112 |
image colorMap:(Array with:dark with:green). |
144 | 113 |
"/ Display depth > 2 ifTrue:[ |
114 |
"/ image := (Image implementorForDepth:Display depth) fromImage:image. |
|
115 |
"/ ] |
|
86 | 116 |
]. |
117 |
CachedAboutIcon := image. |
|
118 |
^ image |
|
119 |
||
120 |
" |
|
92 | 121 |
CachedAboutIcon := nil. |
122 |
NewLauncher aboutIcon |
|
123 |
" |
|
144 | 124 |
|
125 |
"Modified: 20.10.1995 / 21:54:58 / cg" |
|
219 | 126 |
! |
127 |
||
368 | 128 |
buttonImageSize |
490 | 129 |
"images in buttonPanel are sized to this. |
130 |
Can be redefined in subclasses to return nil (no scaling) |
|
131 |
or any other useful size" |
|
132 |
||
133 |
^ 32@32 |
|
134 |
||
135 |
"Modified: 19.4.1996 / 16:36:17 / cg" |
|
368 | 136 |
! |
137 |
||
219 | 138 |
smallAboutIcon |
139 |
|image| |
|
140 |
||
141 |
image := self aboutIcon. |
|
142 |
image notNil ifTrue:[ |
|
143 |
image := image magnifiedBy:0.4. |
|
144 |
]. |
|
145 |
^ image |
|
146 |
||
147 |
" |
|
148 |
CachedAboutIcon := nil. |
|
149 |
NewLauncher aboutIcon. |
|
150 |
NewLauncher smallAboutIcon. |
|
151 |
" |
|
152 |
! ! |
|
153 |
||
154 |
!NewLauncher methodsFor:'actions - about & help'! |
|
155 |
||
156 |
about |
|
157 |
|box| |
|
158 |
||
159 |
box := AboutBox new. |
|
160 |
box autoHideAfter:10 with:[]. |
|
161 |
box showAtCenter |
|
162 |
! |
|
163 |
||
164 |
showDocumentation:aRelativeDocFilePath |
|
165 |
" |
|
166 |
although that one is not yet finished, |
|
167 |
its better than nothing ... |
|
168 |
" |
|
169 |
XtHTML notNil ifTrue:[ |
|
170 |
" |
|
171 |
temporary kludge; |
|
172 |
not all machines can autoload binaries; |
|
173 |
however, on my SGI (which can) we want it |
|
174 |
to load automatically. |
|
175 |
" |
|
176 |
XtHTML isLoaded ifFalse:[ |
|
177 |
(OperatingSystem getSystemType = 'iris') ifTrue:[ |
|
178 |
ErrorSignal catch:[XtHTML autoload] |
|
179 |
] |
|
180 |
]. |
|
181 |
XtHTML isLoaded ifTrue:[ |
|
182 |
XtHTML openFullOnDocumentationFile:aRelativeDocFilePath. |
|
183 |
^ self |
|
184 |
]. |
|
185 |
]. |
|
186 |
||
187 |
self warn:'Sorry, the ST/X HTML reader is not (yet) |
|
188 |
included in this architectures release. |
|
189 |
||
190 |
Please use Mosaic, netscape, chimera or any |
|
191 |
other HTML viewer to see the documentation. |
|
192 |
||
193 |
The documentation is found in the ''doc/online'' directory.'. |
|
194 |
||
195 |
"Modified: 31.8.1995 / 13:11:08 / claus" |
|
196 |
! |
|
197 |
||
496 | 198 |
startClassDocumentation |
199 |
self showDocumentation:'classDoc/TOP.html' |
|
200 |
||
201 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
202 |
"Created: 22.4.1996 / 21:03:56 / cg" |
|
203 |
! |
|
204 |
||
483 | 205 |
startDocumentationIndex |
206 |
self showDocumentation:'index.html' |
|
207 |
||
208 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
209 |
"Created: 17.4.1996 / 22:08:55 / cg" |
|
210 |
! |
|
211 |
||
219 | 212 |
startDocumentationTool |
213 |
self showDocumentation:'TOP.html' |
|
214 |
||
215 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
216 |
! |
|
217 |
||
218 |
toggleActiveHelp:aBoolean |
|
219 |
ActiveHelp notNil ifTrue:[ |
|
220 |
helpIsOn := aBoolean. |
|
221 |
helpIsOn ifTrue:[ |
|
222 |
ActiveHelp start |
|
223 |
] ifFalse:[ |
|
224 |
ActiveHelp stop |
|
225 |
] |
|
226 |
]. |
|
227 |
! ! |
|
228 |
||
229 |
!NewLauncher methodsFor:'actions - classes'! |
|
230 |
||
231 |
browseImplementors |
|
232 |
|enterBox| |
|
233 |
||
234 |
enterBox := EnterBox title:(resources at:'Browse implementors of:') withCRs. |
|
235 |
enterBox okText:(resources at:'browse'). |
|
236 |
enterBox action:[:selectorName | |
|
237 |
|cls| |
|
238 |
||
239 |
self withWaitCursorDo:[SystemBrowser browseImplementorsOf:selectorName] |
|
240 |
]. |
|
241 |
enterBox showAtPointer |
|
242 |
! |
|
243 |
||
244 |
browseSenders |
|
245 |
|enterBox| |
|
246 |
||
247 |
enterBox := EnterBox title:(resources at:'Browse senders of:') withCRs. |
|
248 |
enterBox okText:(resources at:'browse'). |
|
249 |
enterBox action:[:selectorName | |
|
250 |
|cls| |
|
251 |
||
252 |
self withWaitCursorDo:[SystemBrowser browseAllCallsOn:selectorName] |
|
253 |
]. |
|
254 |
enterBox showAtPointer |
|
255 |
! |
|
256 |
||
257 |
startChangesBrowser |
|
258 |
self withWaitCursorDo:[ChangesBrowser open] |
|
259 |
! |
|
260 |
||
261 |
startClassBrowser |
|
262 |
SystemBrowser askThenBrowseClass |
|
263 |
! |
|
264 |
||
265 |
startClassHierarchyBrowser |
|
266 |
SystemBrowser askThenBrowseClassHierarchy |
|
267 |
! |
|
268 |
||
269 |
startClassTreeView |
|
270 |
self withWaitCursorDo:[ClassTreeGraphView open] |
|
271 |
! |
|
272 |
||
273 |
startFileBrowser |
|
274 |
self withWaitCursorDo:[FileBrowser open] |
|
275 |
! |
|
276 |
||
277 |
startFullClassBrowser |
|
278 |
SystemBrowser askThenBrowseFullClassProtocol |
|
279 |
! |
|
280 |
||
490 | 281 |
startJavaBrowser |
282 |
JavaBrowser notNil ifTrue:[ |
|
283 |
self withWaitCursorDo:[JavaBrowser open] |
|
284 |
] |
|
285 |
||
286 |
"Created: 18.4.1996 / 15:55:44 / cg" |
|
287 |
"Modified: 19.4.1996 / 16:39:08 / cg" |
|
288 |
! |
|
289 |
||
219 | 290 |
startSystemBrowser |
291 |
self withWaitCursorDo:[SystemBrowser open] |
|
292 |
! |
|
293 |
||
294 |
startWorkspace |
|
295 |
Workspace open |
|
296 |
! ! |
|
297 |
||
298 |
!NewLauncher methodsFor:'actions - demos'! |
|
299 |
||
300 |
openDemo:className |
|
536
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
301 |
|cls| |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
302 |
|
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
303 |
cls := Smalltalk at:className. |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
304 |
cls isNil ifTrue:[ |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
305 |
self warn:'sorry, the ' , className , ' class is not available.'. |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
306 |
] ifFalse:[ |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
307 |
Autoload autoloadFailedSignal handle:[:ex | |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
308 |
self warn:'sorry, the ' , className , ' class seems to be not available.' |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
309 |
] do:[ |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
310 |
(Smalltalk at:className) open |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
311 |
] |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
312 |
] |
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
313 |
|
a56ee0a5abdd
show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents:
524
diff
changeset
|
314 |
"Modified: 10.5.1996 / 15:56:47 / cg" |
219 | 315 |
! |
316 |
||
317 |
startTetris |
|
318 |
Tetris open |
|
319 |
! |
|
320 |
||
321 |
startTicTacToe |
|
322 |
TicTacToeGame open |
|
323 |
! |
|
324 |
||
325 |
startTicTacToe2 |
|
326 |
TicTacToeGame open2UserGame |
|
327 |
! ! |
|
328 |
||
329 |
!NewLauncher methodsFor:'actions - file'! |
|
330 |
||
331 |
exit |
|
332 |
(self confirm:(resources string:'Are you certain you want to exit without saving ?')) |
|
333 |
ifTrue:[ |
|
334 |
self saveAllViews. |
|
335 |
Smalltalk exit |
|
336 |
] |
|
337 |
! |
|
338 |
||
339 |
objectModuleDialog |
|
340 |
|allModules moduleNames |
|
341 |
allObjects methodObjects methodNames |
|
342 |
box l unloadButton |
|
343 |
list1 list2 listView1 listView2 |
|
344 |
y panel showBuiltIn showModules showMethods moduleListUpdater check| |
|
345 |
||
346 |
showBuiltIn := true asValue. |
|
347 |
showModules := ObjectFileLoader notNil asValue. |
|
348 |
showMethods := ObjectFileLoader notNil asValue. |
|
349 |
||
350 |
moduleListUpdater := Plug new. |
|
351 |
moduleListUpdater |
|
458 | 352 |
respondTo:#getModules |
353 |
with:[ |
|
354 |
|l| |
|
219 | 355 |
|
458 | 356 |
l := Array new. |
357 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
358 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
359 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
360 |
allModules := allModules select:[:i | |
|
361 |
|wantToSee| |
|
219 | 362 |
|
458 | 363 |
wantToSee := (i at:#dynamic). |
364 |
showBuiltIn value ifTrue:[ |
|
365 |
wantToSee := wantToSee not |
|
366 |
]. |
|
367 |
wantToSee |
|
368 |
] |
|
369 |
]. |
|
370 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
371 |
allModules sort:[:a :b | (a at:#id) > (b at:#id)]. |
|
372 |
moduleNames := allModules collect:[:entry | (entry at:#name)]. |
|
373 |
l := l , moduleNames. |
|
374 |
]. |
|
375 |
showMethods value ifTrue:[ |
|
376 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
377 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
378 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
379 |
'compiled method - removed' , ' (in ' , mH pathName , ')' |
|
380 |
] ifFalse:[ |
|
381 |
'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')' |
|
382 |
]. |
|
383 |
]. |
|
384 |
l := l , methodNames. |
|
385 |
]. |
|
386 |
list1 list:l. |
|
387 |
unloadButton disable. |
|
388 |
]. |
|
219 | 389 |
|
390 |
list1 := SelectionInList new. |
|
391 |
list2 := SelectionInList new. |
|
392 |
||
393 |
showBuiltIn onChangeSend:#getModules to:moduleListUpdater. |
|
394 |
showModules onChangeSend:#getModules to:moduleListUpdater. |
|
395 |
showMethods onChangeSend:#getModules to:moduleListUpdater. |
|
396 |
||
397 |
box := Dialog new. |
|
398 |
box label:(resources string:'Module dialog'). |
|
399 |
||
400 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
401 |
listView1 model:list1. |
|
402 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
403 |
listView1 action:[:sel | |
|
458 | 404 |
|info classNames tabs| |
219 | 405 |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
406 |
box withWaitCursorDo:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
407 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
408 |
info := allModules at:sel ifAbsent:nil. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
409 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
410 |
info isNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
411 |
"/ selected a method |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
412 |
list2 list:#(). |
458 | 413 |
unloadButton enable. |
414 |
] ifFalse:[ |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
415 |
"/ selected a package |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
416 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
417 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6). |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
418 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
419 |
"/ fill bottom list with class-info |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
420 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
421 |
classNames := (info at:#classNames) asSortedCollection. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
422 |
classNames := classNames collect:[:cName | |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
423 |
|cls entry rev listEntry| |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
424 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
425 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
426 |
listEntry colAt:1 put:cName. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
427 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
428 |
cls := Smalltalk classNamed:cName. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
429 |
cls isNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
430 |
listEntry colAt:2 put:'(class removed)'. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
431 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
432 |
rev := cls binaryRevision. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
433 |
rev notNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
434 |
cls isLoaded ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
435 |
entry := '(stub for: ' , rev. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
436 |
] ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
437 |
entry :='(bin: ' , rev. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
438 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
439 |
cls revision ~= rev ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
440 |
entry := entry , ' / src: ' , cls revision |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
441 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
442 |
listEntry colAt:2 put:entry , ')' |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
443 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
444 |
cls revision notNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
445 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
446 |
] |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
447 |
] |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
448 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
449 |
listEntry |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
450 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
451 |
list2 list:classNames. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
452 |
(info at:#dynamic) ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
453 |
unloadButton enable. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
454 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
455 |
unloadButton disable. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
456 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
457 |
] |
458 | 458 |
] |
219 | 459 |
]. |
460 |
||
461 |
panel := HorizontalPanelView new. |
|
462 |
||
245 | 463 |
panel add:(l := Label label:'modules shown:'). |
219 | 464 |
l adjust:#left; borderWidth:0. |
347 | 465 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
466 |
box makeTabable:check. |
|
219 | 467 |
panel add:(check := CheckBox label:'modules' model:showModules). |
347 | 468 |
ObjectFileLoader isNil ifTrue:[ |
458 | 469 |
check disable |
347 | 470 |
] ifFalse:[ |
458 | 471 |
box makeTabable:check. |
347 | 472 |
]. |
219 | 473 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
347 | 474 |
ObjectFileLoader isNil ifTrue:[ |
458 | 475 |
check disable |
347 | 476 |
] ifFalse:[ |
458 | 477 |
box makeTabable:check. |
347 | 478 |
]. |
219 | 479 |
|
480 |
panel horizontalLayout:#fitSpace. |
|
458 | 481 |
"/ panel horizontalLayout:#leftSpace. |
219 | 482 |
|
347 | 483 |
box addComponent:panel tabable:false. |
219 | 484 |
|
347 | 485 |
box addVerticalSpace. |
219 | 486 |
box addComponent:listView1 tabable:true. |
487 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
488 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
489 |
||
490 |
l := box addTextLabel:(resources string:'contained classes/subsets:'). |
|
491 |
l adjust:#left; borderWidth:0. |
|
492 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
493 |
l topInset:(View viewSpacing). |
|
494 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
495 |
||
496 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
497 |
listView2 model:list2; printItems:false. |
|
498 |
box addComponent:listView2 tabable:true. |
|
499 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
500 |
listView2 disable. |
|
501 |
||
502 |
unloadButton := Button label:(resources string:'unload'). |
|
503 |
unloadButton action:[ |
|
458 | 504 |
self withWaitCursorDo:[ |
505 |
box withWaitCursorDo:[ |
|
506 |
|info idx pathName| |
|
219 | 507 |
|
458 | 508 |
idx := list1 selectionIndex. |
509 |
info := allModules at:idx ifAbsent:nil. |
|
219 | 510 |
|
458 | 511 |
info isNil ifTrue:[ |
512 |
"/ selected a method |
|
513 |
idx := idx - allModules size. |
|
514 |
pathName := (methodObjects at:idx) pathName. |
|
219 | 515 |
|
458 | 516 |
] ifFalse:[ |
517 |
"/ selected a package |
|
518 |
pathName := (info at:#pathName). |
|
519 |
]. |
|
520 |
ObjectFileLoader unloadObjectFile:pathName. |
|
521 |
moduleListUpdater getModules. |
|
522 |
unloadButton disable. |
|
523 |
] |
|
524 |
] |
|
219 | 525 |
]. |
526 |
moduleListUpdater getModules. |
|
527 |
||
528 |
box addButton:unloadButton. |
|
529 |
box addAbortButtonLabelled:(resources string:'close'). |
|
530 |
||
531 |
y := box yPosition. |
|
532 |
listView2 topInset:(l preferredExtent y + 5). |
|
533 |
listView2 bottomInset:(box preferredExtent y - y). |
|
534 |
||
458 | 535 |
"/ box width:(400 min:(box device width * 2 // 3)); |
536 |
"/ height:(450 min:(box device height - 50)); |
|
537 |
"/ sizeFixed:true. |
|
219 | 538 |
box showAtPointer. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
539 |
box destroy. |
219 | 540 |
|
541 |
"Modified: 17.9.1995 / 16:47:50 / claus" |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
542 |
"Modified: 6.4.1996 / 23:56:46 / cg" |
219 | 543 |
! |
544 |
||
545 |
snapshot |
|
546 |
|saveBox| |
|
547 |
||
548 |
saveBox := EnterBox title:(resources at:'filename for image:') withCRs. |
|
549 |
saveBox okText:(resources at:'save'). |
|
550 |
saveBox action:[:fileName | |
|
404 | 551 |
(ObjectMemory snapShotOn:fileName) ifFalse:[ |
552 |
" |
|
553 |
snapshot failed for some reason (disk full, no permission etc.) |
|
554 |
" |
|
555 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
|
556 |
] |
|
219 | 557 |
]. |
558 |
||
559 |
saveBox initialText:(ObjectMemory nameForSnapshot). |
|
404 | 560 |
saveBox label:(resources string:'save image'). |
219 | 561 |
saveBox showAtPointer |
562 |
||
404 | 563 |
"Modified: 27.2.1996 / 01:15:44 / cg" |
219 | 564 |
! |
565 |
||
566 |
snapshotAndExit |
|
567 |
|saveBox| |
|
568 |
||
569 |
saveBox := EnterBox title:(resources at:'filename for image:') withCRs. |
|
570 |
saveBox okText:(resources at:'save & exit'). |
|
571 |
saveBox action:[:fileName | |
|
404 | 572 |
(ObjectMemory snapShotOn:fileName) ifFalse:[ |
573 |
" |
|
574 |
snapshot failed for some reason (disk full, no permission etc.) |
|
575 |
Do NOT exit in this case. |
|
576 |
" |
|
577 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
|
578 |
] ifTrue:[ |
|
579 |
" |
|
580 |
saveAllViews tells all views to shutdown neatly |
|
581 |
(i.e. offer a chance to save the contents to a file). |
|
219 | 582 |
|
404 | 583 |
This is NOT required - all data should be in the snapshot ... |
584 |
... however, if remote disks/mountable filesystems are involved, |
|
585 |
which may not be present the next time, it may make sense to |
|
586 |
uncomment it and query for saving - time will show which is better. |
|
587 |
" |
|
219 | 588 |
" |
404 | 589 |
self saveAllViews. |
219 | 590 |
" |
404 | 591 |
Smalltalk exit |
592 |
] |
|
219 | 593 |
]. |
594 |
||
595 |
saveBox initialText:(ObjectMemory nameForSnapshot). |
|
404 | 596 |
saveBox label:(resources string:'save image & exit'). |
219 | 597 |
saveBox showAtPointer |
598 |
||
404 | 599 |
"Modified: 27.2.1996 / 01:14:15 / cg" |
219 | 600 |
! ! |
601 |
||
602 |
!NewLauncher methodsFor:'actions - goodies'! |
|
603 |
||
604 |
startCalendar |
|
605 |
Calendar open |
|
606 |
! |
|
607 |
||
608 |
startClock |
|
609 |
RoundClock open |
|
610 |
! |
|
611 |
||
612 |
startMailTool |
|
613 |
MailView open |
|
614 |
! |
|
615 |
||
616 |
startNewsTool |
|
617 |
NewsView open |
|
618 |
! ! |
|
619 |
||
620 |
!NewLauncher methodsFor:'actions - projects'! |
|
621 |
||
622 |
newProject |
|
623 |
Project notNil ifTrue:[ |
|
624 |
(ProjectView for:(Project new)) open |
|
625 |
] |
|
626 |
! |
|
627 |
||
628 |
selectProject |
|
629 |
|list box| |
|
630 |
||
631 |
Project notNil ifTrue:[ |
|
632 |
list := Project allInstances. |
|
633 |
box := ListSelectionBox new. |
|
634 |
box list:(list collect:[:p | p name]). |
|
635 |
box title:(resources string:'select a project'). |
|
636 |
box action:[:selection | |
|
637 |
|project| |
|
638 |
||
639 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
|
640 |
project isNil ifTrue:[ |
|
641 |
Transcript showCr:'no such project.' |
|
642 |
] ifFalse:[ |
|
643 |
project showViews. |
|
644 |
Project current:project |
|
645 |
] |
|
646 |
]. |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
647 |
box showAtPointer. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
648 |
box destroy |
219 | 649 |
] |
86 | 650 |
! ! |
651 |
||
219 | 652 |
!NewLauncher methodsFor:'actions - settings'! |
653 |
||
654 |
compilerSettings |
|
655 |
|box warnings warnSTX warnUnderscore warnOldStyle allowUnderscore immutableArrays |
|
656 |
warnSTXBox warnUnderscoreBox warnOldStyleBox |
|
657 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
658 |
stcLibraries historyLines sourceMode catchRedefs keepSourceOptions keepSource |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
659 |
foldConstants constantFoldingOptions constantFolding |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
660 |
warnEnabler check component oldIndent| |
219 | 661 |
|
662 |
warnings := Compiler warnings asValue. |
|
663 |
||
664 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
665 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
666 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
667 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
|
668 |
immutableArrays := Compiler arraysAreImmutable asValue. |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
669 |
|
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
670 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
671 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
672 |
constantFolding selectionIndex:3. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
673 |
|
219 | 674 |
stcCompilationOptions := #( always default never). |
675 |
stcCompilation := SelectionInList new list:(resources array:#('always' 'primitive code only' 'never')). |
|
676 |
stcCompilation selectionIndex:2. |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
677 |
|
219 | 678 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
679 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
680 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
232 | 681 |
ObjectFileLoader notNil ifTrue:[ |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
682 |
stcLibraries := (String fromStringCollection:ObjectFileLoader searchedLibraries separatedBy:' ') asValue. |
232 | 683 |
]. |
219 | 684 |
|
685 |
catchRedefs := Class catchMethodRedefinitions asValue. |
|
686 |
historyLines := (HistoryManager notNil and:[HistoryManager isActive]) asValue. |
|
687 |
||
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
688 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
689 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
690 |
keepSource selectionIndex:1. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
691 |
|
219 | 692 |
warnEnabler := Plug new. |
693 |
warnEnabler |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
694 |
respondTo:#check |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
695 |
with:[warnings value ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
696 |
warnSTXBox enable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
697 |
warnOldStyleBox enable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
698 |
allowUnderscore value ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
699 |
warnUnderscoreBox enable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
700 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
701 |
warnUnderscoreBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
702 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
703 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
704 |
warnSTXBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
705 |
warnUnderscoreBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
706 |
warnOldStyleBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
707 |
]]. |
219 | 708 |
|
709 |
warnings onChangeSend:#check to:warnEnabler. |
|
710 |
allowUnderscore onChangeSend:#check to:warnEnabler. |
|
711 |
||
712 |
box := DialogBox new. |
|
713 |
box label:(resources string:'Compiler settings'). |
|
714 |
||
715 |
box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs. |
|
716 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
717 |
HistoryManager isNil ifTrue:[check disable]. |
|
718 |
||
378 | 719 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
720 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
721 |
|
219 | 722 |
box addHorizontalLine. |
723 |
||
232 | 724 |
ObjectFileLoader notNil ifTrue:[ |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
725 |
compilationList := box addPopUpList:(resources string:'compilation to machine code') on:stcCompilation. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
726 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
219 | 727 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
728 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
729 |
addLabelledInputField:(resources string:'stc include directories:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
730 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
731 |
on:stcIncludes |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
732 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
733 |
separateAtX:0.5. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
734 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
735 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
736 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
737 |
"/ component := box addTextLabel:(resources string:'stc include directories:'). |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
738 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
739 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
740 |
"/ component := box addInputFieldOn:stcIncludes tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
741 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
219 | 742 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
743 |
box addVerticalSpace. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
744 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
745 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
746 |
addLabelledInputField:(resources string:'stc defines:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
747 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
748 |
on:stcDefines |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
749 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
750 |
separateAtX:0.5. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
751 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
752 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
753 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
754 |
"/ component := box addTextLabel:'stc defines:'. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
755 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
756 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
757 |
"/ component := box addInputFieldOn:stcDefines tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
758 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
219 | 759 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
760 |
box addVerticalSpace. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
761 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
762 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
763 |
addLabelledInputField:(resources string:'stc options:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
764 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
765 |
on:stcOptions |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
766 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
767 |
separateAtX:0.5. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
768 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
769 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
770 |
"/ component := box addTextLabel:'stc options:'. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
771 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
772 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
773 |
"/ component := box addInputFieldOn:stcOptions tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
774 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
219 | 775 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
776 |
box addVerticalSpace. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
777 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
778 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
779 |
addLabelledInputField:(resources string:'stc C-libraries:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
780 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
781 |
on:stcLibraries |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
782 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
783 |
separateAtX:0.5. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
784 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
785 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
786 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
787 |
"/ component := box addTextLabel:'stc C-libraries:'. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
788 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
789 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
790 |
"/ component := box addInputFieldOn:stcLibraries tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
791 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
219 | 792 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
793 |
box addVerticalSpace. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
794 |
box addHorizontalLine. |
219 | 795 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
796 |
"/ if there is no compiler around, |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
797 |
"/ change to compile nothing, and disable the checkBoxes |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
798 |
Compiler canCreateMachineCode ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
799 |
stcCompilation selectionIndex:3. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
800 |
compilationList disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
801 |
]. |
219 | 802 |
]. |
803 |
||
378 | 804 |
box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
805 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
806 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
807 |
box addVerticalSpace. |
219 | 808 |
box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
809 |
box addVerticalSpace. |
|
810 |
box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
|
811 |
box addHorizontalLine. |
|
812 |
||
813 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
814 |
box addVerticalSpace. |
|
343 | 815 |
oldIndent := box leftIndent. |
219 | 816 |
box leftIndent:30. |
817 |
warnSTXBox := box addCheckBox:(resources string:'ST/X language extensions') on:warnSTX. |
|
818 |
box addVerticalSpace. |
|
819 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
|
820 |
box addVerticalSpace. |
|
821 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
|
822 |
box addVerticalSpace. |
|
343 | 823 |
box leftIndent:oldIndent. |
219 | 824 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
825 |
box |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
826 |
addHelpButtonFor:'NewLauncher/compilerSettings.html'; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
827 |
addAbortButton; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
828 |
addOkButton. |
219 | 829 |
|
830 |
warnEnabler check. |
|
831 |
box showAtPointer. |
|
832 |
||
833 |
box accepted ifTrue:[ |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
834 |
HistoryManager notNil ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
835 |
historyLines value ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
836 |
HistoryManager activate |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
837 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
838 |
HistoryManager deactivate |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
839 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
840 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
841 |
Class catchMethodRedefinitions:catchRedefs value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
842 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
843 |
Compiler warnings:warnings value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
844 |
Compiler warnSTXSpecials:warnSTX value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
845 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
846 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
847 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
848 |
Compiler arraysAreImmutable:immutableArrays value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
849 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
850 |
Compiler stcCompilationIncludes:stcIncludes value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
851 |
Compiler stcCompilationDefines:stcDefines value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
852 |
Compiler stcCompilationOptions:stcOptions value. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
853 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
854 |
ObjectFileLoader notNil ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
855 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
856 |
] |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
857 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
858 |
box destroy |
219 | 859 |
|
860 |
"Modified: 10.9.1995 / 19:19:18 / claus" |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
861 |
"Modified: 13.4.1996 / 13:51:37 / cg" |
219 | 862 |
! |
863 |
||
398 | 864 |
fontSettings |
406 | 865 |
(self fontBoxForEncoding:nil) ifTrue:[ |
866 |
self reopenLauncher. |
|
867 |
] |
|
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
868 |
|
398 | 869 |
"Created: 26.2.1996 / 22:52:51 / cg" |
406 | 870 |
"Modified: 27.2.1996 / 02:05:05 / cg" |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
871 |
! |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
872 |
|
219 | 873 |
keyboardSetting |
874 |
|mappings listOfRawKeys listOfFunctions |
|
875 |
box l |
|
876 |
list1 list2 listView1 listView2 |
|
877 |
frame selectionForwarder macroForwarder macroTextView y| |
|
878 |
||
879 |
mappings := Screen current keyboardMap. |
|
880 |
||
881 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
882 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
883 |
||
884 |
selectionForwarder := Plug new. |
|
885 |
selectionForwarder respondTo:#showFunction |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
886 |
with:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
887 |
|raw| |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
888 |
raw := list1 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
889 |
list2 retractInterestsFor:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
890 |
list2 selection:(mappings at:raw asSymbol) asString. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
891 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
892 |
]. |
219 | 893 |
selectionForwarder respondTo:#showRawKey |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
894 |
with:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
895 |
|f raw| |
219 | 896 |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
897 |
f := list2 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
898 |
list1 retractInterestsFor:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
899 |
raw := mappings keyAtValue:f asString. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
900 |
raw isNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
901 |
raw := mappings keyAtValue:f first. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
902 |
raw isNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
903 |
raw := mappings keyAtValue:f asSymbol. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
904 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
905 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
906 |
list1 selection:raw. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
907 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
908 |
]. |
219 | 909 |
|
910 |
macroForwarder := Plug new. |
|
911 |
macroForwarder respondTo:#showMacro |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
912 |
with:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
913 |
|f macro indent| |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
914 |
f := list2 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
915 |
(f startsWith:'Cmd') ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
916 |
f := f copyFrom:4 |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
917 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
918 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
919 |
macro notNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
920 |
macro := macro asStringCollection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
921 |
indent := macro |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
922 |
inject:99999 into:[:min :element | |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
923 |
|stripped| |
219 | 924 |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
925 |
stripped := element withoutLeadingSeparators. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
926 |
stripped size == 0 ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
927 |
min |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
928 |
] ifFalse:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
929 |
min min:(element size - stripped size) |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
930 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
931 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
932 |
indent ~~ 0 ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
933 |
macro := macro collect:[:line | |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
934 |
line size > indent ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
935 |
line copyFrom:indent+1 |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
936 |
] ifFalse:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
937 |
line |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
938 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
939 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
940 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
941 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
942 |
macroTextView contents:macro. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
943 |
]. |
219 | 944 |
|
945 |
list1 := SelectionInList with:listOfRawKeys. |
|
946 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
947 |
list2 := SelectionInList with:listOfFunctions. |
|
948 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
949 |
list2 onChangeSend:#showMacro to:macroForwarder. |
|
950 |
||
951 |
box := Dialog new. |
|
952 |
box label:(resources string:'Keyboard mappings'). |
|
953 |
||
954 |
l := box addTextLabel:(resources string:'KEY_MSG') withCRs. |
|
955 |
l adjust:#left; borderWidth:0. |
|
956 |
||
957 |
frame := View new. |
|
958 |
frame extent:300 @ 300. |
|
959 |
frame borderWidth:0. |
|
960 |
||
961 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
962 |
listView1 model:list1. |
|
963 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
964 |
||
965 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
966 |
listView2 model:list2. |
|
967 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
968 |
||
969 |
frame topInset:box yPosition. |
|
970 |
box addComponent:frame withExtent:350@200. |
|
971 |
box makeTabable:listView1. |
|
972 |
box makeTabable:listView2. |
|
973 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
974 |
||
975 |
box addVerticalSpace. |
|
976 |
||
977 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
978 |
l adjust:#left; borderWidth:0. |
|
979 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
980 |
l topInset:(View viewSpacing). |
|
981 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
982 |
||
983 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
984 |
box addComponent:macroTextView tabable:true. |
|
985 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
986 |
y := box yPosition. |
|
987 |
||
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
988 |
box |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
989 |
addHelpButtonFor:'NewLauncher/keyboardSetting.html'; |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
990 |
"addAbortButton;" |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
991 |
addOkButton. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
992 |
|
219 | 993 |
macroTextView topInset:(l preferredExtent y + 5). |
994 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
995 |
||
996 |
box showAtPointer. |
|
997 |
||
998 |
box accepted ifTrue:[ |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
999 |
"no action yet ..." |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1000 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1001 |
box destroy |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1002 |
|
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1003 |
"Modified: 2.3.1996 / 16:59:14 / cg" |
219 | 1004 |
! |
1005 |
||
1006 |
languageSetting |
|
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1007 |
|listOfLanguages translatedLanguages idx language box| |
219 | 1008 |
|
1009 |
" |
|
410 | 1010 |
get list of supported languages from the launchers resources ... |
219 | 1011 |
" |
410 | 1012 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1013 |
translatedLanguages := resources array:listOfLanguages. |
219 | 1014 |
|
1015 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs. |
|
1016 |
box label:(resources string:'Language selection'). |
|
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1017 |
box list:translatedLanguages. |
219 | 1018 |
box initialText:(Language). |
1019 |
box action:[:newLanguage | |
|
410 | 1020 |
self withWaitCursorDo:[ |
1021 |
Transcript showCr:'change language to ' , newLanguage , ' ...'. |
|
1022 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
1023 |
idx ~~ 0 ifTrue:[ |
|
1024 |
language := listOfLanguages at:idx |
|
1025 |
] ifFalse:[ |
|
1026 |
language := newLanguage |
|
1027 |
]. |
|
514
e48fbcbc358d
do not directly access the Language variable
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
1028 |
Smalltalk language:language asSymbol. |
410 | 1029 |
ResourcePack flushCachedResourcePacks |
1030 |
]. |
|
1031 |
self reopenLauncher. |
|
219 | 1032 |
]. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1033 |
box |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1034 |
addHelpButtonFor:'NewLauncher/languageSetting.html'. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1035 |
box showAtPointer. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1036 |
box destroy |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1037 |
|
514
e48fbcbc358d
do not directly access the Language variable
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
1038 |
"Modified: 26.4.1996 / 17:13:18 / cg" |
219 | 1039 |
! |
1040 |
||
341 | 1041 |
memorySettings |
1042 |
|box check igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
440 | 1043 |
compressLimit |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1044 |
oldIncr component fields| |
341 | 1045 |
|
1046 |
"/ |
|
1047 |
"/ extract relevant system settings ... |
|
1048 |
"/ |
|
1049 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
1050 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
1051 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
1052 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
1053 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
440 | 1054 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
341 | 1055 |
|
1056 |
"/ |
|
1057 |
"/ create a box on those values ... |
|
1058 |
"/ |
|
1059 |
fields := OrderedCollection new. |
|
1060 |
||
1061 |
box := DialogBox new. |
|
1062 |
box label:(resources string:'Memory manager settings'). |
|
1063 |
||
345 | 1064 |
box addTextLabel:'Warning - invalid settings may result in poor performance. |
341 | 1065 |
|
1066 |
You have been warned.'. |
|
1067 |
box addHorizontalLine. |
|
1068 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1069 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1070 |
addLabelledInputField:(resources string:'size of newSpace:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1071 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1072 |
on:newSpaceSize |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1073 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1074 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1075 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1076 |
component converter:(PrintConverter new initForNumber). |
341 | 1077 |
fields add:component. |
1078 |
||
1079 |
box addHorizontalLine. |
|
1080 |
||
1081 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1082 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1083 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1084 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1085 |
on:igcLimit |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1086 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1087 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1088 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1089 |
component converter:(PrintConverter new initForNumber). |
341 | 1090 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1091 |
|
345 | 1092 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
341 | 1093 |
box addHorizontalLine. |
1094 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1095 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1096 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1097 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1098 |
on:igcFreeLimit |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1099 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1100 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1101 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1102 |
component converter:(PrintConverter new initForNumber). |
341 | 1103 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1104 |
|
341 | 1105 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
1106 |
box addHorizontalLine. |
|
1107 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1108 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1109 |
addLabelledInputField:(resources string:'incremental GC amount:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1110 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1111 |
on:igcFreeAmount |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1112 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1113 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1114 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1115 |
component converter:(PrintConverter new initForNumber). |
341 | 1116 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1117 |
|
345 | 1118 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
341 | 1119 |
box addHorizontalLine. |
1120 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1121 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1122 |
addLabelledInputField:(resources string:'oldspace increment:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1123 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1124 |
on:oldIncr |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1125 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1126 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1127 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1128 |
component converter:(PrintConverter new initForNumber). |
341 | 1129 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1130 |
|
345 | 1131 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
341 | 1132 |
box addHorizontalLine. |
1133 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1134 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1135 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1136 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1137 |
on:compressLimit |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1138 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1139 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1140 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1141 |
component converter:(PrintConverter new initForNumber). |
440 | 1142 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1143 |
|
440 | 1144 |
box addTextLabel:'(suppress compressing GC if more memory is in use)'. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1145 |
box addHorizontalLine. |
440 | 1146 |
|
341 | 1147 |
box addAbortButton; addOkButton. |
1148 |
||
1149 |
"/ |
|
1150 |
"/ show the box ... |
|
1151 |
"/ |
|
1152 |
box showAtPointer. |
|
1153 |
||
1154 |
"/ |
|
1155 |
"/ update system settings |
|
1156 |
"/ |
|
1157 |
box accepted ifTrue:[ |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1158 |
fields do:[:comp | comp accept]. |
341 | 1159 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1160 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1161 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1162 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1163 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1164 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1165 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1166 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1167 |
ObjectMemory incrementalGCLimit:igcLimit value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1168 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1169 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1170 |
ObjectMemory newSpaceSize:newSpaceSize value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1171 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1172 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1173 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1174 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1175 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
341 | 1176 |
]. |
1177 |
box destroy |
|
1178 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1179 |
"Modified: 13.4.1996 / 13:51:23 / cg" |
341 | 1180 |
! |
1181 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1182 |
messageSettings |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1183 |
|box vmInfo vmErrors displayErrors classInfos| |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1184 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1185 |
vmInfo := ObjectMemory infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1186 |
vmErrors := ObjectMemory debugPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1187 |
classInfos := Object infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1188 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1189 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1190 |
box := DialogBox new. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1191 |
box label:(resources string:'Messages'). |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1192 |
"/ box extent:200@300. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1193 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1194 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1195 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1196 |
box addHorizontalLine. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1197 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1198 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1199 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1200 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1201 |
box addAbortButton; addOkButton. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1202 |
box showAtPointer. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1203 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1204 |
box accepted ifTrue:[ |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1205 |
ObjectMemory infoPrinting:vmInfo value. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1206 |
ObjectMemory debugPrinting:vmErrors value. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1207 |
Object infoPrinting:classInfos value. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1208 |
DeviceWorkstation errorPrinting:displayErrors value. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1209 |
]. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1210 |
box destroy |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1211 |
! |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1212 |
|
219 | 1213 |
miscSettings |
327 | 1214 |
|box check logDoits shadows updChanges changeFileName returnFocus |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1215 |
loadBinaries compileLazy hostNameInLabel useManager localSourceFirst |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1216 |
showAccelerators sourceCacheDir cacheEntry |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1217 |
component localCheck oldIndent nm fn| |
219 | 1218 |
|
249 | 1219 |
"/ |
1220 |
"/ extract relevant system settings ... |
|
1221 |
"/ |
|
219 | 1222 |
logDoits := Smalltalk logDoits asValue. |
1223 |
shadows := PopUpView shadows asValue. |
|
1224 |
hostNameInLabel := StandardSystemView includeHostNameInLabel asValue. |
|
327 | 1225 |
returnFocus := Dialog returnFocusWhenClosingModalBoxes asValue. |
219 | 1226 |
updChanges := Class updatingChanges asValue. |
1227 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
249 | 1228 |
useManager := (Smalltalk at:#SourceCodeManager) notNil asValue. |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1229 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
1230 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1231 |
sourceCacheDir := nil asValue. |
219 | 1232 |
|
1233 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
1234 |
compileLazy := Autoload compileLazy asValue. |
|
1235 |
||
249 | 1236 |
"/ |
1237 |
"/ create a box on those values ... |
|
1238 |
"/ |
|
219 | 1239 |
box := DialogBox new. |
1240 |
box label:(resources string:'Other settings'). |
|
1241 |
||
1242 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
|
1243 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
249 | 1244 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1245 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1246 |
addLabelledInputField:(resources string:'change file name:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1247 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1248 |
on:changeFileName |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1249 |
tabable:true |
492 | 1250 |
separateAtX:0.4. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1251 |
component immediateAccept:true; acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1252 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1253 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1254 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1255 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1256 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1257 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1258 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
219 | 1259 |
|
1260 |
box addHorizontalLine. |
|
1261 |
||
1262 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
1263 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
1264 |
ObjectFileLoader isNil ifTrue:[ |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1265 |
loadBinaries value:false. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1266 |
check disable |
219 | 1267 |
]. |
249 | 1268 |
|
250 | 1269 |
check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager. |
343 | 1270 |
oldIndent := box leftIndent. |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1271 |
box leftIndent:30. |
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1272 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1273 |
localCheck enableChannel:useManager. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1274 |
|
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1275 |
cacheEntry := box |
493 | 1276 |
addLabelledInputField:(resources string:'source cache dir:') |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1277 |
adjust:#right |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1278 |
on:sourceCacheDir |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1279 |
tabable:true |
492 | 1280 |
separateAtX:0.4. |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1281 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
343 | 1282 |
box leftIndent:oldIndent. |
521
14e0be643785
disable cacheDir field if no sourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
514
diff
changeset
|
1283 |
cacheEntry enableChannel:useManager. |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1284 |
|
249 | 1285 |
(AbstractSourceCodeManager isNil |
1286 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1287 |
useManager value:false. |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1288 |
cacheEntry disable. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1289 |
check disable. |
505 | 1290 |
localCheck enable. |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1291 |
] ifFalse:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1292 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
249 | 1293 |
]. |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
1294 |
|
219 | 1295 |
box addHorizontalLine. |
1296 |
||
1297 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
327 | 1298 |
box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus. |
219 | 1299 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabel. |
443 | 1300 |
box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators. |
219 | 1301 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1302 |
box |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1303 |
addHelpButtonFor:'NewLauncher/miscSettings.html'; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1304 |
addAbortButton; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1305 |
addOkButton. |
249 | 1306 |
|
1307 |
"/ |
|
1308 |
"/ show the box ... |
|
1309 |
"/ |
|
219 | 1310 |
box showAtPointer. |
1311 |
||
249 | 1312 |
"/ |
1313 |
"/ update system settings |
|
1314 |
"/ |
|
219 | 1315 |
box accepted ifTrue:[ |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1316 |
Smalltalk logDoits:logDoits value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1317 |
PopUpView shadows:shadows value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1318 |
Class updateChanges:updChanges value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1319 |
Autoload compileLazy:compileLazy value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1320 |
Smalltalk loadBinaries:loadBinaries value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1321 |
StandardSystemView includeHostNameInLabel:hostNameInLabel value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1322 |
ObjectMemory nameForChanges:changeFileName value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1323 |
Dialog returnFocusWhenClosingModalBoxes:returnFocus value. |
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
1324 |
MenuView showAcceleratorKeys:showAccelerators value. |
327 | 1325 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1326 |
useManager value ifTrue:[ |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1327 |
(Smalltalk at:#SourceCodeManager) isNil ifTrue:[ |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1328 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager) |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1329 |
]. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1330 |
Class tryLocalSourceFirst:(localSourceFirst value). |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1331 |
nm := sourceCacheDir value. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1332 |
(fn := nm asFilename) exists ifFalse:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1333 |
(self confirm:(nm , ' does not exists\create ?' withCRs)) ifTrue:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1334 |
fn makeDirectory; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1335 |
makeReadableForAll; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1336 |
makeWritableForAll; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1337 |
makeExecutableForAll. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1338 |
] |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1339 |
]. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1340 |
(fn exists |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1341 |
and:[fn isDirectory |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1342 |
and:[fn isReadable |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1343 |
and:[fn isWritable]]]) ifTrue:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1344 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1345 |
] |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1346 |
] ifFalse:[ |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1347 |
Smalltalk at:#SourceCodeManager put:nil |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1348 |
] |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1349 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1350 |
box destroy |
219 | 1351 |
|
521
14e0be643785
disable cacheDir field if no sourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
514
diff
changeset
|
1352 |
"Modified: 30.4.1996 / 09:23:12 / cg" |
219 | 1353 |
! |
1354 |
||
347 | 1355 |
printerSettings |
1356 |
|box |
|
1357 |
possiblePrinters possibleTypes printerType printCommand printerList |
|
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1358 |
check y component oldIndent commandList| |
347 | 1359 |
|
1360 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
1361 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
1362 |
||
1363 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
1364 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
1365 |
printCommand := Printer printCommand asValue. |
|
1366 |
||
1367 |
box := DialogBox new. |
|
1368 |
box label:(resources string:'Printer settings'). |
|
1369 |
||
378 | 1370 |
printerList := box addPopUpList:(resources string:'printer type:') on:printerType. |
347 | 1371 |
|
1372 |
y := box yPosition. |
|
1373 |
component := box addTextLabel:(resources string:'print command:'). |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1374 |
component width:0.3; adjust:#right; borderWidth:0. |
347 | 1375 |
box yPosition:y. |
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1376 |
component := box addComboBoxOn:printCommand tabable:true. |
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1377 |
"/ component := box addInputFieldOn:printCommand tabable:true. |
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1378 |
component width:0.7; left:0.3; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1379 |
"/ some common print commands ... |
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1380 |
|
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1381 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1382 |
commandList isNil ifTrue:[ |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1383 |
commandList := PrinterStream defaultCommands. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1384 |
commandList isNil ifTrue:[ |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1385 |
commandList := #('lpr' |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1386 |
'lpr -P<your-printer>' |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1387 |
'cat | rsh <printHost> lpr -h' |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1388 |
'cat >xxx ; ghostview xxx' |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1389 |
'cat > printfile' |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1390 |
). |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1391 |
] |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1392 |
]. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1393 |
|
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1394 |
component list:commandList. |
347 | 1395 |
box addVerticalSpace. |
1396 |
||
1397 |
box addAbortButton; addOkButton. |
|
1398 |
box showAtPointer. |
|
1399 |
||
1400 |
box accepted ifTrue:[ |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1401 |
Printer printCommand:printCommand value. |
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1402 |
Printer := possiblePrinters at:(printerType selectionIndex). |
347 | 1403 |
]. |
1404 |
box destroy |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
1405 |
|
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
1406 |
"Modified: 23.4.1996 / 18:23:47 / cg" |
347 | 1407 |
! |
1408 |
||
219 | 1409 |
viewStyleSetting |
1410 |
|listOfStyles resourceDir dir box |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1411 |
list listView scrView infoLabel infoForwarder newStyle| |
219 | 1412 |
|
1413 |
" |
|
1414 |
search resources directory for a list of .style files ... |
|
1415 |
" |
|
1416 |
||
1417 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
|
1418 |
resourceDir isNil ifTrue:[ |
|
345 | 1419 |
self warn:'no styles found (missing ''resources'' directory)'. |
1420 |
^ self |
|
219 | 1421 |
]. |
1422 |
dir := FileDirectory directoryNamed:resourceDir. |
|
1423 |
||
1424 |
listOfStyles := dir select:[:aFileName | aFileName endsWith:'.style']. |
|
1425 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName copyWithoutLast:6]. |
|
1426 |
listOfStyles sort. |
|
1427 |
||
1428 |
"/ old code: used a standard ListSelectionBox |
|
1429 |
"/ changed to intercept selection and add info-output. |
|
1430 |
||
1431 |
"/ box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs. |
|
1432 |
"/ box label:(resources string:'Style selection'). |
|
1433 |
"/ box list:listOfStyles. |
|
1434 |
"/ box initialText:View defaultStyle. |
|
1435 |
"/ box selectAction:[:newStyle | |
|
1436 |
"/ ]. |
|
1437 |
"/ box action:[:newStyle | |
|
1438 |
"/ transcript topView withCursor:Cursor wait do:[ |
|
1439 |
"/ Transcript showCr:'change style to ' , newStyle , ' ...'. |
|
1440 |
"/ View defaultStyle:newStyle asSymbol. |
|
1441 |
"/ ] |
|
1442 |
"/ ]. |
|
1443 |
"/ box showAtPointer |
|
1444 |
||
1445 |
"/ new code: build box 'by 'hand' |
|
1446 |
"/ |
|
1447 |
infoForwarder := Plug new. |
|
1448 |
infoForwarder respondTo:#showInfo |
|
345 | 1449 |
with:[ |
1450 |
|nm sheet comment| |
|
1451 |
nm := list selection. |
|
1452 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
1453 |
comment := sheet at:#comment ifAbsent:''. |
|
1454 |
infoLabel label:comment withCRs asStringCollection |
|
1455 |
]. |
|
219 | 1456 |
|
1457 |
list := SelectionInList with:listOfStyles. |
|
1458 |
list onChangeSend:#showInfo to:infoForwarder. |
|
1459 |
||
1460 |
box := Dialog new. |
|
1461 |
box label:(resources string:'Style selection'). |
|
1462 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1463 |
(box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left. |
219 | 1464 |
listView := SelectionInListView on:list. |
1465 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1466 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1467 |
|
219 | 1468 |
box addVerticalSpace. |
1469 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1470 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
219 | 1471 |
|
1472 |
box addAbortButton; addOkButton. |
|
1473 |
list selection:(View defaultStyle). |
|
1474 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1475 |
box stickAtBottomWithVariableHeight:scrView. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1476 |
box stickAtBottomWithFixHeight:infoLabel. |
219 | 1477 |
box showAtPointer. |
1478 |
||
1479 |
box accepted ifTrue:[ |
|
345 | 1480 |
newStyle := list selection. |
1481 |
newStyle notNil ifTrue:[ |
|
1482 |
self withWaitCursorDo:[ |
|
1483 |
Transcript showCr:'change style to ' , newStyle , ' ...'. |
|
1484 |
View defaultStyle:newStyle asSymbol. |
|
1485 |
]. |
|
1486 |
self reopenLauncher. |
|
1487 |
] |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1488 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1489 |
box destroy |
219 | 1490 |
! ! |
1491 |
||
1492 |
!NewLauncher methodsFor:'actions - tools'! |
|
1493 |
||
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1494 |
compressingGarbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1495 |
ObjectMemory verboseGarbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1496 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1497 |
"Created: 12.5.1996 / 15:30:15 / cg" |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1498 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1499 |
|
219 | 1500 |
fullScreenHardcopy |
1501 |
"after a second (to allow redraw of views under menu ...), |
|
1502 |
save the contents of the whole screen." |
|
1503 |
||
1504 |
Processor addTimedBlock:[ |
|
1505 |
self saveScreenImage:(Image fromScreen) defaultName:'screen' |
|
1506 |
] afterSeconds:1 |
|
1507 |
! |
|
99 | 1508 |
|
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1509 |
garbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1510 |
ObjectMemory reclaimSymbols |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1511 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1512 |
"Created: 12.5.1996 / 15:28:03 / cg" |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1513 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1514 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1515 |
globalGarbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1516 |
ObjectMemory reclaimSymbols |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1517 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1518 |
"Created: 12.5.1996 / 15:28:13 / cg" |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1519 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
1520 |
|
219 | 1521 |
removeAllBreakAndTracePoints |
1522 |
MessageTracer cleanup |
|
1523 |
! |
|
1524 |
||
1525 |
screenHardcopy |
|
1526 |
"after a second (to allow redraw of views under menu ...), |
|
1527 |
let user specify a rectangular area on the screen |
|
1528 |
and save its contents." |
|
1529 |
||
1530 |
|area| |
|
1531 |
||
1532 |
Processor addTimedBlock:[ |
|
1533 |
area := Rectangle fromUser. |
|
1534 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
1535 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
1536 |
] |
|
1537 |
] afterSeconds:1 |
|
1538 |
! |
|
1539 |
||
1540 |
startEventMonitor |
|
1541 |
EventMonitor open |
|
1542 |
! |
|
1543 |
||
1544 |
startFullWindowTreeView |
|
1545 |
WindowTreeView open |
|
1546 |
! |
|
1547 |
||
1548 |
startMemoryMonitor |
|
1549 |
MemoryMonitor open |
|
1550 |
! |
|
1551 |
||
1552 |
startMemoryUsageView |
|
1553 |
MemoryUsageView open |
|
1554 |
! |
|
1555 |
||
1556 |
startProcessMonitor |
|
1557 |
ProcessMonitor open |
|
1558 |
! |
|
1559 |
||
434 | 1560 |
startStopEventTrace |
503 | 1561 |
|v wg| |
434 | 1562 |
|
1563 |
v := Screen current viewFromUser. |
|
1564 |
v notNil ifTrue:[ |
|
1565 |
v := v topView. |
|
503 | 1566 |
wg := v windowGroup. |
1567 |
wg notNil ifTrue:[ |
|
1568 |
"/ |
|
1569 |
"/ toggle eventTrace in its windowGroup |
|
1570 |
"/ |
|
1571 |
wg traceEvents:(wg preEventHook isNil) |
|
434 | 1572 |
] |
1573 |
] |
|
1574 |
||
1575 |
"Created: 7.3.1996 / 14:44:22 / cg" |
|
503 | 1576 |
"Modified: 24.4.1996 / 10:27:11 / cg" |
434 | 1577 |
! |
1578 |
||
219 | 1579 |
startWindowTreeView |
1580 |
|v| |
|
1581 |
||
1582 |
v := self pickAView. |
|
1583 |
v notNil ifTrue:[ |
|
1584 |
WindowTreeView openOn:v topView |
|
1585 |
] |
|
1586 |
! |
|
1587 |
||
1588 |
viewDestroy |
|
1589 |
"let user pick a view and destroy it. |
|
1590 |
Even allow destroying non-smalltalk views |
|
1591 |
(also for views which I forgot due to some error)" |
|
1592 |
||
1593 |
|device p v id| |
|
1594 |
||
1595 |
(Delay forSeconds:1) wait. |
|
1596 |
||
1597 |
device := Screen current. |
|
1598 |
p := device pointFromUser. |
|
1599 |
id := device viewIdFromPoint:p. |
|
1600 |
v := device viewFromId:id. |
|
1601 |
v notNil ifTrue:[ |
|
304
49dc8c0e733e
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
298
diff
changeset
|
1602 |
v topView destroy. |
49dc8c0e733e
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
298
diff
changeset
|
1603 |
^ self |
219 | 1604 |
]. |
1605 |
id = device rootView id ifTrue:[ |
|
304
49dc8c0e733e
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
298
diff
changeset
|
1606 |
^ self |
219 | 1607 |
]. |
298 | 1608 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
219 | 1609 |
ifTrue:[ |
304
49dc8c0e733e
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
298
diff
changeset
|
1610 |
device destroyView:nil withId:id |
219 | 1611 |
]. |
1612 |
||
1613 |
"Modified: 18.9.1995 / 23:13:32 / claus" |
|
298 | 1614 |
"Modified: 14.12.1995 / 22:02:26 / cg" |
219 | 1615 |
! |
1616 |
||
1617 |
viewHardcopy |
|
1618 |
"after a second (to allow redraw of views under menu ...), |
|
1619 |
let user specify a view and save its contents." |
|
1620 |
||
1621 |
Processor addTimedBlock:[ |
|
1622 |
|v| |
|
1623 |
||
1624 |
v := Screen current viewFromUser. |
|
1625 |
v notNil ifTrue:[ |
|
1626 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
1627 |
] |
|
1628 |
] afterSeconds:1 |
|
1629 |
! |
|
1630 |
||
1631 |
viewInspect |
|
1632 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
|
1633 |
||
1634 |
|v| |
|
1635 |
||
1636 |
v := self pickAView. |
|
1637 |
v notNil ifTrue:[ |
|
226 | 1638 |
"/ v topView inspect |
1639 |
v inspect |
|
219 | 1640 |
] |
1641 |
||
1642 |
! ! |
|
1643 |
||
1644 |
!NewLauncher methodsFor:'change & update'! |
|
1645 |
||
1646 |
update:something with:aParameter from:changedObject |
|
1647 |
((something == #currentProject) |
|
1648 |
or:[changedObject == Project]) ifTrue:[ |
|
1649 |
self changed:#info. |
|
1650 |
^ self |
|
1651 |
]. |
|
1652 |
! ! |
|
1653 |
||
1654 |
!NewLauncher methodsFor:'help'! |
|
1655 |
||
1656 |
helpTextFor:aComponent |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1657 |
|sel s buttons| |
219 | 1658 |
|
1659 |
aComponent == transcript ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1660 |
s := 'TRANSCRIPT_HELP' |
219 | 1661 |
]. |
1662 |
||
1663 |
aComponent == infoView ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1664 |
s := 'INFOVIEW_HELP' |
219 | 1665 |
]. |
1666 |
||
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1667 |
buttons := buttonPanel subViews. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1668 |
(buttons notNil and:[buttons includes:aComponent]) ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1669 |
"kludge: look for its change selector" |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1670 |
sel := aComponent changeMessage. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1671 |
sel == #startSystemBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1672 |
s := 'SBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1673 |
]. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1674 |
sel == #startFileBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1675 |
s := 'FBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1676 |
]. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1677 |
sel == #startChangesBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1678 |
s := 'CBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1679 |
]. |
219 | 1680 |
]. |
1681 |
s notNil ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1682 |
^ resources string:s |
219 | 1683 |
]. |
1684 |
^ nil |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1685 |
|
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
1686 |
"Modified: 26.2.1996 / 23:08:19 / cg" |
219 | 1687 |
! ! |
1688 |
||
1689 |
!NewLauncher methodsFor:'infoview update'! |
|
1690 |
||
1691 |
info |
|
1692 |
|project projectName projectDir packageName| |
|
1693 |
||
1694 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
|
1695 |
projectName := '* none *'. |
|
1696 |
projectDir := '.'. |
|
1697 |
packageName := '* none *'. |
|
1698 |
] ifFalse:[ |
|
1699 |
projectName := project name. |
|
1700 |
projectDir := project directory. |
|
1701 |
packageName := project packageName. |
|
1702 |
]. |
|
1703 |
||
1704 |
^ resources |
|
1705 |
string:'project: ''%1'' fileOut to: ''%3'' package: ''%2''' |
|
1706 |
withArgs:(Array |
|
1707 |
with:projectName |
|
1708 |
with:packageName |
|
1709 |
with:(projectDir contractTo:30)) |
|
319
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1710 |
! |
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1711 |
|
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1712 |
showActivity:someMessage |
500 | 1713 |
"some activityNotification to be forwarded to the user; |
1714 |
show it in the transcript here." |
|
1715 |
||
319
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1716 |
Transcript showCr:someMessage; endEntry |
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1717 |
|
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
1718 |
"Created: 23.12.1995 / 12:38:29 / cg" |
500 | 1719 |
"Modified: 23.4.1996 / 21:39:10 / cg" |
99 | 1720 |
! ! |
1721 |
||
93 | 1722 |
!NewLauncher methodsFor:'initialize / release'! |
86 | 1723 |
|
219 | 1724 |
addTopViewsToCurrentProject |
1725 |
"ignored here - the launcher is always global (i.e. not project private)." |
|
1726 |
||
1727 |
^ self |
|
1728 |
! |
|
1729 |
||
1730 |
buttonPanelSpec |
|
1731 |
"return a spec for the buttons in the panel; |
|
1732 |
entries consists of selector and bitmap-filename. |
|
1733 |
nil selectors are taken as separators (see setupButtonPanel)" |
|
98 | 1734 |
|
219 | 1735 |
^ #( |
490 | 1736 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
1737 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1738 |
"/ #(startWorkspace 'Workspace32x32.xbm') |
490 | 1739 |
#(nil nil) |
1740 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
219 | 1741 |
"/ #(nil nil) |
1742 |
"/ #(nil nil) |
|
1743 |
"/ #(startDocumentationTool 'book11.ico') |
|
1744 |
) |
|
230 | 1745 |
|
1746 |
"Created: 4.12.1995 / 20:16:18 / cg" |
|
490 | 1747 |
"Modified: 19.4.1996 / 16:37:46 / cg" |
219 | 1748 |
! |
1749 |
||
1750 |
closeRequest |
|
1751 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
|
1752 |
super closeRequest |
|
1753 |
] |
|
1754 |
! |
|
1755 |
||
1756 |
focusSequence |
|
1757 |
^ (Array with:myMenu) |
|
1758 |
, |
|
1759 |
(buttonPanel subViews select:[:element | element isKindOf:Button]) |
|
1760 |
"/ , (Array with:Transcript) |
|
98 | 1761 |
! |
1762 |
||
93 | 1763 |
openInterface |
98 | 1764 |
"sent by my superclass to open up my interface" |
93 | 1765 |
|
1766 |
|top icn w| |
|
86 | 1767 |
|
1768 |
top := StandardSystemView new. |
|
205 | 1769 |
top label:'Smalltalk/X'; iconLabel:'ST/X Launcher'. |
86 | 1770 |
top extent:(400@300 ). |
1771 |
||
92 | 1772 |
" |
1773 |
temporary kludge for SGI; |
|
1774 |
this will be moved into StandardSystemView and be done |
|
1775 |
automatically soon ... |
|
1776 |
" |
|
106 | 1777 |
Screen current serverVendor = 'Silicon Graphics' ifTrue:[ |
490 | 1778 |
icn := self class aboutIcon. |
1779 |
icn notNil ifTrue:[ |
|
1780 |
icn := icn magnifiedTo:86@68. |
|
1781 |
w := View extent:86@68. "/ icn extent. |
|
1782 |
w viewBackground:icn. |
|
1783 |
top iconView:w |
|
1784 |
] |
|
92 | 1785 |
]. |
1786 |
||
93 | 1787 |
self setupViewsIn:top. |
98 | 1788 |
|
1789 |
top application:self. |
|
86 | 1790 |
|
1791 |
" |
|
92 | 1792 |
open with higher prio to allow interaction even while things |
1793 |
are running ... |
|
86 | 1794 |
" |
92 | 1795 |
top openWithPriority:(Processor userSchedulingPriority + 1). |
490 | 1796 |
|
1797 |
"Modified: 18.4.1996 / 14:56:11 / cg" |
|
93 | 1798 |
! |
86 | 1799 |
|
219 | 1800 |
release |
1801 |
infoProcess notNil ifTrue:[ |
|
1802 |
infoProcess terminate. |
|
1803 |
infoProcess := nil. |
|
1804 |
]. |
|
1805 |
super release |
|
86 | 1806 |
! |
1807 |
||
219 | 1808 |
restarted |
1809 |
"image restart - since WindowGroup recreates the process with |
|
1810 |
default prio, we have to raise the prio again. |
|
1811 |
Mhmh - this looks like a bug to me ..." |
|
86 | 1812 |
|
219 | 1813 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
1814 |
super restarted |
|
86 | 1815 |
! |
1816 |
||
219 | 1817 |
saveAndTerminate |
90 | 1818 |
" |
219 | 1819 |
some windowManagers can send this, to shutDown an application |
1820 |
but let it save its state before, for restart. We are already |
|
1821 |
prepared for this ;-)" |
|
86 | 1822 |
|
219 | 1823 |
self snapshot. |
1824 |
super saveAndTerminate |
|
103 | 1825 |
! |
1826 |
||
86 | 1827 |
setupButtonPanelIn:aTopView |
1828 |
"create the buttonPanel" |
|
1829 |
||
368 | 1830 |
|spc mh buttonSize| |
86 | 1831 |
|
1832 |
spc := View viewSpacing // 2. |
|
1833 |
buttonPanel := HorizontalPanelView in:aTopView. |
|
1834 |
buttonPanel level:-1; borderWidth:0. |
|
1835 |
buttonPanel horizontalLayout:#leftSpace. |
|
1836 |
||
368 | 1837 |
buttonSize := self class buttonImageSize. |
1838 |
||
490 | 1839 |
"/ |
1840 |
"/ the buttonSpec is a collection of: |
|
1841 |
"/ #( selector iconFileName ) |
|
1842 |
"/ or: |
|
1843 |
"/ #( selector (className iconQuerySelector) ) |
|
1844 |
"/ or" |
|
1845 |
"/ #( nil ) |
|
1846 |
"/ |
|
90 | 1847 |
self buttonPanelSpec do:[:entry | |
490 | 1848 |
|sel b sep img iconSpec| |
86 | 1849 |
|
368 | 1850 |
sel := entry at:1. |
1851 |
sel isNil ifTrue:[ |
|
1852 |
sep := View in:buttonPanel. |
|
1853 |
sep extent:32@1; borderWidth:0. |
|
1854 |
] ifFalse:[ |
|
1855 |
b := Button in:buttonPanel. |
|
490 | 1856 |
iconSpec := entry at:2. |
1857 |
iconSpec isArray ifTrue:[ |
|
1858 |
img := (Smalltalk classNamed:(iconSpec at:1)) perform:(iconSpec at:2). |
|
1859 |
] ifFalse:[ |
|
1860 |
img := Image fromFile:iconSpec. |
|
1861 |
]. |
|
368 | 1862 |
buttonSize notNil ifTrue:[ |
1863 |
img := img magnifiedTo:buttonSize |
|
1864 |
]. |
|
1865 |
b form:img. |
|
1866 |
b model:self; changeMessage:sel |
|
1867 |
] |
|
86 | 1868 |
]. |
1869 |
||
100 | 1870 |
mh := myMenu height. |
1871 |
buttonPanel origin:0.0 @ (mh + spc) |
|
368 | 1872 |
corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)). |
86 | 1873 |
|
1874 |
buttonPanel leftInset:spc; rightInset:spc. |
|
490 | 1875 |
|
1876 |
"Modified: 18.4.1996 / 16:06:04 / cg" |
|
86 | 1877 |
! |
1878 |
||
90 | 1879 |
setupDemoMenu |
1880 |
"setup the demo pulldown menu" |
|
1881 |
||
1882 |
|m| |
|
1883 |
||
1884 |
myMenu at:#demos |
|
450 | 1885 |
putLabels:(resources array:#( |
1886 |
'goodies' |
|
1887 |
'games' |
|
1888 |
'geometric designs' |
|
1889 |
'simple animations' |
|
1890 |
'3D graphics' |
|
1891 |
'graphic editors' |
|
1892 |
)) |
|
1893 |
selectors:#( |
|
1894 |
goodies |
|
1895 |
games |
|
1896 |
geometricDesigns |
|
1897 |
simpleAnimations |
|
1898 |
#'3Dgraphics' |
|
1899 |
#graphicEditors |
|
1900 |
) |
|
1901 |
receiver:self. |
|
90 | 1902 |
|
1903 |
" |
|
1904 |
only to show two different ways of defining a popUpMenu, |
|
1905 |
we use labels:selectors:receiver: here: |
|
1906 |
" |
|
1907 |
m := myMenu menuAt:#demos. |
|
1908 |
m subMenuAt:#games |
|
1909 |
put:(PopUpMenu |
|
450 | 1910 |
labels:(resources array:#( |
1911 |
'Tetris' |
|
1912 |
'Tic Tac Toe' |
|
1913 |
'Tic Tac Toe (2 players)' |
|
1914 |
)) |
|
1915 |
selectors:#( |
|
1916 |
startTetris |
|
1917 |
startTicTacToe |
|
1918 |
startTicTacToe2 |
|
1919 |
) |
|
1920 |
receiver:self). |
|
90 | 1921 |
|
1922 |
" |
|
1923 |
and labels:selector:args:receiver: here: |
|
1924 |
" |
|
1925 |
m subMenuAt:#geometricDesigns |
|
1926 |
put:(PopUpMenu |
|
450 | 1927 |
labels:(resources array:#( |
1928 |
'Pen demo' |
|
1929 |
'Commander demo' |
|
1930 |
'-' |
|
1931 |
'Fractal plants demo' |
|
1932 |
'Fractal patterns demo' |
|
1933 |
)) |
|
1934 |
selector:#openDemo: |
|
1935 |
args:#( |
|
1936 |
PenDemo |
|
1937 |
CommanderDemo |
|
1938 |
nil |
|
1939 |
FractalPlantsDemo |
|
1940 |
FractalPatternsDemo |
|
1941 |
) |
|
1942 |
receiver:self). |
|
90 | 1943 |
|
1944 |
m subMenuAt:#simpleAnimations |
|
1945 |
put:(PopUpMenu |
|
450 | 1946 |
labels:(resources array:#( |
1947 |
'Animation' |
|
1948 |
'Globe demo' |
|
1949 |
)) |
|
1950 |
selector:#openDemo: |
|
1951 |
args:#( |
|
1952 |
Animation |
|
1953 |
GlobeDemo |
|
1954 |
) |
|
1955 |
receiver:self). |
|
90 | 1956 |
|
1957 |
m subMenuAt:#'3Dgraphics' |
|
1958 |
put:(PopUpMenu |
|
450 | 1959 |
labels:(resources |
1960 |
array:#( |
|
1961 |
'plane' |
|
1962 |
'tetra' |
|
1963 |
'cube (wireframe)' |
|
1964 |
'cube (solid)' |
|
1965 |
'sphere (wireframe)' |
|
1966 |
'doughnut (wireframe)' |
|
1967 |
'planet' |
|
1968 |
'teapot' |
|
1969 |
'logo' |
|
1970 |
'rubics cube' |
|
1971 |
'x/y graph' |
|
1972 |
'-' |
|
1973 |
'cube (light)' |
|
1974 |
'cube (light & texture)' |
|
1975 |
'sphere (light)' |
|
1976 |
'colored octahedron' |
|
1977 |
)) |
|
1978 |
selector:#openDemo: |
|
1979 |
args:#( |
|
1980 |
GLPlaneDemoView2 |
|
1981 |
GLTetraDemoView |
|
1982 |
GLWireCubeDemoView |
|
1983 |
GLCubeDemoView |
|
1984 |
GLWireSphereDemoView |
|
1985 |
GLDoughnutDemoView |
|
1986 |
GLPlanetDemoView |
|
1987 |
GLTeapotDemo |
|
1988 |
Logo3DView1 |
|
1989 |
RubicsCubeView |
|
1990 |
GLXYGraph |
|
1991 |
nil |
|
1992 |
GLCubeDemoView2 |
|
1993 |
GLBrickCubeDemoView |
|
1994 |
GLSphereDemoView2 |
|
1995 |
GLOctaHedronDemoView |
|
1996 |
) |
|
1997 |
receiver:self). |
|
90 | 1998 |
|
1999 |
m subMenuAt:#graphicEditors |
|
2000 |
put:(PopUpMenu |
|
450 | 2001 |
labels:(resources array:#( |
2002 |
'DrawTool' |
|
2003 |
'LogicTool' |
|
464
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2004 |
'Paint Demo' |
450 | 2005 |
)) |
2006 |
selector:#openDemo: |
|
2007 |
args:#( |
|
2008 |
DrawTool |
|
2009 |
LogicTool |
|
464
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2010 |
ColorDrawDemo3 |
450 | 2011 |
) |
2012 |
receiver:self). |
|
90 | 2013 |
|
91 | 2014 |
m subMenuAt:#goodies |
2015 |
put:(PopUpMenu |
|
450 | 2016 |
labels:(resources array:#( |
2017 |
'clock' |
|
2018 |
'calendar' |
|
464
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2019 |
'calculator' |
450 | 2020 |
'-' |
2021 |
'mail tool' |
|
2022 |
'news tool' |
|
2023 |
)) |
|
2024 |
selector:#openDemo: |
|
2025 |
args:#( |
|
2026 |
Clock |
|
464
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2027 |
Calendar |
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2028 |
CalculatorView |
450 | 2029 |
nil |
2030 |
MailView |
|
2031 |
NewsView |
|
2032 |
) |
|
2033 |
receiver:self). |
|
2034 |
||
464
998161ce250d
added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents:
458
diff
changeset
|
2035 |
"Modified: 11.4.1996 / 00:21:46 / cg" |
90 | 2036 |
! |
2037 |
||
219 | 2038 |
setupInfoViewIn:topView |
2039 |
|spc halfSpc| |
|
2040 |
||
2041 |
spc := View viewSpacing. |
|
2042 |
infoView := Label label:'' in:topView. |
|
2043 |
infoView adjust:#left; borderWidth:0. |
|
2044 |
infoView level:-1. |
|
2045 |
transcript superView bottomInset:(infoView height + spc). |
|
90 | 2046 |
|
219 | 2047 |
infoView is3D ifTrue:[ |
2048 |
halfSpc := spc // 2. |
|
2049 |
] ifFalse:[ |
|
2050 |
halfSpc := 0 |
|
2051 |
]. |
|
2052 |
infoView topInset:(infoView height negated - spc + transcript borderWidth); |
|
2053 |
bottomInset:halfSpc; |
|
2054 |
leftInset:halfSpc; |
|
2055 |
rightInset:halfSpc. |
|
2056 |
infoView origin:0.0 @ 1.0 corner:1.0 @ 1.0. |
|
2057 |
infoView model:self; aspect:#info; labelMessage:#info. |
|
2058 |
||
2059 |
Project notNil ifTrue:[ |
|
2060 |
Project addDependent:self. |
|
2061 |
] |
|
2062 |
||
2063 |
" |
|
2064 |
NewLauncher open |
|
2065 |
" |
|
93 | 2066 |
! |
2067 |
||
219 | 2068 |
setupMenu |
2069 |
"setup the pulldown menu" |
|
2070 |
||
2071 |
|l s icon| |
|
2072 |
||
2073 |
myMenu labels:(resources array:#( |
|
379 | 2074 |
about |
2075 |
file |
|
2076 |
classes |
|
2077 |
tools |
|
2078 |
projects |
|
2079 |
settings |
|
2080 |
demos |
|
2081 |
help)). |
|
219 | 2082 |
" |
2083 |
if there is a bitmap, change 'about' to the ST/X icon |
|
2084 |
" |
|
2085 |
icon := self class smallAboutIcon. |
|
2086 |
icon notNil ifTrue:[ |
|
377 | 2087 |
myMenu labels at:1 put:icon. |
2088 |
myMenu height:(myMenu height max:(icon height + (View viewSpacing * 2))) |
|
93 | 2089 |
]. |
219 | 2090 |
|
2091 |
myMenu selectors:#( |
|
377 | 2092 |
#about |
2093 |
#file |
|
2094 |
#classes |
|
2095 |
#tools |
|
2096 |
#projects |
|
2097 |
#settings |
|
2098 |
#demos |
|
2099 |
#help). |
|
219 | 2100 |
|
2101 |
myMenu at:#about |
|
377 | 2102 |
putLabels:(resources array:#( |
2103 |
'about Smalltalk/X ...' |
|
2104 |
)) |
|
2105 |
selectors:#( |
|
2106 |
#about |
|
2107 |
) |
|
2108 |
receiver:self. |
|
219 | 2109 |
|
2110 |
l := #( |
|
377 | 2111 |
'file browser' |
2112 |
'-' |
|
2113 |
'modules ...' |
|
2114 |
'-' |
|
2115 |
'snapshot ...' |
|
2116 |
'snapshot & exit ...' |
|
2117 |
'exit smalltalk ...' |
|
2118 |
). |
|
219 | 2119 |
s := #( |
377 | 2120 |
#startFileBrowser |
2121 |
nil |
|
2122 |
#objectModuleDialog |
|
2123 |
nil |
|
2124 |
#snapshot |
|
2125 |
#snapshotAndExit |
|
2126 |
#exit |
|
2127 |
). |
|
219 | 2128 |
|
2129 |
myMenu at:#file |
|
377 | 2130 |
putLabels:(resources array:l) |
2131 |
selectors:s |
|
2132 |
receiver:self. |
|
219 | 2133 |
|
2134 |
myMenu at:#classes |
|
377 | 2135 |
putLabels:(resources array:#( |
2136 |
'system browser' |
|
2137 |
'class browser ...' |
|
2138 |
'full class browser ...' |
|
2139 |
'class hierarchy browser ...' |
|
2140 |
'class tree' |
|
2141 |
'-' |
|
2142 |
'implementors ...' |
|
2143 |
'senders ...' |
|
2144 |
'-' |
|
2145 |
'change browser' |
|
2146 |
)) |
|
2147 |
selectors:#( |
|
2148 |
#startSystemBrowser |
|
2149 |
#startClassBrowser |
|
2150 |
#startFullClassBrowser |
|
2151 |
#startClassHierarchyBrowser |
|
2152 |
#startClassTreeView |
|
2153 |
nil |
|
2154 |
#browseImplementors |
|
2155 |
#browseSenders |
|
2156 |
nil |
|
2157 |
#startChangesBrowser |
|
2158 |
) |
|
2159 |
receiver:self. |
|
219 | 2160 |
|
490 | 2161 |
JavaBrowser notNil ifTrue:[ |
2162 |
(myMenu subMenuAt:#classes) |
|
2163 |
addLabels:(resources array:#('-' 'java browser')) |
|
2164 |
selectors:#(nil startJavaBrowser) |
|
2165 |
after:#startClassTreeView |
|
2166 |
]. |
|
2167 |
||
219 | 2168 |
myMenu at:#projects |
377 | 2169 |
putLabels:(resources array:#( |
2170 |
'new project' |
|
2171 |
'-' |
|
2172 |
'select project ...' |
|
2173 |
)) |
|
2174 |
selectors:#( |
|
2175 |
#newProject |
|
2176 |
nil |
|
2177 |
#selectProject |
|
2178 |
) |
|
2179 |
receiver:self. |
|
219 | 2180 |
|
2181 |
myMenu at:#settings |
|
377 | 2182 |
putLabels:(resources array:#( |
2183 |
'language ...' |
|
2184 |
'show keyboard mappings ...' |
|
2185 |
'view style ...' |
|
398 | 2186 |
'fonts ...' |
377 | 2187 |
'printer ...' |
2188 |
'messages ...' |
|
2189 |
'compilation ...' |
|
2190 |
'object memory ...' |
|
2191 |
'misc ...' |
|
2192 |
)) |
|
2193 |
selectors:#( |
|
2194 |
#languageSetting |
|
2195 |
#keyboardSetting |
|
2196 |
#viewStyleSetting |
|
398 | 2197 |
#fontSettings |
377 | 2198 |
#printerSettings |
2199 |
#messageSettings |
|
2200 |
#compilerSettings |
|
2201 |
#memorySettings |
|
2202 |
#miscSettings |
|
2203 |
) |
|
2204 |
receiver:self. |
|
219 | 2205 |
|
2206 |
self setupToolsMenu. |
|
2207 |
self setupDemoMenu. |
|
2208 |
||
2209 |
ActiveHelp notNil ifTrue:[ |
|
377 | 2210 |
l := #( |
2211 |
'ST/X documentation' |
|
497 | 2212 |
'class documentation' |
483 | 2213 |
'index' |
538 | 2214 |
'-' |
2215 |
'active help \c' |
|
377 | 2216 |
). |
2217 |
s := #( |
|
2218 |
#startDocumentationTool |
|
496 | 2219 |
#startClassDocumentation |
483 | 2220 |
#startDocumentationIndex |
538 | 2221 |
nil |
2222 |
#toggleActiveHelp: |
|
377 | 2223 |
) |
219 | 2224 |
] ifFalse:[ |
377 | 2225 |
l := #( |
2226 |
'ST/X documentation' |
|
497 | 2227 |
'class documentation' |
483 | 2228 |
'index' |
377 | 2229 |
). |
2230 |
s := #( |
|
2231 |
#startDocumentationTool |
|
496 | 2232 |
#startClassDocumentation |
483 | 2233 |
#startDocumentationIndex |
377 | 2234 |
) |
219 | 2235 |
]. |
2236 |
||
2237 |
myMenu at:#help |
|
377 | 2238 |
putLabels:(resources array:l) |
2239 |
selectors:s |
|
2240 |
receiver:self. |
|
219 | 2241 |
|
2242 |
(ActiveHelp notNil |
|
2243 |
and:[ActiveHelp isActive]) ifTrue:[ |
|
377 | 2244 |
(myMenu menuAt:#help) checkToggleAt:#toggleActiveHelp: put:true |
219 | 2245 |
]. |
377 | 2246 |
|
538 | 2247 |
"Modified: 12.5.1996 / 15:32:21 / cg" |
93 | 2248 |
! |
2249 |
||
219 | 2250 |
setupOtherViewsIn:aTopView |
2251 |
"a hook - allows redefinition in your personal subclass. |
|
2252 |
For example, add a clock:" |
|
2253 |
||
2254 |
" |
|
2255 |
|sz clock space halfSpace| |
|
2256 |
||
2257 |
sz := buttonPanel innerHeight - (buttonPanel level abs*2). |
|
2258 |
space := View viewSpacing. |
|
2259 |
halfSpace := space // 2. |
|
93 | 2260 |
|
219 | 2261 |
buttonPanel rightInset:sz+(space * 2). |
93 | 2262 |
|
219 | 2263 |
clock := ClockView in:buttonPanel topView. |
2264 |
clock borderWidth:1. |
|
2265 |
clock showSeconds:false. |
|
2266 |
clock extent:(sz @ sz). |
|
2267 |
clock origin:(1.0 @ (buttonPanel origin y + halfSpace)). |
|
2268 |
clock leftInset:sz negated - 2 - halfSpace. |
|
2269 |
clock rightInset:halfSpace. |
|
2270 |
clock level:1. |
|
2271 |
" |
|
93 | 2272 |
! |
2273 |
||
2274 |
setupToolsMenu |
|
2275 |
"setup the tools pulldown menu" |
|
2276 |
||
2277 |
|m| |
|
2278 |
||
2279 |
myMenu at:#tools |
|
434 | 2280 |
putLabels:(resources array:#( |
2281 |
'workspace' |
|
2282 |
'-' |
|
2283 |
'monitors' |
|
2284 |
'-' |
|
2285 |
'view tree (all views)' |
|
2286 |
'view tree' |
|
2287 |
'inspect view' |
|
2288 |
'destroy view' |
|
2289 |
'-' |
|
2290 |
'hardcopy' |
|
2291 |
'-' |
|
2292 |
'misc' |
|
2293 |
)) |
|
2294 |
selectors:#( |
|
2295 |
#startWorkspace |
|
2296 |
nil |
|
2297 |
#monitors |
|
2298 |
nil |
|
2299 |
#startFullWindowTreeView |
|
2300 |
#startWindowTreeView |
|
2301 |
#viewInspect |
|
2302 |
#viewDestroy |
|
2303 |
nil |
|
2304 |
#hardcopy |
|
2305 |
nil |
|
2306 |
#misc |
|
2307 |
) |
|
2308 |
receiver:self. |
|
93 | 2309 |
|
2310 |
||
2311 |
m := myMenu menuAt:#tools. |
|
2312 |
m subMenuAt:#monitors |
|
2313 |
put:(PopUpMenu |
|
434 | 2314 |
labels:(resources array:#( |
2315 |
'process' |
|
2316 |
'memory' |
|
2317 |
'event view' |
|
2318 |
'event trace' |
|
2319 |
'-' |
|
2320 |
'memory usage' |
|
2321 |
)) |
|
2322 |
selectors:#( |
|
2323 |
#startProcessMonitor |
|
2324 |
#startMemoryMonitor |
|
2325 |
#startEventMonitor |
|
2326 |
#startStopEventTrace |
|
2327 |
nil |
|
2328 |
#startMemoryUsageView |
|
2329 |
) |
|
2330 |
receiver:self). |
|
93 | 2331 |
|
120 | 2332 |
m subMenuAt:#misc |
2333 |
put:(PopUpMenu |
|
434 | 2334 |
labels:(resources array:#( |
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2335 |
'garbage collect' |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2336 |
'garbage collect & compress' |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2337 |
'-' |
434 | 2338 |
'remove all break/trace points' |
2339 |
)) |
|
2340 |
selectors:#( |
|
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2341 |
#garbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2342 |
#compressingGarbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2343 |
nil |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2344 |
#removeAllBreakAndTracePoints |
434 | 2345 |
) |
2346 |
receiver:self). |
|
120 | 2347 |
|
93 | 2348 |
m subMenuAt:#hardcopy |
2349 |
put:(PopUpMenu |
|
434 | 2350 |
labels:(resources array:#( |
2351 |
'screen' |
|
2352 |
'area' |
|
2353 |
'view' |
|
2354 |
)) |
|
2355 |
selectors:#( |
|
2356 |
#fullScreenHardcopy |
|
2357 |
#screenHardcopy |
|
2358 |
#viewHardcopy |
|
2359 |
) |
|
2360 |
receiver:self). |
|
93 | 2361 |
|
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2362 |
"Modified: 12.5.1996 / 15:29:46 / cg" |
90 | 2363 |
! |
2364 |
||
219 | 2365 |
setupTranscriptIn:aView |
2366 |
|v| |
|
107 | 2367 |
|
219 | 2368 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
2369 |
Transcript topView destroy. |
|
110 | 2370 |
]. |
2371 |
||
219 | 2372 |
v := HVScrollableView |
2373 |
for:TextCollector |
|
2374 |
miniScrollerH:true |
|
2375 |
miniScrollerV:false |
|
2376 |
in:aView. |
|
93 | 2377 |
|
219 | 2378 |
v origin:(0.0 @ (buttonPanel corner y + View viewSpacing)) |
2379 |
corner:(1.0 @ 1.0). |
|
2380 |
transcript := v scrolledView. |
|
2381 |
transcript beTranscript. |
|
94 | 2382 |
! |
2383 |
||
219 | 2384 |
setupViewsIn:topView |
2385 |
"create the pulldown menu, buttonPanel and transcript view" |
|
86 | 2386 |
|
219 | 2387 |
|tFont| |
131 | 2388 |
|
219 | 2389 |
topView model:self. |
86 | 2390 |
|
219 | 2391 |
myMenu := PullDownMenu in:topView. |
2392 |
myMenu origin:0.0 @ 0.0 corner:(1.0 @ myMenu height). |
|
86 | 2393 |
|
219 | 2394 |
self setupMenu. |
2395 |
self setupButtonPanelIn:topView. |
|
2396 |
self setupTranscriptIn:topView. |
|
2397 |
self setupInfoViewIn:topView. |
|
2398 |
self setupOtherViewsIn:topView. |
|
118 | 2399 |
|
219 | 2400 |
tFont := transcript font. |
2401 |
topView extent:(((tFont widthOf:'3')*60) max:myMenu preferredExtent x) |
|
2402 |
@ |
|
2403 |
((tFont height) * 20). |
|
118 | 2404 |
|
219 | 2405 |
" |
2406 |
NewLauncher open |
|
2407 |
" |
|
86 | 2408 |
! ! |
2409 |
||
2410 |
!NewLauncher methodsFor:'private'! |
|
2411 |
||
406 | 2412 |
fontBoxForEncoding:encodingMatch |
2413 |
|box defaultFont y b |
|
2414 |
labelDef buttonDef listDef menuDef textDef |
|
2415 |
models labels allOfThem filter| |
|
2416 |
||
2417 |
encodingMatch notNil ifTrue:[ |
|
2418 |
filter := [:f | f encoding notNil |
|
2419 |
and:[encodingMatch match:f encoding]]. |
|
2420 |
]. |
|
2421 |
||
2422 |
models := OrderedCollection new. |
|
2423 |
labels := OrderedCollection new. |
|
2424 |
||
2425 |
models add:(allOfThem := nil asValue). |
|
2426 |
models add:(labelDef := Label defaultFont asValue). |
|
2427 |
models add:(buttonDef := Button defaultFont asValue). |
|
2428 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
2429 |
models add:(menuDef := MenuView defaultFont asValue). |
|
2430 |
models add:(textDef := TextView defaultFont asValue). |
|
2431 |
||
2432 |
box := Dialog new. |
|
2433 |
box label:(resources string:'Font settings'). |
|
2434 |
||
2435 |
models |
|
2436 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
2437 |
do:[:model :title | |
|
427 | 2438 |
|y2 lbl f i| |
406 | 2439 |
|
2440 |
f := model value. |
|
2441 |
||
2442 |
(box addTextLabel:title) adjust:#left. |
|
2443 |
||
2444 |
y := box yPosition. |
|
427 | 2445 |
b := box addComponent:(Button label:(resources string:'change')) tabable:true. |
406 | 2446 |
b relativeExtent:nil; extent:(b preferredExtent). |
2447 |
y2 := box yPosition. |
|
2448 |
box yPosition:y. |
|
427 | 2449 |
i := box leftIndent. |
406 | 2450 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
2451 |
(lbl := box addTextLabel:'') |
|
2452 |
adjust:#left; |
|
2453 |
font:(model value); |
|
2454 |
labelChannel:(BlockValue |
|
2455 |
with:[:v | |f| |
|
2456 |
f := v value. |
|
2457 |
f isNil ifTrue:[ |
|
2458 |
'' |
|
2459 |
] ifFalse:[ |
|
2460 |
f userFriendlyName |
|
2461 |
] |
|
2462 |
] |
|
2463 |
argument:model). |
|
2464 |
labels add:lbl. |
|
2465 |
||
427 | 2466 |
box leftIndent:i. |
406 | 2467 |
box yPosition:(box yPosition max:y2). |
2468 |
box addVerticalSpace. |
|
2469 |
box addHorizontalLine. |
|
2470 |
box addVerticalSpace. |
|
2471 |
||
2472 |
b action:[ |
|
2473 |
|f| |
|
2474 |
||
2475 |
f := FontPanel |
|
2476 |
fontFromUserInitial:(model value) |
|
2477 |
title:(resources string:'font for %1' with:title) |
|
2478 |
filter:filter. |
|
2479 |
f notNil ifTrue:[ |
|
2480 |
model == allOfThem ifTrue:[ |
|
2481 |
models do:[:m | m value:f]. |
|
2482 |
labels do:[:l | l font:f] |
|
2483 |
] ifFalse:[ |
|
2484 |
model value:f. |
|
2485 |
lbl font:f. |
|
2486 |
]. |
|
2487 |
] |
|
2488 |
]. |
|
2489 |
model == allOfThem ifTrue:[ |
|
2490 |
box addVerticalSpace |
|
2491 |
] |
|
2492 |
]. |
|
2493 |
||
2494 |
box addAbortButton; addOkButton. |
|
2495 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
2496 |
action:[ |
|
2497 |
"/ fetch defaults |
|
2498 |
View updateAllStyleCaches. |
|
2499 |
labelDef value: Label defaultFont. |
|
2500 |
buttonDef value: Button defaultFont. |
|
2501 |
listDef value: SelectionInListView defaultFont. |
|
2502 |
menuDef value: MenuView defaultFont. |
|
2503 |
textDef value: TextView defaultFont. |
|
2504 |
]. |
|
2505 |
||
2506 |
box open. |
|
2507 |
box accepted ifTrue:[ |
|
2508 |
Label defaultFont:labelDef value. |
|
2509 |
Button defaultFont:buttonDef value. |
|
2510 |
Toggle defaultFont:buttonDef value. |
|
2511 |
SelectionInListView defaultFont:listDef value. |
|
2512 |
MenuView defaultFont:menuDef value. |
|
2513 |
PullDownMenu defaultFont:menuDef value. |
|
2514 |
TextView defaultFont:textDef value. |
|
2515 |
EditTextView defaultFont:textDef value. |
|
2516 |
CodeView defaultFont:textDef value. |
|
2517 |
]. |
|
2518 |
^ box accepted |
|
2519 |
||
2520 |
"Created: 27.2.1996 / 01:44:16 / cg" |
|
427 | 2521 |
"Modified: 5.3.1996 / 01:46:23 / cg" |
406 | 2522 |
! |
2523 |
||
219 | 2524 |
pickAView |
2525 |
|v| |
|
2526 |
||
2527 |
(Delay forSeconds:1) wait. |
|
2528 |
v := Screen current viewFromUser. |
|
2529 |
v isNil ifTrue:[ |
|
2530 |
self warn:'sorry, this is not a smalltalk view'. |
|
2531 |
^ nil |
|
2532 |
]. |
|
2533 |
^ v |
|
2534 |
! |
|
2535 |
||
106 | 2536 |
reopenLauncher |
2537 |
"for now (since style & language settings currently do |
|
2538 |
not affect living views ...)" |
|
2539 |
||
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2540 |
|contents fontPref enc fontList newDefault| |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2541 |
|
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2542 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'. |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2543 |
enc := MenuView defaultFont encoding. |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2544 |
(fontPref match:enc) ifFalse:[ |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2545 |
(self confirm:'menu font is not ' , fontPref , '-encoded.\\Change it ?' withCRs) |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2546 |
ifTrue:[ |
406 | 2547 |
self fontBoxForEncoding:fontPref |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2548 |
] |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2549 |
]. |
106 | 2550 |
|
2551 |
contents := Transcript endEntry; contents. |
|
2552 |
self class open. |
|
2553 |
Transcript contents:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor |
|
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
2554 |
|
406 | 2555 |
"Modified: 27.2.1996 / 01:45:45 / cg" |
106 | 2556 |
! |
2557 |
||
100 | 2558 |
saveAllViews |
86 | 2559 |
"tell each topview that we are going to terminate and give it chance |
2560 |
to save its contents." |
|
2561 |
||
2562 |
ObjectMemory changed:#aboutToExit |
|
2563 |
! |
|
2564 |
||
93 | 2565 |
saveScreenImage:anImage defaultName:defaultName |
2566 |
"save an image into a file |
|
2567 |
- ask user for filename using a fileSelectionBox." |
|
2568 |
||
2569 |
|fileName| |
|
2570 |
||
2571 |
fileName := Dialog |
|
382 | 2572 |
requestFileName:(resources string:'save image in:') |
2573 |
default:(defaultName , '.tiff') |
|
2574 |
ok:(resources string:'save') |
|
2575 |
abort:(resources string:'cancel') |
|
2576 |
pattern:'*.tiff'. |
|
93 | 2577 |
|
2578 |
fileName notNil ifTrue:[ |
|
382 | 2579 |
anImage saveOn:fileName |
93 | 2580 |
]. |
382 | 2581 |
|
2582 |
"Modified: 21.2.1996 / 13:09:28 / cg" |
|
86 | 2583 |
! ! |
2584 |
||
219 | 2585 |
!NewLauncher methodsFor:'queries'! |
90 | 2586 |
|
219 | 2587 |
processName |
2588 |
"for monitors only - my name" |
|
142 | 2589 |
|
219 | 2590 |
^ 'ST/X Launcher' |
90 | 2591 |
! ! |
2592 |
||
219 | 2593 |
!NewLauncher class methodsFor:'documentation'! |
86 | 2594 |
|
219 | 2595 |
version |
538 | 2596 |
^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.123 1996-05-12 13:37:12 cg Exp $' |
86 | 2597 |
! ! |