12
|
1 |
"/
|
|
2 |
"/ $Header$
|
|
3 |
"/
|
|
4 |
"/ This file is processed at initial startup
|
|
5 |
"/ - not when resuming an image.
|
|
6 |
"/
|
0
|
7 |
|
7
|
8 |
|
12
|
9 |
"/
|
|
10 |
"/ this allows turning off processes and running
|
|
11 |
"/ pure event driven - for debugging only.
|
|
12 |
"/
|
|
13 |
"/ If the system has been created without thread
|
|
14 |
"/ support (i.e. a quick port without asm-support)
|
|
15 |
"/ it will do this automatically. So, normally you
|
|
16 |
"/ should not uncomment the line below.
|
|
17 |
"/ Future systems may not support this ...
|
|
18 |
|
|
19 |
"/ ProcessorScheduler pureEventDriven.
|
|
20 |
|
7
|
21 |
|
12
|
22 |
"/
|
|
23 |
"/ install uncompiled classes as autoload
|
|
24 |
"/ classes ... (if not already present)
|
|
25 |
"/ Autoloaded classes will be automatically filed-in
|
|
26 |
"/ when first accessed. This allows a smaller executable,
|
|
27 |
"/ but creates a short delay, when the class is loaded on
|
|
28 |
"/ first access.
|
|
29 |
"/
|
|
30 |
"/ You can add more classes to these lists -
|
|
31 |
"/ i.e. all your classes you like to have around,
|
|
32 |
"/ but which are not needed often enough to justify
|
|
33 |
"/ machine code for them ...
|
0
|
34 |
|
7
|
35 |
|optionalClasses optionalGames optionalDemos optionalApps optionalBench
|
10
|
36 |
optionalTools optionalViews optionalImage compat requiredClasses|
|
|
37 |
|
12
|
38 |
"/
|
|
39 |
"/ the following are required (either compiled or interpreted) ...
|
|
40 |
"/
|
10
|
41 |
requiredClasses := #(
|
|
42 |
VariableArray
|
11
|
43 |
StringCollection
|
10
|
44 |
).
|
|
45 |
|
|
46 |
requiredClasses do:[:s |
|
|
47 |
(Smalltalk at:s) isNil ifTrue:[
|
|
48 |
Smalltalk fileInClass:s initialize:true lazy:false silent:true
|
|
49 |
]
|
|
50 |
].
|
0
|
51 |
|
|
52 |
Transcript showCr:'installing autoloaded classes ...'.
|
|
53 |
|
12
|
54 |
"/
|
|
55 |
"/ the following are loaded on demand (if not already present)
|
|
56 |
"/
|
|
57 |
|
0
|
58 |
optionalGames := #(
|
7
|
59 |
Tetris TetrisBlock TicTacToe
|
|
60 |
).
|
|
61 |
|
|
62 |
optionalDemos := #(
|
|
63 |
Animation GlobeDemo RoundGlobe
|
8
|
64 |
PenDemo CommanderDemo Calendar
|
7
|
65 |
GLTeapotDemo GLTeapotView
|
|
66 |
GLPlaneDemoView1 GLPlaneDemoView2
|
|
67 |
GLSphereDemoView1 GLSphereDemoView2
|
|
68 |
GLObjectDemoView GLCubeDemoView GLTetraDemoView
|
|
69 |
GLWireCubeDemoView GLWireSphereDemoView
|
10
|
70 |
GLCubeDemoView2 GLBrickCubeDemoView Logo3DView1 GLPlanetDemoView
|
7
|
71 |
).
|
|
72 |
|
|
73 |
optionalApps := #(
|
|
74 |
AddressBook AddressBook2 InitialLabelView AddressView
|
|
75 |
|
|
76 |
DrawTool DrawObject DrawLine DrawText
|
|
77 |
DrawRectangle DrawRoundRectangle DrawEllipse
|
|
78 |
DrawPolygon DrawCurve DrawGroup DrawView DrawImage
|
10
|
79 |
DrawVLine DrawHLine
|
|
80 |
PatternMenu LineMenu
|
7
|
81 |
|
|
82 |
LogicTool LogicView LogicObject Connection Input Output
|
|
83 |
Low High Inverter AndGate OrGate AndGate2 NandGate2 OrGate2 NorGate2 ExorGate2
|
|
84 |
AndGate3
|
|
85 |
|
|
86 |
MailView MailHandler MailLetter MailReplyTextView
|
|
87 |
|
|
88 |
NewsView NewsHandler NNTPHandler NumberSet
|
|
89 |
|
|
90 |
ArchiveView DirectoryView DirectoryViewObject
|
|
91 |
DirectoryObject FileObject
|
|
92 |
|
8
|
93 |
DocumentView DocumentReader RTFReader
|
7
|
94 |
DisplayText DisplayPicture DisplayIcon DisplaySound
|
|
95 |
|
|
96 |
Clock ClockView RoundClock RoundClock2
|
|
97 |
|
|
98 |
VocPanel VocBrowser VocView SoundStream
|
|
99 |
|
|
100 |
Keyword KeywordSet ManualBrowser ManualMaker ManualView
|
|
101 |
).
|
|
102 |
|
|
103 |
optionalTools := #(
|
|
104 |
Builder BuilderView BuilderTreeView
|
|
105 |
BuilderClassBox BuilderVariablesBox
|
|
106 |
|
|
107 |
SystemBrowser DebugView FileBrowser DirectoryBrowser
|
|
108 |
ProjectView Launcher Workspace ChangesBrowser
|
|
109 |
InspectorView OrderedCollectionInspectorView ContextInspectorView
|
|
110 |
DictionaryInspectorView
|
|
111 |
ImageInspectorView ColorInspectorView
|
8
|
112 |
|
|
113 |
EventMonitor ProcessMonitor MemoryMonitor MemoryUsageView
|
7
|
114 |
).
|
|
115 |
|
|
116 |
optionalViews := #(
|
|
117 |
Scale HorizontalScale GLXView Point3D SliderBox
|
|
118 |
DialogBox OptionBox TextBox
|
8
|
119 |
InputView Ruler VerticalRuler TextRuler
|
7
|
120 |
Slider HorizontalSlider
|
|
121 |
SteppingSlider HorizontalSteppingSlider
|
|
122 |
VariableHorizontalPanel
|
|
123 |
FontPanel FramedBox FileSelectionBox FileSaveBox
|
8
|
124 |
RadioButton RadioButtonGroup "MotionButton MenuButton"
|
|
125 |
PullDownMenu
|
7
|
126 |
|
|
127 |
TwoColumnTextView DiffTextView
|
|
128 |
FilenameEditField FilenameEnterBox
|
|
129 |
|
|
130 |
HelpView
|
|
131 |
|
|
132 |
ScreenSaver LightInTheDark LightInTheDark2
|
|
133 |
|
|
134 |
ImageView ImageEditView
|
|
135 |
Depth1Image Depth2Image Depth4Image Depth8Image Depth24Image
|
|
136 |
TreeView TreeGraphView ClassTreeView ClassTreeGraphView WindowTreeView
|
|
137 |
|
|
138 |
ColorPanel HLSPanel RGBPanel ColorWheel ThreeSliderPanel
|
|
139 |
ColorSlider HueSlider RGBSlider SteppingColorSlider SteppingHueSlider
|
|
140 |
|
|
141 |
TabulatorSpecification MultiColListEntry
|
8
|
142 |
ViewScroller TabSpecRuler
|
7
|
143 |
).
|
|
144 |
|
12
|
145 |
"/ notice, that it does not really make sense to
|
|
146 |
"/ run Benchmarks in interpreted mode ..."
|
|
147 |
"/ If you really weant to measure the system, include (load) compiled
|
|
148 |
"/ benchmark classes
|
7
|
149 |
|
|
150 |
optionalBench := #(
|
|
151 |
SlopstoneBenchmark SmopstoneBenchmark
|
|
152 |
|
|
153 |
"DeltaBlue benchmark"
|
|
154 |
AbstractConstraint BinaryConstraint Constraint
|
|
155 |
DBMethod DBVariable EditConstraint
|
|
156 |
EqualityConstraint Plan Planner ScaleConstraint
|
|
157 |
StayConstraint Strength UnaryConstraint XMouseConstraint
|
|
158 |
YMouseConstraint
|
|
159 |
|
|
160 |
"RichardsBenchmarks"
|
|
161 |
DeviceTaskDataRecord HandlerTaskDataRecord
|
|
162 |
IdleTaskDataRecord Packet RBObject RichardsBenchmarks
|
|
163 |
TaskControlBlock TaskState WorkerTaskDataRecord
|
|
164 |
|
|
165 |
"self benchmarks"
|
|
166 |
AbstractBenchmark AtAllPutBenchmark BenchmarkRunner
|
|
167 |
BubbleSort2Array BubbleSort2Benchmark BubbleSortBenchmark
|
|
168 |
Cons FastSumToBenchmark HanoiBenchmark HanoiDisk
|
|
169 |
IncrementAllBenchmark IntMM2Array IntMM2Benchmark
|
|
170 |
IntMM2Matrix IntMMBenchmark MM2Benchmark MMBenchmark
|
|
171 |
NestedLoopBenchmark Perm2Benchmark PermArray PermBenchmark
|
|
172 |
PuzzleArray PuzzleBenchmark Queens2Benchmark QueensBenchmark
|
|
173 |
Quicksort2Array Quicksort2Benchmark QuicksortBenchmark
|
|
174 |
RecurseBenchmark SieveBenchmark SumAllBenchmark
|
|
175 |
SumFromToBenchmark SumToBenchmark TakBenchmark TaklBenchmark
|
|
176 |
Towers2Benchmark Towers2Disk TowersBenchmark
|
|
177 |
TowersBenchmarkElement TreeSort2Benchmark TreeSort2Node
|
|
178 |
TreeSortBenchmark TreeSortNodeBenchmark
|
|
179 |
).
|
|
180 |
|
8
|
181 |
optionalImage := #(
|
|
182 |
GIFReader TIFFReader FaceReader WindowsIconReader SunRasterReader
|
|
183 |
XBMReader JPEGReader PBMReader ST80FormReader XPMReader
|
14
|
184 |
PCXReader TargaReader XWDReader
|
10
|
185 |
).
|
8
|
186 |
|
7
|
187 |
optionalClasses := #(
|
|
188 |
EpsonFX1PrinterStream HPLjetIIPrinterStream
|
|
189 |
PostscriptPrinterStream
|
|
190 |
Decompiler Polygon
|
|
191 |
ChangeSetBrowser
|
|
192 |
MessageTracer
|
|
193 |
|
|
194 |
PersistencyManager BinaryIOManager BinaryInputManager
|
|
195 |
BinaryOutputManager DBFile BinaryObjectStorage
|
|
196 |
|
|
197 |
RDoItServer
|
|
198 |
|
16
|
199 |
HandlerCollection VariableArray StringCollection
|
7
|
200 |
).
|
|
201 |
|
|
202 |
optionalViews do:[:s |
|
|
203 |
"install if not already compiled-in"
|
|
204 |
(Smalltalk at:s) isNil ifTrue:[
|
|
205 |
Autoload subclass:s
|
|
206 |
instanceVariableNames:''
|
|
207 |
classVariableNames:''
|
|
208 |
poolDictionaries:''
|
|
209 |
category:'autoloaded-Views'
|
|
210 |
]
|
|
211 |
].
|
|
212 |
|
|
213 |
optionalTools do:[:s |
|
|
214 |
"install if not already compiled-in"
|
|
215 |
(Smalltalk at:s) isNil ifTrue:[
|
|
216 |
Autoload subclass:s
|
|
217 |
instanceVariableNames:''
|
|
218 |
classVariableNames:''
|
|
219 |
poolDictionaries:''
|
|
220 |
category:'autoloaded-Tools'
|
|
221 |
]
|
|
222 |
].
|
0
|
223 |
|
|
224 |
optionalGames do:[:s |
|
|
225 |
"install if not already compiled-in"
|
|
226 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
227 |
Autoload subclass:s
|
|
228 |
instanceVariableNames:''
|
|
229 |
classVariableNames:''
|
|
230 |
poolDictionaries:''
|
|
231 |
category:'autoloaded-Games & Demos'
|
0
|
232 |
]
|
|
233 |
].
|
|
234 |
|
3
|
235 |
optionalDemos do:[:s |
|
|
236 |
"install if not already compiled-in"
|
|
237 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
238 |
Autoload subclass:s
|
|
239 |
instanceVariableNames:''
|
|
240 |
classVariableNames:''
|
|
241 |
poolDictionaries:''
|
|
242 |
category:'autoloaded-Games & Demos'
|
3
|
243 |
]
|
|
244 |
].
|
|
245 |
|
0
|
246 |
optionalApps do:[:s |
|
|
247 |
"install if not already compiled-in"
|
|
248 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
249 |
Autoload subclass:s
|
|
250 |
instanceVariableNames:''
|
|
251 |
classVariableNames:''
|
|
252 |
poolDictionaries:''
|
|
253 |
category:'autoloaded-Applications'
|
0
|
254 |
]
|
|
255 |
].
|
|
256 |
|
|
257 |
optionalBench do:[:s |
|
|
258 |
"install if not already compiled-in"
|
|
259 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
260 |
Autoload subclass:s
|
|
261 |
instanceVariableNames:''
|
|
262 |
classVariableNames:''
|
|
263 |
poolDictionaries:''
|
|
264 |
category:'autoloaded-Benchmarks'
|
|
265 |
]
|
|
266 |
].
|
|
267 |
|
8
|
268 |
optionalImage do:[:s |
|
|
269 |
"install if not already compiled-in"
|
|
270 |
(Smalltalk at:s) isNil ifTrue:[
|
|
271 |
Autoload subclass:s
|
|
272 |
instanceVariableNames:''
|
|
273 |
classVariableNames:''
|
|
274 |
poolDictionaries:''
|
|
275 |
category:'autoloaded-Images'
|
|
276 |
]
|
|
277 |
].
|
|
278 |
|
7
|
279 |
optionalClasses do:[:s |
|
|
280 |
"install if not already compiled-in"
|
|
281 |
(Smalltalk at:s) isNil ifTrue:[
|
|
282 |
Autoload subclass:s
|
|
283 |
instanceVariableNames:''
|
|
284 |
classVariableNames:''
|
|
285 |
poolDictionaries:''
|
|
286 |
category:'autoloaded-Classes'
|
|
287 |
]
|
|
288 |
].
|
|
289 |
|
12
|
290 |
"/
|
|
291 |
"/ install all widget & tool classes as autoloaded
|
|
292 |
"/ for compact systems (which have no GUI classes compiled in) ...
|
|
293 |
"/
|
|
294 |
|
|
295 |
"/
|
|
296 |
"/ ... but only, if this is not a non GUI smalltalk
|
|
297 |
"/
|
|
298 |
Workstation notNil ifTrue:[
|
|
299 |
optionalClasses := #(
|
10
|
300 |
ArrowButton
|
|
301 |
Button
|
|
302 |
CheckToggle
|
|
303 |
ClickMenuView
|
|
304 |
CodeView
|
|
305 |
DialogBox
|
|
306 |
EnterFieldGroup
|
|
307 |
EditTextView
|
|
308 |
EditField
|
|
309 |
EnterBox
|
|
310 |
EnterBox2
|
|
311 |
FileSaveBox
|
|
312 |
FileSelectionBox
|
|
313 |
FileSelectionList
|
|
314 |
FontPanel
|
|
315 |
FramedBox
|
|
316 |
HorizontalMiniScroller
|
|
317 |
HorizontalPanelView
|
|
318 |
HorizontalScrollBar
|
|
319 |
HorizontalScroller
|
|
320 |
HVScrollableView
|
|
321 |
InfoBox
|
|
322 |
ListSelectionBox
|
|
323 |
Label
|
|
324 |
ListView
|
|
325 |
MenuView
|
|
326 |
MiniScroller
|
|
327 |
ObjectView
|
|
328 |
OptionBox
|
|
329 |
PanelView
|
|
330 |
PopUpList
|
|
331 |
PopUpMenu
|
|
332 |
PullDownMenu
|
|
333 |
RadioButtonGroup
|
|
334 |
RadioButton
|
|
335 |
ScrollableView
|
|
336 |
ScrollBar
|
|
337 |
Scroller
|
|
338 |
SelectionInListView
|
|
339 |
TextCollector
|
|
340 |
TextView
|
|
341 |
Toggle
|
|
342 |
VerticalPanelView
|
|
343 |
VariableHorizontalPanel
|
|
344 |
VariableVerticalPanel
|
|
345 |
WarningBox
|
|
346 |
Workspace
|
|
347 |
YesNoBox
|
|
348 |
|
|
349 |
FilenameEditField
|
|
350 |
FilenameEnterBox
|
|
351 |
HorizontalSlider
|
|
352 |
ImageView
|
|
353 |
ImageEditView
|
|
354 |
LabelledEnterField
|
|
355 |
MultiColListEntry
|
|
356 |
Ruler
|
|
357 |
Slider
|
|
358 |
TabulatorSpecification
|
|
359 |
TextBox
|
|
360 |
|
|
361 |
ChangesBrowser
|
|
362 |
ContextInspectorView
|
|
363 |
DebugView
|
|
364 |
DictionaryInspectorView
|
|
365 |
DirectoryBrowser
|
|
366 |
FileBrowser
|
|
367 |
InspectorView
|
|
368 |
Launcher
|
|
369 |
OrderedCollectionInspectorView
|
|
370 |
ProjectView
|
|
371 |
SystemBrowser
|
16
|
372 |
BrowserView
|
10
|
373 |
|
16
|
374 |
UIPainter
|
|
375 |
|
|
376 |
TableView
|
|
377 |
TableSpecification
|
|
378 |
TableRowHandle
|
|
379 |
TableColumnView
|
|
380 |
TableColumnSpecification
|
|
381 |
SelTableColumnSpecification
|
|
382 |
TableDemoElement
|
10
|
383 |
).
|
|
384 |
|
12
|
385 |
optionalClasses do:[:s |
|
|
386 |
"install if not already compiled-in"
|
|
387 |
(Smalltalk at:s) isNil ifTrue:[
|
|
388 |
Autoload subclass:s
|
|
389 |
instanceVariableNames:''
|
|
390 |
classVariableNames:''
|
|
391 |
poolDictionaries:''
|
|
392 |
category:'autoloaded-Classes'.
|
10
|
393 |
].
|
|
394 |
]
|
|
395 |
].
|
|
396 |
|
12
|
397 |
"/
|
|
398 |
"/ additional compatibility classes
|
|
399 |
"/
|
|
400 |
compat := #(
|
|
401 |
BitBlt
|
|
402 |
Pen
|
|
403 |
Commander
|
7
|
404 |
OpaqueForm
|
12
|
405 |
AbstractPath
|
|
406 |
Path
|
|
407 |
Arc
|
|
408 |
Circle
|
|
409 |
Curve
|
|
410 |
LinearFit
|
|
411 |
Arrow
|
|
412 |
Line
|
|
413 |
Spline
|
|
414 |
Ellipse
|
|
415 |
DrawingPen
|
|
416 |
ActionMenu
|
|
417 |
FillInTheBlank
|
7
|
418 |
KeyedSet
|
12
|
419 |
FormView
|
|
420 |
NoController
|
|
421 |
MouseMenuController
|
7
|
422 |
StandardSystemController
|
12
|
423 |
ValueHolder
|
|
424 |
ComposedTextView
|
7
|
425 |
StringHolder
|
15
|
426 |
ClassOrganization
|
16
|
427 |
ApplicationModel
|
7
|
428 |
).
|
0
|
429 |
|
|
430 |
compat do:[:s |
|
|
431 |
"install if not already compiled-in"
|
|
432 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
433 |
Autoload subclass:s
|
|
434 |
instanceVariableNames:''
|
|
435 |
classVariableNames:''
|
|
436 |
poolDictionaries:''
|
|
437 |
category:'autoloaded-ST80-Classes'
|
0
|
438 |
]
|
|
439 |
]
|
12
|
440 |
!
|
0
|
441 |
|
12
|
442 |
"/
|
|
443 |
"/ a kludge: we might have added new ImageReaders above - let Image know about it
|
|
444 |
"/
|
|
445 |
"avoid introducing a new global ..."
|
|
446 |
(Smalltalk includesKey:#Image) ifTrue:[
|
|
447 |
(Smalltalk at:#Image) isBehavior ifTrue:[
|
|
448 |
(Smalltalk at:#Image) initializeFileFormatTable.
|
|
449 |
]
|
|
450 |
].
|
|
451 |
|
|
452 |
"/
|
|
453 |
"/ some ST80 name aliases
|
|
454 |
"/ (actually, much more is needed - this is just a start ...)
|
|
455 |
"/
|
|
456 |
(Smalltalk at:#StandardSystemView) notNil ifTrue:[
|
|
457 |
Smalltalk at:#ScheduledWindow put:StandardSystemView
|
|
458 |
].
|
|
459 |
(Smalltalk at:#Socket) notNil ifTrue:[
|
|
460 |
Smalltalk at:#UnixSocketAccessor put:Socket
|
|
461 |
].
|
|
462 |
Smalltalk at:#BlockClosure put:Block.
|
16
|
463 |
Smalltalk at:#Dialog put:DialogBox.
|
|
464 |
Smalltalk at:#DialogView put:DialogBox.
|
12
|
465 |
|
|
466 |
FileDirectory notNil ifTrue:[
|
|
467 |
Smalltalk at:#Disk put:(FileDirectory directoryNamed:'/')
|
|
468 |
].
|
|
469 |
Display notNil ifTrue:[
|
15
|
470 |
Smalltalk at:#Window put:(Display class).
|
|
471 |
Smalltalk at:#Screen put:(Display class).
|
12
|
472 |
].
|
|
473 |
|
|
474 |
"/
|
|
475 |
"/ ST/X has (currently) no Double, but Float is what ST-80's Double is ...
|
|
476 |
"/
|
|
477 |
Smalltalk at:#Double put:Float.
|
|
478 |
|
|
479 |
"/
|
16
|
480 |
"/ compatibility leftOver: Text has been renamed to StringCollection
|
|
481 |
"/
|
|
482 |
Smalltalk at:#Text put:StringCollection.
|
|
483 |
|
|
484 |
"/
|
12
|
485 |
"/ the following patches where added by the changesBrowsers 'make change a patch'
|
|
486 |
"/ function ...
|
|
487 |
"/
|
0
|
488 |
Transcript showCr:'installing patches ...' !
|
12
|
489 |
|
10
|
490 |
!OperatingSystem class methodsFor:'os queries'!
|
3
|
491 |
supportsIOInterrupts
|
|
492 |
"return true, if the OS supports IO availability interrupts
|
|
493 |
(i.e. SIGPOLL/SIGIO)."
|
|
494 |
|
7
|
495 |
"IO signals do not work currently
|
|
496 |
(I dont know why - streams work, but sockets fail to produce
|
|
497 |
an IO signal ..... help help help"
|
|
498 |
|
3
|
499 |
^ false
|
7
|
500 |
!
|
|
501 |
!
|