4320
|
1 |
"{ Package: 'stx:libtool' }"
|
|
2 |
|
|
3 |
ApplicationModel subclass:#FileBrowserV2SettingsFrame
|
|
4 |
instanceVariableNames:'appList requestor selectionInApplList subCanvasApplicationHolder
|
|
5 |
help applList appIsCategory enableButtons doReload doSave
|
|
6 |
settingsAppl'
|
|
7 |
classVariableNames:'ApplicationList'
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Interface-Tools-File'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!FileBrowserV2SettingsFrame class methodsFor:'interface specs'!
|
|
14 |
|
|
15 |
mainMenu
|
|
16 |
"This resource specification was automatically generated
|
|
17 |
by the MenuEditor of ST/X."
|
|
18 |
|
|
19 |
"Do not manually edit this!! If it is corrupted,
|
|
20 |
the MenuEditor may not be able to read the specification."
|
|
21 |
|
|
22 |
"
|
4324
|
23 |
MenuEditor new openOnClass:FileBrowserV2SettingsFrame andSelector:#mainMenu
|
|
24 |
(Menu new fromLiteralArrayEncoding:(FileBrowserV2SettingsFrame mainMenu)) startUp
|
4320
|
25 |
"
|
|
26 |
|
|
27 |
<resource: #menu>
|
|
28 |
|
|
29 |
^
|
|
30 |
#(#Menu
|
|
31 |
#(
|
|
32 |
#(#MenuItem
|
|
33 |
#label: 'File'
|
|
34 |
#translateLabel: true
|
|
35 |
#submenu:
|
|
36 |
#(#Menu
|
|
37 |
#(
|
|
38 |
#(#MenuItem
|
4324
|
39 |
#label: 'Load Settings to File...'
|
4320
|
40 |
#itemValue: #loadSettings
|
|
41 |
#translateLabel: true
|
|
42 |
)
|
|
43 |
#(#MenuItem
|
4324
|
44 |
#label: 'Save Settings to File...'
|
4320
|
45 |
#itemValue: #saveSettings
|
|
46 |
#translateLabel: true
|
|
47 |
)
|
|
48 |
#(#MenuItem
|
|
49 |
#label: 'Exit'
|
|
50 |
#itemValue: #closeRequest
|
|
51 |
#translateLabel: true
|
|
52 |
)
|
|
53 |
)
|
|
54 |
nil
|
|
55 |
nil
|
|
56 |
)
|
|
57 |
)
|
|
58 |
)
|
|
59 |
nil
|
|
60 |
nil
|
|
61 |
)
|
|
62 |
!
|
|
63 |
|
|
64 |
windowSpec
|
|
65 |
"This resource specification was automatically generated
|
|
66 |
by the UIPainter of ST/X."
|
|
67 |
|
|
68 |
"Do not manually edit this!! If it is corrupted,
|
|
69 |
the UIPainter may not be able to read the specification."
|
|
70 |
|
|
71 |
"
|
|
72 |
UIPainter new openOnClass:FileBrowserV2SettingsFrame andSelector:#windowSpec
|
|
73 |
FileBrowserV2SettingsFrame new openInterface:#windowSpec
|
|
74 |
FileBrowserV2SettingsFrame open
|
|
75 |
"
|
|
76 |
|
|
77 |
<resource: #canvas>
|
|
78 |
|
|
79 |
^
|
|
80 |
#(#FullSpec
|
|
81 |
#name: #windowSpec
|
|
82 |
#window:
|
|
83 |
#(#WindowSpec
|
|
84 |
#label: 'Settings Dialog'
|
|
85 |
#name: 'Settings Dialog'
|
|
86 |
#min: #(#Point 10 10)
|
|
87 |
#max: #(#Point 1024 768)
|
|
88 |
#bounds: #(#Rectangle 12 22 365 596)
|
|
89 |
#menu: #mainMenu
|
|
90 |
)
|
|
91 |
#component:
|
|
92 |
#(#SpecCollection
|
|
93 |
#collection: #(
|
|
94 |
#(#ViewSpec
|
|
95 |
#name: 'Box2'
|
|
96 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
97 |
#component:
|
|
98 |
#(#SpecCollection
|
|
99 |
#collection: #(
|
|
100 |
#(#SubCanvasSpec
|
|
101 |
#name: 'FileBrowserV2SettingsAppl'
|
|
102 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -34 1)
|
|
103 |
#level: 0
|
|
104 |
#hasHorizontalScrollBar: false
|
|
105 |
#hasVerticalScrollBar: false
|
|
106 |
#majorKey: #FileBrowserV2SettingsAppl
|
|
107 |
#createNewApplication: true
|
|
108 |
#createNewBuilder: true
|
|
109 |
#postBuildCallback: #postBuildSubCanvas:
|
|
110 |
)
|
|
111 |
#(#HorizontalPanelViewSpec
|
|
112 |
#name: 'HorizontalPanel1'
|
|
113 |
#layout: #(#LayoutFrame 0 0.0 -34 1 0 1.0 0 1)
|
|
114 |
#horizontalLayout: #fitSpace
|
|
115 |
#verticalLayout: #center
|
|
116 |
#horizontalSpace: 3
|
|
117 |
#verticalSpace: 3
|
|
118 |
#component:
|
|
119 |
#(#SpecCollection
|
|
120 |
#collection: #(
|
|
121 |
#(#ActionButtonSpec
|
|
122 |
#label: 'OK'
|
|
123 |
#name: 'OK'
|
|
124 |
#translateLabel: true
|
|
125 |
#model: #doSave
|
|
126 |
#enableChannel: #enableButtons
|
|
127 |
#extent: #(#Point 84 22)
|
|
128 |
)
|
|
129 |
#(#ActionButtonSpec
|
|
130 |
#label: 'Reload'
|
|
131 |
#name: 'Reload'
|
|
132 |
#translateLabel: true
|
|
133 |
#model: #doReload
|
|
134 |
#enableChannel: #enableButtons
|
|
135 |
#extent: #(#Point 85 22)
|
|
136 |
)
|
|
137 |
#(#ActionButtonSpec
|
|
138 |
#label: 'Cancel'
|
|
139 |
#name: 'Cancel'
|
|
140 |
#translateLabel: true
|
|
141 |
#model: #closeRequest
|
|
142 |
#extent: #(#Point 84 22)
|
|
143 |
)
|
|
144 |
#(#ActionButtonSpec
|
|
145 |
#label: 'Help'
|
|
146 |
#name: 'Help'
|
|
147 |
#translateLabel: true
|
|
148 |
#model: #help
|
|
149 |
#enableChannel: #enableButtons
|
|
150 |
#extent: #(#Point 85 22)
|
|
151 |
)
|
|
152 |
)
|
|
153 |
|
|
154 |
)
|
|
155 |
)
|
|
156 |
)
|
|
157 |
|
|
158 |
)
|
|
159 |
)
|
|
160 |
)
|
|
161 |
|
|
162 |
)
|
|
163 |
)
|
|
164 |
! !
|
|
165 |
|
|
166 |
!FileBrowserV2SettingsFrame methodsFor:'accessing'!
|
|
167 |
|
|
168 |
requestor
|
|
169 |
"return the value of the instance variable 'requestor' (automatically generated)"
|
|
170 |
|
|
171 |
^ requestor
|
|
172 |
!
|
|
173 |
|
|
174 |
requestor:something
|
|
175 |
"set the value of the instance variable 'requestor' (automatically generated)"
|
|
176 |
|
|
177 |
requestor := something.
|
|
178 |
! !
|
|
179 |
|
|
180 |
!FileBrowserV2SettingsFrame methodsFor:'actions'!
|
|
181 |
|
|
182 |
doReload
|
|
183 |
|
|
184 |
settingsAppl loadRequest.
|
|
185 |
!
|
|
186 |
|
|
187 |
doSave
|
|
188 |
|
|
189 |
settingsAppl saveRequest.
|
|
190 |
!
|
|
191 |
|
|
192 |
help
|
|
193 |
|
|
194 |
settingsAppl help
|
|
195 |
! !
|
|
196 |
|
|
197 |
!FileBrowserV2SettingsFrame methodsFor:'initialization & release'!
|
|
198 |
|
|
199 |
closeRequest
|
|
200 |
"This is a hook method generated by the Browser.
|
|
201 |
It will be invoked when your app/dialog-window is about to be
|
|
202 |
closed (this method has a chance to suppress the close).
|
|
203 |
See also #closeDownViews, which is invoked when the close is really done."
|
|
204 |
|
|
205 |
settingsAppl saveRequest ifFalse:[
|
|
206 |
^ self
|
|
207 |
].
|
|
208 |
^ super closeRequest
|
|
209 |
!
|
|
210 |
|
|
211 |
initialize
|
|
212 |
|
|
213 |
super initialize.
|
|
214 |
!
|
|
215 |
|
|
216 |
postBuildSubCanvas:aWidget
|
|
217 |
|
|
218 |
settingsAppl := aWidget client.
|
|
219 |
aWidget keepClientView:true.
|
|
220 |
! !
|
|
221 |
|
|
222 |
!FileBrowserV2SettingsFrame methodsFor:'menu actions'!
|
|
223 |
|
|
224 |
loadSettings
|
|
225 |
|
|
226 |
"restore settings from a settings-file."
|
|
227 |
|
|
228 |
"a temporary kludge - we need a central systemSettings object for this,
|
|
229 |
which can be saved/restored with a single store/read."
|
|
230 |
|
|
231 |
|fileName|
|
|
232 |
|
|
233 |
fileName := Dialog
|
|
234 |
requestFileName:(resources string:'Load Settings From:')
|
|
235 |
default:'settings.stx'
|
|
236 |
ok:(resources string:'Load')
|
|
237 |
abort:(resources string:'Cancel')
|
|
238 |
pattern:'*.stx'
|
|
239 |
fromDirectory:nil.
|
|
240 |
|
|
241 |
(fileName size == 0) ifTrue:[
|
|
242 |
"/ canceled
|
|
243 |
^ self
|
|
244 |
].
|
|
245 |
|
|
246 |
self withWaitCursorDo:[
|
|
247 |
Smalltalk fileIn:fileName.
|
|
248 |
Transcript current topView model reOpen.
|
|
249 |
self sendLoadRequestToAll.
|
|
250 |
].
|
|
251 |
!
|
|
252 |
|
|
253 |
saveSettings
|
|
254 |
|
|
255 |
|fileName resources|
|
|
256 |
|
|
257 |
resources := self class owningClass classResources.
|
|
258 |
|
|
259 |
self sendLoadRequestToAll ifFalse:[^ self].
|
|
260 |
|
|
261 |
fileName := Dialog
|
|
262 |
requestFileName:(resources string:'Save settings in:')
|
|
263 |
default:'settings.stx'
|
|
264 |
ok:(resources string:'Save')
|
|
265 |
abort:(resources string:'Cancel')
|
|
266 |
pattern:'*.stx'
|
|
267 |
fromDirectory:'.'.
|
|
268 |
|
|
269 |
fileName size ~~ 0 ifTrue:[
|
|
270 |
"not canceled"
|
|
271 |
self saveSettingsIn:fileName.
|
|
272 |
]
|
|
273 |
!
|
|
274 |
|
|
275 |
saveSettingsIn:fileName
|
|
276 |
"save settings to a settings-file."
|
|
277 |
|
|
278 |
"a temporary kludge - we need a central systemSettings object for this,
|
|
279 |
which can be saved/restored with a single store/read.
|
|
280 |
Will move entries over to UserPreferences over time;
|
|
281 |
new items should always go there."
|
|
282 |
|
|
283 |
|resources s screen currentUserPrefs|
|
|
284 |
|
|
285 |
resources := self class owningClass classResources.
|
|
286 |
|
|
287 |
s := fileName asFilename writeStream.
|
|
288 |
s isNil ifTrue:[
|
|
289 |
self warn:(resources string:'Cannot write the %1 file !!' with:fileName).
|
|
290 |
^ self
|
|
291 |
].
|
|
292 |
|
|
293 |
currentUserPrefs := UserPreferences current.
|
|
294 |
screen := Screen current.
|
|
295 |
|
|
296 |
s nextPutLine:'"/ ST/X saved settings';
|
|
297 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY';
|
|
298 |
nextPutLine:'"/ (modifications would be lost with next save-settings)';
|
|
299 |
nextPutLine:'"/';
|
|
300 |
nextPutLine:'"/ this file was automatically generated by the';
|
|
301 |
nextPutLine:'"/ ''save settings'' function of the Launcher';
|
|
302 |
nextPutLine:'"/'.
|
|
303 |
s cr.
|
|
304 |
|
|
305 |
s nextPutLine:'"/'.
|
|
306 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
|
|
307 |
s nextPutLine:'"/'.
|
|
308 |
s cr.
|
|
309 |
|
|
310 |
s nextPutLine:'"/'.
|
|
311 |
s nextPutLine:'"/ Display settings:'.
|
|
312 |
s nextPutLine:'"/'.
|
|
313 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
|
|
314 |
s nextPutLine:'Display notNil ifTrue:['.
|
|
315 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
|
|
316 |
screen fixColors notNil ifTrue:[
|
|
317 |
s nextPutLine:' Image flushDeviceImages.'.
|
|
318 |
s nextPutLine:' Color colorAllocationFailSignal catch:['.
|
|
319 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'.
|
|
320 |
s nextPutLine:' ].'.
|
|
321 |
] ifFalse:[
|
|
322 |
s nextPutLine:' Display releaseFixColors.'.
|
|
323 |
].
|
|
324 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'.
|
|
325 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
|
|
326 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
|
|
327 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
|
|
328 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
|
|
329 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'.
|
|
330 |
s nextPutLine:' ].'.
|
|
331 |
s nextPutLine:'].'.
|
|
332 |
s cr.
|
|
333 |
|
|
334 |
s nextPutLine:'"/'.
|
|
335 |
s nextPutLine:'"/ Compiler settings:'.
|
|
336 |
s nextPutLine:'"/'.
|
|
337 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
|
|
338 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
|
|
339 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
|
|
340 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
|
|
341 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
|
|
342 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
|
|
343 |
nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.';
|
|
344 |
nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.';
|
|
345 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
|
|
346 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
|
|
347 |
|
|
348 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
|
|
349 |
nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.';
|
|
350 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
|
|
351 |
nextPutLine:' Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
|
|
352 |
nextPutLine:' Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
|
|
353 |
nextPutLine:' Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
|
|
354 |
nextPutLine:' ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:[';
|
|
355 |
nextPutLine:' Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.';
|
|
356 |
nextPutLine:' ].';
|
|
357 |
nextPutLine:' Compiler stcPath: ' , (Compiler stcPath storeString) , '.';
|
|
358 |
nextPutLine:' Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
|
|
359 |
nextPutLine:' Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
|
|
360 |
nextPutLine:' ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.';
|
|
361 |
nextPutLine:' ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.';
|
|
362 |
nextPutLine:' ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.';
|
|
363 |
nextPutLine:' ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.';
|
|
364 |
nextPutLine:'].';
|
|
365 |
|
|
366 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
|
|
367 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
|
|
368 |
|
|
369 |
HistoryManager notNil ifTrue:[
|
|
370 |
HistoryManager isActive ifTrue:[
|
|
371 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
|
|
372 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
|
|
373 |
] ifFalse:[
|
|
374 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
|
|
375 |
].
|
|
376 |
].
|
|
377 |
|
|
378 |
ObjectFileLoader notNil ifTrue:[
|
|
379 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
|
|
380 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
|
|
381 |
].
|
|
382 |
|
|
383 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
|
|
384 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
|
|
385 |
|
|
386 |
s cr.
|
|
387 |
s nextPutLine:'"/'.
|
|
388 |
s nextPutLine:'"/ Info & Debug Messages:'.
|
|
389 |
s nextPutLine:'"/'.
|
|
390 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
|
|
391 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
|
|
392 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
|
|
393 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
|
|
394 |
|
|
395 |
FlyByHelp isActive ifTrue:[
|
|
396 |
s nextPutLine:'FlyByHelp start.'
|
|
397 |
].
|
|
398 |
|
|
399 |
s cr.
|
|
400 |
s nextPutLine:'"/'.
|
|
401 |
s nextPutLine:'"/ Edit settings:'.
|
|
402 |
s nextPutLine:'"/'.
|
|
403 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
|
|
404 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
|
|
405 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'.
|
|
406 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
|
|
407 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
|
|
408 |
] ifFalse:[
|
|
409 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
|
|
410 |
].
|
|
411 |
|
|
412 |
s nextPutLine:'"/'.
|
|
413 |
s nextPutLine:'"/ User preference values:'.
|
|
414 |
s nextPutLine:'"/'.
|
|
415 |
currentUserPrefs keysAndValuesDo:[:k :v |
|
|
416 |
(UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[
|
|
417 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'.
|
|
418 |
] ifFalse:[
|
|
419 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'.
|
|
420 |
]
|
|
421 |
].
|
|
422 |
|
|
423 |
s cr.
|
|
424 |
s nextPutLine:'"/'.
|
|
425 |
s nextPutLine:'"/ Misc settings:'.
|
|
426 |
s nextPutLine:'"/'.
|
|
427 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
|
|
428 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
|
|
429 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
|
|
430 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
|
|
431 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
|
|
432 |
|
|
433 |
"/ claus - I dont think its a good idea to save those ...
|
|
434 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
|
|
435 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
|
|
436 |
|
|
437 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
|
|
438 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
|
|
439 |
nextPutLine:'Display notNil ifTrue:[';
|
|
440 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
|
|
441 |
nextPutLine:'].';
|
|
442 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
|
|
443 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
|
|
444 |
(Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
|
|
445 |
s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
|
|
446 |
].
|
|
447 |
Processor isTimeSlicing ifTrue:[
|
|
448 |
s nextPutLine:'Processor startTimeSlicing.'.
|
|
449 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
|
|
450 |
] ifFalse:[
|
|
451 |
s nextPutLine:'Processor stopTimeSlicing.'.
|
|
452 |
].
|
|
453 |
|
|
454 |
s cr.
|
|
455 |
s nextPutLine:'"/'.
|
|
456 |
s nextPutLine:'"/ Printer settings:'.
|
|
457 |
s nextPutLine:'"/'.
|
|
458 |
s nextPutLine:'Printer := ' , (Printer name) , '.';
|
|
459 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
|
|
460 |
|
|
461 |
Printer supportsPageSizes ifTrue:[
|
|
462 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
|
|
463 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
|
|
464 |
].
|
|
465 |
Printer supportsMargins ifTrue:[
|
|
466 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
|
|
467 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
|
|
468 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
|
|
469 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
|
|
470 |
].
|
|
471 |
Printer supportsPostscript ifTrue:[
|
|
472 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
|
|
473 |
].
|
|
474 |
|
|
475 |
s cr.
|
|
476 |
s nextPutLine:'"/'.
|
|
477 |
s nextPutLine:'"/ Font settings:'.
|
|
478 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
|
|
479 |
s nextPutLine:'"/'.
|
|
480 |
s nextPutLine:'Display notNil ifTrue:['.
|
|
481 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
|
|
482 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'.
|
|
483 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'.
|
|
484 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'.
|
|
485 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
|
|
486 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
|
|
487 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
|
|
488 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
|
|
489 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
|
|
490 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
|
|
491 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
|
|
492 |
s nextPutLine:' ].'.
|
|
493 |
s nextPutLine:'].'.
|
|
494 |
|
|
495 |
s cr.
|
|
496 |
s nextPutLine:'"/'.
|
|
497 |
s nextPutLine:'"/ Language setting:'.
|
|
498 |
s nextPutLine:'"/'.
|
|
499 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
|
|
500 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
|
|
501 |
|
|
502 |
s cr.
|
|
503 |
s nextPutLine:'"/'.
|
|
504 |
s nextPutLine:'"/ SourceCodeManager settings:'.
|
|
505 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'.
|
|
506 |
s nextPutLine:'"/'.
|
|
507 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['.
|
|
508 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
|
|
509 |
(Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[
|
|
510 |
s nextPutLine:' Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'.
|
|
511 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'.
|
|
512 |
s nextPutLine:' CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'.
|
|
513 |
s nextPutLine:' CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'.
|
|
514 |
s nextPutLine:' CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'.
|
|
515 |
].
|
|
516 |
s nextPutLine:'].'.
|
|
517 |
|
|
518 |
s close.
|
|
519 |
|
|
520 |
"
|
|
521 |
Transcript topView application saveSettings
|
|
522 |
"
|
|
523 |
|
|
524 |
"Modified: / 6.1.1999 / 14:24:16 / cg"
|
|
525 |
! !
|
|
526 |
|
|
527 |
!FileBrowserV2SettingsFrame class methodsFor:'documentation'!
|
|
528 |
|
|
529 |
version
|
4324
|
530 |
^ '$Header: /cvs/stx/stx/libtool/Attic/FileBrowserV2SettingsFrame.st,v 1.2 2002-11-26 16:58:40 penk Exp $'
|
4320
|
531 |
! !
|