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