move SettingsApplication outside because its not a Launcher spezific tool
authorpenk
Fri, 13 Dec 2002 17:28:35 +0100
changeset 4379 2e224d2ccf50
parent 4378 7021197a578f
child 4380 0987d10ae2ba
move SettingsApplication outside because its not a Launcher spezific tool
AbstractLauncherApplication.st
--- a/AbstractLauncherApplication.st	Fri Dec 13 17:27:35 2002 +0100
+++ b/AbstractLauncherApplication.st	Fri Dec 13 17:28:35 2002 +0100
@@ -15,25 +15,12 @@
 
 ToolApplicationModel subclass:#AbstractLauncherApplication
 	instanceVariableNames:'transcript'
-	classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers'
+	classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers
+		OpenSettinsDialog SettingsList'
 	poolDictionaries:''
 	category:'Interface-Smalltalk'
 !
 
-HierarchicalList subclass:#HierarchicalSettingsApplList
-	instanceVariableNames:''
-	classVariableNames:''
-	poolDictionaries:''
-	privateIn:AbstractLauncherApplication
-!
-
-HierarchicalItem subclass:#HierarchicalSettingsApplItem
-	instanceVariableNames:'label icon applClass application nameString'
-	classVariableNames:''
-	poolDictionaries:''
-	privateIn:AbstractLauncherApplication::HierarchicalSettingsApplList
-!
-
 Object subclass:#LauncherDialogs
 	instanceVariableNames:''
 	classVariableNames:''
@@ -41,15 +28,6 @@
 	privateIn:AbstractLauncherApplication
 !
 
-ApplicationModel subclass:#SettingsDialog
-	instanceVariableNames:'appList requestor selectionInApplList subCanvasApplicationHolder
-		help applList appIsCategory doReload doSave enableReload
-		enableHelp enableOK'
-	classVariableNames:'ApplicationList'
-	poolDictionaries:''
-	privateIn:AbstractLauncherApplication
-!
-
 !AbstractLauncherApplication class methodsFor:'documentation'!
 
 copyright
@@ -144,6 +122,34 @@
     "Modified: 15.1.1997 / 21:15:38 / cg"
 ! !
 
