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