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