author | Claus Gittinger <cg@exept.de> |
Thu, 18 Jul 1996 21:47:33 +0200 | |
changeset 125 | 82e8b356f5c3 |
parent 117 | 578814b724ab |
child 131 | 20fc8bdf1de5 |
permissions | -rw-r--r-- |
12 | 1 |
"/ |
2 |
"/ $Header$ |
|
3 |
"/ |
|
4 |
"/ This file is processed at initial startup |
|
5 |
"/ - not when resuming an image. |
|
6 |
"/ |
|
0 | 7 |
|
12 | 8 |
"/ |
9 |
"/ install uncompiled classes as autoload |
|
10 |
"/ classes ... (if not already present) |
|
11 |
"/ Autoloaded classes will be automatically filed-in |
|
12 |
"/ when first accessed. This allows a smaller executable, |
|
13 |
"/ but creates a short delay, when the class is loaded on |
|
14 |
"/ first access. |
|
15 |
"/ |
|
16 |
"/ You can add more classes to these lists - |
|
17 |
"/ i.e. all your classes you like to have around, |
|
18 |
"/ but which are not needed often enough to justify |
|
19 |
"/ machine code for them ... |
|
0 | 20 |
|
24 | 21 |
|requiredClasses| |
22 |
||
81 | 23 |
"/ GLXWorkstation forceGL:true. |
79 | 24 |
"/ OperatingSystem disableSignal:14. |
81 | 25 |
|
26 |
||
26 | 27 |
ObjectMemory infoPrinting:false. |
81 | 28 |
Smalltalk loadBinaries:true. |
26 | 29 |
|
24 | 30 |
Project notNil ifTrue:[ |
31 |
Project setDefaultProject. |
|
25 | 32 |
Project current packageName:#'autoloaded'. |
24 | 33 |
]. |
10 | 34 |
|
12 | 35 |
"/ |
77 | 36 |
"/ when filing in, keep source as reference to file |
37 |
"/ (instead of keeping a string locally in the image) |
|
38 |
"/ |
|
85 | 39 |
"/ I disable this - its dangerous if you fileIn |
40 |
"/ classes from other directories and fileOut later clobbers those files |
|
41 |
"/ |
|
42 |
"/ ClassCategoryReader sourceMode:#reference. |
|
77 | 43 |
|
44 |
"/ |
|
12 | 45 |
"/ the following are required (either compiled or interpreted) ... |
46 |
"/ |
|
10 | 47 |
requiredClasses := #( |
77 | 48 |
ObsoleteObject |
49 |
BinaryIOManager BinaryInputManager BinaryOutputManager BinaryObjectStorage |
|
50 |
StringCollection |
|
51 |
). |
|
10 | 52 |
|
53 |
requiredClasses do:[:s | |
|
54 |
(Smalltalk at:s) isNil ifTrue:[ |
|
25 | 55 |
('loading ' , s , ' ...') infoPrintNL. |
10 | 56 |
Smalltalk fileInClass:s initialize:true lazy:false silent:true |
57 |
] |
|
58 |
]. |
|
24 | 59 |
! |
60 |
||
61 |
|optionalClasses optionalGames optionalDemos optionalApps optionalBench |
|
111 | 62 |
optionalTools optionalViews optionalImage compat optionalPro optionalUI |
63 |
foundAutoloadList| |
|
0 | 64 |
|
25 | 65 |
'installing autoloaded classes ...' infoPrintNL. |
0 | 66 |
|
24 | 67 |
(Smalltalk at:#View) isNil ifTrue:[ |
111 | 68 |
"/ |
26 | 69 |
"/ mhmh - seems to be a minitalk |
70 |
"/ try for shared libraries ... |
|
111 | 71 |
"/ |
26 | 72 |
Smalltalk loadBinaries:true. |
111 | 73 |
|
26 | 74 |
ObjectFileLoader notNil ifTrue:[ |
75 |
#( |
|
76 |
'libbasic2' |
|
77 |
'libbasic3' |
|
78 |
'libview' |
|
79 |
'libview2' |
|
80 |
'libwidg' |
|
81 |
'libwidg2' |
|
82 |
'libwidg3' |
|
83 |
'libxt' |
|
84 |
'libtool' |
|
85 |
'XWorkstat' |
|
86 |
'GLXWorkstat' |
|
87 |
) do:[:nm | |
|
74 | 88 |
('binary/' , nm) asFilename exists ifTrue:[ |
75 | 89 |
('loading ' , nm , ' ...') infoPrintNL. |
90 |
(ObjectFileLoader loadObjectFile:'binary/' , nm , (ObjectFileLoader sharedLibraryExtension)) ifFalse:[ |
|
74 | 91 |
'load of ' , nm , ' failed' infoPrintNL |
92 |
] |
|
26 | 93 |
]. |
94 |
]. |
|
95 |
Workstation initialize. |
|
96 |
GraphicsContext initialize. |
|
97 |
]. |
|
98 |
||
24 | 99 |
optionalViews := #( |
26 | 100 |
DeviceWorkstation |
24 | 101 |
Workstation |
26 | 102 |
XWorkstation |
24 | 103 |
DisplayRootView |
104 |
SimpleView |
|
105 |
TopView |
|
106 |
StandardSystemView |
|
107 |
ModalBox |
|
108 |
View |
|
109 |
PseudoView |
|
110 |
DeviceDrawable |
|
111 |
DisplayMedium |
|
112 |
GraphicsContext |
|
113 |
Image |
|
114 |
ViewStyle |
|
115 |
KeyboardMap |
|
116 |
KeyboardForwarder |
|
117 |
TextCollector |
|
77 | 118 |
SynchronousWindowSensor |
24 | 119 |
WindowSensor |
120 |
WindowGroup |
|
121 |
WindowEvent |
|
122 |
WindowingTransformation |
|
123 |
FontDescription |
|
124 |
Font |
|
125 |
Form |
|
126 |
Cursor |
|
127 |
Color |
|
128 |
Depth1Image |
|
129 |
Depth8Image |
|
130 |
ResourcePack |
|
131 |
Model |
|
132 |
Controller |
|
133 |
ApplicationModel |
|
134 |
WindowBuilder |
|
135 |
PopUpView |
|
136 |
ShadowView |
|
137 |
Colormap |
|
25 | 138 |
DeviceHandle |
139 |
DeviceFormHandle |
|
140 |
DeviceViewHandle |
|
141 |
DisplayObject |
|
24 | 142 |
). |
143 |
optionalViews do:[:s | |
|
144 |
"install if not already compiled-in" |
|
145 |
(Smalltalk at:s) isNil ifTrue:[ |
|
146 |
Autoload subclass:s |
|
147 |
instanceVariableNames:'' |
|
148 |
classVariableNames:'' |
|
149 |
poolDictionaries:'' |
|
150 |
category:'autoloaded-Views' |
|
151 |
] |
|
152 |
]. |
|
26 | 153 |
DeviceWorkstation autoload. |
154 |
XWorkstation autoload. |
|
72 | 155 |
Workstation autoload. |
156 |
DeviceHandle autoload. |
|
157 |
DeviceFormHandle autoload. |
|
158 |
DeviceViewHandle autoload. |
|
24 | 159 |
]. |
160 |
||
111 | 161 |
foundAutoloadList := false. |
162 |
[ |
|
117 | 163 |
|f s s2 l clsName abbrev package cat rev| |
111 | 164 |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
165 |
f := Smalltalk getSystemFileName:'include/abbrev.stc'. |
111 | 166 |
f notNil ifTrue:[ |
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
167 |
s := f asFilename readStream. |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
168 |
s notNil ifTrue:[ |
111 | 169 |
[s atEnd] whileFalse:[ |
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
170 |
l := s nextLine withoutSeparators. |
111 | 171 |
l notEmpty ifTrue:[ |
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
172 |
s2 := l readStream. |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
173 |
clsName := (s2 upTo:Character space) withoutSeparators asSymbol. |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
174 |
abbrev := (s2 upTo:Character space) withoutSeparators asSymbol. |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
175 |
package := (s2 upTo:Character space) withoutSeparators asSymbol. |
117 | 176 |
rev := nil. |
177 |
s2 skipSeparators. |
|
178 |
s2 atEnd ifFalse:[ |
|
179 |
s2 peek isDigit ifTrue:[ |
|
180 |
rev := (s2 upTo:Character space) withoutSeparators |
|
181 |
] |
|
182 |
]. |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
183 |
cat := s2 upToEnd withoutSeparators. |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
184 |
|
111 | 185 |
(cat startsWith:$') ifTrue:[ |
186 |
cat := cat copyFrom:2 to:(cat size - 1). |
|
187 |
||
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
188 |
"/ ' autoloaded: ' print. clsName print. ' in ' print. cat printNL. |
111 | 189 |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
190 |
"/ install if not already compiled-in |
111 | 191 |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
192 |
(Smalltalk at:clsName) isNil ifTrue:[ |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
193 |
Autoload subclass:clsName |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
194 |
instanceVariableNames:'' |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
195 |
classVariableNames:'' |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
196 |
poolDictionaries:'' |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
197 |
category:cat. |
117 | 198 |
(Smalltalk at:clsName) package:package asSymbol. |
199 |
rev notNil ifTrue:[ |
|
200 |
(Smalltalk at:clsName) setBinaryRevision:rev |
|
201 |
] |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
202 |
] |
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
203 |
] |
111 | 204 |
] |
205 |
]. |
|
206 |
s close. |
|
207 |
foundAutoloadList := true. |
|
114
d26d2bf8e816
extract autoload info from abbrev.stc
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
208 |
]. |
111 | 209 |
] |
210 |
] value. |
|
211 |
||
212 |
foundAutoloadList ifFalse:[ |
|
213 |
||
214 |
"/ old scheme ... |
|
215 |
||
12 | 216 |
"/ |
217 |
"/ the following are loaded on demand (if not already present) |
|
26 | 218 |
"/ in most configurations, the widgets and tools are already built-in |
219 |
"/ as compiled code. However, on pure-bytecode (minimal-) systems, these |
|
220 |
"/ can be executed as bytecode as well. |
|
12 | 221 |
"/ |
222 |
||
0 | 223 |
optionalGames := #( |
26 | 224 |
Tetris TetrisBlock |
225 |
TicTacToeGame TicTacToeView TicTacToePlayer |
|
7 | 226 |
). |
227 |
||
228 |
optionalDemos := #( |
|
229 |
Animation GlobeDemo RoundGlobe |
|
25 | 230 |
PenDemo CommanderDemo FractalPlantsDemo |
231 |
FractalPatternsDemo |
|
99 | 232 |
Calendar CalculatorView |
25 | 233 |
GLTeapotDemo GLTeapotView GLXYGraph |
7 | 234 |
GLPlaneDemoView1 GLPlaneDemoView2 |
235 |
GLSphereDemoView1 GLSphereDemoView2 |
|
236 |
GLObjectDemoView GLCubeDemoView GLTetraDemoView |
|
237 |
GLWireCubeDemoView GLWireSphereDemoView |
|
10 | 238 |
GLCubeDemoView2 GLBrickCubeDemoView Logo3DView1 GLPlanetDemoView |
26 | 239 |
GLOctaHedronDemoView GLDoughnutDemoView |
96 | 240 |
RubicsCube RubicsCubeView |
98 | 241 |
|
242 |
ColorDrawDemo ColorDrawDemo2 ColorDrawDemo3 FormDrawView |
|
7 | 243 |
). |
244 |
||
245 |
optionalApps := #( |
|
246 |
AddressBook AddressBook2 InitialLabelView AddressView |
|
247 |
||
248 |
DrawTool DrawObject DrawLine DrawText |
|
249 |
DrawRectangle DrawRoundRectangle DrawEllipse |
|
250 |
DrawPolygon DrawCurve DrawGroup DrawView DrawImage |
|
10 | 251 |
DrawVLine DrawHLine |
252 |
PatternMenu LineMenu |
|
7 | 253 |
|
254 |
LogicTool LogicView LogicObject Connection Input Output |
|
255 |
Low High Inverter AndGate OrGate AndGate2 NandGate2 OrGate2 NorGate2 ExorGate2 |
|
63 | 256 |
AndGate3 SubCircuit |
7 | 257 |
|
50 | 258 |
MailView MailHandler POPMailHandler MailLetter MailReplyTextView |
7 | 259 |
|
260 |
NewsView NewsHandler NNTPHandler NumberSet |
|
261 |
||
262 |
ArchiveView DirectoryView DirectoryViewObject |
|
263 |
DirectoryObject FileObject |
|
264 |
||
8 | 265 |
DocumentView DocumentReader RTFReader |
7 | 266 |
DisplayText DisplayPicture DisplayIcon DisplaySound |
267 |
||
268 |
Clock ClockView RoundClock RoundClock2 |
|
269 |
||
25 | 270 |
VocPanel VocView SoundStream |
7 | 271 |
). |
272 |
||
273 |
optionalTools := #( |
|
24 | 274 |
SystemBrowser DebugView FileBrowser DirectoryBrowser BrowserView |
275 |
ProjectView Launcher Workspace ChangesBrowser NewLauncher |
|
7 | 276 |
InspectorView OrderedCollectionInspectorView ContextInspectorView |
277 |
DictionaryInspectorView |
|
278 |
ImageInspectorView ColorInspectorView |
|
24 | 279 |
AboutBox |
8 | 280 |
|
59 | 281 |
Decompiler ChangeSetBrowser |
8 | 282 |
EventMonitor ProcessMonitor MemoryMonitor MemoryUsageView |
25 | 283 |
|
284 |
"/ highly EXPERIMENTAL |
|
285 |
||
286 |
XtInterface WidgetWrapper ScrollWidgetWrapper |
|
75 | 287 |
XtWidget XtTopLevel XtBox XtHTML |
25 | 288 |
XtWidgetWithLabelAndAction |
90 | 289 |
|
102 | 290 |
CLauncher CBrowser CChange CDirectory CEditor CFilter CHistory CCSetup |
97 | 291 |
AbstractSourceCodeManager CVSSourceCodeManager |
7 | 292 |
). |
293 |
||
294 |
optionalViews := #( |
|
26 | 295 |
Model ApplicationModel WindowBuilder |
296 |
||
61 | 297 |
GLXView GLPoint3D SliderBox |
7 | 298 |
DialogBox OptionBox TextBox |
8 | 299 |
InputView Ruler VerticalRuler TextRuler |
7 | 300 |
Slider HorizontalSlider |
301 |
SteppingSlider HorizontalSteppingSlider |
|
77 | 302 |
VariablePanel VariableVerticalPanel VariableHorizontalPanel |
303 |
VariablePanelController VariableVerticalPanelController VariableHorizontalPanelController |
|
24 | 304 |
FontPanel FramedBox Separator FileSelectionBox FileSaveBox |
8 | 305 |
RadioButton RadioButtonGroup "MotionButton MenuButton" |
21 | 306 |
PullDownMenu CheckBox |
24 | 307 |
RadioButtonController |
7 | 308 |
|
55 | 309 |
SyncedMultiColumnTextView |
7 | 310 |
TwoColumnTextView DiffTextView |
62
37e604eaad12
new: ThreeColTextView & Diff3TextView
Claus Gittinger <cg@exept.de>
parents:
61
diff
changeset
|
311 |
ThreeColumnTextView Diff3TextView |
7 | 312 |
FilenameEditField FilenameEnterBox |
25 | 313 |
ImageSelectionBox |
7 | 314 |
|
315 |
ScreenSaver LightInTheDark LightInTheDark2 |
|
316 |
||
24 | 317 |
ImageView ImageEditView LabelledEnterField |
7 | 318 |
Depth1Image Depth2Image Depth4Image Depth8Image Depth24Image |
319 |
TreeView TreeGraphView ClassTreeView ClassTreeGraphView WindowTreeView |
|
320 |
||
61 | 321 |
"/ ColorPanel HLSPanel RGBPanel ColorWheel ThreeSliderPanel |
322 |
"/ ColorSlider HueSlider RGBSlider SteppingColorSlider SteppingHueSlider |
|
323 |
"/ Scale HorizontalScale |
|
7 | 324 |
|
24 | 325 |
TabulatorSpecification |
326 |
ListEntry MultiColListEntry ColoredListEntry |
|
87 | 327 |
ViewScroller TabSpecRuler ComboView ComboListView ComboBoxView |
24 | 328 |
|
25 | 329 |
ProgressIndicator AnimatedLabel ActionWaitBox |
7 | 330 |
). |
331 |
||
21 | 332 |
optionalPro := #( |
26 | 333 |
EventListener |
334 |
ActiveHelpView ActiveHelp |
|
21 | 335 |
|
336 |
Builder BuilderView BuilderTreeView |
|
337 |
BuilderClassBox BuilderVariablesBox |
|
24 | 338 |
|
339 |
SelectionInHierarchy SelectionInHierarchyView |
|
340 |
HierarchyNode |
|
79 | 341 |
PSGraphicsContext PSFont PSFontFamily PSMedium |
21 | 342 |
). |
343 |
||
26 | 344 |
"/ optionalUI := #( |
345 |
"/ UIBuilder UIPainter UIMenuEditor |
|
346 |
"/ |
|
347 |
"/ UISpecification |
|
348 |
"/ ActionButtonSpec CheckBoxSpec FullSpec InputFieldSpec |
|
349 |
"/ LabelSpec SequenceViewSpec UnknownSpec WindowSpec |
|
350 |
"/ ). |
|
25 | 351 |
|
12 | 352 |
"/ notice, that it does not really make sense to |
353 |
"/ run Benchmarks in interpreted mode ..." |
|
354 |
"/ If you really weant to measure the system, include (load) compiled |
|
355 |
"/ benchmark classes |
|
7 | 356 |
|
110 | 357 |
"/optionalBench := #( |
358 |
"/ SlopstoneBenchmark SmopstoneBenchmark |
|
359 |
"/ STXBenchmarks1 STXBenchmarks2 |
|
360 |
"/ |
|
361 |
"/ "DeltaBlue benchmark" |
|
362 |
"/ AbstractConstraint BinaryConstraint Constraint |
|
363 |
"/ DBMethod DBVariable EditConstraint |
|
364 |
"/ EqualityConstraint Plan Planner ScaleConstraint |
|
365 |
"/ StayConstraint Strength UnaryConstraint XMouseConstraint |
|
366 |
"/ YMouseConstraint |
|
367 |
"/ |
|
368 |
"/ "RichardsBenchmarks" |
|
369 |
"/ DeviceTaskDataRecord HandlerTaskDataRecord |
|
370 |
"/ IdleTaskDataRecord Packet RBObject RichardsBenchmarks |
|
371 |
"/ TaskControlBlock TaskState WorkerTaskDataRecord |
|
372 |
"/ |
|
373 |
"/ "self benchmarks" |
|
374 |
"/ AbstractBenchmark AtAllPutBenchmark BenchmarkRunner |
|
375 |
"/ BubbleSort2Array BubbleSort2Benchmark BubbleSortBenchmark |
|
376 |
"/ Cons FastSumToBenchmark HanoiBenchmark HanoiDisk |
|
377 |
"/ IncrementAllBenchmark IntMM2Array IntMM2Benchmark |
|
378 |
"/ IntMM2Matrix IntMMBenchmark MM2Benchmark MMBenchmark |
|
379 |
"/ NestedLoopBenchmark Perm2Benchmark PermArray PermBenchmark |
|
380 |
"/ PuzzleArray PuzzleBenchmark Queens2Benchmark QueensBenchmark |
|
381 |
"/ Quicksort2Array Quicksort2Benchmark QuicksortBenchmark |
|
382 |
"/ RecurseBenchmark SieveBenchmark SumAllBenchmark |
|
383 |
"/ SumFromToBenchmark SumToBenchmark TakBenchmark TaklBenchmark |
|
384 |
"/ Towers2Benchmark Towers2Disk TowersBenchmark |
|
385 |
"/ TowersBenchmarkElement TreeSort2Benchmark TreeSort2Node |
|
386 |
"/ TreeSortBenchmark TreeSortNodeBenchmark |
|
387 |
"/ ). |
|
388 |
"/ |
|
8 | 389 |
optionalImage := #( |
390 |
GIFReader TIFFReader FaceReader WindowsIconReader SunRasterReader |
|
391 |
XBMReader JPEGReader PBMReader ST80FormReader XPMReader |
|
46 | 392 |
PCXReader TargaReader XWDReader BlitImageReader |
10 | 393 |
). |
8 | 394 |
|
7 | 395 |
optionalClasses := #( |
396 |
EpsonFX1PrinterStream HPLjetIIPrinterStream |
|
397 |
PostscriptPrinterStream |
|
111 | 398 |
ValueLink |
24 | 399 |
MessageTracer WrappedMethod |
7 | 400 |
|
401 |
PersistencyManager BinaryIOManager BinaryInputManager |
|
402 |
BinaryOutputManager DBFile BinaryObjectStorage |
|
403 |
||
41 | 404 |
RDoItServer SNMPOID SNMPSession |
7 | 405 |
|
75 | 406 |
HandlerCollection CacheDictionary |
25 | 407 |
Plug Random MessageSend MessageChannel |
24 | 408 |
MessageTally CallChain ProfileTree |
25 | 409 |
GraphicsAttributes |
109 | 410 |
Circle EllipticalArc Spline Polygon Curve LineSegment |
24 | 411 |
|
111 | 412 |
VisualComponent VisualPart Wrapper StrokingWrapper FillingWrapper |
110 | 413 |
|
78 | 414 |
ActorStream TokenizedStream |
105 | 415 |
RecursionLock Monitor Promise LockedFileStream |
416 |
||
111 | 417 |
BooleanArray WordArray Chain ChainLink |
56 | 418 |
|
102 | 419 |
JISEncodedString GBEncodedString BIG5EncodedString |
420 |
||
81 | 421 |
"/ VariableArray VariableString "/ backward compatibility - these will vanish |
7 | 422 |
). |
423 |
||
424 |
optionalViews do:[:s | |
|
425 |
"install if not already compiled-in" |
|
426 |
(Smalltalk at:s) isNil ifTrue:[ |
|
427 |
Autoload subclass:s |
|
428 |
instanceVariableNames:'' |
|
429 |
classVariableNames:'' |
|
430 |
poolDictionaries:'' |
|
431 |
category:'autoloaded-Views' |
|
432 |
] |
|
433 |
]. |
|
434 |
||
435 |
optionalTools do:[:s | |
|
436 |
"install if not already compiled-in" |
|
437 |
(Smalltalk at:s) isNil ifTrue:[ |
|
438 |
Autoload subclass:s |
|
439 |
instanceVariableNames:'' |
|
440 |
classVariableNames:'' |
|
441 |
poolDictionaries:'' |
|
442 |
category:'autoloaded-Tools' |
|
443 |
] |
|
444 |
]. |
|
0 | 445 |
|
446 |
optionalGames do:[:s | |
|
447 |
"install if not already compiled-in" |
|
448 |
(Smalltalk at:s) isNil ifTrue:[ |
|
7 | 449 |
Autoload subclass:s |
450 |
instanceVariableNames:'' |
|
451 |
classVariableNames:'' |
|
452 |
poolDictionaries:'' |
|
25 | 453 |
category:'autoloaded-Games' |
0 | 454 |
] |
455 |
]. |
|
456 |
||
3 | 457 |
optionalDemos do:[:s | |
458 |
"install if not already compiled-in" |
|
459 |
(Smalltalk at:s) isNil ifTrue:[ |
|
7 | 460 |
Autoload subclass:s |
461 |
instanceVariableNames:'' |
|
462 |
classVariableNames:'' |
|
463 |
poolDictionaries:'' |
|
25 | 464 |
category:'autoloaded-Demos' |
3 | 465 |
] |
466 |
]. |
|
467 |
||
0 | 468 |
optionalApps do:[:s | |
469 |
"install if not already compiled-in" |
|
470 |
(Smalltalk at:s) isNil ifTrue:[ |
|
7 | 471 |
Autoload subclass:s |
472 |
instanceVariableNames:'' |
|
473 |
classVariableNames:'' |
|
474 |
poolDictionaries:'' |
|
475 |
category:'autoloaded-Applications' |
|
0 | 476 |
] |
477 |
]. |
|
478 |
||
110 | 479 |
"/optionalBench do:[:s | |
480 |
"/ "install if not already compiled-in" |
|
481 |
"/ (Smalltalk at:s) isNil ifTrue:[ |
|
482 |
"/ Autoload subclass:s |
|
483 |
"/ instanceVariableNames:'' |
|
484 |
"/ classVariableNames:'' |
|
485 |
"/ poolDictionaries:'' |
|
486 |
"/ category:'autoloaded-Benchmarks' |
|
487 |
"/ ] |
|
488 |
"/]. |
|
7 | 489 |
|
8 | 490 |
optionalImage do:[:s | |
491 |
"install if not already compiled-in" |
|
492 |
(Smalltalk at:s) isNil ifTrue:[ |
|
493 |
Autoload subclass:s |
|
494 |
instanceVariableNames:'' |
|
495 |
classVariableNames:'' |
|
496 |
poolDictionaries:'' |
|
497 |
category:'autoloaded-Images' |
|
498 |
] |
|
499 |
]. |
|
500 |
||
7 | 501 |
optionalClasses do:[:s | |
502 |
"install if not already compiled-in" |
|
503 |
(Smalltalk at:s) isNil ifTrue:[ |
|
504 |
Autoload subclass:s |
|
505 |
instanceVariableNames:'' |
|
506 |
classVariableNames:'' |
|
507 |
poolDictionaries:'' |
|
508 |
category:'autoloaded-Classes' |
|
509 |
] |
|
510 |
]. |
|
511 |
||
26 | 512 |
optionalPro notNil ifTrue:[ |
513 |
optionalPro do:[:s | |
|
21 | 514 |
"install if not already compiled-in" |
515 |
||
516 |
(Smalltalk at:s) isNil ifTrue:[ |
|
517 |
Autoload subclass:s |
|
518 |
instanceVariableNames:'' |
|
519 |
classVariableNames:'' |
|
520 |
poolDictionaries:'' |
|
521 |
category:'autoloaded-Classes' |
|
522 |
] |
|
26 | 523 |
] |
21 | 524 |
]. |
525 |
||
26 | 526 |
optionalUI notNil ifTrue:[ |
527 |
optionalUI do:[:s | |
|
25 | 528 |
"install if not already compiled-in" |
529 |
||
530 |
(Smalltalk at:s) isNil ifTrue:[ |
|
531 |
Autoload subclass:s |
|
532 |
instanceVariableNames:'' |
|
533 |
classVariableNames:'' |
|
534 |
poolDictionaries:'' |
|
535 |
category:'autoloaded-UI' |
|
536 |
] |
|
26 | 537 |
] |
25 | 538 |
]. |
539 |
||
12 | 540 |
"/ |
541 |
"/ install all widget & tool classes as autoloaded |
|
542 |
"/ for compact systems (which have no GUI classes compiled in) ... |
|
543 |
"/ |
|
544 |
||
545 |
"/ |
|
546 |
"/ ... but only, if this is not a non GUI smalltalk |
|
547 |
"/ |
|
548 |
Workstation notNil ifTrue:[ |
|
549 |
optionalClasses := #( |
|
10 | 550 |
ArrowButton |
551 |
Button |
|
24 | 552 |
ButtonController |
10 | 553 |
CheckToggle |
554 |
ClickMenuView |
|
555 |
CodeView |
|
556 |
EnterFieldGroup |
|
557 |
EditTextView |
|
558 |
EditField |
|
559 |
EnterBox |
|
560 |
EnterBox2 |
|
561 |
FileSaveBox |
|
562 |
FileSelectionBox |
|
563 |
FileSelectionList |
|
564 |
FontPanel |
|
565 |
HorizontalMiniScroller |
|
566 |
HorizontalPanelView |
|
567 |
HorizontalScrollBar |
|
568 |
HorizontalScroller |
|
569 |
HVScrollableView |
|
570 |
InfoBox |
|
571 |
ListSelectionBox |
|
572 |
Label |
|
573 |
ListView |
|
574 |
MenuView |
|
575 |
MiniScroller |
|
576 |
ObjectView |
|
577 |
PanelView |
|
578 |
PopUpList |
|
73 | 579 |
PopUpListController |
10 | 580 |
PopUpMenu |
581 |
PullDownMenu |
|
582 |
ScrollableView |
|
583 |
ScrollBar |
|
584 |
Scroller |
|
585 |
SelectionInListView |
|
586 |
TextCollector |
|
587 |
TextView |
|
588 |
Toggle |
|
24 | 589 |
ToggleController |
10 | 590 |
VerticalPanelView |
77 | 591 |
VariablePanel |
24 | 592 |
VariablePanelController |
10 | 593 |
VariableHorizontalPanel |
24 | 594 |
VariableHorizontalPanelController |
10 | 595 |
VariableVerticalPanel |
24 | 596 |
VariableVerticalPanelController |
10 | 597 |
WarningBox |
598 |
YesNoBox |
|
599 |
||
16 | 600 |
TableView |
601 |
TableSpecification |
|
602 |
TableRowHandle |
|
603 |
TableColumnView |
|
604 |
TableColumnSpecification |
|
605 |
SelTableColumnSpecification |
|
606 |
TableDemoElement |
|
10 | 607 |
). |
608 |
||
12 | 609 |
optionalClasses do:[:s | |
610 |
"install if not already compiled-in" |
|
611 |
(Smalltalk at:s) isNil ifTrue:[ |
|
612 |
Autoload subclass:s |
|
613 |
instanceVariableNames:'' |
|
614 |
classVariableNames:'' |
|
615 |
poolDictionaries:'' |
|
25 | 616 |
category:'autoloaded-Views'. |
10 | 617 |
]. |
618 |
] |
|
619 |
]. |
|
620 |
||
12 | 621 |
"/ |
25 | 622 |
"/ additional compatibility classes (many are empty dummies to allow fileIn at least) |
12 | 623 |
"/ |
624 |
compat := #( |
|
24 | 625 |
BitBlt Pen Commander DrawingPen |
7 | 626 |
OpaqueForm |
25 | 627 |
"/ |
628 |
"/ the path stuff is no longer compatible |
|
629 |
"/ with ST-80 (i.e. dropped in ST; different implementation in VW) |
|
630 |
"/ |
|
24 | 631 |
AbstractPath Path |
25 | 632 |
Arc DCircle Curve LinearFit Arrow Line Spline Ellipse |
633 |
||
12 | 634 |
ActionMenu |
635 |
FillInTheBlank |
|
7 | 636 |
KeyedSet |
12 | 637 |
FormView |
638 |
NoController |
|
639 |
MouseMenuController |
|
7 | 640 |
StandardSystemController |
20 | 641 |
ControllerWithMenu |
24 | 642 |
ComposedText |
12 | 643 |
ComposedTextView |
25 | 644 |
CompositeView SubCanvas |
24 | 645 |
ClassOrganizer |
20 | 646 |
ApplicationController |
25 | 647 |
SocketAddress UDSocketAddress IPSocketAddress |
648 |
UnixProcess CEnvironment |
|
24 | 649 |
Layout LayoutOrigin LayoutFrame |
650 |
Icon Mask CachedImage |
|
651 |
CoveragePalette |
|
652 |
TextStream |
|
653 |
ColorValue |
|
654 |
SimpleDialog |
|
655 |
SourceFileManager |
|
65 | 656 |
ValueModel ValueHolder BufferedValueHolder TriggerValue BlockValue |
79 | 657 |
ConvertedValue |
25 | 658 |
StringHolder SelectionInList MultiSelectionInList SelectionInTable |
659 |
RowAdaptor SimpleBorder TableAdaptor TableInterface TwoDList |
|
24 | 660 |
PrintConverter |
25 | 661 |
PluggableAdaptor ProtocolAdaptor AspectAdaptor UpdateAdaptor |
662 |
CodeStream MethodNode NullScope ProgramNodeBuilder |
|
663 |
MenuItem TimestampPrintPolicy |
|
7 | 664 |
). |
0 | 665 |
|
666 |
compat do:[:s | |
|
667 |
"install if not already compiled-in" |
|
668 |
(Smalltalk at:s) isNil ifTrue:[ |
|
7 | 669 |
Autoload subclass:s |
670 |
instanceVariableNames:'' |
|
671 |
classVariableNames:'' |
|
672 |
poolDictionaries:'' |
|
673 |
category:'autoloaded-ST80-Classes' |
|
0 | 674 |
] |
675 |
] |
|
111 | 676 |
|
677 |
] "/ end of old scheme ... |
|
12 | 678 |
! |
0 | 679 |
|
12 | 680 |
"/ |
681 |
"/ a kludge: we might have added new ImageReaders above - let Image know about it |
|
682 |
"/ |
|
683 |
"avoid introducing a new global ..." |
|
684 |
(Smalltalk includesKey:#Image) ifTrue:[ |
|
685 |
(Smalltalk at:#Image) isBehavior ifTrue:[ |
|
686 |
(Smalltalk at:#Image) initializeFileFormatTable. |
|
687 |
] |
|
688 |
]. |
|
689 |
||
690 |
"/ |
|
691 |
"/ some ST80 name aliases |
|
692 |
"/ (actually, much more is needed - this is just a start ...) |
|
693 |
"/ |
|
694 |
(Smalltalk at:#StandardSystemView) notNil ifTrue:[ |
|
695 |
Smalltalk at:#ScheduledWindow put:StandardSystemView |
|
696 |
]. |
|
697 |
(Smalltalk at:#Socket) notNil ifTrue:[ |
|
24 | 698 |
Smalltalk at:#UnixSocketAccessor put:(Smalltalk at:#Socket) |
12 | 699 |
]. |
700 |
Smalltalk at:#BlockClosure put:Block. |
|
16 | 701 |
Smalltalk at:#Dialog put:DialogBox. |
702 |
Smalltalk at:#DialogView put:DialogBox. |
|
12 | 703 |
|
72 | 704 |
Smalltalk at:#Console put:Stderr. |
705 |
||
12 | 706 |
FileDirectory notNil ifTrue:[ |
707 |
Smalltalk at:#Disk put:(FileDirectory directoryNamed:'/') |
|
708 |
]. |
|
709 |
Display notNil ifTrue:[ |
|
15 | 710 |
Smalltalk at:#Window put:(Display class). |
711 |
Smalltalk at:#Screen put:(Display class). |
|
12 | 712 |
]. |
713 |
||
714 |
"/ |
|
715 |
"/ ST/X has (currently) no Double, but Float is what ST-80's Double is ... |
|
716 |
"/ |
|
717 |
Smalltalk at:#Double put:Float. |
|
718 |
||
24 | 719 |
Project notNil ifTrue:[ |
720 |
Project setDefaultProject. |
|
721 |
Project current packageName:#'patches'. |
|
722 |
]. |
|
723 |
||
724 |
||
26 | 725 |
Class catchMethodRedefinitions:false. |
125 | 726 |
'installing patches ...' infoPrintNL. |
727 |
||
16 | 728 |
"/ |
12 | 729 |
"/ the following patches where added by the changesBrowsers 'make change a patch' |
730 |
"/ function ... |
|
731 |
"/ |
|
125 | 732 |
! |
733 |