author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 07 Sep 2012 17:24:32 +0100 | |
branch | jv |
changeset 17966 | 8b5df02e171f |
parent 17951 | fa0e1d7467ea |
child 17968 | c354ab0a9e28 |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
11143 | 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 |
|
11143 | 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 |
|
10887 | 49 |
If more prefs are added, think about adding a corresponding UI to the SystemSettingsDialog too. |
50 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
51 |
UserPreferences current at:#foo |
3347 | 52 |
" |
53 |
! ! |
|
54 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
55 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
56 |
|
4580 | 57 |
initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
|
10240
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
60 |
Color isNil "Smalltalk isStandAloneApp" ifTrue:[ |
11694 | 61 |
^ self. |
10240
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
62 |
]. |
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
63 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
64 |
#( |
11694 | 65 |
#useNewChangesBrowser false |
66 |
#useNewInspector false |
|
67 |
#showClockInLauncher true |
|
68 |
||
69 |
#autoFormatting false |
|
70 |
#syntaxColoring true |
|
71 |
#fullSelectorCheck false |
|
72 |
||
73 |
#defaultSyntaxColor (Color black) |
|
74 |
#defaultSyntaxEmphasis normal |
|
75 |
||
76 |
#errorColor (Color red) |
|
77 |
||
78 |
"/ #commentColor (Color 12.5 12.5 100) |
|
79 |
"/ #constantColor (Color 25 0 0) |
|
80 |
#commentEmphasis normal |
|
81 |
||
82 |
#methodSelectorEmphasis bold |
|
83 |
#selectorEmphasis bold |
|
84 |
#unimplementedSelectorColor (Color red) |
|
85 |
#unimplementedSelectorEmphasis normal |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
86 |
|
17921 | 87 |
"/ I prefer red-underwave over red identifier ... |
88 |
"/ #badIdentifierColor (Color red) |
|
11694 | 89 |
#instVarIdentifierColor (Color 33 0 33) |
90 |
||
17921 | 91 |
"/ I prefer redish background |
92 |
"/ #sideEffectAssignmentColor (Color 75 0 0) |
|
17928 | 93 |
"/ #sideEffectAssignmentBackgroundColor (Color 100 86 86) |
11143 | 94 |
|
95 |
"/ #jsKeywordColor (Color black) |
|
11694 | 96 |
#jsKeywordEmphasis bold |
97 |
#jsKeywordColor (Color 33 33 0) |
|
98 |
||
99 |
#controlFlowSelectorColor (Color 0 0 100) |
|
100 |
#commentColor (Color 0 50 0) |
|
101 |
#constantColor (Color 64 8 8) |
|
8420 | 102 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
103 |
) pairWiseDo:[:k :v | |
11694 | 104 |
DefaultPreferences at:k put:(v decodeAsLiteralArray). |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
105 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
106 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
107 |
"/ I prefer red-underwave over red identifier ... |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
108 |
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
|
109 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
110 |
" |
4580 | 111 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
112 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
113 |
|
17928 | 114 |
"Modified: / 16-03-2012 / 10:35:42 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
115 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
116 |
|
3347 | 117 |
!UserPreferences class methodsFor:'accessing'! |
118 |
||
119 |
current |
|
120 |
CurrentPreferences isNil ifTrue:[ |
|
11143 | 121 |
CurrentPreferences := self new. |
122 |
CurrentPreferences addAll:self default. |
|
123 |
CurrentPreferences flyByHelpSettingChanged. |
|
3347 | 124 |
]. |
125 |
^ CurrentPreferences. |
|
126 |
||
8420 | 127 |
" |
128 |
CurrentPreferences := nil |
|
129 |
" |
|
3364 | 130 |
! |
131 |
||
4318 | 132 |
default |
4580 | 133 |
DefaultPreferences isNil ifTrue:[ |
11143 | 134 |
self initializeDefaultPreferences |
4580 | 135 |
]. |
4318 | 136 |
^ DefaultPreferences. |
137 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
138 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
139 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
140 |
" |
4318 | 141 |
! |
142 |
||
3364 | 143 |
reset |
144 |
"resets the CurrentPreferences to its default values" |
|
145 |
||
146 |
CurrentPreferences := nil |
|
147 |
! |
|
148 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
149 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
150 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
151 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
152 |
^#( |
17922 | 153 |
argumentIdentifierColor |
154 |
argumentIdentifierEmphasis |
|
155 |
booleanConstantColor |
|
156 |
booleanConstantEmphasis |
|
157 |
bracketColor |
|
158 |
bracketEmphasis |
|
159 |
classVariableIdentifierColor |
|
160 |
classVariableIdentifierEmphasis |
|
161 |
constantColor |
|
162 |
constantEmphasis |
|
163 |
controlFlowSelectorColor |
|
164 |
controlFlowSelectorEmphasis |
|
165 |
commentColor |
|
166 |
commentEmphasis |
|
167 |
defaultSyntaxColor |
|
168 |
defaultSyntaxEmphasis |
|
169 |
errorColor |
|
170 |
globalIdentifierColor |
|
171 |
globalIdentifierEmphasis |
|
172 |
globalClassIdentifierColor |
|
173 |
globalClassIdentifierEmphasis |
|
174 |
hereColor |
|
175 |
hereEmphasis |
|
176 |
identifierColor |
|
177 |
identifierEmphasis |
|
178 |
instVarIdentifierColor |
|
179 |
instVarIdentifierEmphasis |
|
180 |
localIdentifierColor |
|
181 |
localIdentifierEmphasis |
|
182 |
methodSelectorColor |
|
183 |
methodSelectorEmphasis |
|
184 |
poolVariableIdentifierColor |
|
185 |
poolVariableIdentifierEmphasis |
|
186 |
returnColor |
|
187 |
returnEmphasis |
|
188 |
selectorColor |
|
189 |
selectorEmphasis |
|
190 |
selfColor |
|
191 |
selfEmphasis |
|
192 |
stringColor |
|
193 |
stringEmphasis |
|
194 |
superColor |
|
195 |
superEmphasis |
|
196 |
symbolColor |
|
197 |
symbolEmphasis |
|
198 |
thisContextColor |
|
199 |
thisContextEmphasis |
|
200 |
unknownIdentifierColor |
|
201 |
unknownIdentifierEmphasis |
|
202 |
unimplementedSelectorColor |
|
203 |
unimplementedSelectorEmphasis |
|
204 |
sideEffectAssignmentBackgroundColor |
|
205 |
sideEffectAssignmentColor |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
206 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
207 |
|
17922 | 208 |
"Modified: / 14-02-2012 / 10:17:46 / cg" |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
209 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
210 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
211 |
syntaxColorNames |
3364 | 212 |
"returns the syntax colors for the settings in the launcher" |
213 |
||
4319 | 214 |
"/ warning, the strings below are presented to the user |
215 |
"/ as the syntax-color boxes comboList - however, they are |
|
216 |
"/ also used (without separators) as key into myself. |
|
217 |
"/ Therefore, do not change the strings below. |
|
218 |
"/ I know - this is bad coding .... |
|
219 |
||
3364 | 220 |
^#( |
221 |
'Argument Identifier Color' |
|
222 |
'Boolean Constant Color' |
|
223 |
'Bracket Color' |
|
4320 | 224 |
'Class Variable Identifier Color' |
17922 | 225 |
'Collection Enumeration Selector Color' |
3364 | 226 |
'Constant Color' |
9834 | 227 |
'Control Flow Selector Color' |
3364 | 228 |
'Comment Color' |
229 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
230 |
'Global Class Identifier Color' |
3364 | 231 |
'Here Color' |
232 |
'Identifier Color' |
|
3377 | 233 |
'InstVar Identifier Color' |
3364 | 234 |
'Local Identifier Color' |
235 |
'Method Selector Color' |
|
8551 | 236 |
'Pool Variable Identifier Color' |
4076 | 237 |
'Return Color' |
3364 | 238 |
'Selector Color' |
239 |
'Self Color' |
|
17921 | 240 |
'Side Effect Assignment Color' |
241 |
'Side Effect Assignment Background Color' |
|
3364 | 242 |
'String Color' |
243 |
'Super Color' |
|
244 |
'Symbol Color' |
|
245 |
'This Context Color' |
|
246 |
'Unknown Identifier Color' |
|
4319 | 247 |
'Unimplemented Selector Color' |
3377 | 248 |
) |
3364 | 249 |
|
17922 | 250 |
"Modified: / 14-02-2012 / 15:51:38 / cg" |
3347 | 251 |
! ! |
252 |
||
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
253 |
!UserPreferences class methodsFor:'accessing - defaults'! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
254 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
255 |
defaultUserSettingsFile |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
256 |
^ (Filename homeDirectory construct:'.smalltalk') construct:'settings.rc' |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
257 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
258 |
"Created: / 06-10-2008 / 08:27:15 / Jan Vrany <vranyj1@fel.cvut.cz>" |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
259 |
! ! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
260 |
|
6019 | 261 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
262 |
||
11006
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
263 |
defaultSettingsFilename |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
264 |
^ 'settings.stx' |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
265 |
! |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
266 |
|
6763 | 267 |
fileBrowserClass |
17784 | 268 |
"the class to be used for file browsing (used to be the simple FileBrowser, but is now the FileBrowserV2)" |
269 |
||
6763 | 270 |
^ self current fileBrowserClass |
271 |
||
272 |
" |
|
273 |
UserPreferences fileBrowserClass |
|
274 |
" |
|
17784 | 275 |
|
276 |
"Modified: / 17-07-2010 / 14:50:34 / cg" |
|
6763 | 277 |
! |
278 |
||
6019 | 279 |
systemBrowserClass |
280 |
^ self current systemBrowserClass |
|
281 |
||
282 |
" |
|
283 |
UserPreferences systemBrowserClass |
|
284 |
" |
|
285 |
! |
|
286 |
||
287 |
versionDiffViewerClass |
|
288 |
^ self current versionDiffViewerClass |
|
289 |
||
290 |
" |
|
291 |
UserPreferences versionDiffViewerClass |
|
292 |
" |
|
293 |
! ! |
|
294 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
295 |
!UserPreferences class methodsFor:'saving'! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
296 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
297 |
saveSettings:userPrefs in:fileName |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
298 |
"save settings to a settings-file." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
299 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
300 |
"a temporary kludge for old classVariable-based settings |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
301 |
- all of those MUST go into the user-preferences dictionary eventually" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
302 |
|
17966 | 303 |
|screen| |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
304 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
305 |
screen := Screen current. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
306 |
|
17966 | 307 |
fileName asFilename writingFileDo:[:s| |
308 |
s nextPutLine:'"/ ST/X saved settings'; |
|
309 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
310 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
311 |
nextPutLine:'"/'; |
|
312 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
313 |
nextPutLine:'"/ ''save settings'' function of the SettingsDialog'; |
|
314 |
nextPutLine:'"/'. |
|
315 |
s cr. |
|
316 |
||
317 |
s nextPutLine:'"/'. |
|
318 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString. |
|
319 |
s nextPutLine:'"/'. |
|
320 |
s cr. |
|
321 |
||
322 |
s nextPutLine:'"/'. |
|
323 |
s nextPutLine:'"/ Display settings:'. |
|
324 |
s nextPutLine:'"/'. |
|
325 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
326 |
s nextPutLine:'Display notNil ifTrue:['. |
|
327 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
328 |
screen fixColors notNil ifTrue:[ |
|
329 |
s nextPutLine:' Image flushDeviceImages.'. |
|
330 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
331 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
332 |
s nextPutLine:' ].'. |
|
333 |
] ifFalse:[ |
|
334 |
s nextPutLine:' Display releaseFixColors.'. |
|
335 |
]. |
|
336 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
337 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
338 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
339 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
340 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
341 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
342 |
s nextPutLine:' ].'. |
|
343 |
s nextPutLine:'].'. |
|
344 |
s cr. |
|
345 |
||
346 |
s nextPutLine:'"/'. |
|
347 |
s nextPutLine:'"/ Parser/Compiler settings:'. |
|
348 |
s nextPutLine:'"/'. |
|
349 |
s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.'; |
|
350 |
nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.'; |
|
351 |
nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.'; |
|
352 |
nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.'; |
|
353 |
nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.'; |
|
354 |
nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.'; |
|
355 |
nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.'; |
|
356 |
nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.'; |
|
357 |
nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.'; |
|
358 |
nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.'; |
|
359 |
nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.'; |
|
360 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
361 |
||
362 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
363 |
nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.'; |
|
364 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
365 |
nextPutLine:' ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.'; |
|
366 |
nextPutLine:' ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.'; |
|
367 |
nextPutLine:' ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.'; |
|
368 |
nextPutLine:' ' , (ParserFlags stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
369 |
nextPutLine:' ParserFlags stcModulePath: ' , (ParserFlags stcModulePath storeString) , '.'; |
|
370 |
nextPutLine:' ].'; |
|
371 |
nextPutLine:' ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.'; |
|
372 |
nextPutLine:' ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.'; |
|
373 |
nextPutLine:' ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.'; |
|
374 |
nextPutLine:' ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.'; |
|
375 |
nextPutLine:' ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.'; |
|
376 |
nextPutLine:' ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.'; |
|
377 |
nextPutLine:' ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.'; |
|
378 |
nextPutLine:' ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.'; |
|
379 |
nextPutLine:' ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.'; |
|
380 |
nextPutLine:'].'; |
|
381 |
||
382 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
383 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
384 |
||
385 |
HistoryManager notNil ifTrue:[ |
|
386 |
HistoryManager isActive ifTrue:[ |
|
387 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
388 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
389 |
] ifFalse:[ |
|
390 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
391 |
]. |
|
392 |
]. |
|
393 |
||
394 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
395 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
396 |
||
397 |
s cr. |
|
398 |
s nextPutLine:'"/'. |
|
399 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
400 |
s nextPutLine:'"/'. |
|
401 |
s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].'; |
|
402 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
403 |
nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].'; |
|
404 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
405 |
||
406 |
"/ FlyByHelp isActive ifTrue:[ |
|
407 |
"/ s nextPutLine:'FlyByHelp start.' |
|
408 |
"/ ]. |
|
409 |
||
410 |
s cr. |
|
411 |
s nextPutLine:'"/'. |
|
412 |
s nextPutLine:'"/ Edit settings:'. |
|
413 |
s nextPutLine:'"/'. |
|
414 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
415 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
416 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'. |
|
417 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
|
418 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
419 |
] ifFalse:[ |
17966 | 420 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
421 |
]. |
|
422 |
||
423 |
s nextPutLine:'"/'. |
|
424 |
s nextPutLine:'"/ User preference values:'. |
|
425 |
s nextPutLine:'"/'. |
|
426 |
userPrefs keysAndValuesDo:[:k :v | |
|
427 |
|putSelector| |
|
428 |
||
429 |
putSelector := (k , ':') asSymbolIfInterned. |
|
430 |
(UserPreferences includesSelector:putSelector) ifTrue:[ |
|
431 |
s nextPutAll:'UserPreferences current '; |
|
432 |
nextPutAll:putSelector. |
|
433 |
] ifFalse:[ |
|
434 |
s nextPutAll:'UserPreferences current at:'. |
|
435 |
k storeOn:s. |
|
436 |
s nextPutAll:' put:'. |
|
437 |
]. |
|
438 |
v storeOn:s. |
|
439 |
s nextPut:$.; cr. |
|
440 |
]. |
|
441 |
||
442 |
s cr. |
|
443 |
s nextPutLine:'"/'. |
|
444 |
s nextPutLine:'"/ GC settings:'. |
|
445 |
s nextPutLine:'"/'. |
|
446 |
s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.'; |
|
447 |
nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.'; |
|
448 |
nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.'; |
|
449 |
nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.'; |
|
450 |
nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.'; |
|
451 |
nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.'; |
|
452 |
nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'. |
|
453 |
||
454 |
s cr. |
|
455 |
s nextPutLine:'"/'. |
|
456 |
s nextPutLine:'"/ Misc settings:'. |
|
457 |
s nextPutLine:'"/'. |
|
458 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
459 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
460 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
461 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
462 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
463 |
||
464 |
"/ claus - I dont think its a good idea to save those ... |
|
465 |
"/ nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
466 |
"/ nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
467 |
||
468 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
469 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
470 |
nextPutLine:'Display notNil ifTrue:['; |
|
471 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
|
472 |
nextPutLine:'].'; |
|
473 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
474 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
475 |
(NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
|
476 |
s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
|
477 |
]. |
|
478 |
Processor isTimeSlicing ifTrue:[ |
|
479 |
s nextPutLine:'Processor startTimeSlicing.'. |
|
480 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
481 |
] ifFalse:[ |
|
482 |
s nextPutLine:'Processor stopTimeSlicing.'. |
|
483 |
]. |
|
484 |
||
485 |
s cr. |
|
486 |
s nextPutLine:'"/'. |
|
487 |
s nextPutLine:'"/ Printer settings:'. |
|
488 |
s nextPutLine:'"/'. |
|
489 |
Printer notNil ifTrue:[ |
|
490 |
s nextPutLine:'Printer := ' , (Printer name) , '.'. |
|
491 |
Printer supportsPrintingToCommand ifTrue:[ |
|
492 |
s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
493 |
]. |
|
494 |
Printer supportsPageSizes ifTrue:[ |
|
495 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
496 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
497 |
]. |
|
498 |
Printer supportsMargins ifTrue:[ |
|
499 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
500 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
501 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
502 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
503 |
]. |
|
504 |
Printer supportsPostscript ifTrue:[ |
|
505 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
506 |
]. |
|
507 |
]. |
|
508 |
s cr. |
|
509 |
s nextPutLine:'"/'. |
|
510 |
s nextPutLine:'"/ Font settings:'. |
|
511 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
|
512 |
s nextPutLine:'"/'. |
|
513 |
s nextPutLine:'Display notNil ifTrue:['. |
|
514 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
515 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
516 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
517 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
518 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
519 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
520 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
521 |
s nextPutLine:' MenuPanel defaultFont: ' , (MenuPanel defaultFont storeString) , '.'. |
|
522 |
s nextPutLine:' NoteBookView defaultFont: ' , (NoteBookView defaultFont storeString) , '.'. |
|
523 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
524 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
525 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
526 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
527 |
s nextPutLine:' ].'. |
|
528 |
s nextPutLine:'].'. |
|
529 |
||
530 |
s cr. |
|
531 |
s nextPutLine:'"/'. |
|
532 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
533 |
s nextPutLine:'"/ (repositories are networked nowadays, so the settings are host independent)'. |
|
534 |
s nextPutLine:'"/'. |
|
535 |
s nextPutLine:'Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
536 |
s nextPutLine:'AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
|
537 |
||
538 |
AbstractSourceCodeManager availableManagers do:[:eachManager | |
|
539 |
eachManager savePreferencesOn:s |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
540 |
]. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
541 |
]. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
542 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
543 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
544 |
Transcript topView application saveSettings |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
545 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
546 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
547 |
"Modified: / 09-08-2006 / 18:52:14 / fm" |
17841 | 548 |
"Modified: / 18-04-2011 / 17:13:34 / cg" |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
549 |
! ! |
7028 | 550 |
|
10861 | 551 |
!UserPreferences methodsFor:'acccesing-locale'! |
552 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
553 |
dateInputFormat |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
554 |
"return a format used when tools read a date from the user" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
555 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
556 |
^ self |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
557 |
at:#dateInputFormat |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
558 |
ifAbsentPut:[ |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
559 |
(self language == #en and:[ self languageTerritory ~= #en]) |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
560 |
ifTrue:[ '%m %d %y' ] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
561 |
ifFalse:[ '%d %m %y' ] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
562 |
] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
563 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
564 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
565 |
dateInputFormat:aFormatString |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
566 |
"return a format used when tools read a date from the user" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
567 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
568 |
^ self |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
569 |
at:#dateInputFormat |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
570 |
ifAbsentPut:[ |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
571 |
(self language == #en and:[ self languageTerritory ~= #en]) |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
572 |
ifTrue:[ '%m %d %y' ] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
573 |
ifFalse:[ '%d %m %y' ] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
574 |
] |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
575 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
576 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
577 |
UserPreferences current dateInputFormat:'%d %m %y' -- european |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
578 |
UserPreferences current dateInputFormat:'%m %d %y' -- us |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
579 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
580 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
581 |
|
10861 | 582 |
decimalPointCharacter |
11213 | 583 |
"toDo: migrate from ClassVar in Number; |
10861 | 584 |
use this for new applications" |
585 |
||
586 |
^ $. |
|
587 |
! |
|
588 |
||
589 |
thousandsSeparatorCharacter |
|
11213 | 590 |
"toDo: migrate from ClassVar elsewhere; |
10861 | 591 |
use this for new applications" |
592 |
||
593 |
^ $' |
|
594 |
! ! |
|
595 |
||
7549 | 596 |
!UserPreferences methodsFor:'accessing'! |
3883 | 597 |
|
17910 | 598 |
at:key |
599 |
^ super at:key asSymbol |
|
600 |
||
601 |
"Created: / 15-01-2012 / 14:27:29 / cg" |
|
602 |
! |
|
603 |
||
604 |
at:key ifAbsent:exceptionValue |
|
605 |
^ super at:key asSymbol ifAbsent:exceptionValue |
|
606 |
||
607 |
"Created: / 15-01-2012 / 14:27:21 / cg" |
|
608 |
! |
|
609 |
||
5790 | 610 |
at:key put:value |
611 |
|classNameToCheck classToCheck| |
|
612 |
||
17807 | 613 |
"/ key isSymbol ifFalse:[ |
614 |
"/ self halt. |
|
615 |
"/ self at:key asSymbol put:value. |
|
616 |
"/ ^ self |
|
617 |
"/ ]. |
|
618 |
||
17924
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
619 |
key == #svnConfigurations2 ifTrue:[ |
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
620 |
self breakPoint:#jv. |
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
621 |
^self. |
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
622 |
]. |
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
623 |
|
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
624 |
|
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
625 |
|
6059 | 626 |
value == true ifTrue:[ |
17807 | 627 |
key == #useNewVersionDiffBrowser ifTrue:[ |
628 |
classNameToCheck := #'VersionDiffBrowser'. |
|
629 |
]. |
|
630 |
key == #useNewChangesBrowser ifTrue:[ |
|
631 |
classNameToCheck := #'NewChangesBrowser'. |
|
632 |
]. |
|
633 |
key == #useNewFileBrowser ifTrue:[ |
|
634 |
classNameToCheck := #'FileBrowserV2'. |
|
635 |
]. |
|
636 |
key == #useNewSystemBrowser ifTrue:[ |
|
637 |
classNameToCheck := #'Tools::NewSystemBrowser'. |
|
638 |
]. |
|
639 |
key == #useNewInspector ifTrue:[ |
|
640 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
|
641 |
]. |
|
5790 | 642 |
]. |
643 |
||
5791 | 644 |
classNameToCheck notNil ifTrue:[ |
17807 | 645 |
classToCheck := Smalltalk at:classNameToCheck. |
646 |
classToCheck isNil ifTrue:[ |
|
647 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
|
648 |
] ifFalse:[ |
|
649 |
Autoload autoloadFailedSignal handle:[:ex | |
|
650 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
651 |
] do:[ |
|
652 |
classToCheck autoload. |
|
653 |
] |
|
654 |
] |
|
5790 | 655 |
]. |
656 |
||
17910 | 657 |
^ super at:key asSymbol put:value |
658 |
||
659 |
"Modified: / 15-01-2012 / 14:26:53 / cg" |
|
17924
407731f7a67d
Catch invalid preference store
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17922
diff
changeset
|
660 |
"Modified: / 22-02-2012 / 13:22:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
7549 | 661 |
! ! |
662 |
||
17966 | 663 |
!UserPreferences methodsFor:'accessing-misc'! |
664 |
||
665 |
selectorNamespacesEnabled |
|
666 |
"Return true, if selector namespaces support is enabled |
|
667 |
for this system. Note, that this method may return true |
|
668 |
even if selector namespaces are not supported by this system. |
|
669 |
||
670 |
This is rather user setting. To ask whether the selector namespaces |
|
671 |
support should be used, use: |
|
672 |
||
673 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
674 |
" |
|
675 |
||
676 |
^self at:#selectorNamespacesEnabled ifAbsent:[false]. |
|
677 |
||
678 |
" |
|
679 |
UserPreferences current selectorNamespacesEnabled |
|
680 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
681 |
||
682 |
UserPreferences current selectorNamespacesEnabled: true. |
|
683 |
UserPreferences current selectorNamespacesEnabled: false. |
|
684 |
" |
|
685 |
||
686 |
"Created: / 19-07-2012 / 15:26:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
687 |
! |
|
688 |
||
689 |
selectorNamespacesEnabled: aBoolean |
|
690 |
"Enables/disables selector namespaces support for this system. |
|
691 |
Please note that even if selector namespaces are enabled here, |
|
692 |
they may not be supported by the system/VM. |
|
693 |
||
694 |
This is rather user setting. To ask whether the selector namespaces |
|
695 |
are supported use |
|
696 |
||
697 |
ConfigurableFeatures includesFeature:#SelectorNamespaces |
|
698 |
" |
|
699 |
||
700 |
self at:#selectorNamespacesEnabled put: aBoolean |
|
701 |
||
702 |
" |
|
703 |
UserPreferences current selectorNamespacesEnabled |
|
704 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
705 |
||
706 |
UserPreferences current selectorNamespacesEnabled: true. |
|
707 |
UserPreferences current selectorNamespacesEnabled: false. |
|
708 |
" |
|
709 |
||
710 |
"Created: / 19-07-2012 / 15:27:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
711 |
! |
|
712 |
||
713 |
selectorNamespacesSupportedAndEnabled |
|
714 |
"Return true, if selector namespaces are both enabled |
|
715 |
and supported by this system/VM, false otherwise |
|
716 |
" |
|
717 |
||
718 |
^ (ConfigurableFeatures includesFeature:#SelectorNamespaces) |
|
719 |
and:[self selectorNamespacesEnabled] |
|
720 |
||
721 |
" |
|
722 |
UserPreferences current selectorNamespacesEnabled |
|
723 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
724 |
||
725 |
UserPreferences current selectorNamespacesEnabled: true. |
|
726 |
UserPreferences current selectorNamespacesEnabled: false. |
|
727 |
" |
|
728 |
||
729 |
"Created: / 19-07-2012 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
730 |
! ! |
|
731 |
||
10723 | 732 |
!UserPreferences methodsFor:'accessing-misc-communication'! |
733 |
||
11023 | 734 |
dotNetBridgeRunsInIDE |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
735 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
736 |
already running and the bridge-exe will not be started by st/x" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
737 |
|
11023 | 738 |
^ self at:#dotNetBridgeRunsInIDE ifAbsent:false |
739 |
! |
|
740 |
||
741 |
dotNetBridgeRunsInIDE:aBoolean |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
742 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
743 |
already running and the bridge-exe will not be started by st/x" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
744 |
|
11023 | 745 |
^ self at:#dotNetBridgeRunsInIDE put:aBoolean |
746 |
! |
|
747 |
||
748 |
dotNetBridgeVerbose |
|
749 |
^ self at:#dotNetBridgeVerbose ifAbsent:false |
|
11027 | 750 |
|
751 |
" |
|
752 |
UserPreferences current dotNetBridgeVerbose |
|
753 |
" |
|
11023 | 754 |
! |
755 |
||
756 |
dotNetBridgeVerbose:aBoolean |
|
757 |
^ self at:#dotNetBridgeVerbose put:aBoolean |
|
758 |
! |
|
759 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
760 |
javaBridgeRunsInIDE |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
761 |
"a debugging flag: if true, the javaBridge is assumed to be |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
762 |
already running and the bridge-exe will not be started by st/x" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
763 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
764 |
^ self at:#javaBridgeRunsInIDE ifAbsent:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
765 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
766 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
767 |
javaBridgeRunsInIDE:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
768 |
"a debugging flag: if true, the javaBridge is assumed to be |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
769 |
already running and the bridge-exe will not be started by st/x" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
770 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
771 |
^ self at:#javaBridgeRunsInIDE put:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
772 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
773 |
|
17756 | 774 |
logHTTPRequests |
775 |
^ self at:#logHTTPRequests ifAbsent:false |
|
776 |
! |
|
777 |
||
778 |
logHTTPRequests:aBoolean |
|
779 |
^ self at:#logHTTPRequests put:aBoolean |
|
780 |
||
781 |
" |
|
782 |
UserPreferences current logHTTPRequests |
|
783 |
UserPreferences current logHTTPRequests:true |
|
784 |
UserPreferences current logHTTPRequests:false |
|
785 |
" |
|
786 |
! |
|
787 |
||
788 |
logSOAPRequests |
|
789 |
^ (self soapLoggingLevel ? 0) > 0 |
|
790 |
! |
|
791 |
||
792 |
logSOAPRequests:aBoolean |
|
793 |
self soapLoggingLevel:(aBoolean ifTrue:3 ifFalse:0) |
|
794 |
||
795 |
" |
|
796 |
UserPreferences current logSOAPRequests |
|
797 |
UserPreferences current logSOAPRequests:true |
|
798 |
UserPreferences current logSOAPRequests:false |
|
799 |
" |
|
800 |
! |
|
801 |
||
10723 | 802 |
smtpServerName |
803 |
^ self at:#smtpServerName ifAbsent:nil |
|
804 |
||
805 |
"Created: / 20-09-2007 / 15:59:20 / cg" |
|
806 |
! |
|
807 |
||
808 |
smtpServerName:aHostnameString |
|
809 |
^ self at:#smtpServerName put:aHostnameString |
|
810 |
||
811 |
" |
|
812 |
UserPreferences current smtpServerName |
|
813 |
UserPreferences current smtpServerName:'mailhost' |
|
814 |
" |
|
815 |
||
816 |
"Created: / 20-09-2007 / 15:59:58 / cg" |
|
17735 | 817 |
! |
818 |
||
819 |
soapErrorDebugging |
|
820 |
"open a debugger on error, or report it as a soap-error" |
|
821 |
||
822 |
^ self at:#soapErrorDebugging ifAbsent:false |
|
823 |
! |
|
824 |
||
825 |
soapErrorDebugging:aBoolean |
|
826 |
"open a debugger on error, or report it as a soap-error" |
|
827 |
^ self at:#soapErrorDebugging put:aBoolean |
|
17756 | 828 |
|
829 |
" |
|
830 |
UserPreferences current soapErrorDebugging:true |
|
831 |
" |
|
17735 | 832 |
! |
833 |
||
834 |
soapLoggingLevel |
|
835 |
^ self at:#soapLoggingLevel ifAbsent:nil |
|
836 |
! |
|
837 |
||
838 |
soapLoggingLevel:anIntegerBetween0_and_3 |
|
839 |
^ self at:#soapLoggingLevel put:anIntegerBetween0_and_3 |
|
17909 | 840 |
! |
841 |
||
842 |
socksProxyHost |
|
843 |
^ self at:#socksProxyHost ifAbsent:nil |
|
844 |
||
845 |
"Created: / 27-12-2011 / 14:40:27 / cg" |
|
846 |
! |
|
847 |
||
848 |
socksProxyHost:aString |
|
849 |
^ self at:#socksProxyHost put:aString |
|
850 |
||
851 |
"Created: / 27-12-2011 / 14:42:15 / cg" |
|
852 |
! |
|
853 |
||
854 |
socksProxyPort |
|
855 |
^ self at:#socksProxyPort ifAbsent:nil |
|
856 |
||
857 |
"Created: / 27-12-2011 / 14:40:32 / cg" |
|
858 |
! |
|
859 |
||
860 |
socksProxyPort:aNumber |
|
861 |
^ self at:#socksProxyPort put:aNumber |
|
862 |
||
863 |
"Created: / 27-12-2011 / 14:42:29 / cg" |
|
10723 | 864 |
! ! |
865 |
||
7549 | 866 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
5790 | 867 |
|
17845 | 868 |
changeSetBrowserClass |
17914 | 869 |
|
870 |
| class className | |
|
871 |
||
872 |
className := self at: #changeSetBrowserClassName ifAbsent:[nil]. |
|
873 |
className notNil ifTrue:[ |
|
874 |
class := Smalltalk at: className asSymbol. |
|
875 |
class notNil ifTrue:[ ^ class ]. |
|
876 |
]. |
|
877 |
||
878 |
"Original code" |
|
17847 | 879 |
^ ChangeSetBrowser. |
17914 | 880 |
"/^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser |
17845 | 881 |
|
17966 | 882 |
self useNewChangeSetBrowser ifTrue:[ |
883 |
^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser |
|
884 |
]. |
|
885 |
^ ChangeSetBrowser |
|
886 |
||
887 |
" |
|
888 |
self current changeSetBrowserClass |
|
889 |
" |
|
890 |
||
17845 | 891 |
"Created: / 01-07-2011 / 16:33:13 / cg" |
17847 | 892 |
"Modified: / 25-07-2011 / 12:21:42 / sr" |
17914 | 893 |
"Modified: / 25-01-2012 / 17:11:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
894 |
! |
|
895 |
||
896 |
changeSetBrowserClass: aClass |
|
897 |
||
898 |
self at: #changeSetBrowserClassName put: aClass name. |
|
899 |
||
900 |
" |
|
901 |
UserPreferences current changeSetBrowserClass |
|
902 |
UserPreferences current changeSetBrowserClass: Tools::ChangeSetBrowser2. |
|
903 |
UserPreferences current changeSetBrowserClass: ChangeSetBrowser. |
|
904 |
" |
|
905 |
||
906 |
"Created: / 25-01-2012 / 17:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
17845 | 907 |
! |
908 |
||
3883 | 909 |
changesBrowserClass |
17914 | 910 |
|
911 |
| class className | |
|
912 |
||
913 |
className := self at: #changesBrowserClassName ifAbsent:[nil]. |
|
914 |
className notNil ifTrue:[ |
|
915 |
class := Smalltalk at: className asSymbol. |
|
916 |
class notNil ifTrue:[ ^ class ]. |
|
917 |
]. |
|
918 |
||
919 |
"/ Old code |
|
3883 | 920 |
self useNewChangesBrowser ifTrue:[ |
17914 | 921 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 922 |
]. |
923 |
^ ChangesBrowser |
|
924 |
||
17914 | 925 |
"Created: / 17-10-1998 / 14:37:46 / cg" |
926 |
"Modified: / 25-01-2012 / 17:11:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
927 |
! |
|
928 |
||
929 |
changesBrowserClass: aClass |
|
930 |
||
931 |
self at: #changesBrowserClassName put: aClass name. |
|
932 |
||
933 |
" |
|
934 |
UserPreferences current changesBrowserClass |
|
935 |
UserPreferences current changesBrowserClass: Tools::ChangeSetBrowser2. |
|
936 |
UserPreferences current changesBrowserClass: ChangeSetBrowser. |
|
937 |
" |
|
938 |
||
939 |
"Created: / 25-01-2012 / 17:12:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5535 | 940 |
! |
941 |
||
6763 | 942 |
fileBrowserClass |
943 |
self useNewFileBrowser ifTrue:[ |
|
11143 | 944 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 945 |
]. |
946 |
^ FileBrowser |
|
8869 | 947 |
|
948 |
" |
|
949 |
UserPreferences current fileBrowserClass |
|
950 |
" |
|
6763 | 951 |
! |
952 |
||
6177 | 953 |
inspectorClassSetting |
954 |
self useNewInspector ifTrue:[ |
|
11143 | 955 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 956 |
]. |
957 |
^ InspectorView |
|
958 |
||
959 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
960 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 961 |
! |
962 |
||
11005 | 963 |
showTipOfTheDayAtStartup |
964 |
^ self at:#showTipOfTheDayAtStartup ifAbsent:false |
|
965 |
! |
|
966 |
||
967 |
showTipOfTheDayAtStartup:aBoolean |
|
968 |
self at:#showTipOfTheDayAtStartup put:aBoolean. |
|
969 |
! |
|
970 |
||
5535 | 971 |
systemBrowserClass |
972 |
self useNewSystemBrowser ifTrue:[ |
|
11143 | 973 |
^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser) |
5535 | 974 |
]. |
975 |
^ SystemBrowser |
|
5536 | 976 |
! |
977 |
||
17845 | 978 |
testRunnerClass |
979 |
self useTestRunner2 ifTrue:[ |
|
980 |
^ Tools::TestRunner2 ? TestRunner |
|
981 |
]. |
|
982 |
^ TestRunner |
|
983 |
||
984 |
"Created: / 06-07-2011 / 13:55:03 / cg" |
|
985 |
! |
|
986 |
||
987 |
useInspector2 |
|
988 |
"using brand new or old inspector" |
|
989 |
||
990 |
^ self at:#useInspector2 ifAbsent:false |
|
991 |
||
992 |
" |
|
993 |
UserPreferences current useInspector2 |
|
994 |
" |
|
995 |
||
996 |
"Modified: / 17-10-1998 / 14:45:12 / cg" |
|
997 |
"Created: / 03-07-2011 / 22:35:50 / cg" |
|
998 |
! |
|
999 |
||
1000 |
useInspector2:aBoolean |
|
1001 |
"using very new or old inspector" |
|
1002 |
||
1003 |
self at:#useInspector2 put:aBoolean |
|
1004 |
||
1005 |
" |
|
1006 |
UserPreferences current useInspector2 |
|
1007 |
" |
|
1008 |
||
1009 |
"Created: / 03-07-2011 / 22:36:13 / cg" |
|
1010 |
! |
|
1011 |
||
10924 | 1012 |
useNativeFileDialog |
17797 | 1013 |
^ self nativeFileDialogs |
1014 |
||
1015 |
"Modified: / 24-08-2010 / 17:02:10 / sr" |
|
10924 | 1016 |
! |
1017 |
||
1018 |
useNativeFileDialog:aBoolean |
|
17797 | 1019 |
self nativeFileDialogs:aBoolean |
1020 |
||
1021 |
"Modified: / 24-08-2010 / 17:02:13 / sr" |
|
10924 | 1022 |
! |
1023 |
||
17966 | 1024 |
useNewChangeSetBrowser |
1025 |
"using old or jan's changeSetBrowser for package diffs" |
|
1026 |
||
1027 |
^ self at:#useNewChangeSetBrowser ifAbsent:false |
|
1028 |
||
1029 |
"Modified: / 13-10-1998 / 15:53:05 / cg" |
|
1030 |
"Created: / 26-07-2012 / 15:06:31 / cg" |
|
1031 |
! |
|
1032 |
||
1033 |
useNewChangeSetBrowser:aBoolean |
|
1034 |
"using old or jan's changeSetBrowser for package diffs" |
|
1035 |
||
1036 |
^ self at:#useNewChangeSetBrowser put:aBoolean |
|
1037 |
||
1038 |
"Created: / 26-07-2012 / 15:06:50 / cg" |
|
1039 |
! |
|
1040 |
||
5536 | 1041 |
useNewChangesBrowser |
17966 | 1042 |
"using new or old change browser for the changes file" |
5536 | 1043 |
|
9302 | 1044 |
^ self at:#useNewChangesBrowser ifAbsent:false |
5536 | 1045 |
|
17966 | 1046 |
"Modified: / 13-10-1998 / 15:53:05 / cg" |
1047 |
"Modified (comment): / 26-07-2012 / 15:04:37 / cg" |
|
5536 | 1048 |
! |
1049 |
||
1050 |
useNewChangesBrowser:aBoolean |
|
17966 | 1051 |
"using new or old changeBrowser for the changes file" |
5536 | 1052 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1053 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 1054 |
|
1055 |
" |
|
1056 |
UserPreferences current useNewChangesBrowser |
|
1057 |
" |
|
1058 |
||
17966 | 1059 |
"Modified: / 13-10-1998 / 15:53:21 / cg" |
1060 |
"Modified (comment): / 26-07-2012 / 15:04:39 / cg" |
|
5536 | 1061 |
! |
1062 |
||
6717 | 1063 |
useNewFileBrowser |
1064 |
"using new or old version diff viewer" |
|
1065 |
||
9302 | 1066 |
^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded]) |
6717 | 1067 |
|
1068 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
1069 |
! |
|
1070 |
||
1071 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1072 |
"using new or old file browser" |
6717 | 1073 |
|
1074 |
self at:#useNewFileBrowser put:aBoolean |
|
1075 |
||
1076 |
" |
|
6769 | 1077 |
UserPreferences current useNewFileBrowser |
6717 | 1078 |
" |
1079 |
||
1080 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1081 |
! |
|
1082 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1083 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1084 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1085 |
|
9302 | 1086 |
^ self at:#useNewFileDialog ifAbsent:true |
17921 | 1087 |
|
1088 |
" |
|
1089 |
UserPreferences current useNewFileDialog:false |
|
1090 |
UserPreferences current useNewFileDialog:true |
|
1091 |
" |
|
1092 |
||
1093 |
"Modified (comment): / 23-01-2012 / 17:25:01 / cg" |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1094 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1095 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1096 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1097 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1098 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1099 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1100 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1101 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1102 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1103 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1104 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1105 |
|
5536 | 1106 |
useNewInspector |
1107 |
"using new or old inspector" |
|
1108 |
||
9302 | 1109 |
^ self at:#useNewInspector ifAbsent:false |
5536 | 1110 |
|
1111 |
" |
|
1112 |
UserPreferences current useNewInspector |
|
1113 |
" |
|
1114 |
||
1115 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
1116 |
! |
|
1117 |
||
1118 |
useNewInspector:aBoolean |
|
1119 |
"using new or old inspector" |
|
1120 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1121 |
self at:#useNewInspector put:aBoolean |
5536 | 1122 |
|
1123 |
" |
|
1124 |
UserPreferences current useNewInspector |
|
1125 |
" |
|
1126 |
! |
|
1127 |
||
6935 | 1128 |
useNewSettingsApplication |
6838 | 1129 |
"using one application for the settings" |
1130 |
||
9302 | 1131 |
^ self at:#useNewSettingsApplication ifAbsent:true |
6838 | 1132 |
! |
1133 |
||
6935 | 1134 |
useNewSettingsApplication:aBoolean |
6838 | 1135 |
"using one application for the settings" |
1136 |
||
6935 | 1137 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 1138 |
|
1139 |
" |
|
6935 | 1140 |
UserPreferences current useNewSettingsApplication:true |
6838 | 1141 |
" |
1142 |
||
1143 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1144 |
! |
|
1145 |
||
5536 | 1146 |
useNewSystemBrowser |
1147 |
"using new or old system browser" |
|
1148 |
||
8593 | 1149 |
|newSystemBrowserClass useIt| |
8000 | 1150 |
|
1151 |
newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser). |
|
8593 | 1152 |
useIt := self at:#useNewSystemBrowser ifAbsent:nil. |
1153 |
useIt isNil ifTrue:[ |
|
11143 | 1154 |
useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]). |
1155 |
useIt ifTrue:[ |
|
1156 |
self at:#useNewSystemBrowser put:true. |
|
1157 |
]. |
|
8593 | 1158 |
]. |
11143 | 1159 |
^ useIt |
5536 | 1160 |
! |
1161 |
||
1162 |
useNewSystemBrowser:aBoolean |
|
1163 |
"using new or old systemBrowser" |
|
1164 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1165 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 1166 |
|
1167 |
" |
|
5541 | 1168 |
UserPreferences current useNewSystemBrowser:true |
5536 | 1169 |
" |
1170 |
||
1171 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1172 |
! |
|
1173 |
||
1174 |
useNewVersionDiffBrowser |
|
1175 |
"using new or old version diff viewer" |
|
1176 |
||
9302 | 1177 |
^ self at:#useNewVersionDiffBrowser ifAbsent:true |
5536 | 1178 |
|
1179 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
1180 |
! |
|
1181 |
||
1182 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1183 |
"using new or old versionDiffBrowser" |
5536 | 1184 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1185 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 1186 |
|
1187 |
" |
|
1188 |
UserPreferences current useNewVersionDiffBrowser |
|
1189 |
" |
|
1190 |
||
1191 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1192 |
! |
|
1193 |
||
6959 | 1194 |
useProcessMonitorV2 |
1195 |
"using ProcessMonitorV2 application for display Processes" |
|
1196 |
||
9302 | 1197 |
^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil) |
6959 | 1198 |
! |
1199 |
||
1200 |
useProcessMonitorV2:aBoolean |
|
1201 |
"using ProcessMonitorV2 application for display Processes" |
|
1202 |
||
1203 |
self at:#useProcessMonitorV2 put:aBoolean |
|
1204 |
||
1205 |
" |
|
1206 |
UserPreferences current useProcessMonitorV2:true |
|
1207 |
" |
|
1208 |
||
1209 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1210 |
! |
|
1211 |
||
9302 | 1212 |
useSmalltalkDocumentViewer |
1213 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
1214 |
to display documentation" |
|
1215 |
||
1216 |
^ self at:#useSmalltalkDocumentViewer ifAbsent:true |
|
1217 |
||
1218 |
" |
|
1219 |
UserPreferences current useSmalltalkDocumentViewer |
|
1220 |
UserPreferences current useSmalltalkDocumentViewer:false |
|
1221 |
" |
|
1222 |
! |
|
1223 |
||
1224 |
useSmalltalkDocumentViewer:aBoolean |
|
1225 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
1226 |
to display documentation" |
|
1227 |
||
1228 |
^ self at:#useSmalltalkDocumentViewer put:aBoolean |
|
1229 |
! |
|
1230 |
||
17845 | 1231 |
useTestRunner2 |
1232 |
"using new or old test runner" |
|
1233 |
||
1234 |
^ self at:#useTestRunner2 ifAbsent:true |
|
1235 |
||
1236 |
"Created: / 06-07-2011 / 13:41:33 / cg" |
|
1237 |
! |
|
1238 |
||
1239 |
useTestRunner2:aBoolean |
|
1240 |
"using new or old test runner" |
|
1241 |
||
1242 |
self at:#useTestRunner2 put:aBoolean |
|
1243 |
||
1244 |
" |
|
1245 |
UserPreferences current useTestRunner2:true |
|
1246 |
" |
|
1247 |
||
1248 |
"Created: / 06-07-2011 / 13:41:40 / cg" |
|
1249 |
! |
|
1250 |
||
5536 | 1251 |
versionDiffViewerClass |
1252 |
self useNewVersionDiffBrowser ifTrue:[ |
|
11143 | 1253 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 1254 |
]. |
10992 | 1255 |
^ DiffCodeView |
3883 | 1256 |
! ! |
1257 |
||
7549 | 1258 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 1259 |
|
11390 | 1260 |
allowMouseWheelZoom |
1261 |
"return the flag which controls if text can be magnified via the ALT-wheel-action" |
|
1262 |
||
1263 |
^ self at:#allowMouseWheelZoom ifAbsent:[ true ] |
|
1264 |
||
1265 |
" |
|
1266 |
UserPreferences current allowMouseWheelZoom |
|
1267 |
" |
|
1268 |
! |
|
1269 |
||
1270 |
allowMouseWheelZoom:aBooleanOrNil |
|
1271 |
"set/clear the flag which controls if text can be magnified via the ALT-wheel-action" |
|
1272 |
||
1273 |
^ self at:#allowMouseWheelZoom put:aBooleanOrNil |
|
1274 |
||
1275 |
" |
|
1276 |
UserPreferences current allowMouseWheelZoom:true |
|
1277 |
UserPreferences current allowMouseWheelZoom:false |
|
1278 |
UserPreferences current allowMouseWheelZoom |
|
1279 |
" |
|
1280 |
! |
|
1281 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1282 |
avoidSlowDrawingOperationsUnderWindows |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1283 |
^ OperatingSystem isMSWINDOWSlike |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1284 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1285 |
|
5071 | 1286 |
beepEnabled |
1287 |
"return the flag which controls the beeper" |
|
1288 |
||
1289 |
^ self at:#beepEnabled ifAbsentPut:true |
|
1290 |
||
1291 |
" |
|
1292 |
UserPreferences current beepEnabled |
|
1293 |
" |
|
1294 |
||
1295 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1296 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
1297 |
! |
|
1298 |
||
1299 |
beepEnabled:aBoolean |
|
1300 |
"set/clear the flag which controls the beeper" |
|
1301 |
||
1302 |
^ self at:#beepEnabled put:aBoolean |
|
1303 |
||
1304 |
" |
|
1305 |
UserPreferences current beepEnabled:false |
|
1306 |
" |
|
1307 |
||
1308 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1309 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
1310 |
! |
|
1311 |
||
8676 | 1312 |
beepForErrorDialog |
1313 |
"return the flag which controls beeping for error dialogs" |
|
1314 |
||
9302 | 1315 |
^ self at:#beepForErrorDialog ifAbsent:true |
8676 | 1316 |
|
1317 |
" |
|
1318 |
UserPreferences current beepForErrorDialog |
|
1319 |
" |
|
1320 |
! |
|
1321 |
||
1322 |
beepForErrorDialog:aBoolean |
|
1323 |
"set/clear the flag which controls beeping for error dialogs" |
|
1324 |
||
1325 |
^ self at:#beepForErrorDialog put:aBoolean |
|
1326 |
||
1327 |
" |
|
1328 |
UserPreferences current beepForErrorDialog:true |
|
1329 |
" |
|
1330 |
! |
|
1331 |
||
1332 |
beepForInfoDialog |
|
1333 |
"return the flag which controls beeping for info dialogs" |
|
1334 |
||
9302 | 1335 |
^ self at:#beepForInfoDialog ifAbsent:false |
8676 | 1336 |
|
1337 |
" |
|
1338 |
UserPreferences current beepForInfoDialog |
|
1339 |
" |
|
1340 |
! |
|
1341 |
||
1342 |
beepForInfoDialog:aBoolean |
|
1343 |
"set/clear the flag which controls beeping for info dialogs" |
|
1344 |
||
1345 |
^ self at:#beepForInfoDialog put:aBoolean |
|
1346 |
||
1347 |
" |
|
1348 |
UserPreferences current beepForInfoDialog:true |
|
1349 |
" |
|
1350 |
! |
|
1351 |
||
1352 |
beepForWarningDialog |
|
1353 |
"return the flag which controls beeping for warning dialogs" |
|
1354 |
||
9302 | 1355 |
^ self at:#beepForWarningDialog ifAbsent:true |
8676 | 1356 |
|
1357 |
" |
|
1358 |
UserPreferences current beepForWarningDialog |
|
1359 |
" |
|
1360 |
! |
|
1361 |
||
1362 |
beepForWarningDialog:aBoolean |
|
1363 |
"set/clear the flag which controls beeping for warning dialogs" |
|
1364 |
||
1365 |
^ self at:#beepForWarningDialog put:aBoolean |
|
1366 |
||
1367 |
" |
|
1368 |
UserPreferences current beepForWarningDialog:true |
|
1369 |
" |
|
1370 |
! |
|
1371 |
||
11691 | 1372 |
beepInEditor |
1373 |
"return the flag which controls the beeper" |
|
1374 |
||
1375 |
^ self at:#beepInEditor ifAbsentPut:true |
|
1376 |
||
1377 |
" |
|
1378 |
UserPreferences current beepInEditor |
|
1379 |
" |
|
1380 |
! |
|
1381 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1382 |
closePopUpMenuChainOnEscape |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1383 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1384 |
if false (the default), only the last popup-view is closed. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1385 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1386 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1387 |
^ self at:#closePopUpMenuChainOnEscape ifAbsent:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1388 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1389 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1390 |
UserPreferences current closePopUpMenuChainOnEscape:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1391 |
UserPreferences current closePopUpMenuChainOnEscape:true |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1392 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1393 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1394 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1395 |
closePopUpMenuChainOnEscape:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1396 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1397 |
if false (the default), only the last popup-view is closed. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1398 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1399 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1400 |
^ self at:#closePopUpMenuChainOnEscape put:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1401 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1402 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1403 |
UserPreferences current closePopUpMenuChainOnEscape:true |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1404 |
UserPreferences current closePopUpMenuChainOnEscape:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1405 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1406 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1407 |
|
17814 | 1408 |
delayedMenuShowAndHide |
1409 |
"the Windows behavior of showing submenus of a menu slightly delayed, |
|
1410 |
to allow for short-time leaving of the mouse pointer. |
|
1411 |
(bug #D1480943)" |
|
1412 |
||
1413 |
^ self at:#delayedMenuShowAndHide ifAbsent:true |
|
1414 |
||
1415 |
"Created: / 29-11-2010 / 19:47:21 / cg" |
|
1416 |
! |
|
1417 |
||
1418 |
delayedMenuShowAndHide:aBoolean |
|
1419 |
"the Windows behavior of showing submenus of a menu slightly delayed, |
|
1420 |
to allow for short-time leaving of the mouse pointer. |
|
1421 |
(bug #D1480943)" |
|
1422 |
||
1423 |
^ self at:#delayedMenuShowAndHide put:aBoolean |
|
1424 |
||
1425 |
" |
|
1426 |
UserPreferences current delayedMenuShowAndHide |
|
1427 |
" |
|
1428 |
||
1429 |
"Created: / 29-11-2010 / 19:47:36 / cg" |
|
1430 |
! |
|
1431 |
||
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1432 |
expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1433 |
"expand the selection in a selectionInListView if the mouse is pressed while moving over |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1434 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1435 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1436 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1437 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1438 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1439 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1440 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1441 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1442 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1443 |
expandSelectionOnMouseMoveWithButtonPressed:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1444 |
"expand the selection in a selectionInListView if the mouse is pressed while moving over |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1445 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1446 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1447 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1448 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1449 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1450 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1451 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1452 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1453 |
|
17912 | 1454 |
flyByHelpActive |
1455 |
||
1456 |
^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])" |
|
1457 |
! |
|
1458 |
||
1459 |
flyByHelpActive:aBoolean |
|
1460 |
aBoolean ~~ self flyByHelpActive ifTrue:[ |
|
1461 |
self at:#flyByHelpActive put:aBoolean. |
|
1462 |
self flyByHelpSettingChanged. |
|
1463 |
]. |
|
1464 |
! |
|
1465 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1466 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1467 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1468 |
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
|
1469 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1470 |
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
|
1471 |
|
17844 | 1472 |
^ self at:#focusFollowsMouse ifAbsent:[ false ] |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1473 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1474 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1475 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1476 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1477 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1478 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1479 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1480 |
focusFollowsMouse:aBooleanOrNil |
4121 | 1481 |
"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
|
1482 |
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
|
1483 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1484 |
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
|
1485 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1486 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1487 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1488 |
" |
4121 | 1489 |
UserPreferences current focusFollowsMouse:true |
1490 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1491 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1492 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1493 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1494 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1495 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1496 |
|
17807 | 1497 |
forceWindowsIntoMonitorBounds |
1498 |
"if true, windows are forced to be placed into a monitor's bounds completely; |
|
1499 |
if false, they may be placed as to cross a boundary. This only affects initial placement, |
|
1500 |
not window movement." |
|
1501 |
||
1502 |
^ self at:#forceWindowsIntoMonitorBounds ifAbsent:true |
|
1503 |
||
1504 |
"Created: / 22-10-2010 / 10:59:10 / cg" |
|
1505 |
! |
|
1506 |
||
1507 |
forceWindowsIntoMonitorBounds:aBoolean |
|
1508 |
"if true, windows are forced to be placed into a monitor's bounds completely; |
|
1509 |
if false, they may be placed as to cross a boundary. This only affects initial placement, |
|
1510 |
not window movement." |
|
1511 |
||
1512 |
^ self at:#forceWindowsIntoMonitorBounds put:aBoolean |
|
1513 |
||
1514 |
" |
|
1515 |
UserPreferences current forceWindowsIntoMonitorBounds:false |
|
1516 |
UserPreferences current forceWindowsIntoMonitorBounds:true |
|
1517 |
" |
|
1518 |
||
1519 |
"Modified: / 22-10-2010 / 11:13:54 / cg" |
|
1520 |
! |
|
1521 |
||
8759 | 1522 |
motionDistanceToStartDrag |
1523 |
"the motion distance (in pixel) to start drag (as opposed to adding to the selection)" |
|
1524 |
||
1525 |
^ "DragMotionDistance ?" 10 |
|
1526 |
! |
|
1527 |
||
11589
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1528 |
mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1529 |
"return the flag which controls if the mouseWheel focus should |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1530 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win)" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1531 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1532 |
self focusFollowsMouse ifTrue:[^ true]. |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1533 |
^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1534 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1535 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1536 |
UserPreferences current mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1537 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1538 |
! |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1539 |
|
17912 | 1540 |
nativeDialogs |
1541 |
^ self at:#nativeDialogs ifAbsent:false |
|
1542 |
||
1543 |
"Created: / 24-08-2010 / 17:01:47 / sr" |
|
1544 |
! |
|
1545 |
||
1546 |
nativeDialogs:aBoolean |
|
1547 |
|currentScreen| |
|
1548 |
||
1549 |
self at:#nativeDialogs put:aBoolean. |
|
1550 |
currentScreen := Screen current. |
|
1551 |
currentScreen notNil ifTrue:[ |
|
1552 |
currentScreen supportsNativeDialogs ifTrue:[ |
|
1553 |
currentScreen nativeDialogs:aBoolean |
|
1554 |
]. |
|
1555 |
]. |
|
1556 |
||
1557 |
"Modified: / 24-08-2010 / 18:06:43 / sr" |
|
1558 |
! |
|
1559 |
||
1560 |
nativeFileDialogs |
|
1561 |
^ self at:#nativeFileDialogs ifAbsent:false |
|
1562 |
||
1563 |
"Created: / 24-08-2010 / 17:01:59 / sr" |
|
1564 |
! |
|
1565 |
||
1566 |
nativeFileDialogs:aBoolean |
|
1567 |
|currentScreen| |
|
1568 |
||
1569 |
self at:#nativeFileDialogs put:aBoolean. |
|
1570 |
currentScreen := Screen current. |
|
1571 |
currentScreen notNil ifTrue:[ |
|
1572 |
currentScreen supportsNativeFileDialogs ifTrue:[ |
|
1573 |
currentScreen nativeFileDialogs:aBoolean |
|
1574 |
]. |
|
1575 |
]. |
|
1576 |
||
1577 |
"Modified: / 24-08-2010 / 18:06:27 / sr" |
|
1578 |
! |
|
1579 |
||
1580 |
nativeWidgets |
|
1581 |
^ self at:#nativeWidgets ifAbsent:false |
|
1582 |
||
1583 |
"Created: / 24-08-2010 / 16:58:44 / sr" |
|
1584 |
! |
|
1585 |
||
1586 |
nativeWidgets:aBoolean |
|
1587 |
|currentScreen| |
|
1588 |
||
1589 |
self at:#nativeWidgets put:aBoolean. |
|
1590 |
currentScreen := Screen current. |
|
1591 |
currentScreen notNil ifTrue:[ |
|
1592 |
currentScreen supportsNativeWidgets ifTrue:[ |
|
1593 |
currentScreen nativeWidgets:aBoolean |
|
1594 |
]. |
|
1595 |
]. |
|
1596 |
||
1597 |
"Created: / 24-08-2010 / 16:58:14 / sr" |
|
1598 |
"Modified: / 24-08-2010 / 18:05:56 / sr" |
|
1599 |
! |
|
1600 |
||
5808 | 1601 |
opaqueTableColumnResizing |
1602 |
"return the flag which controls if table column resizing should be done |
|
1603 |
animated (opaque)" |
|
1604 |
||
9302 | 1605 |
^ self at:#opaqueTableColumnResizing ifAbsent:false |
5808 | 1606 |
|
1607 |
" |
|
1608 |
UserPreferences current opaqueTableColumnResizing |
|
1609 |
" |
|
1610 |
! |
|
1611 |
||
1612 |
opaqueTableColumnResizing:aBoolean |
|
1613 |
"change the flag which controls if table column resizing should be done |
|
1614 |
animated (opaque)" |
|
1615 |
||
1616 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
1617 |
||
1618 |
" |
|
1619 |
UserPreferences current opaqueTableColumnResizing:true |
|
1620 |
" |
|
1621 |
||
1622 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1623 |
! |
|
1624 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1625 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1626 |
"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
|
1627 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1628 |
|
9302 | 1629 |
^ self at:#opaqueVariablePanelResizing ifAbsent:false |
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1630 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1631 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1632 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1633 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1634 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1635 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1636 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1637 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1638 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1639 |
"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
|
1640 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1641 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1642 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1643 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1644 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1645 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1646 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1647 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1648 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1649 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1650 |
|
6525 | 1651 |
searchDialogIsModal |
1652 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1653 |
||
1654 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
1655 |
||
1656 |
" |
|
1657 |
UserPreferences current searchDialogIsModal |
|
1658 |
" |
|
1659 |
! |
|
1660 |
||
1661 |
searchDialogIsModal:aBooleanOrNil |
|
1662 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1663 |
||
1664 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
1665 |
||
1666 |
" |
|
1667 |
UserPreferences current searchDialogIsModal:true |
|
1668 |
UserPreferences current searchDialogIsModal:false |
|
1669 |
UserPreferences current searchDialogIsModal |
|
1670 |
" |
|
1671 |
! |
|
1672 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1673 |
selectOnRightClick |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1674 |
"the Windows behavior of selecting on a right-click" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1675 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1676 |
^ self at:#selectOnRightClick ifAbsent:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1677 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1678 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1679 |
selectOnRightClick:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1680 |
"the Windows behavior of selecting on a right-click" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1681 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1682 |
^ self at:#selectOnRightClick put:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1683 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1684 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1685 |
UserPreferences current selectOnRightClick:true. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1686 |
UserPreferences current selectOnRightClick:false. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1687 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1688 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1689 |
|
17814 | 1690 |
showDottedLinesInTree |
17834 | 1691 |
^ self |
1692 |
at:#showDottedLinesInTree |
|
1693 |
ifAbsent:[ OperatingSystem isMSWINDOWSlike not |
|
1694 |
or:[ OperatingSystem isVistaLike not ] ] |
|
17814 | 1695 |
|
1696 |
"Created: / 03-12-2010 / 11:31:46 / cg" |
|
17834 | 1697 |
"Modified: / 09-02-2011 / 23:27:03 / cg" |
17814 | 1698 |
! |
1699 |
||
1700 |
showDottedLinesInTree:aBoolean |
|
1701 |
^ self at:#showDottedLinesInTree put:aBoolean |
|
1702 |
||
1703 |
" |
|
1704 |
UserPreferences current showDottedLinesInTree:true. |
|
1705 |
UserPreferences current showDottedLinesInTree:false. |
|
1706 |
" |
|
1707 |
||
1708 |
"Created: / 03-12-2010 / 11:31:53 / cg" |
|
1709 |
! |
|
1710 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1711 |
showRightButtonMenuOnRelease |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1712 |
"the Windows behavior of showing the right-button menu on a release. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1713 |
Not yet fully implemented." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1714 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1715 |
^ self at:#showRightButtonMenuOnRelease ifAbsent:true |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1716 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1717 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1718 |
showRightButtonMenuOnRelease:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1719 |
"the Windows behavior of showing the right-button menu on a release. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1720 |
Not yet fully implemented." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1721 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1722 |
^ self at:#showRightButtonMenuOnRelease put:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1723 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1724 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1725 |
UserPreferences current showRightButtonMenuOnRelease:true. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1726 |
UserPreferences current showRightButtonMenuOnRelease:false. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1727 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1728 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1729 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1730 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1731 |
"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
|
1732 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1733 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1734 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1735 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1736 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1737 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1738 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1739 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1740 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1741 |
"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
|
1742 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1743 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1744 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1745 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1746 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1747 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1748 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1749 |
" |
17735 | 1750 |
! |
1751 |
||
17814 | 1752 |
toolTipAutoHideDelay |
1753 |
"return the time, tooltips are shown" |
|
1754 |
||
1755 |
^ self at:#toolTipAutoHideDelay ifAbsentPut:[FlyByHelp showTime] |
|
1756 |
||
1757 |
" |
|
1758 |
UserPreferences current toolTipAutoHideDelay |
|
1759 |
" |
|
1760 |
||
1761 |
"Created: / 10-11-2010 / 12:08:58 / cg" |
|
1762 |
! |
|
1763 |
||
1764 |
toolTipAutoHideDelay:aTimeDuration |
|
1765 |
"set the time, tooltips are shown. Nil means: dont hide" |
|
1766 |
||
1767 |
self at:#toolTipAutoHideDelay put:aTimeDuration. |
|
17828
80569919f447
UserPreferences: fix for #toolTipAutoHideDelay: - should fix #57
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17814
diff
changeset
|
1768 |
FlyByHelp showTime: (aTimeDuration isInteger ifTrue:[aTimeDuration] ifFalse:[aTimeDuration asSeconds]). |
17814 | 1769 |
|
1770 |
" |
|
1771 |
UserPreferences current toolTipAutoHideDelay:10 seconds |
|
1772 |
" |
|
1773 |
||
1774 |
"Created: / 10-11-2010 / 12:09:33 / cg" |
|
17828
80569919f447
UserPreferences: fix for #toolTipAutoHideDelay: - should fix #57
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17814
diff
changeset
|
1775 |
"Modified: / 07-03-2011 / 23:56:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17814 | 1776 |
! |
1777 |
||
17735 | 1778 |
waitCursorVisibleTime |
1779 |
"anser the time (in ms), how long a wait cursor should be visible at least" |
|
1780 |
||
17862 | 1781 |
^ 100 |
1782 |
||
1783 |
"Modified: / 12-09-2011 / 11:08:53 / cg" |
|
17814 | 1784 |
! |
1785 |
||
1786 |
workAroundRenderingBugOnVista |
|
1787 |
"a temporary kludge for the vista-cleartype character redraw bug" |
|
1788 |
||
1789 |
^ OperatingSystem isMSWINDOWSlike |
|
1790 |
||
1791 |
"Created: / 08-11-2010 / 14:47:52 / cg" |
|
1792 |
"Modified: / 09-11-2010 / 13:02:43 / cg" |
|
7549 | 1793 |
! ! |
1794 |
||
1795 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
1796 |
||
1797 |
autoFormatting |
|
1798 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
1799 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1800 |
||
8233 | 1801 |
^ self at:#autoFormatting ifAbsent:false |
7549 | 1802 |
|
1803 |
" |
|
1804 |
UserPreferences current autoFormatting |
|
1805 |
" |
|
1806 |
||
1807 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
1808 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
1809 |
! |
|
1810 |
||
1811 |
autoFormatting:aBoolean |
|
1812 |
"turn on/off automatic formatting of code (in some browsers); |
|
1813 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1814 |
||
1815 |
^ self at:#autoFormatting put:aBoolean |
|
1816 |
||
1817 |
" |
|
1818 |
UserPreferences current autoFormatting:true |
|
1819 |
UserPreferences current autoFormatting:false |
|
1820 |
" |
|
1821 |
||
1822 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
1823 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
1824 |
! |
|
1825 |
||
1826 |
enforceCodeStyle |
|
1827 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
1828 |
||
8233 | 1829 |
^ self at:#enforceCodeStyle ifAbsent:false |
7549 | 1830 |
|
1831 |
" |
|
1832 |
UserPreferences current enforceCodeStyle |
|
10478 | 1833 |
UserPreferences current enforceCodeStyle:true |
1834 |
UserPreferences current enforceCodeStyle:false |
|
7549 | 1835 |
" |
10478 | 1836 |
|
1837 |
"Modified: / 27-03-2007 / 21:51:42 / cg" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1838 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1839 |
|
17784 | 1840 |
enforceComment |
1841 |
"return the flag which controls enforcing a comment in accepted methods" |
|
1842 |
||
1843 |
^ self at:#enforceComment ifAbsent:false |
|
1844 |
||
1845 |
" |
|
1846 |
UserPreferences current enforceComment |
|
1847 |
UserPreferences current enforceComment:true |
|
1848 |
UserPreferences current enforceComment:false |
|
1849 |
" |
|
1850 |
||
1851 |
"Created: / 17-07-2010 / 14:16:27 / cg" |
|
1852 |
! |
|
1853 |
||
1854 |
enforceComment:aBoolean |
|
1855 |
"set/clear the flag which controls enforcing a comment in accepted methods" |
|
1856 |
||
1857 |
^ self at:#enforceComment put:aBoolean |
|
1858 |
||
1859 |
" |
|
1860 |
UserPreferences current enforceComment:true |
|
1861 |
UserPreferences current enforceComment:false |
|
1862 |
" |
|
1863 |
||
1864 |
"Created: / 17-07-2010 / 14:17:02 / cg" |
|
1865 |
! |
|
1866 |
||
9320 | 1867 |
showAcceptCancelBarInBrowser |
1868 |
"experimental." |
|
1869 |
||
11214
ad61819068b9
changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents:
11213
diff
changeset
|
1870 |
^ self at:#showAcceptCancelBarInBrowser ifAbsent:true |
9320 | 1871 |
|
1872 |
" |
|
1873 |
UserPreferences current showAcceptCancelBarInBrowser |
|
1874 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1875 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1876 |
" |
|
1877 |
! |
|
1878 |
||
1879 |
showAcceptCancelBarInBrowser:aBoolean |
|
1880 |
"experimental." |
|
1881 |
||
1882 |
^ self at:#showAcceptCancelBarInBrowser put:aBoolean |
|
1883 |
||
1884 |
" |
|
1885 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1886 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1887 |
" |
|
1888 |
! |
|
1889 |
||
3347 | 1890 |
syntaxColoring |
3360 | 1891 |
"return the flag which controls syntax coloring (in the browsers)" |
1892 |
||
8233 | 1893 |
^ self at:#syntaxColoring ifAbsent:true |
3347 | 1894 |
|
1895 |
" |
|
1896 |
UserPreferences current syntaxColoring |
|
1897 |
" |
|
1898 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
1899 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 1900 |
! |
1901 |
||
1902 |
syntaxColoring:aBoolean |
|
3360 | 1903 |
"turn on/off syntaxColoring (in the browsers)." |
1904 |
||
3347 | 1905 |
^ self at:#syntaxColoring put:aBoolean |
1906 |
||
3357 | 1907 |
" |
1908 |
UserPreferences current syntaxColoring:true |
|
1909 |
UserPreferences current syntaxColoring:false |
|
1910 |
" |
|
1911 |
||
3347 | 1912 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 1913 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1914 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1915 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1916 |
useSearchBarInBrowser |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1917 |
"true, if the search-entry fields are initially shown in the browser itself |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1918 |
(like in firefox). False if a dialog is to be opened." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1919 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1920 |
"/ cg: disabled for now, until fixed. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1921 |
"/ does not initially select the searchString. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1922 |
"/ thereby interrupting the workflow... |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1923 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1924 |
^ self at:#useSearchBarInBrowser ifAbsent:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1925 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1926 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1927 |
UserPreferences current useSearchBarInBrowser |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1928 |
UserPreferences current useSearchBarInBrowser:true |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1929 |
UserPreferences current useSearchBarInBrowser:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1930 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1931 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1932 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1933 |
useSearchBarInBrowser:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1934 |
"true, if the search-entry fields are initially shown in the browser itself |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1935 |
(like in firefox). False if a dialog is to be opened." |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1936 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1937 |
^ self at:#useSearchBarInBrowser put:aBoolean |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1938 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1939 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1940 |
UserPreferences current useSearchBarInBrowser:true |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1941 |
UserPreferences current useSearchBarInBrowser:false |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
1942 |
" |
3360 | 1943 |
! ! |
1944 |
||
7549 | 1945 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
1946 |
||
17763 | 1947 |
colorForInstrumentedFullyCoveredCode |
1948 |
"the color for code in the browser which is instrumented |
|
1949 |
and where all branches have been executed (also code, which has been executed)" |
|
1950 |
||
1951 |
|clr| |
|
1952 |
||
1953 |
clr := self at:#colorForInstrumentedFullyCoveredCode ifAbsent:nil. |
|
1954 |
clr isNil ifTrue:[ |
|
1955 |
clr := Color green slightlyDarkened. |
|
1956 |
self at:#colorForInstrumentedFullyCoveredCode put:clr. |
|
1957 |
]. |
|
1958 |
^ clr |
|
1959 |
||
1960 |
" |
|
1961 |
UserPreferences current |
|
1962 |
at:#emphasisForInstrumentedFullyCoveredCode |
|
1963 |
put:(Color green slightlyDarkened). |
|
1964 |
" |
|
1965 |
||
1966 |
"Created: / 28-04-2010 / 13:58:52 / cg" |
|
1967 |
! |
|
1968 |
||
1969 |
colorForInstrumentedNeverCalledCode |
|
1970 |
"the color for code in the browser which is instrumented but has never been called" |
|
1971 |
||
1972 |
|clr| |
|
1973 |
||
1974 |
clr := self at:#colorForInstrumentedNeverCalledCode ifAbsent:nil. |
|
1975 |
clr isNil ifTrue:[ |
|
1976 |
clr := Color red slightlyDarkened. |
|
1977 |
self at:#colorForInstrumentedNeverCalledCode put:clr. |
|
1978 |
]. |
|
1979 |
^ clr |
|
1980 |
||
1981 |
" |
|
1982 |
UserPreferences current |
|
1983 |
at:#colorForInstrumentedNeverCalledCode |
|
1984 |
put:(Color red slightlyDarkened). |
|
1985 |
" |
|
1986 |
||
1987 |
"Created: / 28-04-2010 / 13:59:43 / cg" |
|
1988 |
! |
|
1989 |
||
1990 |
colorForInstrumentedPartiallyCoveredCode |
|
1991 |
"color for code in the browser which is instrumented and where some branches have been |
|
1992 |
executed" |
|
1993 |
||
1994 |
|clr| |
|
1995 |
||
1996 |
clr := self at:#colorForInstrumentedPartiallyCoveredCode ifAbsent:nil. |
|
1997 |
clr isNil ifTrue:[ |
|
1998 |
clr := Color orange. |
|
1999 |
self at:#colorForInstrumentedPartiallyCoveredCode put:clr. |
|
2000 |
]. |
|
2001 |
^ clr |
|
2002 |
||
2003 |
" |
|
2004 |
UserPreferences current |
|
2005 |
at:#colorForInstrumentedPartiallyCoveredCode |
|
2006 |
put:(Color orange slightlyLightened). |
|
2007 |
" |
|
2008 |
||
2009 |
"Created: / 28-04-2010 / 14:00:56 / cg" |
|
2010 |
! |
|
2011 |
||
17859 | 2012 |
colorForPseudoProtocolsInMethodListInBrowser |
2013 |
"eventually, make this also a settings value (for people with weak gray-visibility)" |
|
2014 |
||
2015 |
|bg| |
|
2016 |
||
2017 |
SelectionInListView notNil ifTrue:[ |
|
2018 |
bg := SelectionInListView defaultBackgroundColor. |
|
2019 |
]. |
|
2020 |
bg isNil ifTrue:[ |
|
2021 |
View notNil ifTrue:[ |
|
2022 |
bg := View defaultBackgroundColor. |
|
2023 |
]. |
|
2024 |
bg isNil ifTrue:[ |
|
2025 |
^ Color grey |
|
2026 |
]. |
|
2027 |
]. |
|
2028 |
||
2029 |
(Color grey brightness - (bg brightness)) abs < 0.3 ifTrue:[ |
|
2030 |
(bg brightness) > 0.7 ifTrue:[ |
|
2031 |
^ Color grey:20. |
|
2032 |
]. |
|
2033 |
^ Color grey:80. |
|
2034 |
]. |
|
2035 |
^ Color grey |
|
2036 |
||
2037 |
"Created: / 07-09-2011 / 09:51:12 / cg" |
|
2038 |
! |
|
2039 |
||
7549 | 2040 |
emphasisForChangedCode |
10177 | 2041 |
"the emphasis for changed code (in changeSet) in the browser" |
2042 |
||
7549 | 2043 |
|emp| |
2044 |
||
2045 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
2046 |
emp isNil ifTrue:[ |
|
11143 | 2047 |
emp := #color->Color red darkened. |
2048 |
emp := Array with:#bold with:emp. |
|
2049 |
"/ emp := #color->Color blue darkened. |
|
2050 |
self at:#emphasisForChangedCode put:emp. |
|
7549 | 2051 |
]. |
2052 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2053 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2054 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2055 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil]. |
9807 | 2056 |
UserPreferences current emphasisForChangedCode. |
2057 |
UserPreferences current at:#emphasisForChangedCode put:nil. |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2058 |
" |
9807 | 2059 |
|
10177 | 2060 |
"Modified: / 10-11-2006 / 17:27:23 / cg" |
2061 |
! |
|
2062 |
||
2063 |
emphasisForChangedCodeInSmallTeam |
|
2064 |
"the emphasis for changed code (in a remote changeSet) in the browser. |
|
2065 |
You need the SmallTeam extension to be present for this to work." |
|
2066 |
||
2067 |
|emp| |
|
2068 |
||
2069 |
emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil. |
|
2070 |
emp isNil ifTrue:[ |
|
11143 | 2071 |
emp := #color->Color yellow darkened. |
2072 |
emp := Array with:#bold with:emp. |
|
2073 |
self at:#emphasisForChangedCodeInSmallTeam put:emp. |
|
10177 | 2074 |
]. |
2075 |
^ emp |
|
2076 |
||
2077 |
" |
|
2078 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil]. |
|
2079 |
UserPreferences current emphasisForChangedCodeInSmallTeam. |
|
2080 |
UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil. |
|
2081 |
" |
|
2082 |
||
2083 |
"Created: / 10-11-2006 / 16:31:00 / cg" |
|
6832 | 2084 |
! |
2085 |
||
7549 | 2086 |
emphasisForDifferentPackage |
2087 |
|emp| |
|
2088 |
||
2089 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
2090 |
emp isNil ifTrue:[ |
|
11143 | 2091 |
emp := #color->Color green darkened. |
2092 |
"/ emp := Array with:#bold with:emp. |
|
2093 |
self at:#emphasisForDifferentPackage put:emp. |
|
7549 | 2094 |
]. |
2095 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2096 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2097 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2098 |
self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2099 |
" |
6832 | 2100 |
! |
2101 |
||
17763 | 2102 |
emphasisForInstrumentedFullyCoveredCode |
2103 |
"the emphasis for code in the browser which is instrumented and where all branches have been |
|
2104 |
executed" |
|
2105 |
||
2106 |
|emp| |
|
2107 |
||
2108 |
emp := self at:#emphasisForInstrumentedFullyCoveredCode ifAbsent:nil. |
|
2109 |
emp isNil ifTrue:[ |
|
2110 |
emp := #color->Color green slightlyDarkened. |
|
2111 |
emp := Array with:#bold with:emp. |
|
2112 |
"/ emp := #color->Color blue darkened. |
|
2113 |
self at:#emphasisForInstrumentedFullyCoveredCode put:emp. |
|
2114 |
]. |
|
2115 |
^ emp |
|
2116 |
||
2117 |
" |
|
2118 |
UserPreferences current |
|
2119 |
at:#emphasisForInstrumentedFullyCoveredCode |
|
2120 |
put:(Array with:#bold with:(#color->Color green slightlyDarkened)). |
|
2121 |
" |
|
2122 |
||
2123 |
"Created: / 27-04-2010 / 13:01:01 / cg" |
|
2124 |
"Modified: / 27-04-2010 / 14:48:11 / cg" |
|
2125 |
! |
|
2126 |
||
2127 |
emphasisForInstrumentedNeverCalledCode |
|
2128 |
"the emphasis for code in the browser which is instrumented but has never been called" |
|
2129 |
||
2130 |
|emp| |
|
2131 |
||
2132 |
emp := self at:#emphasisForInstrumentedNeverCalledCode ifAbsent:nil. |
|
2133 |
emp isNil ifTrue:[ |
|
2134 |
emp := #color->Color red slightlyDarkened. |
|
2135 |
emp := Array with:#bold with:emp. |
|
2136 |
"/ emp := #color->Color blue darkened. |
|
2137 |
self at:#emphasisForInstrumentedNeverCalledCode put:emp. |
|
2138 |
]. |
|
2139 |
^ emp |
|
2140 |
||
2141 |
" |
|
2142 |
UserPreferences current |
|
2143 |
at:#emphasisForInstrumentedNeverCalledCode |
|
2144 |
put:(Array with:#bold with:(#color->Color red slightlyDarkened)). |
|
2145 |
" |
|
2146 |
||
2147 |
"Created: / 27-04-2010 / 12:59:47 / cg" |
|
2148 |
"Modified: / 27-04-2010 / 14:48:39 / cg" |
|
2149 |
! |
|
2150 |
||
2151 |
emphasisForInstrumentedPartiallyCoveredCode |
|
2152 |
"the emphasis for code in the browser which is instrumented and where some branches have been |
|
2153 |
executed" |
|
2154 |
||
2155 |
|emp| |
|
2156 |
||
2157 |
emp := self at:#emphasisForInstrumentedPartiallyCoveredCode ifAbsent:nil. |
|
2158 |
emp isNil ifTrue:[ |
|
2159 |
emp := #color->Color orange. |
|
2160 |
emp := Array with:#bold with:emp. |
|
2161 |
"/ emp := #color->Color blue darkened. |
|
2162 |
self at:#emphasisForInstrumentedPartiallyCoveredCode put:emp. |
|
2163 |
]. |
|
2164 |
^ emp |
|
2165 |
||
2166 |
" |
|
2167 |
UserPreferences current |
|
2168 |
at:#emphasisForInstrumentedPartiallyCoveredCode |
|
2169 |
put:(Array with:#bold with:(#color->Color orange slightlyLightened)). |
|
2170 |
" |
|
2171 |
||
2172 |
"Created: / 27-04-2010 / 13:01:20 / cg" |
|
2173 |
"Modified: / 27-04-2010 / 18:50:43 / cg" |
|
2174 |
! |
|
2175 |
||
7549 | 2176 |
emphasisForModifiedBuffer |
2177 |
|emp| |
|
2178 |
||
2179 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
2180 |
emp isNil ifTrue:[ |
|
11143 | 2181 |
emp := #color->Color red darkened. |
2182 |
emp := Array with:#bold with:emp. |
|
2183 |
self at:#emphasisForModifiedBuffer put:emp. |
|
7549 | 2184 |
]. |
2185 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2186 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2187 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2188 |
self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2189 |
" |
6832 | 2190 |
! |
2191 |
||
17771
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2192 |
emphasisForNamespacedCode |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2193 |
"the emphasis for changed code (in changeSet) in the browser" |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2194 |
|
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2195 |
|emp| |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2196 |
|
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2197 |
emp := self at:#emphasisForNamespacedCode ifAbsent:nil. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2198 |
emp isNil ifTrue:[ |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2199 |
emp := #color->Color green darkened. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2200 |
"/ emp := Array with:#bold with:emp. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2201 |
"/ emp := #color->Color blue darkened. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2202 |
self at:#emphasisForNamespacedCode put:emp. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2203 |
]. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2204 |
^ emp |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2205 |
|
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2206 |
" |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2207 |
self allInstancesDo:[:pref |pref at:#emphasisForNamespacedCode put:nil]. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2208 |
UserPreferences current emphasisForNamespacedCode. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2209 |
UserPreferences current at:#emphasisForNamespacedCode put:nil. |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2210 |
" |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2211 |
|
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2212 |
"Created: / 01-07-2010 / 18:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2213 |
! |
d6d2b68253cf
Browser support: method now show its namespace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
2214 |
|
7549 | 2215 |
emphasisForObsoleteCode |
2216 |
|emp| |
|
2217 |
||
2218 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
2219 |
emp isNil ifTrue:[ |
|
11143 | 2220 |
emp := #color->Color red. |
2221 |
emp := Array with:#bold with:emp. |
|
2222 |
self at:#emphasisForObsoleteCode put:emp. |
|
7549 | 2223 |
]. |
2224 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2225 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2226 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2227 |
self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2228 |
" |
6832 | 2229 |
! |
2230 |
||
7549 | 2231 |
emphasisForReadVariable |
2232 |
|emp| |
|
2233 |
||
2234 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
2235 |
emp isNil ifTrue:[ |
|
11143 | 2236 |
emp := #underline. |
2237 |
self at:#emphasisForReadVariable put:emp. |
|
7549 | 2238 |
]. |
2239 |
^ emp |
|
6832 | 2240 |
! |
2241 |
||
7549 | 2242 |
emphasisForWrittenVariable |
2243 |
|emp| |
|
2244 |
||
2245 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
2246 |
emp isNil ifTrue:[ |
|
11143 | 2247 |
emp := Array with:#underline with:#underlineColor->Color red. |
2248 |
self at:#emphasisForWrittenVariable put:emp. |
|
7549 | 2249 |
]. |
2250 |
^ emp |
|
6832 | 2251 |
! ! |
2252 |
||
7549 | 2253 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 2254 |
|
2255 |
argumentIdentifierColor |
|
2256 |
"the color used for argument identifiers; |
|
2257 |
If syntaxColoring is turned on." |
|
2258 |
||
2259 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
2260 |
||
2261 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
2262 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
2263 |
! |
|
2264 |
||
2265 |
argumentIdentifierEmphasis |
|
2266 |
"the emphasis used for argument identifiers; |
|
2267 |
If syntaxColoring is turned on." |
|
2268 |
||
2269 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2270 |
||
2271 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
2272 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
2273 |
! |
|
2274 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2275 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2276 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2277 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2278 |
|
4336 | 2279 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2280 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2281 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2282 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2283 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2284 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2285 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2286 |
|
17841 | 2287 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis ifAbsent:#normal] |
2288 |
||
2289 |
"Modified: / 21-04-2011 / 12:34:50 / cg" |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2290 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2291 |
|
3360 | 2292 |
booleanConstantColor |
2293 |
"the color used for boolean constants; |
|
2294 |
If syntaxColoring is turned on." |
|
2295 |
||
2296 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
2297 |
||
2298 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
2299 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
2300 |
! |
|
2301 |
||
2302 |
booleanConstantEmphasis |
|
2303 |
"the emphasis used for boolean constants; |
|
2304 |
If syntaxColoring is turned on." |
|
2305 |
||
2306 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
2307 |
||
2308 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
2309 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
2310 |
! |
|
2311 |
||
3361 | 2312 |
bracketColor |
2313 |
"the color used for brackets; |
|
2314 |
If syntaxColoring is turned on." |
|
2315 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2316 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 2317 |
|
2318 |
" |
|
2319 |
self current at:#bracketColor put:Color red. |
|
2320 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2321 |
|
11143 | 2322 |
self current bracketColor |
2323 |
self current bracketEmphasis |
|
3361 | 2324 |
" |
2325 |
||
2326 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
2327 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
2328 |
! |
|
2329 |
||
2330 |
bracketEmphasis |
|
2331 |
"the emphasis used for brackets; |
|
2332 |
If syntaxColoring is turned on." |
|
2333 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2334 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 2335 |
|
2336 |
" |
|
2337 |
self current at:#bracketEmphasis put:#bold |
|
11143 | 2338 |
self current bracketEmphasis |
3361 | 2339 |
" |
2340 |
||
2341 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
2342 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
2343 |
! |
|
2344 |
||
4320 | 2345 |
classVariableIdentifierColor |
2346 |
"the color used for classVar/classInstVar identifiers |
|
2347 |
If syntaxColoring is turned on." |
|
2348 |
||
2349 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
2350 |
||
2351 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2352 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
2353 |
! |
|
2354 |
||
2355 |
classVariableIdentifierEmphasis |
|
2356 |
"the color used for classVar/classInstVar identifiers |
|
2357 |
If syntaxColoring is turned on." |
|
2358 |
||
2359 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
2360 |
||
2361 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2362 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
2363 |
! |
|
2364 |
||
17922 | 2365 |
collectionEnumerationSelectorColor |
2366 |
"the color used for some selected collection enumeration |
|
2367 |
selectors (such as collect:, select: etc.); |
|
2368 |
If syntaxColoring is turned on. |
|
2369 |
If left nil, the normal selector color is used." |
|
2370 |
||
2371 |
^ self at:#collectionEnumerationSelectorColor ifAbsent:nil |
|
2372 |
||
2373 |
"Created: / 14-02-2012 / 15:52:39 / cg" |
|
2374 |
! |
|
2375 |
||
2376 |
collectionEnumerationSelectorEmphasis |
|
2377 |
"the color used for some selected collection enumeration |
|
2378 |
selectors (such as collect:, select: etc.); |
|
2379 |
If syntaxColoring is turned on. |
|
2380 |
If left nil, the normal selector emphasis is used." |
|
2381 |
||
2382 |
^ self at:#collectionEnumerationSelectorEmphasis ifAbsent:nil |
|
2383 |
||
2384 |
"Created: / 14-02-2012 / 15:58:58 / cg" |
|
2385 |
! |
|
2386 |
||
3360 | 2387 |
commentColor |
2388 |
"the color used for comments; |
|
2389 |
If syntaxColoring is turned on." |
|
2390 |
||
17841 | 2391 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor ifAbsent:[Color black]] |
2392 |
||
2393 |
"Created: / 31-03-1998 / 15:10:23 / cg" |
|
2394 |
"Modified: / 21-04-2011 / 12:33:39 / cg" |
|
3360 | 2395 |
! |
2396 |
||
2397 |
commentEmphasis |
|
2398 |
"the emphasis used for comments; |
|
2399 |
If syntaxColoring is turned on." |
|
2400 |
||
17841 | 2401 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis ifAbsent:#normal] |
2402 |
||
2403 |
"Created: / 31-03-1998 / 15:09:59 / cg" |
|
2404 |
"Modified: / 21-04-2011 / 12:34:48 / cg" |
|
3360 | 2405 |
! |
2406 |
||
5258 | 2407 |
commentEmphasisAndColor |
17834 | 2408 |
^ self emphasis:(self commentEmphasis) andColor:(self commentColor). |
2409 |
||
2410 |
"Modified: / 17-02-2011 / 14:20:41 / cg" |
|
5258 | 2411 |
! |
2412 |
||
3360 | 2413 |
constantColor |
2414 |
"the color used for constants; |
|
2415 |
If syntaxColoring is turned on." |
|
2416 |
||
17841 | 2417 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor ifAbsent:[Color black]] |
2418 |
||
2419 |
"Created: / 31-03-1998 / 18:13:15 / cg" |
|
2420 |
"Modified: / 21-04-2011 / 12:33:36 / cg" |
|
3360 | 2421 |
! |
2422 |
||
2423 |
constantEmphasis |
|
2424 |
"the emphasis used for constants; |
|
2425 |
If syntaxColoring is turned on." |
|
2426 |
||
2427 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2428 |
||
2429 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
2430 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
2431 |
! |
|
2432 |
||
9834 | 2433 |
controlFlowSelectorColor |
2434 |
"the color used for some selected controlFlow selectors (such as if, while etc.); |
|
2435 |
If syntaxColoring is turned on." |
|
2436 |
||
17922 | 2437 |
^ self at:#controlFlowSelectorColor ifAbsent:nil |
9834 | 2438 |
|
2439 |
"Created: / 08-09-2006 / 15:51:20 / cg" |
|
2440 |
! |
|
2441 |
||
2442 |
controlFlowSelectorEmphasis |
|
2443 |
"the emphasis used for some selected controlFlow selectors (such as if, while etc.); |
|
2444 |
If syntaxColoring is turned on." |
|
2445 |
||
17922 | 2446 |
^ self at:#controlFlowSelectorEmphasis ifAbsent:nil |
9834 | 2447 |
|
2448 |
"Created: / 08-09-2006 / 15:51:04 / cg" |
|
2449 |
! |
|
2450 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2451 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2452 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2453 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2454 |
|
17841 | 2455 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor ifAbsent:[Color black]] |
2456 |
||
2457 |
"Modified: / 21-04-2011 / 12:31:48 / cg" |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2458 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2459 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2460 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2461 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2462 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2463 |
|
17834 | 2464 |
^ self |
2465 |
at:#defaultSyntaxEmphasis |
|
17841 | 2466 |
ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis ifAbsent:#normal] |
2467 |
||
2468 |
"Modified: / 21-04-2011 / 12:34:46 / cg" |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2469 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2470 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2471 |
doesNotUnderstand:aMessage |
4580 | 2472 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2473 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2474 |
k := aMessage selector. |
6252 | 2475 |
aMessage numArgs == 0 ifTrue:[ |
17850 | 2476 |
(self includesKey:k) ifTrue:[ |
2477 |
^ self at:k |
|
2478 |
]. |
|
2479 |
((def := self class default) includesKey:k) ifTrue:[ |
|
2480 |
^ def at:k |
|
2481 |
]. |
|
2482 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2483 |
]. |
17850 | 2484 |
|
2485 |
"/ this is needed, if a setting is loaded (via the settings.stx) at a time |
|
2486 |
"/ when the corresponding package which uses that setting is not yet loaded; |
|
2487 |
"/ for example: libsvn settings, with no libsvn being present. |
|
2488 |
"/ if obsolete keys accumulate over time, we might need a settings cleanup GUI to |
|
2489 |
"/ care for that. |
|
2490 |
||
2491 |
((aMessage numArgs == 1) |
|
2492 |
and:[ (k endsWith:$:)]) |
|
2493 |
ifTrue:[ |
|
2494 |
k := (k copyWithoutLast:1) asSymbol. |
|
2495 |
^ self at:k put:(aMessage arg1) |
|
2496 |
]. |
|
6252 | 2497 |
|
7272 | 2498 |
aMessage numArgs == 1 ifTrue:[ |
17850 | 2499 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
2500 |
^ nil |
|
7272 | 2501 |
]. |
6252 | 2502 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2503 |
^ super doesNotUnderstand:aMessage |
17850 | 2504 |
|
2505 |
"Modified (comment): / 19-08-2011 / 14:01:56 / cg" |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2506 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2507 |
|
17834 | 2508 |
emphasis:e andColor:c |
2509 |
^ Text addEmphasis:e to:(#color->c). |
|
2510 |
||
2511 |
"Created: / 17-02-2011 / 14:20:25 / cg" |
|
2512 |
! |
|
2513 |
||
8965
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2514 |
emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2515 |
^ self at:#emphasizeParenthesisLevel ifAbsent:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2516 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2517 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2518 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2519 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2520 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2521 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2522 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2523 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2524 |
emphasizeParenthesisLevel:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2525 |
self at:#emphasizeParenthesisLevel put:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2526 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2527 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2528 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2529 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2530 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2531 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2532 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
2533 |
|
4341 | 2534 |
errorColor |
2535 |
"the color used for illegal identifiers; |
|
2536 |
If syntaxColoring is turned on." |
|
2537 |
||
17841 | 2538 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor ifAbsent:[Color black]] |
2539 |
||
2540 |
"Modified: / 21-04-2011 / 12:33:33 / cg" |
|
4341 | 2541 |
! |
2542 |
||
4306 | 2543 |
fullSelectorCheck |
2544 |
"with fullSelector check, selectors are searched immediately for |
|
2545 |
being implemented in the system. This may not be useful on slow machines" |
|
2546 |
||
4628 | 2547 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 2548 |
|
2549 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
2550 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
2551 |
! |
|
2552 |
||
4023 | 2553 |
globalClassIdentifierColor |
2554 |
"the color used for global identifiers which are known to be classes; |
|
2555 |
If syntaxColoring is turned on." |
|
2556 |
||
2557 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
2558 |
||
2559 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2560 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
2561 |
! |
|
2562 |
||
2563 |
globalClassIdentifierEmphasis |
|
2564 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
2565 |
If syntaxColoring is turned on." |
|
2566 |
||
2567 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
2568 |
||
2569 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
2570 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
2571 |
! |
|
2572 |
||
3360 | 2573 |
globalIdentifierColor |
2574 |
"the color used for global identifiers; |
|
2575 |
If syntaxColoring is turned on." |
|
2576 |
||
2577 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
2578 |
||
2579 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
2580 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2581 |
! |
|
2582 |
||
2583 |
globalIdentifierEmphasis |
|
2584 |
"the emphasis used for global variable identifiers; |
|
2585 |
If syntaxColoring is turned on." |
|
2586 |
||
2587 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2588 |
||
2589 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
2590 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
2591 |
! |
|
2592 |
||
2593 |
hereColor |
|
2594 |
"the color used for the here pseudoVariable; |
|
2595 |
If syntaxColoring is turned on." |
|
2596 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2597 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 2598 |
|
2599 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
2600 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
2601 |
! |
|
2602 |
||
2603 |
hereEmphasis |
|
2604 |
"the emphasis used for the hre special variable; |
|
2605 |
If syntaxColoring is turned on." |
|
2606 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2607 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 2608 |
|
2609 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
2610 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
2611 |
! |
|
2612 |
||
2613 |
identifierColor |
|
2614 |
"the color used for other identifiers; |
|
2615 |
If syntaxColoring is turned on." |
|
2616 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2617 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 2618 |
|
3362 | 2619 |
" |
2620 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
2621 |
UserPreferences current at:#identifierColor put:Color black. |
|
2622 |
" |
|
2623 |
||
3360 | 2624 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 2625 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 2626 |
! |
2627 |
||
2628 |
identifierEmphasis |
|
2629 |
"the emphasis used for other identifiers; |
|
2630 |
If syntaxColoring is turned on." |
|
2631 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2632 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 2633 |
|
2634 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
2635 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
2636 |
! |
|
2637 |
||
3378 | 2638 |
instVarIdentifierColor |
3377 | 2639 |
"the color used for instance variable identifiers; |
2640 |
If syntaxColoring is turned on." |
|
2641 |
||
3378 | 2642 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 2643 |
|
2644 |
" |
|
3378 | 2645 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
2646 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
11143 | 2647 |
UserPreferences current instVarIdentifierColor |
3377 | 2648 |
" |
2649 |
||
2650 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 2651 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 2652 |
! |
2653 |
||
3378 | 2654 |
instVarIdentifierEmphasis |
3377 | 2655 |
"the emphais used for instance variable identifiers; |
2656 |
If syntaxColoring is turned on." |
|
2657 |
||
3378 | 2658 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 2659 |
|
2660 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 2661 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 2662 |
! |
2663 |
||
8420 | 2664 |
jsKeywordColor |
2665 |
^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor] |
|
2666 |
! |
|
2667 |
||
2668 |
jsKeywordEmphasis |
|
2669 |
^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
|
2670 |
! |
|
2671 |
||
3360 | 2672 |
localIdentifierColor |
2673 |
"the color used for local variable identifiers; |
|
2674 |
If syntaxColoring is turned on." |
|
2675 |
||
9144 | 2676 |
^ self at:#localIdentifierColor ifAbsent:[self identifierColor] |
3360 | 2677 |
|
3362 | 2678 |
" |
2679 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
2680 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
2681 |
" |
|
2682 |
||
3360 | 2683 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 2684 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 2685 |
! |
2686 |
||
2687 |
localIdentifierEmphasis |
|
2688 |
"the emphais used for local variable identifiers; |
|
2689 |
If syntaxColoring is turned on." |
|
2690 |
||
9144 | 2691 |
^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis] |
3360 | 2692 |
|
2693 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
2694 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
2695 |
! |
|
2696 |
||
2697 |
methodSelectorColor |
|
2698 |
"the color used for a methods selector pattern; |
|
2699 |
If syntaxColoring is turned on." |
|
2700 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2701 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 2702 |
|
2703 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
2704 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
2705 |
! |
|
2706 |
||
2707 |
methodSelectorEmphasis |
|
2708 |
"the emphasis used for a methods selector pattern; |
|
2709 |
If syntaxColoring is turned on." |
|
2710 |
||
17841 | 2711 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis ifAbsent:#normal] |
2712 |
||
2713 |
"Created: / 31-03-1998 / 15:11:16 / cg" |
|
2714 |
"Modified: / 21-04-2011 / 12:34:42 / cg" |
|
3360 | 2715 |
! |
2716 |
||
9144 | 2717 |
numberConstantColor |
2718 |
"the color used for number constants; |
|
2719 |
If syntaxColoring is turned on." |
|
2720 |
||
2721 |
^ self at:#numberConstantColor ifAbsent:[ self constantColor ] |
|
2722 |
! |
|
2723 |
||
2724 |
numberConstantEmphasis |
|
2725 |
"the emphasis used for number constants; |
|
2726 |
If syntaxColoring is turned on." |
|
2727 |
||
2728 |
^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ] |
|
2729 |
! |
|
2730 |
||
8551 | 2731 |
poolVariableIdentifierColor |
2732 |
"the color used for pool variable identifiers |
|
2733 |
If syntaxColoring is turned on." |
|
2734 |
||
2735 |
^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
2736 |
! |
|
2737 |
||
2738 |
poolVariableIdentifierEmphasis |
|
2739 |
"the color used for pool variable identifiers |
|
2740 |
If syntaxColoring is turned on." |
|
2741 |
||
2742 |
^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
2743 |
! |
|
2744 |
||
4076 | 2745 |
returnColor |
2746 |
"the color used for the return expression; |
|
2747 |
If syntaxColoring is turned on." |
|
2748 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2749 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 2750 |
|
2751 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
2752 |
! |
|
2753 |
||
2754 |
returnEmphasis |
|
2755 |
"the emphasis used for returns; |
|
2756 |
If syntaxColoring is turned on." |
|
2757 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2758 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 2759 |
|
2760 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
2761 |
! |
|
2762 |
||
3360 | 2763 |
selectorColor |
2764 |
"the color used for message selectors; |
|
2765 |
If syntaxColoring is turned on." |
|
2766 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2767 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 2768 |
|
2769 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
2770 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
2771 |
! |
|
2772 |
||
2773 |
selectorEmphasis |
|
2774 |
"the emphasis used for message selectors; |
|
2775 |
If syntaxColoring is turned on." |
|
2776 |
||
17841 | 2777 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis ifAbsent:#normal] |
2778 |
||
2779 |
"Created: / 31-03-1998 / 15:19:09 / cg" |
|
2780 |
"Modified: / 21-04-2011 / 12:34:39 / cg" |
|
3360 | 2781 |
! |
2782 |
||
2783 |
selfColor |
|
2784 |
"the color used for the self pseudoVariable; |
|
2785 |
If syntaxColoring is turned on." |
|
2786 |
||
2787 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
2788 |
||
2789 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
2790 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
2791 |
! |
|
2792 |
||
2793 |
selfEmphasis |
|
2794 |
"the emphasis used for the self pseudoVariable; |
|
2795 |
If syntaxColoring is turned on." |
|
2796 |
||
2797 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2798 |
||
2799 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
2800 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
2801 |
! |
|
2802 |
||
17921 | 2803 |
sideEffectAssignmentBackgroundColor |
2804 |
"the bg-color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars). |
|
2805 |
If nil is returned, the variable's color is used" |
|
2806 |
||
2807 |
^ self at:#sideEffectAssignmentBackgroundColor ifAbsent:[ nil ] |
|
2808 |
||
2809 |
"Created: / 13-02-2012 / 11:35:20 / cg" |
|
2810 |
! |
|
2811 |
||
2812 |
sideEffectAssignmentColor |
|
2813 |
"the color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars). |
|
2814 |
If nil is returned, the variable's color is used" |
|
2815 |
||
2816 |
^ self at:#sideEffectAssignmentColor ifAbsent:[ nil ] |
|
2817 |
||
2818 |
"Created: / 13-02-2012 / 11:35:09 / cg" |
|
2819 |
! |
|
2820 |
||
3360 | 2821 |
stringColor |
2822 |
"the color used for string constants; |
|
2823 |
If syntaxColoring is turned on." |
|
2824 |
||
2825 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
2826 |
||
2827 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
2828 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
2829 |
! |
|
2830 |
||
2831 |
stringEmphasis |
|
2832 |
"the emphasis used for string constants; |
|
2833 |
If syntaxColoring is turned on." |
|
2834 |
||
2835 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
2836 |
||
2837 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
2838 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
2839 |
! |
|
2840 |
||
17834 | 2841 |
stringEmphasisAndColor |
2842 |
^ self emphasis:(self stringEmphasis) andColor:(self stringColor). |
|
2843 |
||
2844 |
"Created: / 17-02-2011 / 14:29:10 / cg" |
|
2845 |
! |
|
2846 |
||
3360 | 2847 |
superColor |
2848 |
"the color used for the super pseudoVariable; |
|
2849 |
If syntaxColoring is turned on." |
|
2850 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2851 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 2852 |
|
2853 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
2854 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
2855 |
! |
|
2856 |
||
2857 |
superEmphasis |
|
2858 |
"the emphasis used for the super pseudoVariable; |
|
2859 |
If syntaxColoring is turned on." |
|
2860 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2861 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 2862 |
|
2863 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
2864 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
2865 |
! |
|
2866 |
||
2867 |
symbolColor |
|
2868 |
"the color used for symbol constants; |
|
2869 |
If syntaxColoring is turned on." |
|
2870 |
||
2871 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
2872 |
||
2873 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
2874 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
2875 |
! |
|
2876 |
||
2877 |
symbolEmphasis |
|
2878 |
"the emphasis used for symbol constants; |
|
2879 |
If syntaxColoring is turned on." |
|
2880 |
||
2881 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
2882 |
||
2883 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
2884 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 2885 |
! |
2886 |
||
2887 |
thisContextColor |
|
3360 | 2888 |
"the color used for the thisContext pseudoVariable; |
2889 |
If syntaxColoring is turned on." |
|
2890 |
||
3355 | 2891 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 2892 |
|
2893 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 2894 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 2895 |
! |
2896 |
||
2897 |
thisContextEmphasis |
|
3360 | 2898 |
"the emphasis used for the thisContext pseudoVariable; |
2899 |
If syntaxColoring is turned on." |
|
2900 |
||
3355 | 2901 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 2902 |
|
2903 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 2904 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 2905 |
! |
2906 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2907 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2908 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2909 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2910 |
|
17841 | 2911 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor ifAbsent:[Color black]] |
2912 |
||
2913 |
"Modified: / 21-04-2011 / 12:33:29 / cg" |
|
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2914 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2915 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2916 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2917 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2918 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2919 |
|
17841 | 2920 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis ifAbsent:#normal] |
2921 |
||
2922 |
"Created: / 31-03-1998 / 15:19:09 / cg" |
|
2923 |
"Modified: / 21-04-2011 / 12:34:36 / cg" |
|
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2924 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2925 |
|
3354 | 2926 |
unknownIdentifierColor |
3360 | 2927 |
"the color used for unknown identifiers; |
2928 |
If syntaxColoring is turned on." |
|
2929 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2930 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 2931 |
|
3361 | 2932 |
" |
2933 |
self current at:#unknownIdentifierColor put:Color red. |
|
2934 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2935 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2936 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2937 |
self current unknownIdentifierEmphasis |
3361 | 2938 |
" |
2939 |
||
3354 | 2940 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 2941 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 2942 |
! |
2943 |
||
2944 |
unknownIdentifierEmphasis |
|
3360 | 2945 |
"the emphasis used for unknown identifiers; |
2946 |
If syntaxColoring is turned on." |
|
2947 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2948 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 2949 |
|
2950 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 2951 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
17834 | 2952 |
! |
2953 |
||
17847 | 2954 |
xmlAttributeColor |
2955 |
"the emphasis used for xml-attributes; |
|
2956 |
If syntaxColoring is turned on." |
|
2957 |
||
2958 |
^ self at:#xmlAttributeColor ifAbsentPut:[ Color green darkened ] |
|
2959 |
||
2960 |
" |
|
2961 |
self current at:#xmlAttributeColor put:Color black |
|
2962 |
self current xmlAttributeColor |
|
2963 |
" |
|
2964 |
||
2965 |
"Created: / 24-07-2011 / 21:30:59 / cg" |
|
2966 |
! |
|
2967 |
||
2968 |
xmlAttributeEmphasis |
|
2969 |
"the emphasis used for xml-attributes; |
|
2970 |
If syntaxColoring is turned on." |
|
2971 |
||
2972 |
^ self at:#xmlAttributeEmphasis ifAbsentPut:[ #normal ] |
|
2973 |
||
2974 |
" |
|
2975 |
self current at:#xmlAttributeEmphasis put:#normal |
|
2976 |
self current xmlAttributeEmphasis |
|
2977 |
" |
|
2978 |
||
2979 |
"Created: / 24-07-2011 / 21:30:29 / cg" |
|
2980 |
! |
|
2981 |
||
2982 |
xmlCDataColor |
|
2983 |
"the emphasis used for xml-CData; |
|
2984 |
If syntaxColoring is turned on." |
|
2985 |
||
2986 |
^ self at:#xmlCDataColor ifAbsentPut:[ Color blue ] |
|
2987 |
||
2988 |
" |
|
2989 |
self current at:#xmlCDataColor put:Color black |
|
2990 |
self current xmlCDataColor |
|
2991 |
" |
|
2992 |
||
2993 |
"Created: / 24-07-2011 / 21:31:30 / cg" |
|
2994 |
! |
|
2995 |
||
2996 |
xmlCDataEmphasis |
|
2997 |
"the emphasis used for xml-CData; |
|
2998 |
If syntaxColoring is turned on." |
|
2999 |
||
3000 |
^ self at:#xmlCDataEmphasis ifAbsentPut:[ #normal ] |
|
3001 |
||
3002 |
" |
|
3003 |
self current at:#xmlCDataEmphasis put:#normal |
|
3004 |
self current xmlCDataEmphasis |
|
3005 |
" |
|
3006 |
||
3007 |
"Created: / 24-07-2011 / 21:31:52 / cg" |
|
3008 |
! |
|
3009 |
||
17834 | 3010 |
xmlTagColor |
3011 |
"the emphasis used for xml-tags; |
|
3012 |
If syntaxColoring is turned on." |
|
3013 |
||
3014 |
^ self at:#xmlTagColor ifAbsentPut:[ Color blue ] |
|
3015 |
||
3016 |
" |
|
3017 |
self current at:#xmlTagColor put:Color black |
|
3018 |
self current xmlTagColor |
|
3019 |
" |
|
3020 |
||
3021 |
"Created: / 17-02-2011 / 14:18:28 / cg" |
|
3022 |
! |
|
3023 |
||
3024 |
xmlTagEmphasis |
|
3025 |
"the emphasis used for xml-tags; |
|
3026 |
If syntaxColoring is turned on." |
|
3027 |
||
3028 |
^ self at:#xmlTagEmphasis ifAbsentPut:[ #bold ] |
|
3029 |
||
3030 |
" |
|
3031 |
self current at:#xmlTagEmphasis put:#normal |
|
3032 |
self current xmlTagEmphasis |
|
3033 |
" |
|
3034 |
||
3035 |
"Created: / 17-02-2011 / 14:18:01 / cg" |
|
3347 | 3036 |
! ! |
3037 |
||
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3038 |
!UserPreferences methodsFor:'accessing-prefs-code'! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3039 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3040 |
categoryForMenuActionsMethods |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3041 |
^ 'menu actions'. |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3042 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3043 |
|
17864 | 3044 |
ignorePublicPrivateCategories |
3045 |
"used when loading dolphin code (which defines multiple categories per method); |
|
3046 |
if on, categories like public and private are ignored (if the method already has a category). |
|
3047 |
Turn this on, to get reasonable categories when loading dolphin code" |
|
3048 |
||
3049 |
^ self at:#ignorePublicPrivateCategories ifAbsent:true |
|
3050 |
||
3051 |
" |
|
3052 |
UserPreferences current ignorePublicPrivateCategories |
|
3053 |
" |
|
3054 |
||
3055 |
"Created: / 23-09-2011 / 19:49:37 / cg" |
|
3056 |
! |
|
3057 |
||
3058 |
ignorePublicPrivateCategories:aBoolean |
|
3059 |
"used when loading dolphin code (which defines multiple categories per method); |
|
3060 |
if on, categories like public and private are ignored (if the method already has a category). |
|
3061 |
Turn this on, to get reasonable categories when loading dolphin code" |
|
3062 |
||
3063 |
self at:#ignorePublicPrivateCategories put:aBoolean |
|
3064 |
||
3065 |
" |
|
3066 |
UserPreferences current ignorePublicPrivateCategories |
|
3067 |
" |
|
3068 |
||
3069 |
"Created: / 23-09-2011 / 19:49:54 / cg" |
|
3070 |
! |
|
3071 |
||
17742 | 3072 |
keepMethodSourceCode |
3073 |
"when fetching the source from a file/cvs, should the source be kept in the image ? |
|
3074 |
If on, the image will grow over time by about 10-20 Mb. |
|
3075 |
(will stay that high, even if switched off afterwards)" |
|
3076 |
||
3077 |
^ self at:#keepMethodSourceCode ifAbsent:false |
|
3078 |
||
3079 |
" |
|
3080 |
UserPreferences current keepMethodSourceCode |
|
3081 |
" |
|
3082 |
! |
|
3083 |
||
3084 |
keepMethodSourceCode:aBoolean |
|
3085 |
"when fetching the source from a file/cvs, should the source be kept in the image ? |
|
3086 |
If on, the image will grow over time by about 10-20 Mb. |
|
3087 |
(will stay that high, even if switched off afterwards)" |
|
3088 |
||
3089 |
^ self at:#keepMethodSourceCode put:aBoolean |
|
3090 |
||
3091 |
" |
|
3092 |
UserPreferences current keepMethodSourceCode |
|
3093 |
UserPreferences current keepMethodSourceCode:true |
|
3094 |
" |
|
3095 |
! |
|
3096 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3097 |
numberOfLinesForLongMethod |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3098 |
"how many lines for a method's source to be considered as 'long'" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3099 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3100 |
^ self at:#numberOfLinesForLongMethod ifAbsent:30 |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3101 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3102 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3103 |
UserPreferences current numberOfLinesForLongMethod |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3104 |
" |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3105 |
! ! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3106 |
|
17735 | 3107 |
!UserPreferences methodsFor:'accessing-prefs-code generator'! |
3108 |
||
3109 |
generateComments |
|
3110 |
"return true; comments shall be generated (by the codeGenerator tool)" |
|
3111 |
||
3112 |
^ self at:#generateComments ifAbsent:true. |
|
3113 |
||
3114 |
" |
|
3115 |
UserPreferences current generateComments |
|
3116 |
UserPreferences current generateComments:false |
|
3117 |
UserPreferences current generateComments:true |
|
3118 |
" |
|
3119 |
! |
|
3120 |
||
3121 |
generateComments:aBoolean |
|
3122 |
"true if comments shall be generated (by the codeGenerator tool)" |
|
3123 |
||
3124 |
self at:#generateComments put:aBoolean. |
|
3125 |
||
3126 |
" |
|
3127 |
UserPreferences current generateComments |
|
3128 |
UserPreferences current generateComments:false |
|
3129 |
" |
|
3130 |
! |
|
3131 |
||
3132 |
generateCommentsForAspectMethods |
|
3133 |
"return true; comments shall be generated (by the codeGenerator tool)" |
|
3134 |
||
3135 |
^ self at:#generateCommentsForAspectMethods ifAbsent:true. |
|
3136 |
||
3137 |
" |
|
3138 |
UserPreferences current generateCommentsForAspectMethods |
|
3139 |
" |
|
3140 |
! |
|
3141 |
||
3142 |
generateCommentsForAspectMethods:aBoolean |
|
3143 |
"true if comments shall be generated (by the codeGenerator tool)" |
|
3144 |
||
3145 |
self at:#generateCommentsForAspectMethods put:aBoolean. |
|
3146 |
||
3147 |
" |
|
3148 |
UserPreferences current generateCommentsForAspectMethods:false |
|
3149 |
" |
|
3150 |
! |
|
3151 |
||
3152 |
generateCommentsForGetters |
|
3153 |
"return true if comments for simple getters are to be generated (by the codeGenerator tool). |
|
3154 |
The default is now false, as these look stupid in the browser and were only generated |
|
3155 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3156 |
||
3157 |
^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false]. |
|
3158 |
||
3159 |
" |
|
3160 |
UserPreferences current generateCommentsForGetters |
|
3161 |
" |
|
3162 |
! |
|
3163 |
||
3164 |
generateCommentsForGetters:aBoolean |
|
3165 |
"true if comments for simple getters are to be generated (by the codeGenerator tool). |
|
3166 |
The default is now false, as these look stupid in the browser and were only generated |
|
3167 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3168 |
||
3169 |
self at:#generateCommentsForGetters put:aBoolean. |
|
3170 |
||
3171 |
" |
|
3172 |
UserPreferences current generateCommentsForGetters |
|
3173 |
" |
|
3174 |
! |
|
3175 |
||
3176 |
generateCommentsForSetters |
|
3177 |
"return true if comments for simple setters are to be generated (by the codeGenerator tool). |
|
3178 |
The default is now false, as these look stupid in the browser and were only generated |
|
3179 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3180 |
||
3181 |
^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false]. |
|
3182 |
||
3183 |
" |
|
3184 |
UserPreferences current generateCommentsForSetters |
|
3185 |
" |
|
3186 |
! |
|
3187 |
||
3188 |
generateCommentsForSetters:aBoolean |
|
3189 |
"true if comments for simple setters are to be generated (by the codeGenerator tool). |
|
3190 |
The default is now false, as these look stupid in the browser and were only generated |
|
3191 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3192 |
||
3193 |
self at:#generateCommentsForSetters put:aBoolean. |
|
3194 |
||
3195 |
" |
|
3196 |
UserPreferences current generateSommentsForGetters |
|
3197 |
" |
|
3198 |
! ! |
|
3199 |
||
10055 | 3200 |
!UserPreferences methodsFor:'accessing-prefs-editor'! |
3201 |
||
3202 |
deleteSetsClipboardText |
|
3203 |
"if true, a delete also updates the clipboard with the deleted text" |
|
3204 |
||
3205 |
^ self at:#deleteSetsClipboardText ifAbsent:false |
|
3206 |
||
3207 |
" |
|
3208 |
UserPreferences current deleteSetsClipboardText |
|
3209 |
" |
|
3210 |
! |
|
3211 |
||
3212 |
deleteSetsClipboardText:aBooleanOrNil |
|
3213 |
"if true, a delete also updates the clipboard with the deleted text" |
|
3214 |
||
3215 |
^ self at:#deleteSetsClipboardText put:aBooleanOrNil |
|
3216 |
||
3217 |
" |
|
3218 |
UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true |
|
3219 |
UserPreferences current deleteSetsClipboardText:false |
|
3220 |
UserPreferences current deleteSetsClipboardText |
|
3221 |
" |
|
3222 |
! |
|
3223 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3224 |
enforcedDropModeForFiles |
17767 | 3225 |
"when dropping a file, paste the #name, the #contents or ask ? |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3226 |
(default is nil, for ask)" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3227 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3228 |
^ self at:#enforcedDropModeForFiles ifAbsent:nil |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3229 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3230 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3231 |
UserPreferences current enforcedDropModeForFiles |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3232 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3233 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3234 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3235 |
enforcedDropModeForFiles:aSymbolOrNil |
17767 | 3236 |
"when dropping a file, paste the #name, the #contents or ask ? |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3237 |
(default is nil, for ask)" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3238 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3239 |
^ self at:#enforcedDropModeForFiles put:aSymbolOrNil |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3240 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3241 |
" |
17767 | 3242 |
UserPreferences current enforcedDropModeForFiles:#contents |
3243 |
UserPreferences current enforcedDropModeForFiles:#name |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3244 |
" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3245 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3246 |
|
10055 | 3247 |
extendedWordSelectMode |
3248 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3249 |
(default is on)" |
10055 | 3250 |
|
10310
89d972739353
extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents:
10240
diff
changeset
|
3251 |
^ self at:#extendedWordSelectMode ifAbsent:true |
10055 | 3252 |
|
3253 |
" |
|
3254 |
UserPreferences current extendedWordSelectMode |
|
3255 |
" |
|
3256 |
||
3257 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
|
3258 |
! |
|
3259 |
||
3260 |
extendedWordSelectMode:aBoolean |
|
3261 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3262 |
(default is on)" |
10055 | 3263 |
|
3264 |
^ self at:#extendedWordSelectMode put:aBoolean |
|
3265 |
||
3266 |
" |
|
3267 |
UserPreferences current extendedWordSelectMode:true |
|
3268 |
UserPreferences current extendedWordSelectMode:false |
|
3269 |
" |
|
3270 |
||
3271 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
|
3272 |
! |
|
3273 |
||
3274 |
numberOfRememberedUndoOperationsInEditor |
|
3275 |
"the number of possible undo-operations. |
|
3276 |
Nil means: unlimited. |
|
3277 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
3278 |
||
3279 |
^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil |
|
3280 |
||
3281 |
" |
|
3282 |
UserPreferences current numberOfRememberedUndoOperationsInEditor |
|
3283 |
" |
|
3284 |
||
3285 |
"Modified: / 09-10-2006 / 11:01:35 / cg" |
|
3286 |
! |
|
3287 |
||
3288 |
numberOfRememberedUndoOperationsInEditor:aNumberOrNil |
|
3289 |
"the number of possible undo-operations. |
|
3290 |
Nil means: unlimited. |
|
3291 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
3292 |
||
3293 |
^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil |
|
3294 |
||
3295 |
" |
|
3296 |
UserPreferences current numberOfRememberedUndoOperationsInEditor:20 |
|
3297 |
" |
|
3298 |
||
3299 |
"Created: / 09-10-2006 / 11:00:56 / cg" |
|
3300 |
! |
|
3301 |
||
17928 | 3302 |
selectAllWhenClickingBeyondEnd |
3303 |
"select mode, when clicking after the end of text, |
|
3304 |
as in st80 (or squeak), select all" |
|
3305 |
||
3306 |
^ self at:#selectAllWhenClickingBeyondEnd ifAbsent:false |
|
3307 |
||
3308 |
" |
|
3309 |
UserPreferences current selectAllWhenClickingBeyondEnd |
|
3310 |
" |
|
3311 |
||
3312 |
"Created: / 07-03-2012 / 14:00:17 / cg" |
|
3313 |
! |
|
3314 |
||
3315 |
selectAllWhenClickingBeyondEnd:aBoolean |
|
3316 |
"select mode, when clicking after the end of text, |
|
3317 |
as in st80 (or squeak), select all" |
|
3318 |
||
3319 |
^ self at:#selectAllWhenClickingBeyondEnd put:aBoolean |
|
3320 |
||
3321 |
" |
|
3322 |
UserPreferences current selectAllWhenClickingBeyondEnd:true |
|
3323 |
UserPreferences current selectAllWhenClickingBeyondEnd:false |
|
3324 |
" |
|
3325 |
||
3326 |
"Created: / 07-03-2012 / 14:00:23 / cg" |
|
3327 |
! |
|
3328 |
||
10055 | 3329 |
st80EditMode |
3330 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
3331 |
||
3332 |
^ self at:#st80EditMode ifAbsent:false |
|
3333 |
||
3334 |
" |
|
3335 |
UserPreferences current st80EditMode |
|
3336 |
" |
|
3337 |
! |
|
3338 |
||
3339 |
st80EditMode:aBoolean |
|
3340 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
3341 |
||
3342 |
^ self at:#st80EditMode put:aBoolean |
|
3343 |
||
3344 |
" |
|
3345 |
UserPreferences current st80EditMode:true |
|
3346 |
" |
|
3347 |
! |
|
3348 |
||
3349 |
st80SelectMode |
|
11143 | 3350 |
"select mode, when double clicking as in st80 |
10055 | 3351 |
(select to corresponding lparen/double-quote) ?" |
3352 |
||
3353 |
^ self at:#st80SelectMode ifAbsent:false |
|
3354 |
||
3355 |
" |
|
3356 |
UserPreferences current st80SelectMode |
|
3357 |
" |
|
3358 |
||
3359 |
"Created: / 03-07-2006 / 16:25:19 / cg" |
|
3360 |
! |
|
3361 |
||
3362 |
st80SelectMode:aBoolean |
|
11143 | 3363 |
"select mode, when double clicking as in st80 |
10055 | 3364 |
(select to corresponding lparen/double-quote)." |
3365 |
||
3366 |
^ self at:#st80SelectMode put:aBoolean |
|
3367 |
||
3368 |
" |
|
3369 |
UserPreferences current st80SelectMode:true |
|
3370 |
UserPreferences current st80SelectMode:false |
|
3371 |
" |
|
3372 |
||
3373 |
"Created: / 03-07-2006 / 16:25:27 / cg" |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3374 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3375 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3376 |
whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3377 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3378 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3379 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3380 |
^ self at:#whitespaceWordSelectMode ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3381 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3382 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3383 |
UserPreferences current whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3384 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3385 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3386 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3387 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3388 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3389 |
whitespaceWordSelectMode:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3390 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3391 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3392 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3393 |
^ self at:#whitespaceWordSelectMode put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3394 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3395 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3396 |
UserPreferences current whitespaceWordSelectMode:true |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3397 |
UserPreferences current whitespaceWordSelectMode:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3398 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3399 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
3400 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
10055 | 3401 |
! ! |
3402 |
||
17841 | 3403 |
!UserPreferences methodsFor:'accessing-prefs-localization'! |
3404 |
||
3405 |
language |
|
3406 |
"/ intermediate migration code; |
|
3407 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
3408 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
3409 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
3410 |
"/ are replaced with "UserPreferences current language" |
|
3411 |
||
3412 |
^ self at:#language ifAbsent:[Smalltalk language]. |
|
3413 |
||
3414 |
" |
|
3415 |
UserPreferences current language |
|
3416 |
" |
|
3417 |
||
3418 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
3419 |
! |
|
3420 |
||
3421 |
language:aLanguageSymbol |
|
3422 |
"/ intermediate migration code; |
|
3423 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
3424 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
3425 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
3426 |
"/ are replaced with "UserPreferences current language" |
|
3427 |
||
3428 |
self at:#language put:aLanguageSymbol. |
|
3429 |
Smalltalk language:aLanguageSymbol |
|
3430 |
||
3431 |
" |
|
3432 |
UserPreferences current language |
|
3433 |
UserPreferences current language:#en |
|
3434 |
" |
|
3435 |
||
3436 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
3437 |
! |
|
3438 |
||
3439 |
languageTerritory |
|
3440 |
"/ intermediate migration code; |
|
3441 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
3442 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
3443 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
3444 |
"/ are replaced with "UserPreferences current language" |
|
3445 |
||
3446 |
^ self at:#languageTerritory ifAbsent:[Smalltalk languageTerritory] |
|
3447 |
||
3448 |
" |
|
3449 |
UserPreferences current languageTerritory |
|
3450 |
" |
|
3451 |
||
3452 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
3453 |
! |
|
3454 |
||
3455 |
languageTerritory:aLanguageSymbol |
|
3456 |
"/ intermediate migration code; |
|
3457 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
3458 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
3459 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
3460 |
"/ are replaced with "UserPreferences current language" |
|
3461 |
||
3462 |
self at:#languageTerritory put:aLanguageSymbol. |
|
3463 |
Smalltalk languageTerritory:aLanguageSymbol |
|
3464 |
||
3465 |
" |
|
3466 |
UserPreferences current languageTerritory |
|
3467 |
UserPreferences current languageTerritory:#en |
|
3468 |
" |
|
3469 |
||
3470 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
3471 |
! ! |
|
3472 |
||
7549 | 3473 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
3474 |
||
3475 |
timeToAutoExpandItemsWhenDraggingOver |
|
3476 |
"in a hierarchical tree view" |
|
3477 |
||
3478 |
^ 700 "/ millis |
|
3479 |
! |
|
3480 |
||
3481 |
twoDigitDateHandler |
|
3482 |
"return a block which converts a two-digit date. |
|
3483 |
Possible algorithms: |
|
11143 | 3484 |
- identity: treat as year 00..99 |
3485 |
- add 1900: treat as 1900..1999 |
|
3486 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
7549 | 3487 |
|
3488 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
3489 |
" |
|
3490 |
||
3491 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
3492 |
"/ ^ [:x | 1900+x]. |
|
3493 |
"/ ^ [:x | x]. |
|
3494 |
! ! |
|
3495 |
||
3496 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
3497 |
||
3498 |
allowSendMailFromDebugger |
|
3499 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
3500 |
mail account " |
|
3501 |
||
3502 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
3503 |
||
3504 |
" |
|
3505 |
UserPreferences current allowSendMailFromDebugger |
|
3506 |
" |
|
3507 |
||
3508 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
3509 |
! |
|
3510 |
||
3511 |
allowSendMailFromDebugger:aBoolean |
|
3512 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
3513 |
mail account " |
|
3514 |
||
3515 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
3516 |
||
3517 |
" |
|
3518 |
UserPreferences current allowSendMailFromDebugger:true |
|
3519 |
UserPreferences current allowSendMailFromDebugger:false |
|
3520 |
" |
|
3521 |
! |
|
3522 |
||
3523 |
autoDefineWorkspaceVariables |
|
3524 |
"return the flag which controls automatic definition of unknown variables |
|
3525 |
as workspace variables (in doIts)" |
|
3526 |
||
9302 | 3527 |
^ self at:#autoDefineWorkspaceVariables ifAbsent:false |
7549 | 3528 |
|
3529 |
" |
|
3530 |
UserPreferences current autoDefineWorkspaceVariables |
|
3531 |
" |
|
3532 |
! |
|
3533 |
||
3534 |
autoDefineWorkspaceVariables:aBoolean |
|
3535 |
"turn on/off automatic definition of unknown variables |
|
3536 |
as workspace variables (in doIts)" |
|
3537 |
||
3538 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
3539 |
||
3540 |
" |
|
3541 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
3542 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
3543 |
" |
|
3544 |
! |
|
3545 |
||
10540 | 3546 |
autoRaiseDebugger |
3547 |
"if true, the debugger raises itself automatically when entered. |
|
3548 |
The default is true" |
|
3549 |
||
3550 |
^ self at:#autoRaiseDebugger ifAbsent:true |
|
3551 |
||
3552 |
" |
|
3553 |
UserPreferences current autoRaiseDebugger |
|
3554 |
" |
|
3555 |
||
3556 |
"Created: / 15-05-2007 / 13:29:10 / cg" |
|
3557 |
! |
|
3558 |
||
3559 |
autoRaiseDebugger:aBoolean |
|
3560 |
"if true, the debugger raises itself automatically when entered. |
|
3561 |
The default is true" |
|
3562 |
||
3563 |
^ self at:#autoRaiseDebugger put:aBoolean |
|
3564 |
||
3565 |
" |
|
11143 | 3566 |
UserPreferences current autoRaiseDebugger |
10540 | 3567 |
UserPreferences current autoRaiseDebugger:false |
3568 |
UserPreferences current autoRaiseDebugger:true |
|
3569 |
" |
|
3570 |
||
3571 |
"Created: / 15-05-2007 / 13:29:31 / cg" |
|
3572 |
! |
|
3573 |
||
11419 | 3574 |
editToolbarVisibleInWorkspace |
3575 |
"return the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
3576 |
||
3577 |
^ self at:#editToolbarVisibleInWorkspace ifAbsent:false |
|
3578 |
! |
|
3579 |
||
3580 |
editToolbarVisibleInWorkspace:aBooleanOrNil |
|
3581 |
"set the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
3582 |
||
3583 |
^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil |
|
3584 |
! |
|
3585 |
||
7549 | 3586 |
functionKeySequences |
3587 |
"return the collection of function-key macros. |
|
3588 |
Thats a dictionary, which assigns code to F-keys" |
|
3589 |
||
3590 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
3591 |
||
3592 |
" |
|
3593 |
UserPreferences current functionKeySequences |
|
3594 |
" |
|
3595 |
||
3596 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
3597 |
! |
|
3598 |
||
17951 | 3599 |
hideSupportCodeInDebugger |
3600 |
^ self at:#hideSupportCodeInDebugger ifAbsent:true |
|
3601 |
||
3602 |
" |
|
3603 |
UserPreferences current hideSupportCodeInDebugger |
|
3604 |
" |
|
3605 |
||
3606 |
"Created: / 10-06-2012 / 21:24:09 / cg" |
|
3607 |
! |
|
3608 |
||
3609 |
hideSupportCodeInDebugger:aBooleanOrNil |
|
3610 |
^ self at:#hideSupportCodeInDebugger put:aBooleanOrNil |
|
3611 |
||
3612 |
"Created: / 10-06-2012 / 21:24:18 / cg" |
|
3613 |
! |
|
3614 |
||
10661 | 3615 |
infoVisibleInWorkspace |
3616 |
"return the flag which defaults the info-visibility in a workspace application" |
|
3617 |
||
3618 |
^ self at:#infoVisibleInWorkspace ifAbsent:false |
|
3619 |
||
3620 |
"Created: / 14-07-2007 / 16:43:37 / cg" |
|
3621 |
! |
|
3622 |
||
3623 |
infoVisibleInWorkspace:aBooleanOrNil |
|
3624 |
"set the flag which defaults the info-visibility in a workspace application" |
|
3625 |
||
3626 |
^ self at:#infoVisibleInWorkspace put:aBooleanOrNil |
|
3627 |
||
3628 |
"Created: / 14-07-2007 / 16:43:44 / cg" |
|
3629 |
! |
|
3630 |
||
7549 | 3631 |
showClockInLauncher |
3632 |
"return the flag which controls if a clock is shown in the launcher" |
|
3633 |
||
9302 | 3634 |
^ self at:#showClockInLauncher ifAbsent:false |
7549 | 3635 |
|
3636 |
" |
|
3637 |
UserPreferences current showClockInLauncher |
|
3638 |
" |
|
3639 |
||
3640 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
3641 |
! |
|
3642 |
||
3643 |
showClockInLauncher:aBooleanOrNil |
|
3644 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
3645 |
||
3646 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
3647 |
||
3648 |
" |
|
3649 |
UserPreferences current showClockInLauncher:false. |
|
11143 | 3650 |
NewLauncher open. |
7549 | 3651 |
|
3652 |
UserPreferences current showClockInLauncher:true. |
|
11143 | 3653 |
NewLauncher open. |
7549 | 3654 |
" |
3655 |
||
3656 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
7624 | 3657 |
! |
3658 |
||
17944 | 3659 |
showTypeIndicatorInInspector |
3660 |
^ self at:#showTypeIndicatorInInspector ifAbsent:true |
|
3661 |
||
3662 |
" |
|
3663 |
UserPreferences current showTypeIndicatorInInspector |
|
3664 |
" |
|
3665 |
||
3666 |
"Created: / 16-05-2012 / 19:09:50 / cg" |
|
3667 |
! |
|
3668 |
||
3669 |
showTypeIndicatorInInspector:aBooleanOrNil |
|
3670 |
^ self at:#showTypeIndicatorInInspector put:aBooleanOrNil |
|
3671 |
||
3672 |
" |
|
3673 |
UserPreferences current showTypeIndicatorInInspector:false. |
|
3674 |
NewLauncher inspect. |
|
3675 |
||
3676 |
UserPreferences current showTypeIndicatorInInspector:true. |
|
3677 |
NewLauncher inspect. |
|
3678 |
" |
|
3679 |
||
3680 |
"Created: / 16-05-2012 / 19:10:13 / cg" |
|
3681 |
! |
|
3682 |
||
10661 | 3683 |
toolbarVisibleInWorkspace |
3684 |
"return the flag which defaults the toolbar-visibility in a workspace application" |
|
3685 |
||
10665
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
3686 |
^ self at:#toolbarVisibleInWorkspace ifAbsent:true |
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
3687 |
|
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
3688 |
"Modified: / 18-07-2007 / 08:55:44 / cg" |
10661 | 3689 |
! |
3690 |
||
3691 |
toolbarVisibleInWorkspace:aBooleanOrNil |
|
3692 |
"set the flag which defaults the toolbar-visibility in a workspace application" |
|
3693 |
||
3694 |
^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil |
|
3695 |
||
3696 |
"Created: / 14-07-2007 / 16:42:09 / cg" |
|
3697 |
! |
|
3698 |
||
11024 | 3699 |
useNewLayoutInDebugger |
3700 |
^ self at:#useNewLayoutInDebugger ifAbsent:true |
|
3701 |
||
3702 |
" |
|
3703 |
UserPreferences current useNewLayoutInDebugger |
|
3704 |
" |
|
3705 |
! |
|
3706 |
||
3707 |
useNewLayoutInDebugger:aBoolean |
|
3708 |
^ self at:#useNewLayoutInDebugger put:aBoolean |
|
3709 |
! |
|
3710 |
||
7624 | 3711 |
useRefactoringSupport |
3712 |
"return the flag which enables/disables use of refactoring package in browser. |
|
3713 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
3714 |
There is usually no reason to disable these." |
|
3715 |
||
9302 | 3716 |
^ self at:#useRefactoringSupport ifAbsent:true |
7624 | 3717 |
! |
3718 |
||
3719 |
useRefactoringSupport:aBooleanOrNil |
|
3720 |
"enable/disable use of refactoring package in browser. |
|
3721 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
3722 |
There is usually no reason to disable these." |
|
3723 |
||
3724 |
^ self at:#useRefactoringSupport put:aBooleanOrNil |
|
7625 | 3725 |
|
3726 |
" |
|
3727 |
UserPreferences current useRefactoringSupport:false |
|
3728 |
UserPreferences current useRefactoringSupport:true |
|
3729 |
" |
|
11024 | 3730 |
! |
3731 |
||
3732 |
verboseBacktraceInDebugger |
|
3733 |
^ self at:#verboseBacktraceInDebugger ifAbsent:true |
|
3734 |
||
3735 |
" |
|
3736 |
UserPreferences current verboseBacktraceInDebugger |
|
3737 |
" |
|
3738 |
! |
|
3739 |
||
3740 |
verboseBacktraceInDebugger:aBoolean |
|
3741 |
^ self at:#verboseBacktraceInDebugger put:aBoolean |
|
7549 | 3742 |
! ! |
3743 |
||
17912 | 3744 |
!UserPreferences methodsFor:'accessing-prefs-tools-building'! |
3745 |
||
3746 |
buildDirectory |
|
3747 |
^ self at:#buildDirectory ifAbsent:nil |
|
3748 |
||
3749 |
" |
|
3750 |
UserPreferences current buildDirectory |
|
3751 |
" |
|
3752 |
! |
|
3753 |
||
3754 |
buildDirectory:aFilenameStringOrNil |
|
3755 |
^ self at:#buildDirectory put:aFilenameStringOrNil |
|
3756 |
||
3757 |
" |
|
3758 |
UserPreferences current buildDirectory |
|
3759 |
" |
|
3760 |
! |
|
3761 |
||
3762 |
localBuild |
|
3763 |
"deployment-build in a local directory (as opposed to making via the repository)" |
|
3764 |
||
3765 |
^ self at:#localBuild ifAbsent:true |
|
3766 |
||
3767 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
3768 |
! |
|
3769 |
||
3770 |
localBuild:aBoolean |
|
3771 |
"deployment-build in a local directory (as opposed to making via the repository)" |
|
3772 |
||
3773 |
^ self at:#localBuild put:aBoolean |
|
3774 |
||
3775 |
" |
|
3776 |
UserPreferences current localBuild |
|
3777 |
" |
|
3778 |
||
3779 |
"Created: / 20-09-2006 / 23:55:26 / cg" |
|
3780 |
! |
|
3781 |
||
3782 |
usedCompilerForBuild |
|
3783 |
^ self at:#usedCompilerForBuild ifAbsent:nil |
|
3784 |
||
3785 |
" |
|
3786 |
UserPreferences current usedCompilerForBuild |
|
3787 |
" |
|
3788 |
||
3789 |
"Created: / 22-01-2012 / 10:52:47 / cg" |
|
3790 |
! |
|
3791 |
||
3792 |
usedCompilerForBuild:aString |
|
3793 |
^ self at:#usedCompilerForBuild put:aString |
|
3794 |
||
3795 |
" |
|
3796 |
UserPreferences current usedCompilerForBuild |
|
3797 |
UserPreferences current usedCompilerForBuild:'bcc' |
|
3798 |
" |
|
3799 |
||
3800 |
"Created: / 22-01-2012 / 10:52:59 / cg" |
|
3801 |
! ! |
|
3802 |
||
17910 | 3803 |
!UserPreferences methodsFor:'accessing-scm'! |
17850 | 3804 |
|
3805 |
showBadRevisionStringDialogs |
|
3806 |
"show a dialog when a bad revision string is encountered, or silently fix it" |
|
3807 |
||
3808 |
^ self at: #'showBadRevisionStringDialogs' ifAbsent:true |
|
3809 |
||
3810 |
"Created: / 19-08-2011 / 12:51:25 / cg" |
|
3811 |
! |
|
3812 |
||
3813 |
showBadRevisionStringDialogs:aBoolean |
|
3814 |
"show a dialog when a bad revision string is encountered, or silently fix it" |
|
3815 |
||
3816 |
^ self at: #'showBadRevisionStringDialogs' put:aBoolean |
|
3817 |
||
3818 |
"Created: / 19-08-2011 / 12:51:58 / cg" |
|
3819 |
! ! |
|
17847 | 3820 |
|
17910 | 3821 |
!UserPreferences methodsFor:'default settings-syntax colors'! |
17807 | 3822 |
|
6169 | 3823 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 3824 |
"return a list of pre-defined syntax highlightning styles |
3825 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
3826 |
||
3827 |
^ #( |
|
17928 | 3828 |
(#resetSyntaxColors 'default [ST/X style]') |
3829 |
(#resetSyntaxColorsWithSideEffectHighlighting 'default with side effect highlighting [new ST/X style]') |
|
3830 |
(#resetSyntaxColorsToVCStyle 'green comments; blue controlFlow, red constants [VISUAL-C style]') |
|
11672 | 3831 |
(#resetSyntaxColorsBlueControlFlowSelectors 'blue controlFlow') |
3832 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
3833 |
(#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors 'green comments; blue controlFlow') |
|
17928 | 3834 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [DOLPHIN style]') |
11672 | 3835 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
17928 | 3836 |
(#resetSyntaxColorsToSqueakStyle1 'blue selectors; green comments [SQUEAK style]') |
3837 |
(#resetSyntaxColorsToSqueakStyle2 'blue selectors; green comments; brown self [new SQUEAK style]') |
|
11672 | 3838 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
17928 | 3839 |
(#resetSyntaxColorsToVAgeStyle 'blue globals; green comments [V''Age style]') |
3840 |
(#resetSyntaxColorsToVW7Style 'light blue comments [VW7 style]') |
|
6171 | 3841 |
) |
9834 | 3842 |
|
17928 | 3843 |
"Modified: / 17-03-2012 / 10:40:18 / cg" |
6169 | 3844 |
! |
3845 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3846 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3847 |
"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
|
3848 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3849 |
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
|
3850 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3851 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3852 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3853 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3854 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3855 |
"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
|
3856 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3857 |
|
17928 | 3858 |
self resetSyntaxColors. |
8551 | 3859 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
3860 |
self at:#errorColor put:Color black. |
|
3861 |
self at:#commentColor put:Color black. |
|
3862 |
self at:#constantColor put:Color black. |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3863 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3864 |
self at:#selectorEmphasis put:#normal. |
17928 | 3865 |
|
3866 |
"Modified: / 16-03-2012 / 10:35:02 / cg" |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3867 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3868 |
|
9834 | 3869 |
resetSyntaxColorsBlueControlFlowSelectors |
3870 |
"resets the colors in the CurrentPreferences to alternative default values |
|
3871 |
(with blue control flow selectors)" |
|
3872 |
||
17928 | 3873 |
self resetSyntaxColors. |
9834 | 3874 |
self at:#controlFlowSelectorColor put:(Color blue). |
3875 |
||
3876 |
"Created: / 08-09-2006 / 16:11:52 / cg" |
|
3877 |
! |
|
3878 |
||
6171 | 3879 |
resetSyntaxColorsBlueSelectorsGreenComments |
3880 |
"resets the colors in the CurrentPreferences to alternative default values |
|
3881 |
(with blue selectors and green comments)" |
|
3882 |
||
17928 | 3883 |
self resetSyntaxColors. |
8551 | 3884 |
self at:#commentColor put:(Color green darkened). |
3885 |
self at:#commentEmphasis put:#italic. |
|
3886 |
self at:#selectorColor put:(Color blue). |
|
3887 |
self at:#selectorEmphasis put:#normal. |
|
3888 |
self at:#methodSelectorColor put:(Color blue). |
|
6171 | 3889 |
self at:#methodSelectorEmphasis put:#bold. |
17928 | 3890 |
|
3891 |
"Modified: / 16-03-2012 / 10:34:55 / cg" |
|
6171 | 3892 |
! |
3893 |
||
3894 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 3895 |
"resets the colors in the CurrentPreferences to alternative default values |
3896 |
(with blue selectors and grey comments)" |
|
3897 |
||
6171 | 3898 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
3899 |
self at:#commentColor put:(Color gray). |
|
6169 | 3900 |
! |
3901 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3902 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3903 |
"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
|
3904 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3905 |
|
17928 | 3906 |
self resetSyntaxColors. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3907 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
3908 |
|
17928 | 3909 |
"Modified: / 16-03-2012 / 10:34:50 / cg" |
9144 | 3910 |
! |
3911 |
||
9834 | 3912 |
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors |
3913 |
"resets the colors in the CurrentPreferences to alternative default values |
|
3914 |
(with green comments, blue control flow)" |
|
3915 |
||
17928 | 3916 |
self resetSyntaxColors. |
9834 | 3917 |
self at:#commentColor put:(Color green darkened). |
3918 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
3919 |
||
3920 |
"Created: / 08-09-2006 / 16:10:38 / cg" |
|
3921 |
! |
|
3922 |
||
9144 | 3923 |
resetSyntaxColorsToSqueakStyle |
17928 | 3924 |
"resets the colors in the CurrentPreferences to alternative default values" |
9144 | 3925 |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3926 |
self resetSyntaxColorsToSqueakStyle2 |
17928 | 3927 |
|
3928 |
"Modified (comment): / 17-03-2012 / 10:38:07 / cg" |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3929 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3930 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3931 |
resetSyntaxColorsToSqueakStyle1 |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3932 |
"resets the colors in the CurrentPreferences to alternative default values |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3933 |
(with blue selectors and green comments)" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3934 |
|
17928 | 3935 |
self resetSyntaxColors. |
9144 | 3936 |
self at:#commentColor put:(Color green darkened). |
3937 |
self at:#commentEmphasis put:#italic. |
|
3938 |
self at:#selectorColor put:(Color blue:80). |
|
3939 |
self at:#selectorEmphasis put:#normal. |
|
3940 |
self at:#methodSelectorColor put:(Color black). |
|
3941 |
self at:#methodSelectorEmphasis put:#bold. |
|
3942 |
self at:#globalIdentifierEmphasis put:#bold. |
|
3943 |
self at:#localIdentifierColor put:(Color grey:40). |
|
3944 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
3945 |
self at:#constantColor put:(Color red:67). |
|
17928 | 3946 |
|
3947 |
"Modified: / 16-03-2012 / 10:34:40 / cg" |
|
3948 |
"Modified (comment): / 17-03-2012 / 10:38:47 / cg" |
|
9184 | 3949 |
! |
3950 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3951 |
resetSyntaxColorsToSqueakStyle2 |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3952 |
"resets the colors in the CurrentPreferences to alternative default values |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3953 |
(with blue selectors and green comments)" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3954 |
|
17928 | 3955 |
self resetSyntaxColors. |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3956 |
self at:#commentColor put:(Color green darkened). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3957 |
self at:#commentEmphasis put:#italic. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3958 |
self at:#selectorColor put:(Color blue:80). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3959 |
self at:#selectorEmphasis put:#normal. |
17734
406b1590afe8
Merged with trunk r10476
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17733
diff
changeset
|
3960 |
self at:#controlFlowSelectorEmphasis put:#bold. |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3961 |
self at:#methodSelectorColor put:(Color black). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3962 |
self at:#methodSelectorEmphasis put:#bold. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3963 |
self at:#globalIdentifierEmphasis put:#bold. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3964 |
self at:#localIdentifierColor put:(Color grey:40). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3965 |
self at:#instVarIdentifierEmphasis put:#bold. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3966 |
self at:#constantColor put:(Color red:67). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3967 |
self at:#selfColor put:(Color red:50 ). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3968 |
self at:#selfEmphasis put:#bold. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3969 |
self at:#localIdentifierColor put:(Color grey:50 ). |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3970 |
self at:#localIdentifierEmphasis put:#normal. |
17928 | 3971 |
|
3972 |
"Modified: / 16-03-2012 / 10:34:35 / cg" |
|
3973 |
"Modified (comment): / 17-03-2012 / 10:38:57 / cg" |
|
3974 |
! |
|
3975 |
||
3976 |
resetSyntaxColorsToVAgeStyle |
|
3977 |
"resets the colors in the CurrentPreferences to alternative default values |
|
3978 |
(green comments, blue globals)" |
|
3979 |
||
3980 |
self resetSyntaxColors. |
|
3981 |
self at:#identifierColor put:(Color rgbValue:16r00007F). |
|
3982 |
self at:#argumentColor put:(Color rgbValue:16r00007F). |
|
3983 |
self at:#identifierEmphasis put:#normal. |
|
3984 |
self at:#commentColor put:(Color rgbValue:16r007F00). |
|
3985 |
self at:#selfColor put:(Color rgbValue:16r7F007F). |
|
3986 |
self at:#constantColor put:(Color rgbValue:16r7F0000). |
|
3987 |
self at:#selectorColor put:(Color black). |
|
3988 |
self at:#selectorEmphasis put:#bold. |
|
3989 |
self at:#globalIdentifierColor put:(Color blue). |
|
3990 |
self at:#methodSelectorColor put:(Color black). |
|
3991 |
self at:#methodSelectorEmphasis put:#bold. |
|
3992 |
||
3993 |
"Created: / 17-03-2012 / 10:37:42 / cg" |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3994 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
3995 |
|
11672 | 3996 |
resetSyntaxColorsToVCStyle |
3997 |
"resets the colors in the CurrentPreferences to visual C default style |
|
3998 |
(green comments, blue keywords, redish string constants)" |
|
3999 |
||
17928 | 4000 |
self resetSyntaxColors. |
11672 | 4001 |
self at:#controlFlowSelectorColor put:(Color blue). |
4002 |
self at:#commentColor put:(Color green darkened). |
|
4003 |
self at:#constantColor put:(Color red:64 green:8 blue:8). |
|
17928 | 4004 |
|
4005 |
"Modified: / 16-03-2012 / 10:34:30 / cg" |
|
4006 |
"Modified (comment): / 17-03-2012 / 10:39:11 / cg" |
|
11672 | 4007 |
! |
4008 |
||
9184 | 4009 |
resetSyntaxColorsToVW7Style |
4010 |
"resets the colors in the CurrentPreferences to alternative default values |
|
4011 |
(with light blue comments, green variables)" |
|
4012 |
||
17928 | 4013 |
self resetSyntaxColors. |
9184 | 4014 |
self at:#commentColor put:(Color blue lightened). |
4015 |
self at:#selectorColor put:(Color black). |
|
4016 |
self at:#selectorEmphasis put:#normal. |
|
4017 |
self at:#methodSelectorColor put:(Color black). |
|
4018 |
self at:#methodSelectorEmphasis put:#bold. |
|
4019 |
self at:#identifierEmphasis put:#normal. |
|
4020 |
self at:#identifierColor put:(Color green darkened). |
|
17928 | 4021 |
|
4022 |
"Modified: / 16-03-2012 / 10:34:26 / cg" |
|
4023 |
"Modified (comment): / 17-03-2012 / 10:39:18 / cg" |
|
17921 | 4024 |
! |
4025 |
||
4026 |
resetSyntaxColorsWithSideEffectHighlighting |
|
4027 |
"resets the colors in the CurrentPreferences to their default values |
|
17928 | 4028 |
plus side effect highlighting (assignments to instvars and globals are marked)" |
4029 |
||
4030 |
self resetSyntaxColors. |
|
17921 | 4031 |
self at:#sideEffectAssignmentBackgroundColor put:(Color rgbValue:16rFFDBDB). |
4032 |
||
4033 |
"Created: / 13-02-2012 / 12:12:56 / cg" |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4034 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4035 |
|
7266 | 4036 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4037 |
|
4583 | 4038 |
defaultValue |
4039 |
"the defaultValue for non-existing keys" |
|
4040 |
||
4041 |
^ false |
|
4042 |
! |
|
4043 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4044 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4045 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4046 |
|
4583 | 4047 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4048 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
4049 |
|
10789 | 4050 |
!UserPreferences methodsFor:'misc'! |
4051 |
||
4052 |
flyByHelpSettingChanged |
|
4053 |
FlyByHelp notNil ifTrue:[ |
|
11143 | 4054 |
(CurrentPreferences at:#flyByHelpActive) ifTrue:[ |
4055 |
FlyByHelp start. |
|
4056 |
] ifFalse:[ |
|
4057 |
FlyByHelp stop. |
|
4058 |
]. |
|
10789 | 4059 |
]. |
4060 |
! ! |
|
4061 |
||
6937 | 4062 |
!UserPreferences methodsFor:'obsolete'! |
4063 |
||
4064 |
useNewSettinsApplication |
|
11598 | 4065 |
<resource: #obsolete> |
8545 | 4066 |
"obsolete - will be removed in next release. |
4067 |
(this is kept for a while, as it may have found its way into some |
|
4068 |
saved user preference files)" |
|
6937 | 4069 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
4070 |
self obsoleteMethodWarning. |
7029 | 4071 |
^ self useNewSettingsApplication |
6937 | 4072 |
! |
4073 |
||
4074 |
useNewSettinsApplication:aBoolean |
|
11598 | 4075 |
<resource: #obsolete> |
7030 | 4076 |
"obsolete - will be removed in next release" |
6937 | 4077 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
4078 |
self obsoleteMethodWarning. |
7029 | 4079 |
self useNewSettingsApplication:aBoolean. |
6937 | 4080 |
! ! |
4081 |
||
7028 | 4082 |
!UserPreferences methodsFor:'saving'! |
4083 |
||
4084 |
saveIn:fileName |
|
4085 |
self class saveSettings:self in:fileName |
|
4086 |
! ! |
|
4087 |
||
3347 | 4088 |
!UserPreferences class methodsFor:'documentation'! |
4089 |
||
17909 | 4090 |
version |
17966 | 4091 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.313 2012/08/10 10:50:13 stefan Exp $' |
17909 | 4092 |
! |
4093 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17729
diff
changeset
|
4094 |
version_CVS |
17966 | 4095 |
^ '§Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.313 2012/08/10 10:50:13 stefan Exp §' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
4096 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
4097 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17756
diff
changeset
|
4098 |
version_SVN |
17966 | 4099 |
^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1 $' |
17846 | 4100 |
! ! |