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