author | Claus Gittinger <cg@exept.de> |
Sat, 05 Feb 2000 15:27:20 +0100 | |
changeset 5236 | 93251cfe68d0 |
parent 5114 | 277fea5375f2 |
child 5258 | 3490a1891a53 |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
12 |
||
13 |
||
14 |
IdentityDictionary subclass:#UserPreferences |
|
15 |
instanceVariableNames:'' |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
16 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
3347 | 17 |
poolDictionaries:'' |
18 |
category:'System-Support' |
|
19 |
! |
|
20 |
||
21 |
!UserPreferences class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
26 |
All Rights Reserved |
|
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. |
45 |
(which are currently spread over the system). |
|
46 |
For now, only a few preferences are found here - but this |
|
47 |
will change over time. |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
48 |
|
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
49 |
UserPreferences current at:#foo |
3347 | 50 |
" |
51 |
! ! |
|
52 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
53 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
54 |
|
4580 | 55 |
initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
56 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
57 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
#( |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
#useNewChangesBrowser false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
#useNewInspector false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
61 |
|
5236 | 62 |
#autoFormatting false |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
63 |
#syntaxColoring true |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
64 |
#fullSelectorCheck false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
65 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
66 |
#defaultSyntaxColor (Color black) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
67 |
#defaultSyntaxEmphasis normal |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
68 |
|
4343 | 69 |
#errorColor (Color red) |
70 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
71 |
#commentColor (Color 12.5 12.5 100) |
5114 | 72 |
#commentEmphasis normal |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
73 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
74 |
#methodSelectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
75 |
#selectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
76 |
#unimplementedSelectorColor (Color red) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
77 |
#unimplementedSelectorEmphasis normal |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
78 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
79 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
80 |
"/ #badIdentifierColor (Color red) |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
81 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
82 |
#constantColor (Color 25 0 0) |
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
83 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
84 |
#showClockInLauncher true |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
85 |
) pairWiseDo:[:k :v | |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
86 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
87 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
88 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
89 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
90 |
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
|
91 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
92 |
" |
4580 | 93 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
94 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
95 |
|
5236 | 96 |
"Modified: / 4.2.2000 / 20:06:53 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
97 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
98 |
|
3347 | 99 |
!UserPreferences class methodsFor:'accessing'! |
100 |
||
101 |
current |
|
102 |
CurrentPreferences isNil ifTrue:[ |
|
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
103 |
CurrentPreferences := self new. |
4580 | 104 |
CurrentPreferences declareAllFrom:(self default). |
3347 | 105 |
]. |
106 |
^ CurrentPreferences. |
|
107 |
||
108 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 109 |
! |
110 |
||
4318 | 111 |
default |
4580 | 112 |
DefaultPreferences isNil ifTrue:[ |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
113 |
self initializeDefaultPreferences |
4580 | 114 |
]. |
4318 | 115 |
^ DefaultPreferences. |
116 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
117 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
118 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
119 |
" |
4318 | 120 |
! |
121 |
||
3364 | 122 |
reset |
123 |
"resets the CurrentPreferences to its default values" |
|
124 |
||
125 |
CurrentPreferences := nil |
|
126 |
! |
|
127 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
128 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
129 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
130 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
131 |
^#( |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
132 |
argumentIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
133 |
argumentIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
134 |
booleanConstantColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
135 |
booleanConstantEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
136 |
bracketColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
137 |
bracketEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
138 |
classVariableIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
139 |
classVariableIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
140 |
constantColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
141 |
constantEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
142 |
commentColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
143 |
commentEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
144 |
defaultSyntaxColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
145 |
defaultSyntaxEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
146 |
errorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
147 |
globalIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
148 |
globalIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
149 |
globalClassIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
150 |
globalClassIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
151 |
hereColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
152 |
hereEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
153 |
identifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
154 |
identifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
155 |
instVarIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
156 |
instVarIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
157 |
localIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
158 |
localIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
159 |
methodSelectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
160 |
methodSelectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
161 |
returnColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
162 |
returnEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
163 |
selectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
164 |
selectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
165 |
selfColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
166 |
selfEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
167 |
stringColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
168 |
stringEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
169 |
superColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
170 |
superEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
171 |
symbolColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
172 |
symbolEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
173 |
thisContextColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
174 |
thisContextEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
175 |
unknownIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
176 |
unknownIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
177 |
unimplementedSelectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
178 |
unimplementedSelectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
179 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
180 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
181 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
182 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
183 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
184 |
syntaxColorNames |
3364 | 185 |
"returns the syntax colors for the settings in the launcher" |
186 |
||
4319 | 187 |
"/ warning, the strings below are presented to the user |
188 |
"/ as the syntax-color boxes comboList - however, they are |
|
189 |
"/ also used (without separators) as key into myself. |
|
190 |
"/ Therefore, do not change the strings below. |
|
191 |
"/ I know - this is bad coding .... |
|
192 |
||
3364 | 193 |
^#( |
194 |
'Argument Identifier Color' |
|
195 |
'Boolean Constant Color' |
|
196 |
'Bracket Color' |
|
4320 | 197 |
'Class Variable Identifier Color' |
3364 | 198 |
'Constant Color' |
199 |
'Comment Color' |
|
200 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
201 |
'Global Class Identifier Color' |
3364 | 202 |
'Here Color' |
203 |
'Identifier Color' |
|
3377 | 204 |
'InstVar Identifier Color' |
3364 | 205 |
'Local Identifier Color' |
206 |
'Method Selector Color' |
|
4076 | 207 |
'Return Color' |
3364 | 208 |
'Selector Color' |
209 |
'Self Color' |
|
210 |
'String Color' |
|
211 |
'Super Color' |
|
212 |
'Symbol Color' |
|
213 |
'This Context Color' |
|
214 |
'Unknown Identifier Color' |
|
4319 | 215 |
'Unimplemented Selector Color' |
3377 | 216 |
) |
3364 | 217 |
|
4076 | 218 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 219 |
! ! |
220 |
||
5236 | 221 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
3883 | 222 |
|
223 |
changesBrowserClass |
|
224 |
self useNewChangesBrowser ifTrue:[ |
|
225 |
^ NewChangesBrowser |
|
226 |
]. |
|
227 |
^ ChangesBrowser |
|
228 |
||
229 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
230 |
! ! |
|
231 |
||
5236 | 232 |
!UserPreferences methodsFor:'accessing-prefs'! |
233 |
||
234 |
autoFormatting |
|
235 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
236 |
Notice, the regular browser does not (yet) do automatic formating." |
|
237 |
||
238 |
^ self at:#autoFormatting ifAbsentPut:false |
|
239 |
||
240 |
" |
|
241 |
UserPreferences current autoFormatting |
|
242 |
" |
|
243 |
||
244 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
245 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
246 |
! |
|
247 |
||
248 |
autoFormatting:aBoolean |
|
249 |
"turn on/off automatic formatting of code (in some browsers); |
|
250 |
Notice, the regular browser does not (yet) do automatic formating." |
|
251 |
||
252 |
^ self at:#autoFormatting put:aBoolean |
|
253 |
||
254 |
" |
|
255 |
UserPreferences current autoFormatting:true |
|
256 |
UserPreferences current autoFormatting:false |
|
257 |
" |
|
258 |
||
259 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
260 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
261 |
! |
|
3358 | 262 |
|
5071 | 263 |
beepEnabled |
264 |
"return the flag which controls the beeper" |
|
265 |
||
266 |
^ self at:#beepEnabled ifAbsentPut:true |
|
267 |
||
268 |
" |
|
269 |
UserPreferences current beepEnabled |
|
270 |
" |
|
271 |
||
272 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
273 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
274 |
! |
|
275 |
||
276 |
beepEnabled:aBoolean |
|
277 |
"set/clear the flag which controls the beeper" |
|
278 |
||
279 |
^ self at:#beepEnabled put:aBoolean |
|
280 |
||
281 |
" |
|
282 |
UserPreferences current beepEnabled:false |
|
283 |
" |
|
284 |
||
285 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
286 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
287 |
! |
|
288 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
289 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
290 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
291 |
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
|
292 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
293 |
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
|
294 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
295 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
296 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
297 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
298 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
299 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
300 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
301 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
302 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
303 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
304 |
focusFollowsMouse:aBooleanOrNil |
4121 | 305 |
"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
|
306 |
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
|
307 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
308 |
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
|
309 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
310 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
311 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
312 |
" |
4121 | 313 |
UserPreferences current focusFollowsMouse:true |
314 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
315 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
316 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
317 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
318 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
319 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
320 |
|
4396
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
321 |
functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
322 |
"return the collection of function-key macros. |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
323 |
Thats a dictionary, which assigns code to F-keys" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
324 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
325 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
326 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
327 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
328 |
UserPreferences current functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
329 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
330 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
331 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
332 |
! |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
333 |
|
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
334 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
335 |
"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
|
336 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
337 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
338 |
^ self at:#opaqueVariablePanelResizing ifAbsentPut:false |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
339 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
340 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
341 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
342 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
343 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
344 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
345 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
346 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
347 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
348 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
349 |
"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
|
350 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
351 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
352 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
353 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
354 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
355 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
356 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
357 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
358 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
359 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
360 |
|
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
361 |
showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
362 |
"return the flag which controls if a clock is shown in the launcher" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
363 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
364 |
^ self at:#showClockInLauncher ifAbsentPut:false |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
365 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
366 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
367 |
UserPreferences current showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
368 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
369 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
370 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
371 |
! |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
372 |
|
4331 | 373 |
showClockInLauncher:aBooleanOrNil |
374 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
375 |
||
376 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
377 |
||
378 |
" |
|
379 |
UserPreferences current showClockInLauncher:false. |
|
380 |
NewLauncher open. |
|
381 |
||
382 |
UserPreferences current showClockInLauncher:true. |
|
383 |
NewLauncher open. |
|
384 |
" |
|
385 |
||
386 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
387 |
! |
|
388 |
||
3347 | 389 |
syntaxColoring |
3360 | 390 |
"return the flag which controls syntax coloring (in the browsers)" |
391 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
392 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 393 |
|
394 |
" |
|
395 |
UserPreferences current syntaxColoring |
|
396 |
" |
|
397 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
398 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 399 |
! |
400 |
||
401 |
syntaxColoring:aBoolean |
|
3360 | 402 |
"turn on/off syntaxColoring (in the browsers)." |
403 |
||
3347 | 404 |
^ self at:#syntaxColoring put:aBoolean |
405 |
||
3357 | 406 |
" |
407 |
UserPreferences current syntaxColoring:true |
|
408 |
UserPreferences current syntaxColoring:false |
|
409 |
" |
|
410 |
||
3347 | 411 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 412 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
3409 | 413 |
! |
414 |
||
3875
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
415 |
useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
416 |
"using new or old change browser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
417 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
418 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
419 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
420 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
421 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
422 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
423 |
useNewChangesBrowser:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
424 |
"using new or old changeBrowser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
425 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
426 |
^ self at:#useNewChangesBrowser put:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
427 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
428 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
429 |
UserPreferences current useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
430 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
431 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
432 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
433 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
434 |
|
3409 | 435 |
useNewInspector |
436 |
"using new or old inspector" |
|
437 |
||
438 |
^ self at:#useNewInspector ifAbsentPut:false |
|
3883 | 439 |
|
440 |
" |
|
441 |
UserPreferences current useNewInspector |
|
442 |
" |
|
443 |
||
444 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
3409 | 445 |
! |
446 |
||
447 |
useNewInspector:aBoolean |
|
448 |
"using new or old inspector" |
|
449 |
||
450 |
^ self at:#useNewInspector put:aBoolean |
|
451 |
||
452 |
" |
|
453 |
UserPreferences current useNewInspector |
|
454 |
" |
|
4343 | 455 |
! |
456 |
||
457 |
useNewVersionDiffBrowser |
|
458 |
"using new or old version diff viewer" |
|
459 |
||
460 |
^ self at:#useNewVersionDiffBrowser ifAbsentPut:false |
|
461 |
||
462 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
463 |
! |
|
464 |
||
465 |
useNewVersionDiffBrowser:aBoolean |
|
466 |
"using new or old useNewVersionDiffBrowser" |
|
467 |
||
468 |
^ self at:#useNewVersionDiffBrowser put:aBoolean |
|
469 |
||
470 |
" |
|
471 |
UserPreferences current useNewVersionDiffBrowser |
|
472 |
" |
|
473 |
||
474 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
3360 | 475 |
! ! |
476 |
||
5236 | 477 |
!UserPreferences methodsFor:'accessing-syntaxColoring prefs'! |
3360 | 478 |
|
479 |
argumentIdentifierColor |
|
480 |
"the color used for argument identifiers; |
|
481 |
If syntaxColoring is turned on." |
|
482 |
||
483 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
484 |
||
485 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
486 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
487 |
! |
|
488 |
||
489 |
argumentIdentifierEmphasis |
|
490 |
"the emphasis used for argument identifiers; |
|
491 |
If syntaxColoring is turned on." |
|
492 |
||
493 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
494 |
||
495 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
496 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
497 |
! |
|
498 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
499 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
500 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
501 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
502 |
|
4336 | 503 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
504 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
505 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
506 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
507 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
508 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
509 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
510 |
|
4628 | 511 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
512 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
513 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
514 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
515 |
|
3360 | 516 |
booleanConstantColor |
517 |
"the color used for boolean constants; |
|
518 |
If syntaxColoring is turned on." |
|
519 |
||
520 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
521 |
||
522 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
523 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
524 |
! |
|
525 |
||
526 |
booleanConstantEmphasis |
|
527 |
"the emphasis used for boolean constants; |
|
528 |
If syntaxColoring is turned on." |
|
529 |
||
530 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
531 |
||
532 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
533 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
534 |
! |
|
535 |
||
3361 | 536 |
bracketColor |
537 |
"the color used for brackets; |
|
538 |
If syntaxColoring is turned on." |
|
539 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
540 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 541 |
|
542 |
" |
|
543 |
self current at:#bracketColor put:Color red. |
|
544 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
545 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
546 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
547 |
self current bracketEmphasis |
3361 | 548 |
" |
549 |
||
550 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
551 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
552 |
! |
|
553 |
||
554 |
bracketEmphasis |
|
555 |
"the emphasis used for brackets; |
|
556 |
If syntaxColoring is turned on." |
|
557 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
558 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 559 |
|
560 |
" |
|
561 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
562 |
self current bracketEmphasis |
3361 | 563 |
" |
564 |
||
565 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
566 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
567 |
! |
|
568 |
||
4320 | 569 |
classVariableIdentifierColor |
570 |
"the color used for classVar/classInstVar identifiers |
|
571 |
If syntaxColoring is turned on." |
|
572 |
||
573 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
574 |
||
575 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
576 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
577 |
! |
|
578 |
||
579 |
classVariableIdentifierEmphasis |
|
580 |
"the color used for classVar/classInstVar identifiers |
|
581 |
If syntaxColoring is turned on." |
|
582 |
||
583 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
584 |
||
585 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
586 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
587 |
! |
|
588 |
||
3360 | 589 |
commentColor |
590 |
"the color used for comments; |
|
591 |
If syntaxColoring is turned on." |
|
592 |
||
4628 | 593 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 594 |
|
595 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 596 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 597 |
! |
598 |
||
599 |
commentEmphasis |
|
600 |
"the emphasis used for comments; |
|
601 |
If syntaxColoring is turned on." |
|
602 |
||
4628 | 603 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 604 |
|
605 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
606 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
607 |
! |
|
608 |
||
609 |
constantColor |
|
610 |
"the color used for constants; |
|
611 |
If syntaxColoring is turned on." |
|
612 |
||
4628 | 613 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 614 |
|
615 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
616 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
617 |
! |
|
618 |
||
619 |
constantEmphasis |
|
620 |
"the emphasis used for constants; |
|
621 |
If syntaxColoring is turned on." |
|
622 |
||
623 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
624 |
||
625 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
626 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
627 |
! |
|
628 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
629 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
630 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
631 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
632 |
|
4628 | 633 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
634 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
635 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
636 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
637 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
638 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
639 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
640 |
|
4628 | 641 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
642 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
643 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
644 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
645 |
doesNotUnderstand:aMessage |
4580 | 646 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
647 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
648 |
k := aMessage selector. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
649 |
(self includesKey:k) ifTrue:[ |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
650 |
^ self at:k |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
651 |
]. |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
652 |
((def := self class default) includesKey:k) ifTrue:[ |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
653 |
^ def at:k |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
654 |
]. |
4583 | 655 |
aMessage selector numArgs == 0 ifTrue:[ |
656 |
^ self defaultValue |
|
657 |
]. |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
658 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
659 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
660 |
|
4341 | 661 |
errorColor |
662 |
"the color used for illegal identifiers; |
|
663 |
If syntaxColoring is turned on." |
|
664 |
||
4628 | 665 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 666 |
|
667 |
! |
|
668 |
||
4306 | 669 |
fullSelectorCheck |
670 |
"with fullSelector check, selectors are searched immediately for |
|
671 |
being implemented in the system. This may not be useful on slow machines" |
|
672 |
||
4628 | 673 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 674 |
|
675 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
676 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
677 |
! |
|
678 |
||
4023 | 679 |
globalClassIdentifierColor |
680 |
"the color used for global identifiers which are known to be classes; |
|
681 |
If syntaxColoring is turned on." |
|
682 |
||
683 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
684 |
||
685 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
686 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
687 |
! |
|
688 |
||
689 |
globalClassIdentifierEmphasis |
|
690 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
691 |
If syntaxColoring is turned on." |
|
692 |
||
693 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
694 |
||
695 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
696 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
697 |
! |
|
698 |
||
3360 | 699 |
globalIdentifierColor |
700 |
"the color used for global identifiers; |
|
701 |
If syntaxColoring is turned on." |
|
702 |
||
703 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
704 |
||
705 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
706 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
707 |
! |
|
708 |
||
709 |
globalIdentifierEmphasis |
|
710 |
"the emphasis used for global variable identifiers; |
|
711 |
If syntaxColoring is turned on." |
|
712 |
||
713 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
714 |
||
715 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
716 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
717 |
! |
|
718 |
||
719 |
hereColor |
|
720 |
"the color used for the here pseudoVariable; |
|
721 |
If syntaxColoring is turned on." |
|
722 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
723 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 724 |
|
725 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
726 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
727 |
! |
|
728 |
||
729 |
hereEmphasis |
|
730 |
"the emphasis used for the hre special variable; |
|
731 |
If syntaxColoring is turned on." |
|
732 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
733 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 734 |
|
735 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
736 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
737 |
! |
|
738 |
||
739 |
identifierColor |
|
740 |
"the color used for other identifiers; |
|
741 |
If syntaxColoring is turned on." |
|
742 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
743 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 744 |
|
3362 | 745 |
" |
746 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
747 |
UserPreferences current at:#identifierColor put:Color black. |
|
748 |
" |
|
749 |
||
3360 | 750 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 751 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 752 |
! |
753 |
||
754 |
identifierEmphasis |
|
755 |
"the emphasis used for other identifiers; |
|
756 |
If syntaxColoring is turned on." |
|
757 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
758 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 759 |
|
760 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
761 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
762 |
! |
|
763 |
||
3378 | 764 |
instVarIdentifierColor |
3377 | 765 |
"the color used for instance variable identifiers; |
766 |
If syntaxColoring is turned on." |
|
767 |
||
3378 | 768 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 769 |
|
770 |
" |
|
3378 | 771 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
772 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
773 |
UserPreferences current instVarIdentifierColor |
|
3377 | 774 |
" |
775 |
||
776 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 777 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 778 |
! |
779 |
||
3378 | 780 |
instVarIdentifierEmphasis |
3377 | 781 |
"the emphais used for instance variable identifiers; |
782 |
If syntaxColoring is turned on." |
|
783 |
||
3378 | 784 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 785 |
|
786 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 787 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 788 |
! |
789 |
||
3360 | 790 |
localIdentifierColor |
791 |
"the color used for local variable identifiers; |
|
792 |
If syntaxColoring is turned on." |
|
793 |
||
794 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
795 |
||
3362 | 796 |
" |
797 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
798 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
799 |
" |
|
800 |
||
3360 | 801 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 802 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 803 |
! |
804 |
||
805 |
localIdentifierEmphasis |
|
806 |
"the emphais used for local variable identifiers; |
|
807 |
If syntaxColoring is turned on." |
|
808 |
||
809 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
810 |
||
811 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
812 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
813 |
! |
|
814 |
||
815 |
methodSelectorColor |
|
816 |
"the color used for a methods selector pattern; |
|
817 |
If syntaxColoring is turned on." |
|
818 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
819 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 820 |
|
821 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
822 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
823 |
! |
|
824 |
||
825 |
methodSelectorEmphasis |
|
826 |
"the emphasis used for a methods selector pattern; |
|
827 |
If syntaxColoring is turned on." |
|
828 |
||
4628 | 829 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 830 |
|
831 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
832 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
833 |
! |
|
834 |
||
4076 | 835 |
returnColor |
836 |
"the color used for the return expression; |
|
837 |
If syntaxColoring is turned on." |
|
838 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
839 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 840 |
|
841 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
842 |
! |
|
843 |
||
844 |
returnEmphasis |
|
845 |
"the emphasis used for returns; |
|
846 |
If syntaxColoring is turned on." |
|
847 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
848 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 849 |
|
850 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
851 |
! |
|
852 |
||
3360 | 853 |
selectorColor |
854 |
"the color used for message selectors; |
|
855 |
If syntaxColoring is turned on." |
|
856 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
857 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 858 |
|
859 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
860 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
861 |
! |
|
862 |
||
863 |
selectorEmphasis |
|
864 |
"the emphasis used for message selectors; |
|
865 |
If syntaxColoring is turned on." |
|
866 |
||
4628 | 867 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 868 |
|
869 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
870 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
871 |
! |
|
872 |
||
873 |
selfColor |
|
874 |
"the color used for the self pseudoVariable; |
|
875 |
If syntaxColoring is turned on." |
|
876 |
||
877 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
878 |
||
879 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
880 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
881 |
! |
|
882 |
||
883 |
selfEmphasis |
|
884 |
"the emphasis used for the self pseudoVariable; |
|
885 |
If syntaxColoring is turned on." |
|
886 |
||
887 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
888 |
||
889 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
890 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
891 |
! |
|
892 |
||
893 |
stringColor |
|
894 |
"the color used for string constants; |
|
895 |
If syntaxColoring is turned on." |
|
896 |
||
897 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
898 |
||
899 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
900 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
901 |
! |
|
902 |
||
903 |
stringEmphasis |
|
904 |
"the emphasis used for string constants; |
|
905 |
If syntaxColoring is turned on." |
|
906 |
||
907 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
908 |
||
909 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
910 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
911 |
! |
|
912 |
||
913 |
superColor |
|
914 |
"the color used for the super pseudoVariable; |
|
915 |
If syntaxColoring is turned on." |
|
916 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
917 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 918 |
|
919 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
920 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
921 |
! |
|
922 |
||
923 |
superEmphasis |
|
924 |
"the emphasis used for the super pseudoVariable; |
|
925 |
If syntaxColoring is turned on." |
|
926 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
927 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 928 |
|
929 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
930 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
931 |
! |
|
932 |
||
933 |
symbolColor |
|
934 |
"the color used for symbol constants; |
|
935 |
If syntaxColoring is turned on." |
|
936 |
||
937 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
938 |
||
939 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
940 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
941 |
! |
|
942 |
||
943 |
symbolEmphasis |
|
944 |
"the emphasis used for symbol constants; |
|
945 |
If syntaxColoring is turned on." |
|
946 |
||
947 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
948 |
||
949 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
950 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 951 |
! |
952 |
||
953 |
thisContextColor |
|
3360 | 954 |
"the color used for the thisContext pseudoVariable; |
955 |
If syntaxColoring is turned on." |
|
956 |
||
3355 | 957 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 958 |
|
959 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 960 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 961 |
! |
962 |
||
963 |
thisContextEmphasis |
|
3360 | 964 |
"the emphasis used for the thisContext pseudoVariable; |
965 |
If syntaxColoring is turned on." |
|
966 |
||
3355 | 967 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 968 |
|
969 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 970 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 971 |
! |
972 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
973 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
974 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
975 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
976 |
|
4628 | 977 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
978 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
979 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
980 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
981 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
982 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
983 |
|
4628 | 984 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
985 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
986 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
987 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
988 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
989 |
|
3354 | 990 |
unknownIdentifierColor |
3360 | 991 |
"the color used for unknown identifiers; |
992 |
If syntaxColoring is turned on." |
|
993 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
994 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 995 |
|
3361 | 996 |
" |
997 |
self current at:#unknownIdentifierColor put:Color red. |
|
998 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
999 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1000 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1001 |
self current unknownIdentifierEmphasis |
3361 | 1002 |
" |
1003 |
||
3354 | 1004 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1005 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1006 |
! |
1007 |
||
1008 |
unknownIdentifierEmphasis |
|
3360 | 1009 |
"the emphasis used for unknown identifiers; |
1010 |
If syntaxColoring is turned on." |
|
1011 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1012 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1013 |
|
1014 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1015 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1016 |
! ! |
1017 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1018 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1019 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1020 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1021 |
"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
|
1022 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1023 |
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
|
1024 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1025 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1026 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1027 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1028 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1029 |
"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
|
1030 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1031 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1032 |
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
|
1033 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4344 | 1034 |
self at:#errorColor put:Color black. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1035 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1036 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1037 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1038 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1039 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1040 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1041 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1042 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1043 |
"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
|
1044 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1045 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1046 |
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
|
1047 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1048 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1049 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1050 |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1051 |
!UserPreferences methodsFor:'default value'! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1052 |
|
4583 | 1053 |
defaultValue |
1054 |
"the defaultValue for non-existing keys" |
|
1055 |
||
1056 |
^ false |
|
1057 |
! |
|
1058 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1059 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1060 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1061 |
|
4583 | 1062 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1063 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1064 |
|
3347 | 1065 |
!UserPreferences class methodsFor:'documentation'! |
1066 |
||
1067 |
version |
|
5236 | 1068 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.52 2000-02-05 14:27:20 cg Exp $' |
3347 | 1069 |
! ! |