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