+!AbstractLauncherApplication class methodsFor:'image specs'!
+
+communicationIcon
+    "This resource specification was automatically generated
+     by the ImageEditor of ST/X."
+
+    "Do not manually edit this!! If it is corrupted,
+     the ImageEditor may not be able to read the specification."
+
+    "
+     self communicationIcon inspect
+     ImageEditor openOnClass:self andSelector:#communicationIcon
+     Icon flushCachedIcons
+    "
+
+    <resource: #image>
+
+    ^Icon
+        constantNamed:#'AbstractLauncherApplication class communicationIcon'
+        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+@@@@_$RA@@@@@@@@@@@@@HED_ @@@@@@ U2+UX\@@@@@@@@@@H]U*52A@@@@ U*9^S-A  @@@@@@@HIT.HD4O8D@_%29^#6JZE"B@@@@@HIX-(@9!!&-\_"Z+
+.+QKZ(0@J @@@@@*@K*5SV2B*2XDQ+":,XR5WP8@@@@@BDJ5.+V@.E4KEA46-+*5U9TVHRD!!HP<+JKV:-%*SG1@Y@R8@WYV)I@A/@@@SH D$@E>K*BP-$PUH
+QH60)2U0[$:]KYPJN$RK,JX''[TFW]BB*)*4Z\K)[Q''L6''GD *JZ.HF4UV;H_**U6\+)%T7,WDUB3G:^%_E<@WB%RG*)8\+*BL(=Q#@(!!R!!2-_P5-@@AUNA!!4
+BGV:.(IQ)I<LQS@R^VE([P@@(E9OZQT/[[*:-9=YO8M''S6B ZF4@@@@@[0@[M0I5.)!!!!(4NE@F<@&$&C@@@@@@@@G&PCBGYV&;@<!!P@@#$^P@@@@@@@@@FN@
+[R<#+J2,PHT@%$2E@@@@@@@@@@BEA7>"I;B/''$*H%$"I@@@@@@@@@@@@$#D]^RF''*F]5$D2I@@@@@@@@@@@@@@BIKB<F(VHIHSNE@@@@@@@@@@@@@@@@@I$>
+MVY7@@@@@@@@@@@@@@@@@@@@@@@@!!3Y9@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 0 0 0 7 7 7 12 12 12 20 20 20 23 23 23 24 24 24 28 28 28 30 30 30 32 32 32 35 35 35 40 40 40 41 41 41 43 43 43 45 45 45 48 47 48 50 49 50 51 50 51 52 52 52 54 53 54 55 54 55 56 56 56 58 57 58 58 58 58 59 59 59 60 59 60 60 60 60 61 61 61 62 62 62 66 65 66 66 66 66 67 66 67 68 67 68 69 69 69 70 69 70 70 70 70 71 71 71 72 71 72 73 73 73 74 73 74 75 75 75 76 75 76 76 76 76 77 76 77 78 78 78 79 79 79 80 80 80 85 84 85 86 84 86 86 85 86 87 86 87 87 87 87 88 87 88 89 88 89 89 89 89 90 88 90 90 89 90 93 91 93 93 93 93 94 92 94 94 93 94 96 94 96 97 96 97 98 97 98 99 98 99 99 99 99 100 99 100 100 100 100 102 102 102 103 103 103 104 103 104 104 104 104 105 105 105 106 106 106 108 107 108 109 109 109 110 110 110 111 110 111 113 113 113 114 113 114 114 114 114 115 115 115 116 116 116 117 115 117 118 118 118 120 120 120 121 121 121 122 121 122 122 122 122 123 122 123 123 123 123 124 124 124 125 125 125 127 127 127 128 128 128 129 129 129 130 130 130 131 131 131 132 131 132 132 132 132 133 132 133 134 134 134 135 135 135 136 136 136 137 137 137 138 138 138 140 139 140 142 142 142 147 147 147 151 151 151 153 153 153 154 154 154 155 155 155 156 155 156 156 156 156 159 159 159 164 163 164 165 165 165 167 167 167 168 168 168 170 170 170 172 172 172 174 174 174 175 174 175 177 177 177 178 178 178 181 181 181 182 182 182 183 183 183 185 185 185 189 189 189 190 190 190 191 191 191 192 192 192 194 192 194 194 194 194 195 195 195 196 196 196 198 196 198 199 198 199 200 200 200 201 200 201 201 201 201 202 201 202 202 202 202 203 203 203 204 204 204 205 204 205 205 205 205 206 205 206 206 206 206 209 209 209 210 210 210 211 211 211 212 212 212 213 212 213 213 213 213 214 214 214 215 213 215 215 215 215 216 216 216 217 216 217 217 217 217 218 217 218 219 219 219 221 219 221 222 221 222 224 222 224 224 223 224 225 223 225 225 224 225 225 225 225 226 224 226 226 225 226 227 226 227 228 226 228 229 228 229 231 231 231 232 231 232 235 234 235 237 237 237 239 239 239 241 241 241 244 244 244 247 247 247 248 248 248 255 255 255]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@C O G0_0O8?8_<?(W<?8_<???<=:^<???<???<???<_??<O??<O??<B?=\@?<8@?=0@?? @??@@_>@@O @@G@@') ; yourself); yourself]
+! !
+
 !AbstractLauncherApplication class methodsFor:'queries'!
 
 isVisualStartable
@@ -159,6 +165,91 @@
     "
 ! !
 
+!AbstractLauncherApplication class methodsFor:'settings application list'!
+
+addSettingsApplicationByClass:aClass withName:aName icon:aIcon
+
+    | setList addItem|
+
+    setList := self settingsList.
+    addItem := Array with:aName with:aClass with:aIcon.
+    setList add:addItem.
+    OpenSettinsDialog notNil ifTrue:[
+        self installSettingsEntry:addItem forSettingsApp:OpenSettinsDialog.
+    ].
+!
+
+defaultSettingsApplicationList
+
+    ^ #(          
+        #('Tools'                       #'AbstractSettingsApplication::ToolsSettingsAppl'               )
+        #('Language'                    #'AbstractSettingsApplication::LanguageSettingsAppl'            )
+        #('Keyboard Mappings'           #'AbstractSettingsApplication::KbdMappingSettingsAppl'          )
+        #('Style Selection'             #'AbstractSettingsApplication::StyleSettingsAppl'               )
+        #('System Messages'             #'AbstractSettingsApplication::SystemMessageSettingsAppl'       )
+        #('Compiler'                    #'AbstractSettingsApplication::CompilerSettingsAppl'            )
+        #('Memory'                      #'AbstractSettingsApplication::MemorySettingsAppl'              )
+        #('SourceCode & Debugger'       #'AbstractSettingsApplication::SourceAndDebuggerSettingsAppl'   )
+        #('Printer'                     #'AbstractSettingsApplication::PrinterSettingsAppl'             )
+        #('Display'                     #'AbstractSettingsApplication::DisplaySettingsAppl'             )
+        #('Editor'                      #'AbstractSettingsApplication::EditSettingsAppl'                )
+        #('Misc'                        #'AbstractSettingsApplication::MiscSettingsAppl'                )
+        #('Communication/RDoIt'         #'AbstractSettingsApplication::RDoItServerSettingsAppl'         )
+        #('Communication/HTTP Server'   #'AbstractSettingsApplication::HTTPServerSettingsAppl'          )
+        #('Communication/OSI Protocol'  #'AbstractSettingsApplication::OsiSettingsAppl'                 )
+        #('Communication/Misc'          #'AbstractSettingsApplication::MiscCommunicationSettingsAppl'   )
+    ) 
+!
+
+installSettingsApplicationsIn:aSettingsApp
+
+    aSettingsApp addIcon:self communicationIcon forCategory:'Communication'.
+
+    self settingsList do:[ :entry| | applName applClass  |
+        self installSettingsEntry:entry forSettingsApp:aSettingsApp.
+    ].
+!
+
+installSettingsEntry:entry forSettingsApp:aSettingsApp
+
+    |applName applClass|
+
+    applName := entry at:1.
+    applClass := entry at:2.
+    aSettingsApp addApplClass:applClass withName:applName 
+!
+
+removeSettingsApplicationByClass:aClass
+
+    | setList remItem|
+
+    setList := self settingsList.
+    remItem := setList detect:[:item| (item at:2) = aClass] ifNone:[nil].
+    remItem notNil ifTrue:[
+        setList remove:remItem.
+    ].
+    OpenSettinsDialog notNil ifTrue:[
+        self removeSettingsEntry:remItem forSettingsApp:OpenSettinsDialog.
+    ].
+!
+
+removeSettingsEntry:entry forSettingsApp:aSettingsApp
+
+    |applName applClass|
+
+    applName := entry at:1.
+    applClass := entry at:2.
+    aSettingsApp remApplClass:applName. 
+!
+
+settingsList
+
+    SettingsList isNil ifTrue:[
+        SettingsList := self defaultSettingsApplicationList.
+    ].
+    ^ SettingsList
+! !
+
 !AbstractLauncherApplication methodsFor:'private'!
 
 findApplicationClass:classOrClassName nameSpace:aNameSpace
@@ -302,14 +393,6 @@
     ]
 !
 
-openSettings
-
-    | builder|
-
-    builder := SettingsDialog open.
-    builder application requestor:self.
-!
-
 pickAView
     "let user pick a view and return it"
 
@@ -581,6 +664,29 @@
     ^ transcript 
 ! !
 
+!AbstractLauncherApplication methodsFor:'settings dialog'!
+
+openSettings
+
+    | settingsApp |
+
+    OpenSettinsDialog notNil ifTrue:[ 
+        OpenSettinsDialog window raise.
+        ^ self.
+    ].
+    settingsApp := SettingsDialog new.
+    settingsApp requestor:self.
+    self class installSettingsApplicationsIn:settingsApp.
+    settingsApp requestor:self.
+    OpenSettinsDialog := settingsApp.
+    settingsApp open.
+!
+
+settingsClosed
+
+    OpenSettinsDialog := nil. 
+! !
+
 !AbstractLauncherApplication methodsFor:'startup / release'!
 
 addTopViewsToCurrentProject
@@ -1672,97 +1778,6 @@
     ]
 ! !
 
-!AbstractLauncherApplication::HierarchicalSettingsApplList class methodsFor:'accessing'!
-
-itemClass
-
-    ^ HierarchicalSettingsApplItem
-! !
-
-!AbstractLauncherApplication::HierarchicalSettingsApplList class methodsFor:'queries'!
-
-recursiveGetParentFor:aCategory
-! !
-
-!AbstractLauncherApplication::HierarchicalSettingsApplList::HierarchicalSettingsApplItem methodsFor:'accessing'!
-
-applClass
-    "return the value of the instance variable 'applClass' (automatically generated)"
-
-    ^ applClass
-!
-
-applClass:something
-    "set the value of the instance variable 'applClass' (automatically generated)"
-
-    applClass := something.
-!
-
-application
-    "return the value of the instance variable 'application' (automatically generated)"
-
-    ^ application
-!
-
-application:something
-    "set the value of the instance variable 'application' (automatically generated)"
-
-    application := something.
-!
-
-icon
-    "returns the icon
-    "
-    icon isNil ifTrue:[
-        ^ super icon
-    ].
-    ^ icon
-!
-
-icon:something
-    "set the value of the instance variable 'icon' (automatically generated)"
-
-    icon := something.
-!
-
-label
-    "returns the label
-    "
-    ^ label
-!
-
-label:something
-    "set the value of the instance variable 'label' (automatically generated)"
-
-    label := something.
-!
-
-nameString
-    "return the value of the instance variable 'nameString' (automatically generated)"
-
-    ^ nameString
-!
-
-nameString:something
-    "set the value of the instance variable 'nameString' (automatically generated)"
-
-    nameString := something.
-! !
-
-!AbstractLauncherApplication::HierarchicalSettingsApplList::HierarchicalSettingsApplItem methodsFor:'printing & storing'!
-
-printString
-
-    ^ self label ? '???'
-! !
-
-!AbstractLauncherApplication::HierarchicalSettingsApplList::HierarchicalSettingsApplItem methodsFor:'queries'!
-
-isCategory
-
-    ^ self applClass isNil
-! !
-
 !AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'!
 
 communicationsSettings
@@ -6560,1058 +6575,8 @@
       )
 ! !
 
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'application icons'!
-
-communicationIcon
-    "This resource specification was automatically generated
-     by the ImageEditor of ST/X."
-
-    "Do not manually edit this!! If it is corrupted,
-     the ImageEditor may not be able to read the specification."
-
-    "
-     self communicationIcon inspect
-     ImageEditor openOnClass:self andSelector:#communicationIcon
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'AbstractLauncherApplication::SettingsDialog class communicationIcon'
-        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
-@@@@_$RA@@@@@@@@@@@@@HED_ @@@@@@ U2+UX\@@@@@@@@@@H]U*52A@@@@ U*9^S-A  @@@@@@@HIT.HD4O8D@_%29^#6JZE"B@@@@@HIX-(@9!!&-\_"Z+
-.+QKZ(0@J @@@@@*@K*5SV2B*2XDQ+":,XR5WP8@@@@@BDJ5.+V@.E4KEA46-+*5U9TVHRD!!HP<+JKV:-%*SG1@Y@R8@WYV)I@A/@@@SH D$@E>K*BP-$PUH
-QH60)2U0[$:]KYPJN$RK,JX''[TFW]BB*)*4Z\K)[Q''L6''GD *JZ.HF4UV;H_**U6\+)%T7,WDUB3G:^%_E<@WB%RG*)8\+*BL(=Q#@(!!R!!2-_P5-@@AUNA!!4
-BGV:.(IQ)I<LQS@R^VE([P@@(E9OZQT/[[*:-9=YO8M''S6B ZF4@@@@@[0@[M0I5.)!!!!(4NE@F<@&$&C@@@@@@@@G&PCBGYV&;@<!!P@@#$^P@@@@@@@@@FN@
-[R<#+J2,PHT@%$2E@@@@@@@@@@BEA7>"I;B/''$*H%$"I@@@@@@@@@@@@$#D]^RF''*F]5$D2I@@@@@@@@@@@@@@BIKB<F(VHIHSNE@@@@@@@@@@@@@@@@@I$>
-MVY7@@@@@@@@@@@@@@@@@@@@@@@@!!3Y9@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 0 0 0 7 7 7 12 12 12 20 20 20 23 23 23 24 24 24 28 28 28 30 30 30 32 32 32 35 35 35 40 40 40 41 41 41 43 43 43 45 45 45 48 47 48 50 49 50 51 50 51 52 52 52 54 53 54 55 54 55 56 56 56 58 57 58 58 58 58 59 59 59 60 59 60 60 60 60 61 61 61 62 62 62 66 65 66 66 66 66 67 66 67 68 67 68 69 69 69 70 69 70 70 70 70 71 71 71 72 71 72 73 73 73 74 73 74 75 75 75 76 75 76 76 76 76 77 76 77 78 78 78 79 79 79 80 80 80 85 84 85 86 84 86 86 85 86 87 86 87 87 87 87 88 87 88 89 88 89 89 89 89 90 88 90 90 89 90 93 91 93 93 93 93 94 92 94 94 93 94 96 94 96 97 96 97 98 97 98 99 98 99 99 99 99 100 99 100 100 100 100 102 102 102 103 103 103 104 103 104 104 104 104 105 105 105 106 106 106 108 107 108 109 109 109 110 110 110 111 110 111 113 113 113 114 113 114 114 114 114 115 115 115 116 116 116 117 115 117 118 118 118 120 120 120 121 121 121 122 121 122 122 122 122 123 122 123 123 123 123 124 124 124 125 125 125 127 127 127 128 128 128 129 129 129 130 130 130 131 131 131 132 131 132 132 132 132 133 132 133 134 134 134 135 135 135 136 136 136 137 137 137 138 138 138 140 139 140 142 142 142 147 147 147 151 151 151 153 153 153 154 154 154 155 155 155 156 155 156 156 156 156 159 159 159 164 163 164 165 165 165 167 167 167 168 168 168 170 170 170 172 172 172 174 174 174 175 174 175 177 177 177 178 178 178 181 181 181 182 182 182 183 183 183 185 185 185 189 189 189 190 190 190 191 191 191 192 192 192 194 192 194 194 194 194 195 195 195 196 196 196 198 196 198 199 198 199 200 200 200 201 200 201 201 201 201 202 201 202 202 202 202 203 203 203 204 204 204 205 204 205 205 205 205 206 205 206 206 206 206 209 209 209 210 210 210 211 211 211 212 212 212 213 212 213 213 213 213 214 214 214 215 213 215 215 215 215 216 216 216 217 216 217 217 217 217 218 217 218 219 219 219 221 219 221 222 221 222 224 222 224 224 223 224 225 223 225 225 224 225 225 225 225 226 224 226 226 225 226 227 226 227 228 226 228 229 228 229 231 231 231 232 231 232 235 234 235 237 237 237 239 239 239 241 241 241 244 244 244 247 247 247 248 248 248 255 255 255]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@C O G0_0O8?8_<?(W<?8_<???<=:^<???<???<???<_??<O??<O??<B?=\@?<8@?=0@?? @??@@_>@@O @@G@@') ; yourself); yourself]
-!
-
-defaultSettingsAppIcon
-
-    ^ self settingsIcon
-!
-
-settingsIcon
-    "This resource specification was automatically generated
-     by the ImageEditor of ST/X."
-
-    "Do not manually edit this!! If it is corrupted,
-     the ImageEditor may not be able to read the specification."
-
-    "
-     self settingsIcon inspect
-     ImageEditor openOnClass:self andSelector:#settingsIcon
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'AbstractLauncherApplication::SettingsDialog class settingsIcon'
-        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
-@@BP#8>O#8>M  @@@@@@@@@@@@@@@@BJ%9&Y&Y&Y%R^B@@@@@@@@@@@@@@BI&J^(*J"(*JZTIIFQ$YFQ$YH@@@@@ JN#(:N#(:N#(9.V%)ZV%)ZKZP@@@HOU
-4=OS4=OL3,''I0<B;/]F3*TE?@@BC5MKR4-KM,\^:.MJ:-;21/:1D_@@@ =SR4-KM3<+K/<J01,R20+R+QG0@@HOT4-KR/,^?-\[H1(Q^WW"1*4Q<@@BC5MKR
-,-CO1<>/+(X*F1(S,Z1D_@@@ =SR4-J:2,[J0X  TU!!BE+F$GS!!=@HOT,+WK.\J/28\&TV=EKAV1RELG  BC5L7H0-KB/HT TV-CKA8>TG@=_H8M ;[H1+::
--;8\TWECKBD9)T=0]R40AXOE2;F5-;:/G6)EKBD?ZF5KV#ITJ0M>''*B_''ZF]''5,(KA8)X8ENU#XR@ )L^1$YFQ$YFQ$WBA PE@QMVSDON82S@@@@@@@@@@@@
-@@A_@F)IU#DQMWH@@@@@@@@@@@@@@@@@@F1JWC\LMJI''^ @@@@@@@@@@@@@@@F9GU28ROGI%+VY4@@@@@@@@@@@@@GIFXC(IL9(@^VR*X''\@@@@@@@@@@@AU
-IPXKP@@@@@A3XZ4#@@@@@@@@@@@@# 8AK90@@@@@@GX"T @a') ; colorMapFromArray:#[0 0 0 0 60 60 0 84 84 4 45 45 21 20 15 38 38 38 38 192 192 43 43 43 45 45 45 45 151 151 46 99 99 46 147 147 46 151 151 47 47 47 47 88 88 47 151 151 48 48 48 48 144 144 48 145 145 56 53 38 57 57 49 59 52 40 62 56 43 65 65 53 65 65 65 67 67 54 68 68 68 70 70 70 72 64 47 72 72 35 72 72 72 73 69 48 73 73 73 74 74 74 80 44 10 80 62 43 81 81 24 84 132 132 85 85 76 86 86 36 86 86 86 87 87 49 87 87 77 87 193 193 88 88 88 91 101 101 92 193 193 94 117 117 97 97 97 97 193 193 98 195 195 99 120 120 101 75 31 101 107 89 101 193 193 102 193 193 103 103 103 104 86 69 106 193 193 107 120 120 107 121 121 109 109 109 110 96 70 111 78 42 111 119 119 113 113 60 113 113 113 115 115 115 116 116 56 116 116 116 116 145 145 118 147 147 119 121 85 121 150 150 122 151 151 122 152 148 124 124 124 124 146 139 124 151 149 127 118 78 127 119 78 128 128 128 129 120 112 133 157 157 135 216 216 137 137 137 139 207 207 140 206 206 141 141 141 141 201 201 141 202 202 142 136 75 142 201 201 143 128 88 143 143 88 144 144 144 144 204 204 145 85 24 146 126 100 147 82 13 148 83 17 148 86 24 148 123 91 148 127 98 149 122 89 150 150 150 151 151 151 152 152 152 152 155 155 153 129 100 154 154 154 156 156 156 156 199 199 157 157 157 158 158 158 159 159 159 160 160 160 162 179 179 163 161 159 163 163 162 164 151 101 164 160 156 164 163 161 165 165 150 165 165 165 168 168 168 169 169 62 171 171 171 172 172 71 174 117 58 177 177 177 178 178 89 185 174 113 186 178 115 186 186 115 189 179 116 189 189 115 189 189 132 190 190 139 192 192 142 192 192 192 193 193 154 194 194 194 196 196 155 197 197 159 200 200 168 202 202 174 202 202 202 204 204 102 205 205 97 206 206 149 210 210 144 210 210 149 213 213 103 213 213 213 215 215 164 215 215 215 227 212 124 227 213 140 227 217 124 227 220 124 227 227 124 234 156 79 236 236 197 239 214 144 243 201 148 243 243 146 243 243 155 244 244 147 245 232 157 247 165 83 248 215 149 248 231 149 255 170 86 255 227 156 255 228 156 255 229 156 255 230 156 255 231 156 255 233 168 255 234 156 255 235 156 255 235 193 255 236 156 255 237 156 255 238 156 255 239 156 255 239 168 255 240 156 255 240 168 255 241 156 255 242 156 255 242 168 255 243 156 255 244 156 255 244 168 255 245 156 255 245 193 255 246 156 255 247 156 255 248 156 255 248 168 255 249 156 255 250 156 255 250 168 255 251 156 255 251 168 255 252 156 255 253 156 255 253 168 255 255 156 255 255 168 255 255 193 255 255 200]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'O<@@_>@@???@??? ???0???0???0???0???0???8???8???<???<???<???<???8@B? @A?0@C?8@G=<@G0<@G0\') ; yourself); yourself]
-! !
-
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'application list access'!
-
-settingsAppListClasses
-
-    ^ self applList collect:[:entry | entry at:2].
-!
-
-settingsAppListNames
-
-    ^ self applList collect:[:entry | entry first].
-! !
-
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'applications'!
-
-addApplClass:aClass withName:aName
-
-    self addApplClass:aClass withName:aName inCategory:nil icon:nil.
-!
-
-addApplClass:aClass withName:aName inCategory:aCategory icon:icon
-
-    ApplicationList isNil ifTrue:[
-        self initialize.
-    ].    
-    (self settingsAppListNames includes:aName) ifTrue:[
-        ^ self.
-    ].
-    (self settingsAppListNames includes:aCategory) not ifTrue:[
-        self error:'category for listentry doesnt exist'
-    ].
-    ApplicationList add:(Array with:aName with:aClass asString asSymbol with:aCategory with:icon)
-!
-
-addCategory:aCatString inCategory:aInCatStringOrNil icon:aIcon
-
-" add a new category aCatString under categorie aInCatStringOrNil with icon 
-  if aInCatStringOrNil is nil the category is inserted under root "
-
-    ApplicationList isNil ifTrue:[
-        self initialize.
-    ].
-    ApplicationList add:(Array with:aCatString with:nil with:aInCatStringOrNil with:aIcon)
-!
-
-applList
-    ApplicationList isNil ifTrue:[
-        self initialize.
-    ].
-    ^ ApplicationList 
-!
-
-defaultAppList                                                                 
-    " list of settings applications                        
-      format: nameString applicationClassNameMethodOrNil inCategory iconClass iconSelector"
-    
-    | appList |
-    appList := OrderedCollection new.
-    #(          
-        #('Tools'    #'AbstractSettingsApplication::ToolsSettingsAppl' nil nil nil)
-        #('Language' #'AbstractSettingsApplication::LanguageSettingsAppl' nil nil nil )
-        #('Keyboard Mappings' #'AbstractSettingsApplication::KbdMappingSettingsAppl' nil nil nil )
-        #('Style Selection' #'AbstractSettingsApplication::StyleSettingsAppl' nil nil nil)
-        #('System Messages' #'AbstractSettingsApplication::SystemMessageSettingsAppl' nil nil nil)
-        #('Compiler' #'AbstractSettingsApplication::CompilerSettingsAppl' nil nil nil)
-        #('Memory' #'AbstractSettingsApplication::MemorySettingsAppl' nil nil nil)
-        #('SourceCode & Debugger' #'AbstractSettingsApplication::SourceAndDebuggerSettingsAppl' nil nil nil)
-        #('Printer' #'AbstractSettingsApplication::PrinterSettingsAppl' nil nil nil)
-        #('Display' #'AbstractSettingsApplication::DisplaySettingsAppl' nil nil nil)
-        #('Editor' #'AbstractSettingsApplication::EditSettingsAppl' nil nil nil)
-        #('Misc' #'AbstractSettingsApplication::MiscSettingsAppl' nil nil nil)
-        #('Communication' nil nil #'AbstractLauncherApplication::SettingsDialog' #communicationIcon)
-        #('RDoIt' #'AbstractSettingsApplication::RDoItServerSettingsAppl' 'Communication' nil nil)
-        #('HTTP Server' #'AbstractSettingsApplication::HTTPServerSettingsAppl' 'Communication' nil nil)
-        #('OSI Protocol' #'AbstractSettingsApplication::OsiSettingsAppl' 'Communication' nil nil)
-        #('Misc' #'AbstractSettingsApplication::MiscCommunicationSettingsAppl' 'Communication' nil nil)
-    ) do:[ :entry| | nameString applicationClassNameMethodOrNil inCategory iconClass iconSelector icon |
-        nameString := entry at:1.
-        applicationClassNameMethodOrNil := entry at:2.
-        inCategory := entry at:3.
-        iconClass := entry at:4.
-        iconSelector := entry at:5.
-        (iconClass notNil and:[iconSelector notNil]) ifTrue:[
-            icon := ((Smalltalk classNamed:iconClass) perform:iconSelector)
-        ].
-        appList add:(Array with:nameString with:applicationClassNameMethodOrNil with:inCategory with:icon).
-    ].
-    ^ appList
-!
-
-removeApplByClass:aClass
-
-    | classEntries|
-
-    ApplicationList isNil ifTrue:[
-        self initialize.
-    ].
-    classEntries := ApplicationList select:[: aEntry | ((aEntry at:2) == aClass)].
-    ApplicationList removeAll:classEntries.
-!
-
-removeCategoryByName:aCatName
-
-    |index|
-
-    ApplicationList isNil ifTrue:[
-        self initialize.
-    ].
-    index := ApplicationList findFirst:[:el |
-        el first == aCatName
-    ].
-    index ~~ 0 ifTrue:[
-        ApplicationList removeIndex:index.
-    ].
-! !
-
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'initialize'!
-
-initialize
-
-    ApplicationList := self defaultAppList asOrderedCollection.
-
-"
-    self initialize
-"
-! !
-
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'interface specs'!
-
-windowSpec
-    "This resource specification was automatically generated
-     by the UIPainter of ST/X."
-
-    "Do not manually edit this!! If it is corrupted,
-     the UIPainter may not be able to read the specification."
-
-    "
-     UIPainter new openOnClass:AbstractLauncherApplication::SettingsDialog andSelector:#windowSpec
-     AbstractLauncherApplication::SettingsDialog new openInterface:#windowSpec
-     AbstractLauncherApplication::SettingsDialog open
-    "
-
-    <resource: #canvas>
-
-    ^ 
-     #(#FullSpec
-        #name: #windowSpec
-        #window: 
-       #(#WindowSpec
-          #label: 'Settings Dialog'
-          #name: 'Settings Dialog'
-          #min: #(#Point 10 10)
-          #max: #(#Point 1024 768)
-          #bounds: #(#Rectangle 12 22 812 642)
-          #menu: #mainMenu
-        )
-        #component: 
-       #(#SpecCollection
-          #collection: #(
-           #(#VariableHorizontalPanelSpec
-              #name: 'VariableHorizontalPanel1'
-              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
-              #showHandle: true
-              #snapMode: #both
-              #component: 
-             #(#SpecCollection
-                #collection: #(
-                 #(#ViewSpec
-                    #name: 'Box1'
-                    #component: 
-                   #(#SpecCollection
-                      #collection: #(
-                       #(#HierarchicalListViewSpec
-                          #name: 'HierarchicalListView1'
-                          #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -34 1)
-                          #model: #selectionInApplList
-                          #hasHorizontalScrollBar: true
-                          #hasVerticalScrollBar: true
-                          #listModel: #applList
-                          #useIndex: false
-                          #highlightMode: #label
-                          #showLeftIndicators: false
-                          #indicatorSelector: #doIndicatorClick:
-                        )
-                       #(#HorizontalPanelViewSpec
-                          #name: 'HorizontalPanel2'
-                          #layout: #(#LayoutFrame 0 0.0 -34 1 0 1.0 0 1)
-                          #horizontalLayout: #fitSpace
-                          #verticalLayout: #center
-                          #horizontalSpace: 3
-                          #verticalSpace: 3
-                          #component: 
-                         #(#SpecCollection
-                            #collection: #(
-                             #(#ActionButtonSpec
-                                #label: 'Save to Disc ...'
-                                #name: 'Button1'
-                                #translateLabel: true
-                                #model: #saveSettings
-                                #extent: #(#Point 128 22)
-                              )
-                             #(#ActionButtonSpec
-                                #label: 'Load from Disc ...'
-                                #name: 'Button2'
-                                #translateLabel: true
-                                #model: #loadSettings
-                                #extent: #(#Point 128 22)
-                              )
-                             )
-                           
-                          )
-                        )
-                       )
-                     
-                    )
-                  )
-                 #(#ViewSpec
-                    #name: 'Box2'
-                    #component: 
-                   #(#SpecCollection
-                      #collection: #(
-                       #(#SubCanvasSpec
-                          #name: 'SubCanvas'
-                          #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -34 1)
-                          #level: -1
-                          #hasHorizontalScrollBar: false
-                          #hasVerticalScrollBar: false
-                          #clientHolder: #subCanvasApplicationHolder
-                          #postBuildCallback: #postBuildSubCanvas:
-                        )
-                       #(#HorizontalPanelViewSpec
-                          #name: 'HorizontalPanel1'
-                          #layout: #(#LayoutFrame 0 0.0 -34 1 0 1.0 0 1)
-                          #horizontalLayout: #fitSpace
-                          #verticalLayout: #center
-                          #horizontalSpace: 3
-                          #verticalSpace: 3
-                          #component: 
-                         #(#SpecCollection
-                            #collection: #(
-                             #(#ActionButtonSpec
-                                #label: 'OK'
-                                #name: 'OK'
-                                #translateLabel: true
-                                #model: #doSave
-                                #enableChannel: #enableOK
-                                #extent: #(#Point 127 22)
-                              )
-                             #(#ActionButtonSpec
-                                #label: 'Discard'
-                                #name: 'Reload'
-                                #translateLabel: true
-                                #model: #doReload
-                                #enableChannel: #enableReload
-                                #extent: #(#Point 128 22)
-                              )
-                             #(#ActionButtonSpec
-                                #label: 'Close'
-                                #name: 'Close'
-                                #translateLabel: true
-                                #model: #closeRequest
-                                #extent: #(#Point 127 22)
-                              )
-                             #(#ActionButtonSpec
-                                #label: 'Help'
-                                #name: 'Help'
-                                #translateLabel: true
-                                #model: #help
-                                #enableChannel: #enableHelp
-                                #extent: #(#Point 128 22)
-                              )
-                             )
-                           
-                          )
-                        )
-                       )
-                     
-                    )
-                  )
-                 )
-               
-              )
-              #handles: #(#Any 0.3375 1.0)
-            )
-           )
-         
-        )
-      )
-! !
-
-!AbstractLauncherApplication::SettingsDialog class methodsFor:'menu specs'!
-
-mainMenu
-    "This resource specification was automatically generated
-     by the MenuEditor of ST/X."
-
-    "Do not manually edit this!! If it is corrupted,
-     the MenuEditor may not be able to read the specification."
-
-    "
-     MenuEditor new openOnClass:SettingsDialog andSelector:#mainMenu
-     (Menu new fromLiteralArrayEncoding:(SettingsDialog mainMenu)) startUp
-    "
-
-    <resource: #menu>
-
-    ^ 
-     #(#Menu
-        #(
-         #(#MenuItem
-            #label: 'File'
-            #translateLabel: true
-            #submenu: 
-           #(#Menu
-              #(
-               #(#MenuItem
-                  #label: 'Load Settings...'
-                  #itemValue: #loadSettings
-                  #translateLabel: true
-                )
-               #(#MenuItem
-                  #label: 'Save Settings...'
-                  #itemValue: #saveSettings
-                  #translateLabel: true
-                )
-               #(#MenuItem
-                  #label: 'Exit'
-                  #itemValue: #closeRequest
-                  #translateLabel: true
-                )
-               )
-              nil
-              nil
-            )
-          )
-         )
-        nil
-        nil
-      )
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'accessing'!
-
-requestor
-    "return the 'requestor' of the SettingsDialog"
-
-    ^ requestor
-!
-
-requestor:something
-    "set the value of the instance variable 'requestor' (automatically generated)"
-
-    requestor := something.
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'actions'!
-
-destroyAll
-
-    self applList do:[ : applItem |
-        (applItem isCategory not and:[applItem application notNil]) ifTrue:[
-            applItem application close.
-        ].
-    ].
-    ^ true
-!
-
-doIndicatorClick:index 
-    "handle a click on the indicator
-    "
-
-    (applList at:index) toggleExpand
-!
-
-doReload
-
-    | item |
-
-    item := self selectionInApplList value.
-    (item isNil or:[item isCategory or:[item application isNil]]) ifTrue:[ ^ self].
-    item application loadRequest.
-!
-
-doSave
-    | item |
-
-    item := self selectionInApplList value.
-    (item isNil or:[item isCategory or:[item application isNil]]) ifTrue:[ ^ self].
-    item application saveSettings.
-!
-
-help
-
-    | item |
-
-    item := self selectionInApplList value.
-    (item isNil or:[item isCategory or:[item application isNil]]) ifTrue:[ ^ self].
-    item application help.
-!
-
-sendLoadRequestToAll
-
-    self applList do:[ : applItem |
-        (applItem isCategory not and:[applItem application notNil]) ifTrue:[
-            ^ applItem application loadRequest 
-        ].
-    ].
-    ^ true
-!
-
-sendSaveRequestToAll
-
-    self applList do:[ : applItem |
-        (applItem isCategory not and:[applItem application notNil]) ifTrue:[
-            applItem application saveRequest ifFalse:[
-                ^ false
-            ].
-        ].
-    ].
-    ^ true
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'aspects'!
-
-appIsCategory
-
-    appIsCategory isNil ifTrue:[
-        appIsCategory := false asValue.
-    ].
-    ^ appIsCategory.
-!
-
-applList
-
-    applList isNil ifTrue:[
-        applList := AbstractLauncherApplication::HierarchicalSettingsApplList new.
-    ].
-    ^ applList.
-!
-
-enableHelp
-    "automatically generated by UIPainter ..."
-
-    "*** the code below creates a default model when invoked."
-    "*** (which may not be the one you wanted)"
-    "*** Please change as required and accept it in the browser."
-    "*** (and replace this comment by something more useful ;-)"
-
-    enableHelp isNil ifTrue:[
-        enableHelp := true asValue.
-"/ if your app needs to be notified of changes, uncomment one of the lines below:
-"/       enableHelp addDependent:self.
-"/       enableHelp onChangeSend:#enableHelpChanged to:self.
-    ].
-    ^ enableHelp.
-!
-
-enableOK
-    "automatically generated by UIPainter ..."
-
-    "*** the code below creates a default model when invoked."
-    "*** (which may not be the one you wanted)"
-    "*** Please change as required and accept it in the browser."
-    "*** (and replace this comment by something more useful ;-)"
-
-    enableOK isNil ifTrue:[
-        enableOK := true asValue.
-"/ if your app needs to be notified of changes, uncomment one of the lines below:
-"/       enableOK addDependent:self.
-"/       enableOK onChangeSend:#enableOKChanged to:self.
-    ].
-    ^ enableOK.
-!
-
-enableReload
-    "automatically generated by UIPainter ..."
-
-    "*** the code below creates a default model when invoked."
-    "*** (which may not be the one you wanted)"
-    "*** Please change as required and accept it in the browser."
-    "*** (and replace this comment by something more useful ;-)"
-
-    enableReload isNil ifTrue:[
-        enableReload := true asValue.
-"/ if your app needs to be notified of changes, uncomment one of the lines below:
-"/       enableReload addDependent:self.
-"/       enableReload onChangeSend:#enableReloadChanged to:self.
-    ].
-    ^ enableReload.
-!
-
-selectionInApplList
-
-    selectionInApplList isNil ifTrue:[
-        selectionInApplList := ValueHolder new.
-        selectionInApplList addDependent:self.
-    ].
-    ^ selectionInApplList.
-!
-
-settingsAppList
-
-    ^ self class settingsAppListNames.
-!
-
-subCanvasApplicationHolder
-
-    subCanvasApplicationHolder isNil ifTrue:[
-        subCanvasApplicationHolder := ValueHolder new.
-    ].
-    ^ subCanvasApplicationHolder.
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'change & update'!
-
-modifiedChanged
-
-    |changedObject|
-
-    changedObject := self subCanvasApplicationHolder value modifiedChannel.
-    self enableOK value:(changedObject value).
-    self enableReload value:(changedObject value).
-!
-
-selectionChanged
-
-    | item isCat oldAppl|
-
-    oldAppl := self subCanvasApplicationHolder value.
-    oldAppl notNil ifTrue:[
-        oldAppl saveRequest.
-        oldAppl modifiedChannel removeDependent:self.
-    ].
-    item := self selectionInApplList value.
-    isCat := item isCategory.
-    self enableOK value:(isCat not).
-    self enableReload value:(isCat not).
-    self enableHelp value:(isCat not).
-    isCat ifTrue:[
-        self subCanvasApplicationHolder value:nil.
-        ^ self
-    ].
-    item application isNil ifTrue:[
-        item application:(item applClass new).
-
-    ].
-    item application modifiedChannel addDependent:self.
-    self subCanvasApplicationHolder value:item application.
-    self modifiedChanged.
-!
-
-update:something with:aParameter from:changedObject
-    "Invoked when an object that I depend upon sends a change notification."
-
-    "stub code automatically generated - please change as required"
-
-    changedObject == self selectionInApplList ifTrue:[
-        self selectionChanged.
-        ^ self
-    ].
-    changedObject == self subCanvasApplicationHolder value modifiedChannel ifTrue:[
-        self modifiedChanged.
-        ^ self
-    ].
-
-    super update:something with:aParameter from:changedObject
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'initialization & release'!
-
-closeDownViews
-    "This is a hook method generated by the Browser.
-     It will be invoked when your app/dialog-window is really closed.
-     See also #closeDownViews, which is invoked before and may suppress the close
-     or ask the user for confirmation."
-
-    "/ change the code below as required ...
-    "/ This should cleanup any leftover resources
-    "/ (for example, temporary files)
-    "/ super closeRequest will initiate the closeDown
-
-    "/ add your code here
-
-    "/ do not remove the one below ...
-    ^ super closeDownViews
-!
-
-closeRequest
-    "This is a hook method generated by the Browser.
-     It will be invoked when your app/dialog-window is about to be
-     closed (this method has a chance to suppress the close).
-     See also #closeDownViews, which is invoked when the close is really done."
-
-    self sendSaveRequestToAll ifFalse:[ ^ self].
-    self destroyAll.
-    ^ super closeRequest
-!
-
-initialize
-
-    resources := self class owningClass resources.
-    self initializeApplList.
-    super initialize.
-!
-
-initializeApplList
-
-    | rootItem itemClass parent|
-    applList := AbstractLauncherApplication::HierarchicalSettingsApplList new.
-    itemClass := applList class itemClass.
-    rootItem := itemClass new.
-    rootItem label:(Text string:(resources string:'Settings') emphasis:#bold).
-    rootItem nameString:'Settings'.
-    rootItem icon:self class settingsIcon.
-    self class applList do:[:entry |
-        |newItem nameString applicationClassNameMethodOrNil icon inCategory|
-        nameString := entry at:1.
-        applicationClassNameMethodOrNil := entry at:2.
-        inCategory := entry at:3.
-        icon       := entry at:4.
-
-        newItem := itemClass new.   
-        newItem label:(Text string:(resources string:nameString) emphasis:#bold).
-        newItem nameString:nameString.
-        applicationClassNameMethodOrNil notNil ifTrue:[
-            newItem applClass:(Smalltalk classNamed:applicationClassNameMethodOrNil).
-        ].
-        (icon isNil) ifTrue:[
-            (newItem applClass notNil and:[newItem applClass respondsTo:#defaultIcon]) ifTrue:[
-                icon := newItem applClass defaultIcon.
-            ].
-            icon isNil ifTrue:[
-                icon := self class defaultSettingsAppIcon.
-            ].
-        ].
-        newItem icon:icon.
-        inCategory notNil ifTrue:[
-            parent := self recursiveGetParentFor:inCategory fromItem:rootItem.
-            parent isNil ifTrue:[self error:('category:', inCategory, ' for:', newItem label, ' does not exist') mayProceed:true].
-            parent children isNil ifTrue:[
-                parent children:(OrderedCollection with:newItem)
-            ] ifFalse:[
-                | newColl |
-                newColl := parent children copy.
-                newColl add:newItem.
-                parent children:newColl.
-            ]
-        ] ifFalse:[
-            rootItem children isNil ifTrue:[
-                rootItem children:(OrderedCollection with:newItem)
-            ] ifFalse:[
-                | newColl |
-                newColl := rootItem children copy.
-                newColl add:newItem.
-                rootItem children:newColl.
-            ]
-        ]
-    ].
-
-"/    applList showLeftIndicators:true.
-"/    applList showRoot:true.
-    self selectionInApplList value:rootItem.
-    applList root:rootItem.
-    rootItem expand.
-!
-
-postBuildSubCanvas:aWidget
-
-    aWidget keepClientView:true. 
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'menu actions'!
-
-loadSettings
-
-    "restore settings from a settings-file."
-
-    "a temporary kludge - we need a central systemSettings object for this,
-     which can be saved/restored with a single store/read."
-
-    |fileName|
-
-    fileName := Dialog 
-        requestFileName:(resources string:'Load Settings From:') 
-        default:'settings.stx'
-        ok:(resources string:'Load') 
-        abort:(resources string:'Cancel') 
-        pattern:'*.stx'
-        fromDirectory:nil.
-
-    (fileName size == 0) ifTrue:[
-        "/ canceled
-        ^ self
-    ].
-
-    self withWaitCursorDo:[
-        Smalltalk fileIn:fileName.
-        Transcript current topView model reOpen.
-        self sendLoadRequestToAll.
-    ].
-!
-
-saveSettings
-
-    |fileName resources|
-
-    resources := self class owningClass classResources.
-
-    fileName := Dialog 
-        requestFileName:(resources string:'Save settings in:') 
-        default:'settings.stx'
-        ok:(resources string:'Save') 
-        abort:(resources string:'Cancel') 
-        pattern:'*.stx'
-        fromDirectory:'.'.
-
-    fileName size ~~ 0 ifTrue:[
-        "not canceled"
-        self saveSettingsIn:fileName.
-    ]
-!
-
-saveSettingsIn:fileName
-    "save settings to a settings-file."
-
-    "a temporary kludge - we need a central systemSettings object for this,
-     which can be saved/restored with a single store/read.
-     Will move entries over to UserPreferences over time;
-     new items should always go there."
-
-    |resources s screen currentUserPrefs|
-
-    resources := self class owningClass classResources.
-
-    s := fileName asFilename writeStream.
-    s isNil ifTrue:[
-        self warn:(resources string:'Cannot write the %1 file !!' with:fileName).
-        ^ self
-    ].
-
-    currentUserPrefs := UserPreferences current.
-    screen := Screen current.
-
-    s nextPutLine:'"/ ST/X saved settings';
-      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
-      nextPutLine:'"/ (modifications would be lost with next save-settings)';
-      nextPutLine:'"/';
-      nextPutLine:'"/ this file was automatically generated by the';
-      nextPutLine:'"/ ''save settings'' function of the Launcher';
-      nextPutLine:'"/'.
-    s cr.
-
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
-    s nextPutLine:'"/'.
-    s cr.
-
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Display settings:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
-    s nextPutLine:'Display notNil ifTrue:['.
-    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
-      screen fixColors notNil ifTrue:[
-        s nextPutLine:'  Image flushDeviceImages.'.
-        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
-        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
-        s nextPutLine:'  ].'.
-      ] ifFalse:[
-        s nextPutLine:'  Display releaseFixColors.'.
-      ].
-      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
-      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
-      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
-      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
-      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
-      s nextPutLine:'  View defaultStyle:' , View defaultStyle storeString , '.'.
-    s nextPutLine:' ].'.
-    s nextPutLine:'].'.
-    s cr.
-
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Compiler settings:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
-      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
-      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
-      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
-      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
-      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
-      nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.';
-      nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.';
-      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
-      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
-
-      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
-      nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.';
-      nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
-      nextPutLine:'  Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
-      nextPutLine:'  Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
-      nextPutLine:'  Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
-      nextPutLine:'  ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:[';
-      nextPutLine:'    Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.';
-      nextPutLine:'  ].';
-      nextPutLine:'  Compiler stcPath: ' , (Compiler stcPath storeString) , '.';
-      nextPutLine:'  Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
-      nextPutLine:'  Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
-      nextPutLine:'  ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.';
-      nextPutLine:'  ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.';
-      nextPutLine:'  ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.';
-      nextPutLine:'  ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.';
-      nextPutLine:'].';
-
-      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
-      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
-
-    HistoryManager notNil ifTrue:[
-        HistoryManager isActive ifTrue:[
-            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
-            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
-        ] ifFalse:[
-            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
-        ].
-    ].
-
-    ObjectFileLoader notNil ifTrue:[
-        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
-        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
-    ].
-
-    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
-    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Info & Debug Messages:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
-      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
-      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
-      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
-
-    FlyByHelp isActive ifTrue:[
-        s nextPutLine:'FlyByHelp start.'
-    ].
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Edit settings:'.
-    s nextPutLine:'"/'.
-    "/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
-    s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
-    s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'.
-    (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
-        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
-    ] ifFalse:[
-        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
-    ].
-
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ User preference values:'.
-    s nextPutLine:'"/'.
-    currentUserPrefs keysAndValuesDo:[:k :v |
-        (UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[
-            s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'.
-        ] ifFalse:[
-            s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'.
-        ]
-    ].
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Misc settings:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
-      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
-      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
-      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
-      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
-
-      "/ claus - I dont think its a good idea to save those ...
-      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
-      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
-
-      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
-      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
-      nextPutLine:'Display notNil ifTrue:[';
-      nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
-      nextPutLine:'].';
-      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
-      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
-    (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
-        s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
-    ].
-    Processor isTimeSlicing ifTrue:[
-        s nextPutLine:'Processor startTimeSlicing.'.
-        s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
-    ] ifFalse:[
-        s nextPutLine:'Processor stopTimeSlicing.'.
-    ].
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Printer settings:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'Printer := ' , (Printer name) , '.';
-      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
-
-    Printer supportsPageSizes ifTrue:[
-        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
-        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
-    ].
-    Printer supportsMargins ifTrue:[
-        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
-        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
-        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
-        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
-    ].
-    Printer supportsPostscript ifTrue:[
-        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
-    ].
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Font settings:'.
-    s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'Display notNil ifTrue:['.
-    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
-    s nextPutLine:'  View defaultFont: ' , (View defaultFont storeString) , '.'.
-    s nextPutLine:'  Label defaultFont: ' , (Label defaultFont storeString) , '.'.
-    s nextPutLine:'  Button defaultFont: ' , (Button defaultFont storeString) , '.'.
-    s nextPutLine:'  Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
-    s nextPutLine:'  SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
-    s nextPutLine:'  MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
-    s nextPutLine:'  PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
-    s nextPutLine:'  TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
-    s nextPutLine:'  EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
-    s nextPutLine:'  CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
-    s nextPutLine:' ].'.
-    s nextPutLine:'].'.
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ Language setting:'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
-    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
-
-    s cr.
-    s nextPutLine:'"/'.
-    s nextPutLine:'"/ SourceCodeManager settings:'.
-    s nextPutLine:'"/ (only restored, if image is restarted on the same host)'.
-    s nextPutLine:'"/'.
-    s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['.
-    s nextPutLine:'  Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
-    (Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[
-    s nextPutLine:'  Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'.
-    s nextPutLine:'  AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'.
-    s nextPutLine:'  CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'.
-    s nextPutLine:'  CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'.
-    s nextPutLine:'  CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'.
-    ].
-    s nextPutLine:'].'.
-
-    s close.
-
-    "
-     Transcript topView application saveSettings
-    "
-
-    "Modified: / 6.1.1999 / 14:24:16 / cg"
-! !
-
-!AbstractLauncherApplication::SettingsDialog methodsFor:'queries'!
-
-recursiveGetParentFor:aCategory fromItem:aItem
-
-    | children |
-    children := aItem children.
-    children notNil ifTrue:[
-        children do:[:aChildItem | | newItem |
-            aChildItem nameString = aCategory ifTrue:[ ^ aChildItem].
-            newItem := self recursiveGetParentFor:aCategory fromItem:aChildItem.
-            newItem notNil ifTrue:[^ newItem].
-        ].
-    ].
-    ^ nil
-! !
-
 !AbstractLauncherApplication class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.240 2002-12-12 13:01:10 penk Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.241 2002-12-13 16:28:35 penk Exp $'
 ! !
-
-AbstractLauncherApplication::SettingsDialog initialize!