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