author | Claus Gittinger <cg@exept.de> |
Fri, 29 Aug 2003 21:16:52 +0200 | |
changeset 7587 | 89864caa2665 |
parent 7549 | 442051ac6373 |
child 7604 | a9d00b75c4be |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
5712 | 3 |
All Rights Reserved |
3347 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
5516 | 14 |
"{ Package: 'stx:libbasic' }" |
15 |
||
3347 | 16 |
IdentityDictionary subclass:#UserPreferences |
17 |
instanceVariableNames:'' |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
18 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
3347 | 19 |
poolDictionaries:'' |
20 |
category:'System-Support' |
|
21 |
! |
|
22 |
||
23 |
!UserPreferences class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
5712 | 28 |
All Rights Reserved |
3347 | 29 |
|
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
42 |
A Dictionary for user preference values. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
43 |
For non-existing keys, either a defaultValue (false), |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
44 |
or the value from a defaultDictionary is returned. |
3353 | 45 |
|
3359 | 46 |
This will eventually keep track of ALL user preferences. |
47 |
(which are currently spread over the system). |
|
48 |
For now, only a few preferences are found here - but this |
|
49 |
will change over time. |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
50 |
|
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
51 |
UserPreferences current at:#foo |
3347 | 52 |
" |
53 |
! ! |
|
54 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
55 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
56 |
|
4580 | 57 |
initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
#( |
5712 | 61 |
#useNewChangesBrowser false |
62 |
#useNewInspector false |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
63 |
|
5712 | 64 |
#autoFormatting false |
65 |
#syntaxColoring true |
|
66 |
#fullSelectorCheck false |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
67 |
|
5712 | 68 |
#defaultSyntaxColor (Color black) |
69 |
#defaultSyntaxEmphasis normal |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
70 |
|
5712 | 71 |
#errorColor (Color red) |
4343 | 72 |
|
5712 | 73 |
#commentColor (Color 12.5 12.5 100) |
74 |
#commentEmphasis normal |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
75 |
|
5712 | 76 |
#methodSelectorEmphasis bold |
77 |
#selectorEmphasis bold |
|
78 |
#unimplementedSelectorColor (Color red) |
|
79 |
#unimplementedSelectorEmphasis normal |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
80 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
81 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
82 |
"/ #badIdentifierColor (Color red) |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
83 |
|
5712 | 84 |
#constantColor (Color 25 0 0) |
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
85 |
|
5712 | 86 |
#showClockInLauncher true |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
87 |
) pairWiseDo:[:k :v | |
5712 | 88 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
89 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
90 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
91 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
92 |
DefaultPreferences at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
93 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
94 |
" |
4580 | 95 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
96 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
97 |
|
5236 | 98 |
"Modified: / 4.2.2000 / 20:06:53 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
99 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
100 |
|
3347 | 101 |
!UserPreferences class methodsFor:'accessing'! |
102 |
||
103 |
current |
|
104 |
CurrentPreferences isNil ifTrue:[ |
|
5712 | 105 |
CurrentPreferences := self new. |
106 |
CurrentPreferences declareAllFrom:(self default). |
|
3347 | 107 |
]. |
108 |
^ CurrentPreferences. |
|
109 |
||
110 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 111 |
! |
112 |
||
4318 | 113 |
default |
4580 | 114 |
DefaultPreferences isNil ifTrue:[ |
5712 | 115 |
self initializeDefaultPreferences |
4580 | 116 |
]. |
4318 | 117 |
^ DefaultPreferences. |
118 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
119 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
120 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
121 |
" |
4318 | 122 |
! |
123 |
||
3364 | 124 |
reset |
125 |
"resets the CurrentPreferences to its default values" |
|
126 |
||
127 |
CurrentPreferences := nil |
|
128 |
! |
|
129 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
130 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
131 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
132 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
133 |
^#( |
5712 | 134 |
argumentIdentifierColor |
135 |
argumentIdentifierEmphasis |
|
136 |
booleanConstantColor |
|
137 |
booleanConstantEmphasis |
|
138 |
bracketColor |
|
139 |
bracketEmphasis |
|
140 |
classVariableIdentifierColor |
|
141 |
classVariableIdentifierEmphasis |
|
142 |
constantColor |
|
143 |
constantEmphasis |
|
144 |
commentColor |
|
145 |
commentEmphasis |
|
146 |
defaultSyntaxColor |
|
147 |
defaultSyntaxEmphasis |
|
148 |
errorColor |
|
149 |
globalIdentifierColor |
|
150 |
globalIdentifierEmphasis |
|
151 |
globalClassIdentifierColor |
|
152 |
globalClassIdentifierEmphasis |
|
153 |
hereColor |
|
154 |
hereEmphasis |
|
155 |
identifierColor |
|
156 |
identifierEmphasis |
|
157 |
instVarIdentifierColor |
|
158 |
instVarIdentifierEmphasis |
|
159 |
localIdentifierColor |
|
160 |
localIdentifierEmphasis |
|
161 |
methodSelectorColor |
|
162 |
methodSelectorEmphasis |
|
163 |
returnColor |
|
164 |
returnEmphasis |
|
165 |
selectorColor |
|
166 |
selectorEmphasis |
|
167 |
selfColor |
|
168 |
selfEmphasis |
|
169 |
stringColor |
|
170 |
stringEmphasis |
|
171 |
superColor |
|
172 |
superEmphasis |
|
173 |
symbolColor |
|
174 |
symbolEmphasis |
|
175 |
thisContextColor |
|
176 |
thisContextEmphasis |
|
177 |
unknownIdentifierColor |
|
178 |
unknownIdentifierEmphasis |
|
179 |
unimplementedSelectorColor |
|
180 |
unimplementedSelectorEmphasis |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
181 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
182 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
183 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
184 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
185 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
186 |
syntaxColorNames |
3364 | 187 |
"returns the syntax colors for the settings in the launcher" |
188 |
||
4319 | 189 |
"/ warning, the strings below are presented to the user |
190 |
"/ as the syntax-color boxes comboList - however, they are |
|
191 |
"/ also used (without separators) as key into myself. |
|
192 |
"/ Therefore, do not change the strings below. |
|
193 |
"/ I know - this is bad coding .... |
|
194 |
||
3364 | 195 |
^#( |
196 |
'Argument Identifier Color' |
|
197 |
'Boolean Constant Color' |
|
198 |
'Bracket Color' |
|
4320 | 199 |
'Class Variable Identifier Color' |
3364 | 200 |
'Constant Color' |
201 |
'Comment Color' |
|
202 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
203 |
'Global Class Identifier Color' |
3364 | 204 |
'Here Color' |
205 |
'Identifier Color' |
|
3377 | 206 |
'InstVar Identifier Color' |
3364 | 207 |
'Local Identifier Color' |
208 |
'Method Selector Color' |
|
4076 | 209 |
'Return Color' |
3364 | 210 |
'Selector Color' |
211 |
'Self Color' |
|
212 |
'String Color' |
|
213 |
'Super Color' |
|
214 |
'Symbol Color' |
|
215 |
'This Context Color' |
|
216 |
'Unknown Identifier Color' |
|
4319 | 217 |
'Unimplemented Selector Color' |
3377 | 218 |
) |
3364 | 219 |
|
4076 | 220 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 221 |
! ! |
222 |
||
6019 | 223 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
224 |
||
6763 | 225 |
fileBrowserClass |
226 |
^ self current fileBrowserClass |
|
227 |
||
228 |
" |
|
229 |
UserPreferences fileBrowserClass |
|
230 |
" |
|
231 |
! |
|
232 |
||
6019 | 233 |
systemBrowserClass |
234 |
^ self current systemBrowserClass |
|
235 |
||
236 |
" |
|
237 |
UserPreferences systemBrowserClass |
|
238 |
" |
|
239 |
! |
|
240 |
||
241 |
versionDiffViewerClass |
|
242 |
^ self current versionDiffViewerClass |
|
243 |
||
244 |
" |
|
245 |
UserPreferences versionDiffViewerClass |
|
246 |
" |
|
247 |
! ! |
|
248 |
||
7028 | 249 |
!UserPreferences class methodsFor:'saving'! |
250 |
||
251 |
saveSettings:userPrefs in:fileName |
|
252 |
"save settings to a settings-file." |
|
253 |
||
254 |
"a temporary kludge for old classVariable-based settings |
|
255 |
- all of those MUST go into the user-preferences dictionary eventually" |
|
256 |
||
257 |
|s screen| |
|
258 |
||
259 |
s := fileName asFilename writeStream. |
|
7106
27bc6fd8067d
More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents:
7087
diff
changeset
|
260 |
s checkNilFileStream. |
7028 | 261 |
|
262 |
screen := Screen current. |
|
263 |
||
264 |
s nextPutLine:'"/ ST/X saved settings'; |
|
265 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
266 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
267 |
nextPutLine:'"/'; |
|
268 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
7047
7236b784afa4
httpServer settings to user preferences to allow save in settings file
penk
parents:
7037
diff
changeset
|
269 |
nextPutLine:'"/ ''save settings'' function of the SettingsDialog'; |
7028 | 270 |
nextPutLine:'"/'. |
271 |
s cr. |
|
272 |
||
273 |
s nextPutLine:'"/'. |
|
274 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
275 |
s nextPutLine:'"/'. |
|
276 |
s cr. |
|
277 |
||
278 |
s nextPutLine:'"/'. |
|
279 |
s nextPutLine:'"/ Display settings:'. |
|
280 |
s nextPutLine:'"/'. |
|
281 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
282 |
s nextPutLine:'Display notNil ifTrue:['. |
|
283 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
284 |
screen fixColors notNil ifTrue:[ |
|
285 |
s nextPutLine:' Image flushDeviceImages.'. |
|
286 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
287 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
288 |
s nextPutLine:' ].'. |
|
289 |
] ifFalse:[ |
|
290 |
s nextPutLine:' Display releaseFixColors.'. |
|
291 |
]. |
|
292 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
293 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
294 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
295 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
296 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
297 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
298 |
s nextPutLine:' ].'. |
|
299 |
s nextPutLine:'].'. |
|
300 |
s cr. |
|
301 |
||
302 |
s nextPutLine:'"/'. |
|
303 |
s nextPutLine:'"/ Compiler settings:'. |
|
304 |
s nextPutLine:'"/'. |
|
305 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
306 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
307 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
308 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
309 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
310 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
311 |
nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.'; |
|
312 |
nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.'; |
|
7523
8d6291f02d01
saving of Compiler allowQualifiedNames added
Michael Beyl <mb@exept.de>
parents:
7491
diff
changeset
|
313 |
nextPutLine:'Compiler allowQualifiedNames: ' , (Compiler allowQualifiedNames storeString) , '.'; |
7028 | 314 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
315 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
316 |
||
317 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
318 |
nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.'; |
|
319 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
320 |
nextPutLine:' Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
321 |
nextPutLine:' Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
322 |
nextPutLine:' Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
323 |
nextPutLine:' ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
324 |
nextPutLine:' Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.'; |
|
325 |
nextPutLine:' ].'; |
|
326 |
nextPutLine:' Compiler stcPath: ' , (Compiler stcPath storeString) , '.'; |
|
327 |
nextPutLine:' Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
328 |
nextPutLine:' Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
329 |
nextPutLine:' ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
|
330 |
nextPutLine:' ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
|
331 |
nextPutLine:' ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'; |
|
332 |
nextPutLine:' ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'; |
|
333 |
nextPutLine:'].'; |
|
334 |
||
335 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
336 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
337 |
||
338 |
HistoryManager notNil ifTrue:[ |
|
339 |
HistoryManager isActive ifTrue:[ |
|
340 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
341 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
342 |
] ifFalse:[ |
|
343 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
344 |
]. |
|
345 |
]. |
|
346 |
||
347 |
ObjectFileLoader notNil ifTrue:[ |
|
348 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
|
349 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
350 |
]. |
|
351 |
||
352 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
353 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
354 |
||
355 |
s cr. |
|
356 |
s nextPutLine:'"/'. |
|
357 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
358 |
s nextPutLine:'"/'. |
|
359 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
360 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
361 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
362 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
363 |
||
364 |
FlyByHelp isActive ifTrue:[ |
|
365 |
s nextPutLine:'FlyByHelp start.' |
|
366 |
]. |
|
367 |
||
368 |
s cr. |
|
369 |
s nextPutLine:'"/'. |
|
370 |
s nextPutLine:'"/ Edit settings:'. |
|
371 |
s nextPutLine:'"/'. |
|
372 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
373 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
374 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'. |
|
375 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
|
376 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
|
377 |
] ifFalse:[ |
|
378 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
|
379 |
]. |
|
380 |
||
381 |
s nextPutLine:'"/'. |
|
382 |
s nextPutLine:'"/ User preference values:'. |
|
383 |
s nextPutLine:'"/'. |
|
384 |
userPrefs keysAndValuesDo:[:k :v | |
|
385 |
(UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[ |
|
386 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'. |
|
387 |
] ifFalse:[ |
|
388 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
|
389 |
] |
|
390 |
]. |
|
391 |
||
392 |
s cr. |
|
393 |
s nextPutLine:'"/'. |
|
394 |
s nextPutLine:'"/ Misc settings:'. |
|
395 |
s nextPutLine:'"/'. |
|
396 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
397 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
398 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
399 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
400 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
401 |
||
402 |
"/ claus - I dont think its a good idea to save those ... |
|
403 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
404 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
405 |
||
406 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
407 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
408 |
nextPutLine:'Display notNil ifTrue:['; |
|
409 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
|
410 |
nextPutLine:'].'; |
|
411 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
412 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
7037
0771e159ad40
Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents:
7030
diff
changeset
|
413 |
(NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
0771e159ad40
Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents:
7030
diff
changeset
|
414 |
s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
7028 | 415 |
]. |
416 |
Processor isTimeSlicing ifTrue:[ |
|
417 |
s nextPutLine:'Processor startTimeSlicing.'. |
|
418 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
419 |
] ifFalse:[ |
|
420 |
s nextPutLine:'Processor stopTimeSlicing.'. |
|
421 |
]. |
|
422 |
||
423 |
s cr. |
|
424 |
s nextPutLine:'"/'. |
|
425 |
s nextPutLine:'"/ Printer settings:'. |
|
426 |
s nextPutLine:'"/'. |
|
427 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
428 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
429 |
||
430 |
Printer supportsPageSizes ifTrue:[ |
|
431 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
432 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
433 |
]. |
|
434 |
Printer supportsMargins ifTrue:[ |
|
435 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
436 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
437 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
438 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
439 |
]. |
|
440 |
Printer supportsPostscript ifTrue:[ |
|
441 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
442 |
]. |
|
443 |
||
444 |
s cr. |
|
445 |
s nextPutLine:'"/'. |
|
446 |
s nextPutLine:'"/ Font settings:'. |
|
447 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
|
448 |
s nextPutLine:'"/'. |
|
449 |
s nextPutLine:'Display notNil ifTrue:['. |
|
450 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
451 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
452 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
453 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
454 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
455 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
456 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
457 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
458 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
459 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
460 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
461 |
s nextPutLine:' ].'. |
|
462 |
s nextPutLine:'].'. |
|
463 |
||
464 |
s cr. |
|
465 |
s nextPutLine:'"/'. |
|
466 |
s nextPutLine:'"/ Language setting:'. |
|
467 |
s nextPutLine:'"/'. |
|
468 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
469 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
470 |
||
471 |
s cr. |
|
472 |
s nextPutLine:'"/'. |
|
473 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
474 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'. |
|
475 |
s nextPutLine:'"/'. |
|
476 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['. |
|
477 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
478 |
(Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[ |
|
479 |
s nextPutLine:' Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'. |
|
480 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
|
481 |
s nextPutLine:' CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'. |
|
482 |
s nextPutLine:' CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'. |
|
483 |
s nextPutLine:' CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'. |
|
484 |
]. |
|
485 |
s nextPutLine:'].'. |
|
486 |
||
487 |
s close. |
|
488 |
||
489 |
" |
|
490 |
Transcript topView application saveSettings |
|
491 |
" |
|
492 |
||
493 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
|
494 |
! ! |
|
495 |
||
7549 | 496 |
!UserPreferences methodsFor:'accessing'! |
3883 | 497 |
|
5790 | 498 |
at:key put:value |
499 |
|classNameToCheck classToCheck| |
|
500 |
||
6059 | 501 |
value == true ifTrue:[ |
502 |
key == #useNewVersionDiffBrowser ifTrue:[ |
|
5790 | 503 |
classNameToCheck := #'VersionDiffBrowser'. |
6059 | 504 |
]. |
505 |
key == #useNewChangesBrowser ifTrue:[ |
|
5790 | 506 |
classNameToCheck := #'NewChangesBrowser'. |
6059 | 507 |
]. |
6762 | 508 |
key == #useNewFileBrowser ifTrue:[ |
6770 | 509 |
classNameToCheck := #'FileBrowserV2'. |
6761 | 510 |
]. |
6059 | 511 |
key == #useNewSystemBrowser ifTrue:[ |
5790 | 512 |
classNameToCheck := #'NewSystemBrowser'. |
6059 | 513 |
]. |
514 |
key == #useNewInspector ifTrue:[ |
|
5790 | 515 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
6059 | 516 |
]. |
5790 | 517 |
]. |
518 |
||
5791 | 519 |
classNameToCheck notNil ifTrue:[ |
5790 | 520 |
classToCheck := Smalltalk at:classNameToCheck. |
521 |
classToCheck isNil ifTrue:[ |
|
6770 | 522 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
523 |
] ifFalse:[ |
|
524 |
Autoload autoloadFailedSignal handle:[:ex | |
|
525 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
526 |
] do:[ |
|
527 |
classToCheck autoload. |
|
528 |
] |
|
5790 | 529 |
] |
530 |
]. |
|
531 |
||
532 |
^ super at:key put:value |
|
7549 | 533 |
! ! |
534 |
||
535 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
|
5790 | 536 |
|
3883 | 537 |
changesBrowserClass |
538 |
self useNewChangesBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
539 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 540 |
]. |
541 |
^ ChangesBrowser |
|
542 |
||
543 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 544 |
! |
545 |
||
6763 | 546 |
fileBrowserClass |
547 |
self useNewFileBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
548 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 549 |
]. |
550 |
^ FileBrowser |
|
551 |
! |
|
552 |
||
6177 | 553 |
inspectorClassSetting |
554 |
self useNewInspector ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
555 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 556 |
]. |
557 |
^ InspectorView |
|
558 |
||
559 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
560 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 561 |
! |
562 |
||
5535 | 563 |
systemBrowserClass |
564 |
self useNewSystemBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
565 |
^ (NewSystemBrowser ? SystemBrowser) |
5535 | 566 |
]. |
567 |
^ SystemBrowser |
|
5536 | 568 |
! |
569 |
||
570 |
useNewChangesBrowser |
|
571 |
"using new or old change browser" |
|
572 |
||
573 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
|
574 |
||
575 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
576 |
! |
|
577 |
||
578 |
useNewChangesBrowser:aBoolean |
|
579 |
"using new or old changeBrowser" |
|
580 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
581 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 582 |
|
583 |
" |
|
584 |
UserPreferences current useNewChangesBrowser |
|
585 |
" |
|
586 |
||
587 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
588 |
! |
|
589 |
||
6717 | 590 |
useNewFileBrowser |
591 |
"using new or old version diff viewer" |
|
592 |
||
593 |
^ self at:#useNewFileBrowser ifAbsentPut:false |
|
594 |
||
595 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
596 |
! |
|
597 |
||
598 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
599 |
"using new or old file browser" |
6717 | 600 |
|
601 |
self at:#useNewFileBrowser put:aBoolean |
|
602 |
||
603 |
" |
|
6769 | 604 |
UserPreferences current useNewFileBrowser |
6717 | 605 |
" |
606 |
||
607 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
608 |
! |
|
609 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
610 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
611 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
612 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
613 |
^ self at:#useNewFileDialog ifAbsentPut:false |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
614 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
615 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
616 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
617 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
618 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
619 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
620 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
621 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
622 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
623 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
624 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
625 |
|
5536 | 626 |
useNewInspector |
627 |
"using new or old inspector" |
|
628 |
||
629 |
^ self at:#useNewInspector ifAbsentPut:false |
|
630 |
||
631 |
" |
|
632 |
UserPreferences current useNewInspector |
|
633 |
" |
|
634 |
||
635 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
636 |
! |
|
637 |
||
638 |
useNewInspector:aBoolean |
|
639 |
"using new or old inspector" |
|
640 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
641 |
self at:#useNewInspector put:aBoolean |
5536 | 642 |
|
643 |
" |
|
644 |
UserPreferences current useNewInspector |
|
645 |
" |
|
646 |
! |
|
647 |
||
6935 | 648 |
useNewSettingsApplication |
6838 | 649 |
"using one application for the settings" |
650 |
||
6935 | 651 |
^ self at:#useNewSettingsApplication ifAbsentPut:false |
6838 | 652 |
! |
653 |
||
6935 | 654 |
useNewSettingsApplication:aBoolean |
6838 | 655 |
"using one application for the settings" |
656 |
||
6935 | 657 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 658 |
|
659 |
" |
|
6935 | 660 |
UserPreferences current useNewSettingsApplication:true |
6838 | 661 |
" |
662 |
||
663 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
664 |
! |
|
665 |
||
5536 | 666 |
useNewSystemBrowser |
667 |
"using new or old system browser" |
|
668 |
||
669 |
^ self at:#useNewSystemBrowser ifAbsentPut:false |
|
670 |
||
671 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
672 |
! |
|
673 |
||
674 |
useNewSystemBrowser:aBoolean |
|
675 |
"using new or old systemBrowser" |
|
676 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
677 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 678 |
|
679 |
" |
|
5541 | 680 |
UserPreferences current useNewSystemBrowser:true |
5536 | 681 |
" |
682 |
||
683 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
684 |
! |
|
685 |
||
686 |
useNewVersionDiffBrowser |
|
687 |
"using new or old version diff viewer" |
|
688 |
||
6666
26396997886c
default is to use the new versionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
6525
diff
changeset
|
689 |
^ self at:#useNewVersionDiffBrowser ifAbsentPut:true |
5536 | 690 |
|
691 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
692 |
! |
|
693 |
||
694 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
695 |
"using new or old versionDiffBrowser" |
5536 | 696 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
697 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 698 |
|
699 |
" |
|
700 |
UserPreferences current useNewVersionDiffBrowser |
|
701 |
" |
|
702 |
||
703 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
704 |
! |
|
705 |
||
6959 | 706 |
useProcessMonitorV2 |
707 |
"using ProcessMonitorV2 application for display Processes" |
|
708 |
||
709 |
^ self at:#useProcessMonitorV2 ifAbsentPut:false |
|
710 |
! |
|
711 |
||
712 |
useProcessMonitorV2:aBoolean |
|
713 |
"using ProcessMonitorV2 application for display Processes" |
|
714 |
||
715 |
self at:#useProcessMonitorV2 put:aBoolean |
|
716 |
||
717 |
" |
|
718 |
UserPreferences current useProcessMonitorV2:true |
|
719 |
" |
|
720 |
||
721 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
722 |
! |
|
723 |
||
5536 | 724 |
versionDiffViewerClass |
725 |
self useNewVersionDiffBrowser ifTrue:[ |
|
6770 | 726 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 727 |
]. |
728 |
^ DiffTextView |
|
3883 | 729 |
! ! |
730 |
||
7549 | 731 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 732 |
|
5071 | 733 |
beepEnabled |
734 |
"return the flag which controls the beeper" |
|
735 |
||
736 |
^ self at:#beepEnabled ifAbsentPut:true |
|
737 |
||
738 |
" |
|
739 |
UserPreferences current beepEnabled |
|
740 |
" |
|
741 |
||
742 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
743 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
744 |
! |
|
745 |
||
746 |
beepEnabled:aBoolean |
|
747 |
"set/clear the flag which controls the beeper" |
|
748 |
||
749 |
^ self at:#beepEnabled put:aBoolean |
|
750 |
||
751 |
" |
|
752 |
UserPreferences current beepEnabled:false |
|
753 |
" |
|
754 |
||
755 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
756 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
757 |
! |
|
758 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
759 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
760 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
761 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
762 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
763 |
The returned value has 3 states: true/false and nil, which means: as defined in styleSheet." |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
764 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
765 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
766 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
767 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
768 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
769 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
770 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
771 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
772 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
773 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
774 |
focusFollowsMouse:aBooleanOrNil |
4121 | 775 |
"set/clear the flag which controls if the keyboard focus should |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
776 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
777 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
778 |
Allowed are: true/false and nil, which means: as defined in styleSheet." |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
779 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
780 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
781 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
782 |
" |
4121 | 783 |
UserPreferences current focusFollowsMouse:true |
784 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
785 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
786 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
787 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
788 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
789 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
790 |
|
5808 | 791 |
opaqueTableColumnResizing |
792 |
"return the flag which controls if table column resizing should be done |
|
793 |
animated (opaque)" |
|
794 |
||
795 |
^ self at:#opaqueTableColumnResizing ifAbsentPut:false |
|
796 |
||
797 |
" |
|
798 |
UserPreferences current opaqueTableColumnResizing |
|
799 |
" |
|
800 |
! |
|
801 |
||
802 |
opaqueTableColumnResizing:aBoolean |
|
803 |
"change the flag which controls if table column resizing should be done |
|
804 |
animated (opaque)" |
|
805 |
||
806 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
807 |
||
808 |
" |
|
809 |
UserPreferences current opaqueTableColumnResizing:true |
|
810 |
" |
|
811 |
||
812 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
813 |
! |
|
814 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
815 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
816 |
"return the flag which controls if variable panel resizing should be done |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
817 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
818 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
819 |
^ self at:#opaqueVariablePanelResizing ifAbsentPut:false |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
820 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
821 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
822 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
823 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
824 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
825 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
826 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
827 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
828 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
829 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
830 |
"change the flag which controls if variable panel resizing should be done |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
831 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
832 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
833 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
834 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
835 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
836 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
837 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
838 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
839 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
840 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
841 |
|
6525 | 842 |
searchDialogIsModal |
843 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
844 |
||
845 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
846 |
||
847 |
" |
|
848 |
UserPreferences current searchDialogIsModal |
|
849 |
" |
|
850 |
! |
|
851 |
||
852 |
searchDialogIsModal:aBooleanOrNil |
|
853 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
854 |
||
855 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
856 |
||
857 |
" |
|
858 |
UserPreferences current searchDialogIsModal:true |
|
859 |
UserPreferences current searchDialogIsModal:false |
|
860 |
UserPreferences current searchDialogIsModal |
|
861 |
" |
|
862 |
! |
|
863 |
||
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
864 |
st80EditMode |
7118 | 865 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
866 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
867 |
^ self at:#st80EditMode ifAbsent:false |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
868 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
869 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
870 |
UserPreferences current st80EditMode |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
871 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
872 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
873 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
874 |
st80EditMode:aBoolean |
7118 | 875 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
876 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
877 |
^ self at:#st80EditMode put:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
878 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
879 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
880 |
UserPreferences current st80EditMode:true |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
881 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
882 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
883 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
884 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
885 |
"if true, textDrag is only started when the CTRL-key is down" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
886 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
887 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
888 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
889 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
890 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
891 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
892 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
893 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
894 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
895 |
"if true, textDrag is only started when the CTRL-key is down" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
896 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
897 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
898 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
899 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
900 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
901 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
902 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
903 |
" |
7549 | 904 |
! ! |
905 |
||
906 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
907 |
||
908 |
autoFormatting |
|
909 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
910 |
Notice, the regular browser does not (yet) do automatic formating." |
|
911 |
||
912 |
^ self at:#autoFormatting ifAbsentPut:false |
|
913 |
||
914 |
" |
|
915 |
UserPreferences current autoFormatting |
|
916 |
" |
|
917 |
||
918 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
919 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
920 |
! |
|
921 |
||
922 |
autoFormatting:aBoolean |
|
923 |
"turn on/off automatic formatting of code (in some browsers); |
|
924 |
Notice, the regular browser does not (yet) do automatic formating." |
|
925 |
||
926 |
^ self at:#autoFormatting put:aBoolean |
|
927 |
||
928 |
" |
|
929 |
UserPreferences current autoFormatting:true |
|
930 |
UserPreferences current autoFormatting:false |
|
931 |
" |
|
932 |
||
933 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
934 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
935 |
! |
|
936 |
||
937 |
enforceCodeStyle |
|
938 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
939 |
||
940 |
^ self at:#enforceCodeStyle ifAbsentPut:false |
|
941 |
||
942 |
" |
|
943 |
UserPreferences current enforceCodeStyle |
|
944 |
" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
945 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
946 |
|
3347 | 947 |
syntaxColoring |
3360 | 948 |
"return the flag which controls syntax coloring (in the browsers)" |
949 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
950 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 951 |
|
952 |
" |
|
953 |
UserPreferences current syntaxColoring |
|
954 |
" |
|
955 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
956 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 957 |
! |
958 |
||
959 |
syntaxColoring:aBoolean |
|
3360 | 960 |
"turn on/off syntaxColoring (in the browsers)." |
961 |
||
3347 | 962 |
^ self at:#syntaxColoring put:aBoolean |
963 |
||
3357 | 964 |
" |
965 |
UserPreferences current syntaxColoring:true |
|
966 |
UserPreferences current syntaxColoring:false |
|
967 |
" |
|
968 |
||
3347 | 969 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 970 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
971 |
! ! |
|
972 |
||
7549 | 973 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
974 |
||
975 |
emphasisForChangedCode |
|
976 |
|emp| |
|
977 |
||
978 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
979 |
emp isNil ifTrue:[ |
|
980 |
emp := #color->Color red darkened. |
|
981 |
"/ emp := #color->Color blue darkened. |
|
982 |
self at:#emphasisForChangedCode put:emp. |
|
983 |
]. |
|
984 |
^ emp |
|
6832 | 985 |
! |
986 |
||
7549 | 987 |
emphasisForDifferentPackage |
988 |
|emp| |
|
989 |
||
990 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
991 |
emp isNil ifTrue:[ |
|
992 |
emp := #color->Color brown darkened. |
|
993 |
self at:#emphasisForDifferentPackage put:emp. |
|
994 |
]. |
|
995 |
^ emp |
|
6832 | 996 |
! |
997 |
||
7549 | 998 |
emphasisForModifiedBuffer |
999 |
|emp| |
|
1000 |
||
1001 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
1002 |
emp isNil ifTrue:[ |
|
1003 |
emp := #color->Color red darkened. |
|
1004 |
self at:#emphasisForModifiedBuffer put:emp. |
|
1005 |
]. |
|
1006 |
^ emp |
|
6832 | 1007 |
! |
1008 |
||
7549 | 1009 |
emphasisForObsoleteCode |
1010 |
|emp| |
|
1011 |
||
1012 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
1013 |
emp isNil ifTrue:[ |
|
1014 |
emp := #color->Color red. |
|
1015 |
self at:#emphasisForObsoleteCode put:emp. |
|
1016 |
]. |
|
1017 |
^ emp |
|
6832 | 1018 |
! |
1019 |
||
7549 | 1020 |
emphasisForReadVariable |
1021 |
|emp| |
|
1022 |
||
1023 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
1024 |
emp isNil ifTrue:[ |
|
1025 |
emp := #underline. |
|
1026 |
self at:#emphasisForReadVariable put:emp. |
|
1027 |
]. |
|
1028 |
^ emp |
|
6832 | 1029 |
! |
1030 |
||
7549 | 1031 |
emphasisForWrittenVariable |
1032 |
|emp| |
|
1033 |
||
1034 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
1035 |
emp isNil ifTrue:[ |
|
1036 |
emp := Array with:#underline with:#underlineColor->Color red. |
|
1037 |
self at:#emphasisForWrittenVariable put:emp. |
|
1038 |
]. |
|
1039 |
^ emp |
|
6832 | 1040 |
! ! |
1041 |
||
7549 | 1042 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 1043 |
|
1044 |
argumentIdentifierColor |
|
1045 |
"the color used for argument identifiers; |
|
1046 |
If syntaxColoring is turned on." |
|
1047 |
||
1048 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1049 |
||
1050 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1051 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1052 |
! |
|
1053 |
||
1054 |
argumentIdentifierEmphasis |
|
1055 |
"the emphasis used for argument identifiers; |
|
1056 |
If syntaxColoring is turned on." |
|
1057 |
||
1058 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1059 |
||
1060 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1061 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1062 |
! |
|
1063 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1064 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1065 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1066 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1067 |
|
4336 | 1068 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1069 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1070 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1071 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1072 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1073 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1074 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1075 |
|
4628 | 1076 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1077 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1078 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1079 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1080 |
|
3360 | 1081 |
booleanConstantColor |
1082 |
"the color used for boolean constants; |
|
1083 |
If syntaxColoring is turned on." |
|
1084 |
||
1085 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1086 |
||
1087 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1088 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1089 |
! |
|
1090 |
||
1091 |
booleanConstantEmphasis |
|
1092 |
"the emphasis used for boolean constants; |
|
1093 |
If syntaxColoring is turned on." |
|
1094 |
||
1095 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1096 |
||
1097 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1098 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1099 |
! |
|
1100 |
||
3361 | 1101 |
bracketColor |
1102 |
"the color used for brackets; |
|
1103 |
If syntaxColoring is turned on." |
|
1104 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1105 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1106 |
|
1107 |
" |
|
1108 |
self current at:#bracketColor put:Color red. |
|
1109 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1110 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1111 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1112 |
self current bracketEmphasis |
3361 | 1113 |
" |
1114 |
||
1115 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1116 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1117 |
! |
|
1118 |
||
1119 |
bracketEmphasis |
|
1120 |
"the emphasis used for brackets; |
|
1121 |
If syntaxColoring is turned on." |
|
1122 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1123 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1124 |
|
1125 |
" |
|
1126 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1127 |
self current bracketEmphasis |
3361 | 1128 |
" |
1129 |
||
1130 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1131 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1132 |
! |
|
1133 |
||
4320 | 1134 |
classVariableIdentifierColor |
1135 |
"the color used for classVar/classInstVar identifiers |
|
1136 |
If syntaxColoring is turned on." |
|
1137 |
||
1138 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1139 |
||
1140 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1141 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1142 |
! |
|
1143 |
||
1144 |
classVariableIdentifierEmphasis |
|
1145 |
"the color used for classVar/classInstVar identifiers |
|
1146 |
If syntaxColoring is turned on." |
|
1147 |
||
1148 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1149 |
||
1150 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1151 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1152 |
! |
|
1153 |
||
3360 | 1154 |
commentColor |
1155 |
"the color used for comments; |
|
1156 |
If syntaxColoring is turned on." |
|
1157 |
||
4628 | 1158 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1159 |
|
1160 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1161 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1162 |
! |
1163 |
||
1164 |
commentEmphasis |
|
1165 |
"the emphasis used for comments; |
|
1166 |
If syntaxColoring is turned on." |
|
1167 |
||
4628 | 1168 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1169 |
|
1170 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1171 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1172 |
! |
|
1173 |
||
5258 | 1174 |
commentEmphasisAndColor |
1175 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1176 |
||
1177 |
||
1178 |
! |
|
1179 |
||
3360 | 1180 |
constantColor |
1181 |
"the color used for constants; |
|
1182 |
If syntaxColoring is turned on." |
|
1183 |
||
4628 | 1184 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1185 |
|
1186 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1187 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1188 |
! |
|
1189 |
||
1190 |
constantEmphasis |
|
1191 |
"the emphasis used for constants; |
|
1192 |
If syntaxColoring is turned on." |
|
1193 |
||
1194 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1195 |
||
1196 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1197 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1198 |
! |
|
1199 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1200 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1201 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1202 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1203 |
|
4628 | 1204 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1205 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1206 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1207 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1208 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1209 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1210 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1211 |
|
4628 | 1212 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1213 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1214 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1215 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1216 |
doesNotUnderstand:aMessage |
4580 | 1217 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1218 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1219 |
k := aMessage selector. |
6252 | 1220 |
aMessage numArgs == 0 ifTrue:[ |
1221 |
(self includesKey:k) ifTrue:[ |
|
1222 |
^ self at:k |
|
1223 |
]. |
|
1224 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1225 |
^ def at:k |
|
1226 |
]. |
|
1227 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1228 |
]. |
6252 | 1229 |
"/ ((aMessage numArgs == 1) |
1230 |
"/ and:[ (k endsWith:$:)]) |
|
1231 |
"/ ifTrue:[ |
|
1232 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
1233 |
"/ ((self includesKey:k) |
|
1234 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
|
1235 |
"/ ^ self at:k put:(aMessage arg1) |
|
1236 |
"/ ]. |
|
1237 |
"/ ]. |
|
1238 |
||
7272 | 1239 |
aMessage numArgs == 1 ifTrue:[ |
7274 | 1240 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
7272 | 1241 |
^ nil |
1242 |
]. |
|
6252 | 1243 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1244 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1245 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1246 |
|
4341 | 1247 |
errorColor |
1248 |
"the color used for illegal identifiers; |
|
1249 |
If syntaxColoring is turned on." |
|
1250 |
||
4628 | 1251 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1252 |
|
1253 |
! |
|
1254 |
||
4306 | 1255 |
fullSelectorCheck |
1256 |
"with fullSelector check, selectors are searched immediately for |
|
1257 |
being implemented in the system. This may not be useful on slow machines" |
|
1258 |
||
4628 | 1259 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1260 |
|
1261 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1262 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1263 |
! |
|
1264 |
||
4023 | 1265 |
globalClassIdentifierColor |
1266 |
"the color used for global identifiers which are known to be classes; |
|
1267 |
If syntaxColoring is turned on." |
|
1268 |
||
1269 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1270 |
||
1271 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1272 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1273 |
! |
|
1274 |
||
1275 |
globalClassIdentifierEmphasis |
|
1276 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1277 |
If syntaxColoring is turned on." |
|
1278 |
||
1279 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1280 |
||
1281 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1282 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1283 |
! |
|
1284 |
||
3360 | 1285 |
globalIdentifierColor |
1286 |
"the color used for global identifiers; |
|
1287 |
If syntaxColoring is turned on." |
|
1288 |
||
1289 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1290 |
||
1291 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1292 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1293 |
! |
|
1294 |
||
1295 |
globalIdentifierEmphasis |
|
1296 |
"the emphasis used for global variable identifiers; |
|
1297 |
If syntaxColoring is turned on." |
|
1298 |
||
1299 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1300 |
||
1301 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1302 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1303 |
! |
|
1304 |
||
1305 |
hereColor |
|
1306 |
"the color used for the here pseudoVariable; |
|
1307 |
If syntaxColoring is turned on." |
|
1308 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1309 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1310 |
|
1311 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1312 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1313 |
! |
|
1314 |
||
1315 |
hereEmphasis |
|
1316 |
"the emphasis used for the hre special variable; |
|
1317 |
If syntaxColoring is turned on." |
|
1318 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1319 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1320 |
|
1321 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1322 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1323 |
! |
|
1324 |
||
1325 |
identifierColor |
|
1326 |
"the color used for other identifiers; |
|
1327 |
If syntaxColoring is turned on." |
|
1328 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1329 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1330 |
|
3362 | 1331 |
" |
1332 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1333 |
UserPreferences current at:#identifierColor put:Color black. |
|
1334 |
" |
|
1335 |
||
3360 | 1336 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1337 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1338 |
! |
1339 |
||
1340 |
identifierEmphasis |
|
1341 |
"the emphasis used for other identifiers; |
|
1342 |
If syntaxColoring is turned on." |
|
1343 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1344 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1345 |
|
1346 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1347 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1348 |
! |
|
1349 |
||
3378 | 1350 |
instVarIdentifierColor |
3377 | 1351 |
"the color used for instance variable identifiers; |
1352 |
If syntaxColoring is turned on." |
|
1353 |
||
3378 | 1354 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1355 |
|
1356 |
" |
|
3378 | 1357 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1358 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
1359 |
UserPreferences current instVarIdentifierColor |
|
3377 | 1360 |
" |
1361 |
||
1362 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1363 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1364 |
! |
1365 |
||
3378 | 1366 |
instVarIdentifierEmphasis |
3377 | 1367 |
"the emphais used for instance variable identifiers; |
1368 |
If syntaxColoring is turned on." |
|
1369 |
||
3378 | 1370 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1371 |
|
1372 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1373 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1374 |
! |
1375 |
||
3360 | 1376 |
localIdentifierColor |
1377 |
"the color used for local variable identifiers; |
|
1378 |
If syntaxColoring is turned on." |
|
1379 |
||
1380 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
1381 |
||
3362 | 1382 |
" |
1383 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1384 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1385 |
" |
|
1386 |
||
3360 | 1387 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1388 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1389 |
! |
1390 |
||
1391 |
localIdentifierEmphasis |
|
1392 |
"the emphais used for local variable identifiers; |
|
1393 |
If syntaxColoring is turned on." |
|
1394 |
||
1395 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1396 |
||
1397 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1398 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1399 |
! |
|
1400 |
||
1401 |
methodSelectorColor |
|
1402 |
"the color used for a methods selector pattern; |
|
1403 |
If syntaxColoring is turned on." |
|
1404 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1405 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1406 |
|
1407 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1408 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1409 |
! |
|
1410 |
||
1411 |
methodSelectorEmphasis |
|
1412 |
"the emphasis used for a methods selector pattern; |
|
1413 |
If syntaxColoring is turned on." |
|
1414 |
||
4628 | 1415 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1416 |
|
1417 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1418 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1419 |
! |
|
1420 |
||
4076 | 1421 |
returnColor |
1422 |
"the color used for the return expression; |
|
1423 |
If syntaxColoring is turned on." |
|
1424 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1425 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1426 |
|
1427 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1428 |
! |
|
1429 |
||
1430 |
returnEmphasis |
|
1431 |
"the emphasis used for returns; |
|
1432 |
If syntaxColoring is turned on." |
|
1433 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1434 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1435 |
|
1436 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1437 |
! |
|
1438 |
||
3360 | 1439 |
selectorColor |
1440 |
"the color used for message selectors; |
|
1441 |
If syntaxColoring is turned on." |
|
1442 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1443 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1444 |
|
1445 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1446 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1447 |
! |
|
1448 |
||
1449 |
selectorEmphasis |
|
1450 |
"the emphasis used for message selectors; |
|
1451 |
If syntaxColoring is turned on." |
|
1452 |
||
4628 | 1453 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1454 |
|
1455 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1456 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1457 |
! |
|
1458 |
||
1459 |
selfColor |
|
1460 |
"the color used for the self pseudoVariable; |
|
1461 |
If syntaxColoring is turned on." |
|
1462 |
||
1463 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1464 |
||
1465 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1466 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1467 |
! |
|
1468 |
||
1469 |
selfEmphasis |
|
1470 |
"the emphasis used for the self pseudoVariable; |
|
1471 |
If syntaxColoring is turned on." |
|
1472 |
||
1473 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1474 |
||
1475 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1476 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1477 |
! |
|
1478 |
||
1479 |
stringColor |
|
1480 |
"the color used for string constants; |
|
1481 |
If syntaxColoring is turned on." |
|
1482 |
||
1483 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1484 |
||
1485 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1486 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1487 |
! |
|
1488 |
||
1489 |
stringEmphasis |
|
1490 |
"the emphasis used for string constants; |
|
1491 |
If syntaxColoring is turned on." |
|
1492 |
||
1493 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1494 |
||
1495 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1496 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1497 |
! |
|
1498 |
||
1499 |
superColor |
|
1500 |
"the color used for the super pseudoVariable; |
|
1501 |
If syntaxColoring is turned on." |
|
1502 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1503 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1504 |
|
1505 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1506 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1507 |
! |
|
1508 |
||
1509 |
superEmphasis |
|
1510 |
"the emphasis used for the super pseudoVariable; |
|
1511 |
If syntaxColoring is turned on." |
|
1512 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1513 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1514 |
|
1515 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1516 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1517 |
! |
|
1518 |
||
1519 |
symbolColor |
|
1520 |
"the color used for symbol constants; |
|
1521 |
If syntaxColoring is turned on." |
|
1522 |
||
1523 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1524 |
||
1525 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1526 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1527 |
! |
|
1528 |
||
1529 |
symbolEmphasis |
|
1530 |
"the emphasis used for symbol constants; |
|
1531 |
If syntaxColoring is turned on." |
|
1532 |
||
1533 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1534 |
||
1535 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1536 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1537 |
! |
1538 |
||
1539 |
thisContextColor |
|
3360 | 1540 |
"the color used for the thisContext pseudoVariable; |
1541 |
If syntaxColoring is turned on." |
|
1542 |
||
3355 | 1543 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1544 |
|
1545 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1546 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1547 |
! |
1548 |
||
1549 |
thisContextEmphasis |
|
3360 | 1550 |
"the emphasis used for the thisContext pseudoVariable; |
1551 |
If syntaxColoring is turned on." |
|
1552 |
||
3355 | 1553 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1554 |
|
1555 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1556 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 1557 |
! |
1558 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1559 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1560 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1561 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1562 |
|
4628 | 1563 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1564 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1565 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1566 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1567 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1568 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1569 |
|
4628 | 1570 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1571 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1572 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1573 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1574 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1575 |
|
3354 | 1576 |
unknownIdentifierColor |
3360 | 1577 |
"the color used for unknown identifiers; |
1578 |
If syntaxColoring is turned on." |
|
1579 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1580 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 1581 |
|
3361 | 1582 |
" |
1583 |
self current at:#unknownIdentifierColor put:Color red. |
|
1584 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1585 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1586 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1587 |
self current unknownIdentifierEmphasis |
3361 | 1588 |
" |
1589 |
||
3354 | 1590 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1591 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1592 |
! |
1593 |
||
1594 |
unknownIdentifierEmphasis |
|
3360 | 1595 |
"the emphasis used for unknown identifiers; |
1596 |
If syntaxColoring is turned on." |
|
1597 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1598 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1599 |
|
1600 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1601 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1602 |
! ! |
1603 |
||
7549 | 1604 |
!UserPreferences methodsFor:'accessing-prefs-fileBrowser'! |
1605 |
||
1606 |
filenameEntryFieldVisibleHolder |
|
1607 |
"get the user preferences for show FileEntryField in FileBrowserV2" |
|
1608 |
||
1609 |
^ self at:#filenameEntryFieldVisibleHolder ifAbsentPut:true |
|
1610 |
||
1611 |
" |
|
1612 |
UserPreferences current filenameEntryFieldVisibleHolder |
|
1613 |
" |
|
1614 |
! |
|
1615 |
||
1616 |
filenameEntryFieldVisibleHolder:aBoolean |
|
1617 |
"set/clear the user preferences for show FileEntryField in FileBrowserV2" |
|
1618 |
||
1619 |
^ self at:#filenameEntryFieldVisibleHolder put:aBoolean |
|
1620 |
! |
|
1621 |
||
1622 |
openAlwaysInTextEditor |
|
1623 |
"get the user preferences for open every file in TextEditor |
|
1624 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
1625 |
||
1626 |
^ self at:#openAlwaysInTextEditor ifAbsentPut:false |
|
1627 |
||
1628 |
" |
|
1629 |
UserPreferences current openAlwaysInTextEditor |
|
1630 |
" |
|
1631 |
! |
|
1632 |
||
1633 |
openAlwaysInTextEditor:aBoolean |
|
1634 |
"set/clear the user preferences for open every file in TextEditor |
|
1635 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
1636 |
||
1637 |
^ self at:#openAlwaysInTextEditor put:aBoolean |
|
1638 |
! |
|
1639 |
||
1640 |
openMultipleApplicationsForType |
|
1641 |
"get the user preferences for open more applications for e.g. TextEditor |
|
1642 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
1643 |
||
1644 |
^ self at:#openMultipleApplicationsForType ifAbsentPut:false |
|
1645 |
||
1646 |
" |
|
1647 |
UserPreferences current openMultipleApplicationsForType |
|
1648 |
" |
|
1649 |
! |
|
1650 |
||
1651 |
openMultipleApplicationsForType:aBoolean |
|
1652 |
"set/clear the user preferences for open more applications for e.g. TextEditor |
|
1653 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
1654 |
||
1655 |
^ self at:#openMultipleApplicationsForType put:aBoolean |
|
1656 |
! |
|
1657 |
||
1658 |
showDirectoryTree |
|
1659 |
"get the user preferences for view directorie tree view in FileBrowserV2" |
|
1660 |
||
1661 |
^ self at:#showDirectoryTree ifAbsentPut:true |
|
1662 |
||
1663 |
" |
|
1664 |
UserPreferences current showDirectoryTree |
|
1665 |
" |
|
1666 |
! |
|
1667 |
||
1668 |
showDirectoryTree:aBoolean |
|
1669 |
"set/clear the user preferences for view directorie tree view in FileBrowserV2" |
|
1670 |
||
1671 |
^ self at:#showDirectoryTree put:aBoolean |
|
1672 |
! |
|
1673 |
||
1674 |
showHiddenFiles |
|
1675 |
"get the user preferences for showHiddenFiles in FileBrowserV2" |
|
1676 |
||
1677 |
^ self at:#showHiddenFiles ifAbsentPut:true |
|
1678 |
||
1679 |
" |
|
1680 |
UserPreferences current showHiddenFiles |
|
1681 |
" |
|
1682 |
! |
|
1683 |
||
1684 |
showHiddenFiles:aBoolean |
|
1685 |
"set/clear the user preferences for showHiddenFiles in FileBrowserV2" |
|
1686 |
||
1687 |
||
1688 |
^ self at:#showHiddenFiles put:aBoolean |
|
1689 |
! |
|
1690 |
||
1691 |
sortCaseless |
|
1692 |
"get the user preferences for sort caseless in FileBrowserV2" |
|
1693 |
||
1694 |
^ self at:#sortCaseless ifAbsentPut:true |
|
1695 |
||
1696 |
" |
|
1697 |
UserPreferences current sortCaseless |
|
1698 |
" |
|
1699 |
! |
|
1700 |
||
1701 |
sortCaseless:aBoolean |
|
1702 |
"set/clear the user preferences for sort caseless in FileBrowserV2" |
|
1703 |
||
1704 |
^ self at:#sortCaseless put:aBoolean |
|
1705 |
! |
|
1706 |
||
1707 |
sortDirectoriesBeforeFiles |
|
1708 |
"get the user preferences for sort directories always before files in FileBrowserV2" |
|
1709 |
||
1710 |
^ self at:#sortDirectoriesBeforeFiles ifAbsentPut:true |
|
1711 |
||
1712 |
" |
|
1713 |
UserPreferences current sortDirectoriesBeforeFiles |
|
1714 |
" |
|
1715 |
! |
|
1716 |
||
1717 |
sortDirectoriesBeforeFiles:aBoolean |
|
1718 |
"set/clear the user preferences for sort directories always before files in FileBrowserV2" |
|
1719 |
||
1720 |
^ self at:#sortDirectoriesBeforeFiles put:aBoolean |
|
1721 |
! |
|
1722 |
||
1723 |
toolBarVisibleHolder |
|
1724 |
"get the user preferences for show ToolBar in FileBrowserV2" |
|
1725 |
||
1726 |
^ self at:#toolBarVisibleHolder ifAbsentPut:true |
|
1727 |
||
1728 |
" |
|
1729 |
UserPreferences current toolBarVisibleHolder |
|
1730 |
" |
|
1731 |
! |
|
1732 |
||
1733 |
toolBarVisibleHolder:aBoolean |
|
1734 |
"set/clear the user preferences for show ToolBar in FileBrowserV2" |
|
1735 |
||
1736 |
^ self at:#toolBarVisibleHolder put:aBoolean |
|
1737 |
! |
|
1738 |
||
1739 |
viewDescription |
|
1740 |
"get the user preferences for show file description row in DirectoryContentsBrowser |
|
1741 |
FileBrowserV2" |
|
1742 |
||
1743 |
^ self at:#viewDescription ifAbsentPut:true |
|
1744 |
||
1745 |
" |
|
1746 |
UserPreferences current viewDescription |
|
1747 |
" |
|
1748 |
! |
|
1749 |
||
1750 |
viewDescription:aBoolean |
|
1751 |
"set/clear the user preferences for show file description row in |
|
1752 |
DirectoryContentsBrowser FileBrowserV2" |
|
1753 |
||
1754 |
||
1755 |
^ self at:#viewDescription put:aBoolean |
|
1756 |
! |
|
1757 |
||
1758 |
viewDetails |
|
1759 |
"get the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
1760 |
of FileBrowserV2" |
|
1761 |
||
1762 |
^ self at:#viewDetails ifAbsentPut:false |
|
1763 |
||
1764 |
" |
|
1765 |
UserPreferences current viewDetails |
|
1766 |
" |
|
1767 |
! |
|
1768 |
||
1769 |
viewDetails:aBoolean |
|
1770 |
"set/clear the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
1771 |
of FileBrowserV2" |
|
1772 |
||
1773 |
||
1774 |
^ self at:#viewDetails put:aBoolean |
|
1775 |
! |
|
1776 |
||
1777 |
viewDirectoryDescription |
|
1778 |
"get the user preferences for auto open a TextView for Readme .. etc files |
|
1779 |
on change directory" |
|
1780 |
||
1781 |
^ self at:#viewDirectoryDescription ifAbsentPut:false |
|
1782 |
||
1783 |
" |
|
1784 |
UserPreferences current viewDirectoryDescription |
|
1785 |
" |
|
1786 |
! |
|
1787 |
||
1788 |
viewDirectoryDescription:aBoolean |
|
1789 |
"set/clear the user preferences for auto open a TextView for Readme .. etc files |
|
1790 |
on change directory" |
|
1791 |
||
1792 |
||
1793 |
^ self at:#viewDirectoryDescription put:aBoolean |
|
1794 |
! |
|
1795 |
||
1796 |
viewDirsInContentsBrowser |
|
1797 |
"get the user preferences for view directories in contents browser in FileBrowserV2" |
|
1798 |
||
1799 |
^ self at:#viewDirsInContentsBrowser ifAbsentPut:false |
|
1800 |
||
1801 |
" |
|
1802 |
UserPreferences current viewDirsInContentsBrowser |
|
1803 |
" |
|
1804 |
! |
|
1805 |
||
1806 |
viewDirsInContentsBrowser:aBoolean |
|
1807 |
"set/clear the user preferences for view directories in contents browser in FileBrowserV2" |
|
1808 |
||
1809 |
^ self at:#viewDirsInContentsBrowser put:aBoolean |
|
1810 |
! |
|
1811 |
||
1812 |
viewFilesInDirectoryTree |
|
1813 |
"get the user preferences for view files in tree view (not only directories) of FileBrowserV2 |
|
1814 |
" |
|
1815 |
||
1816 |
^ self at:#viewFilesInDirectoryTree ifAbsentPut:false |
|
1817 |
||
1818 |
" |
|
1819 |
UserPreferences current viewFilesInDirectoryTree |
|
1820 |
" |
|
1821 |
! |
|
1822 |
||
1823 |
viewFilesInDirectoryTree:aBoolean |
|
1824 |
"set/clear the user preferences for view files in tree (not only directories) view of FileBrowserV2" |
|
1825 |
||
1826 |
^ self at:#viewFilesInDirectoryTree put:aBoolean |
|
1827 |
! |
|
1828 |
||
1829 |
viewGroup |
|
1830 |
"get the user preferences for show group information row in |
|
1831 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1832 |
||
1833 |
^ self at:#viewGroup ifAbsentPut:false |
|
1834 |
||
1835 |
" |
|
1836 |
UserPreferences current viewGroup |
|
1837 |
" |
|
1838 |
! |
|
1839 |
||
1840 |
viewGroup:aBoolean |
|
1841 |
"set/clear the user preferences for show group information row in |
|
1842 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1843 |
||
1844 |
||
1845 |
^ self at:#viewGroup put:aBoolean |
|
1846 |
! |
|
1847 |
||
1848 |
viewOwner |
|
1849 |
"get the user preferences for show owner information row in |
|
1850 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1851 |
||
1852 |
^ self at:#viewOwner ifAbsentPut:false |
|
1853 |
||
1854 |
" |
|
1855 |
UserPreferences current viewOwner |
|
1856 |
" |
|
1857 |
! |
|
1858 |
||
1859 |
viewOwner:aBoolean |
|
1860 |
"set/clear the user preferences for show owner information row in |
|
1861 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1862 |
||
1863 |
||
1864 |
^ self at:#viewOwner put:aBoolean |
|
1865 |
! |
|
1866 |
||
1867 |
viewPermissions |
|
1868 |
"get the user preferences for show permissions information row in |
|
1869 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1870 |
||
1871 |
^ self at:#viewPermissions ifAbsentPut:false |
|
1872 |
||
1873 |
" |
|
1874 |
UserPreferences current viewPermissions |
|
1875 |
" |
|
1876 |
! |
|
1877 |
||
1878 |
viewPermissions:aBoolean |
|
1879 |
"set/clear the user permissions for show owner information row in |
|
1880 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1881 |
||
1882 |
||
1883 |
^ self at:#viewPermissions put:aBoolean |
|
1884 |
! |
|
1885 |
||
1886 |
viewPreview |
|
1887 |
"get the user preferences for show image previev row in |
|
1888 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1889 |
||
1890 |
^ self at:#viewPreview ifAbsentPut:false |
|
1891 |
||
1892 |
" |
|
1893 |
UserPreferences current viewPreview |
|
1894 |
" |
|
1895 |
! |
|
1896 |
||
1897 |
viewPreview:aBoolean |
|
1898 |
"set/clear the user permissions for show image previev row in |
|
1899 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1900 |
||
1901 |
||
1902 |
^ self at:#viewPreview put:aBoolean |
|
1903 |
! |
|
1904 |
||
1905 |
viewSize |
|
1906 |
"get the user preferences for show size information row in |
|
1907 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1908 |
||
1909 |
^ self at:#viewSize ifAbsentPut:false |
|
1910 |
||
1911 |
" |
|
1912 |
UserPreferences current viewSize |
|
1913 |
" |
|
1914 |
! |
|
1915 |
||
1916 |
viewSize:aBoolean |
|
1917 |
"set/clear the user permissions for show size information row in |
|
1918 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1919 |
||
1920 |
||
1921 |
^ self at:#viewSize put:aBoolean |
|
1922 |
! |
|
1923 |
||
1924 |
viewTime |
|
1925 |
"get the user preferences for show time information row in |
|
1926 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1927 |
||
1928 |
^ self at:#viewTime ifAbsentPut:false |
|
1929 |
||
1930 |
" |
|
1931 |
UserPreferences current viewSize |
|
1932 |
" |
|
1933 |
! |
|
1934 |
||
1935 |
viewTime:aBoolean |
|
1936 |
"set/clear the user permissions for show time information row in |
|
1937 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1938 |
||
1939 |
||
1940 |
^ self at:#viewTime put:aBoolean |
|
1941 |
! |
|
1942 |
||
1943 |
viewType |
|
1944 |
"get the user preferences for show txpe (suffix) information row in |
|
1945 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1946 |
||
1947 |
^ self at:#viewType ifAbsentPut:false |
|
1948 |
||
1949 |
" |
|
1950 |
UserPreferences current viewType |
|
1951 |
" |
|
1952 |
! |
|
1953 |
||
1954 |
viewType:aBoolean |
|
1955 |
"set/clear the user permissions for show type (suffix) information row in |
|
1956 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1957 |
||
1958 |
||
1959 |
^ self at:#viewType put:aBoolean |
|
1960 |
! ! |
|
1961 |
||
1962 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
|
1963 |
||
1964 |
timeToAutoExpandItemsWhenDraggingOver |
|
1965 |
"in a hierarchical tree view" |
|
1966 |
||
1967 |
^ 700 "/ millis |
|
1968 |
! |
|
1969 |
||
1970 |
twoDigitDateHandler |
|
1971 |
"return a block which converts a two-digit date. |
|
1972 |
Possible algorithms: |
|
1973 |
- identity: treat as year 00..99 |
|
1974 |
- add 1900: treat as 1900..1999 |
|
1975 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
1976 |
||
1977 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
1978 |
" |
|
1979 |
||
1980 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
1981 |
"/ ^ [:x | 1900+x]. |
|
1982 |
"/ ^ [:x | x]. |
|
1983 |
! ! |
|
1984 |
||
1985 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
1986 |
||
1987 |
allowSendMailFromDebugger |
|
1988 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
1989 |
mail account " |
|
1990 |
||
1991 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
1992 |
||
1993 |
" |
|
1994 |
UserPreferences current allowSendMailFromDebugger |
|
1995 |
" |
|
1996 |
||
1997 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1998 |
! |
|
1999 |
||
2000 |
allowSendMailFromDebugger:aBoolean |
|
2001 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2002 |
mail account " |
|
2003 |
||
2004 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
2005 |
||
2006 |
" |
|
2007 |
UserPreferences current allowSendMailFromDebugger:true |
|
2008 |
UserPreferences current allowSendMailFromDebugger:false |
|
2009 |
" |
|
2010 |
! |
|
2011 |
||
2012 |
autoDefineWorkspaceVariables |
|
2013 |
"return the flag which controls automatic definition of unknown variables |
|
2014 |
as workspace variables (in doIts)" |
|
2015 |
||
2016 |
^ self at:#autoDefineWorkspaceVariables ifAbsentPut:false |
|
2017 |
||
2018 |
" |
|
2019 |
UserPreferences current autoDefineWorkspaceVariables |
|
2020 |
" |
|
2021 |
! |
|
2022 |
||
2023 |
autoDefineWorkspaceVariables:aBoolean |
|
2024 |
"turn on/off automatic definition of unknown variables |
|
2025 |
as workspace variables (in doIts)" |
|
2026 |
||
2027 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
2028 |
||
2029 |
" |
|
2030 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
2031 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
2032 |
" |
|
2033 |
! |
|
2034 |
||
2035 |
functionKeySequences |
|
2036 |
"return the collection of function-key macros. |
|
2037 |
Thats a dictionary, which assigns code to F-keys" |
|
2038 |
||
2039 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
2040 |
||
2041 |
" |
|
2042 |
UserPreferences current functionKeySequences |
|
2043 |
" |
|
2044 |
||
2045 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2046 |
! |
|
2047 |
||
2048 |
showClockInLauncher |
|
2049 |
"return the flag which controls if a clock is shown in the launcher" |
|
2050 |
||
2051 |
^ self at:#showClockInLauncher ifAbsentPut:false |
|
2052 |
||
2053 |
" |
|
2054 |
UserPreferences current showClockInLauncher |
|
2055 |
" |
|
2056 |
||
2057 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2058 |
! |
|
2059 |
||
2060 |
showClockInLauncher:aBooleanOrNil |
|
2061 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
2062 |
||
2063 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
2064 |
||
2065 |
" |
|
2066 |
UserPreferences current showClockInLauncher:false. |
|
2067 |
NewLauncher open. |
|
2068 |
||
2069 |
UserPreferences current showClockInLauncher:true. |
|
2070 |
NewLauncher open. |
|
2071 |
" |
|
2072 |
||
2073 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2074 |
! ! |
|
2075 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2076 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2077 |
|
6169 | 2078 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 2079 |
"return a list of pre-defined syntax highlightning styles |
2080 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
2081 |
||
2082 |
^ #( |
|
2083 |
(#resetSyntaxColors 'default') |
|
2084 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
2085 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
2086 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
2087 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
2088 |
) |
|
6169 | 2089 |
! |
2090 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2091 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2092 |
"resets the colors in the CurrentPreferences to their default values" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2093 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2094 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2095 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2096 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2097 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2098 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2099 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2100 |
"resets the colors in the CurrentPreferences to no-color mode, |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2101 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2102 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2103 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2104 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4344 | 2105 |
self at:#errorColor put:Color black. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2106 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2107 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2108 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2109 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2110 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2111 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2112 |
|
6171 | 2113 |
resetSyntaxColorsBlueSelectorsGreenComments |
2114 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2115 |
(with blue selectors and green comments)" |
|
2116 |
||
2117 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2118 |
self at:#commentColor put:(Color green darkened). |
|
2119 |
self at:#commentEmphasis put:#italic. |
|
2120 |
self at:#selectorColor put:(Color blue). |
|
2121 |
self at:#selectorEmphasis put:#normal. |
|
2122 |
self at:#methodSelectorColor put:(Color blue). |
|
2123 |
self at:#methodSelectorEmphasis put:#bold. |
|
2124 |
! |
|
2125 |
||
2126 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 2127 |
"resets the colors in the CurrentPreferences to alternative default values |
2128 |
(with blue selectors and grey comments)" |
|
2129 |
||
6171 | 2130 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
2131 |
self at:#commentColor put:(Color gray). |
|
6169 | 2132 |
! |
2133 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2134 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2135 |
"resets the colors in the CurrentPreferences to alternative default values |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2136 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2137 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2138 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2139 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2140 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2141 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2142 |
|
7266 | 2143 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2144 |
|
4583 | 2145 |
defaultValue |
2146 |
"the defaultValue for non-existing keys" |
|
2147 |
||
2148 |
^ false |
|
2149 |
! |
|
2150 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2151 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2152 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2153 |
|
4583 | 2154 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2155 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2156 |
|
6937 | 2157 |
!UserPreferences methodsFor:'obsolete'! |
2158 |
||
2159 |
useNewSettinsApplication |
|
7030 | 2160 |
"obsolete - will be removed in next release" |
6937 | 2161 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2162 |
self obsoleteMethodWarning. |
7029 | 2163 |
^ self useNewSettingsApplication |
6937 | 2164 |
! |
2165 |
||
2166 |
useNewSettinsApplication:aBoolean |
|
7030 | 2167 |
"obsolete - will be removed in next release" |
6937 | 2168 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2169 |
self obsoleteMethodWarning. |
7029 | 2170 |
self useNewSettingsApplication:aBoolean. |
6937 | 2171 |
! ! |
2172 |
||
7028 | 2173 |
!UserPreferences methodsFor:'saving'! |
2174 |
||
2175 |
saveIn:fileName |
|
2176 |
self class saveSettings:self in:fileName |
|
2177 |
! ! |
|
2178 |
||
3347 | 2179 |
!UserPreferences class methodsFor:'documentation'! |
2180 |
||
2181 |
version |
|
7549 | 2182 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.126 2003-08-13 11:50:35 cg Exp $' |
3347 | 2183 |
! ! |