UserPreferences.st
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--
return false for nonexisting keys
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1998 by eXept Software AG
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
IdentityDictionary subclass:#UserPreferences
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    16
	classVariableNames:'CurrentPreferences DefaultPreferences'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'System-Support'
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1998 by eXept Software AG
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    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
0f0288822acd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
    43
3359
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    44
    This will eventually keep track of ALL user preferences.
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    45
    (which are currently spread over the system).
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    46
    For now, only a few preferences are found here - but this
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
    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
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
    68
        #errorColor                     (Color red)
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
    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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
    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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    CurrentPreferences isNil ifTrue:[
4330
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   102
        CurrentPreferences := self new.
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   103
        CurrentPreferences declareAllFrom:(self default).
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    "Created: / 31.3.1998 / 13:43:03 / cg"
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   108
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   109
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   110
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   111
    DefaultPreferences isNil ifTrue:[
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   112
        self initializeDefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   113
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   114
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   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
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   119
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   120
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   121
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   122
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   123
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   124
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   125
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   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
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   184
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   185
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   186
"/ warning, the strings below are presented to the user
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   187
"/ as the syntax-color boxes comboList - however, they are
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   188
"/ also used (without separators) as key into myself.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   189
"/ Therefore, do not change the strings below.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   190
"/ I know - this is bad coding ....
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   191
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   192
^#(
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   193
'Argument Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   194
'Boolean Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   195
'Bracket Color'
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   196
'Class Variable Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   197
'Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   198
'Comment Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   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
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   201
'Here Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   202
'Identifier Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   203
'InstVar Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   204
'Local Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   205
'Method Selector Color'
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   206
'Return Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   207
'Selector Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   208
'Self Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   209
'String Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   210
'Super Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   211
'Symbol Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   212
'This Context Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   213
'Unknown Identifier Color'
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   214
'Unimplemented Selector Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   215
)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   216
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   217
    "Modified: / 5.1.1980 / 00:48:09 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   220
!UserPreferences methodsFor:'accessing - pref''d tools'!
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   221
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   222
changesBrowserClass
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   223
    self useNewChangesBrowser ifTrue:[
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   224
        ^ NewChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   225
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   226
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   227
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   228
    "Created: / 17.10.1998 / 14:37:46 / cg"
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   229
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   230
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   231
!UserPreferences methodsFor:'accessing - prefs'!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
   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
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   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
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   257
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   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
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   290
showClockInLauncher:aBooleanOrNil
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   291
    "set/clear the flag which controls if a clock is shown in the launcher"
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   292
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   293
    ^ self at:#showClockInLauncher put:aBooleanOrNil
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   294
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   295
    "
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   296
     UserPreferences current showClockInLauncher:false.
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   297
     NewLauncher open.   
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   298
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   299
     UserPreferences current showClockInLauncher:true.
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   300
     NewLauncher open.   
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   301
    "
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   302
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   303
    "Modified: / 11.9.1998 / 00:09:59 / cg"
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   304
!
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   305
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   307
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   319
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   320
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   323
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   324
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   325
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   326
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   327
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   329
    "Modified: / 1.4.1998 / 13:23:03 / cg"
3409
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   330
!
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   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
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   352
useNewInspector
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   353
    "using new or old inspector"
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   354
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   355
    ^ self at:#useNewInspector ifAbsentPut:false
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   356
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   357
    "
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   358
     UserPreferences current useNewInspector
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   359
    "
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   360
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   361
    "Modified: / 17.10.1998 / 14:45:12 / cg"
3409
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   362
!
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   363
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   364
useNewInspector:aBoolean
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   365
    "using new or old inspector"
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   366
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   367
    ^ self at:#useNewInspector put:aBoolean
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   368
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   369
    "
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   370
     UserPreferences current useNewInspector
67d3427d4857 added #useNewInspector
Claus Gittinger <cg@exept.de>
parents: 3378
diff changeset
   371
    "
4343
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   372
!
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   373
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   374
useNewVersionDiffBrowser
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   375
    "using new or old version diff viewer"
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   376
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   377
    ^ self at:#useNewVersionDiffBrowser ifAbsentPut:false
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   378
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   379
    "Modified: / 13.10.1998 / 15:53:05 / cg"
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   380
!
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   381
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   382
useNewVersionDiffBrowser:aBoolean
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   383
    "using new or old useNewVersionDiffBrowser"
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   384
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   385
    ^ self at:#useNewVersionDiffBrowser put:aBoolean
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   386
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   387
    "
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   388
     UserPreferences current useNewVersionDiffBrowser
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   389
    "
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   390
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
   391
    "Modified: / 13.10.1998 / 15:53:21 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   392
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   393
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   394
!UserPreferences methodsFor:'accessing - syntaxColoring prefs'!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   395
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   396
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   397
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   398
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   399
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   400
    ^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   401
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   402
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   403
    "Modified: / 1.4.1998 / 13:19:58 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   404
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   405
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   406
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   407
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   408
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   409
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   410
    ^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   411
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   412
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   413
    "Modified: / 1.4.1998 / 13:19:55 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   414
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
1e9719956923 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   433
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   434
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   435
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   436
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   437
    ^ self at:#booleanConstantColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   438
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   439
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   440
    "Modified: / 1.4.1998 / 13:20:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   441
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   442
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   443
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   444
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   445
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   446
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   447
    ^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   448
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   449
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   450
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   451
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   452
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   453
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   454
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   455
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   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
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   458
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   459
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   460
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   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
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   465
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   466
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   467
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   468
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   469
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   470
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   471
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   472
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   473
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   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
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   476
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   477
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   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
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   480
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   481
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   482
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   483
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   484
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   485
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   486
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   487
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   488
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   489
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   490
    ^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   491
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   492
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   493
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   494
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   495
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   496
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   497
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   498
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   499
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   500
    ^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   501
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   502
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   503
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   504
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   505
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   506
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   507
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   508
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   509
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   510
    ^ self at:#commentColor ifAbsentPut:[self default at:#commentColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   511
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   512
    "Created: / 31.3.1998 / 15:10:23 / cg"
3832
3cb925b0c2e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3827
diff changeset
   513
    "Modified: / 11.9.1998 / 19:24:04 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   514
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   515
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   516
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   517
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   518
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   519
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   520
    ^ self at:#commentEmphasis ifAbsentPut:[self default at:#commentEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   521
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   522
    "Created: / 31.3.1998 / 15:09:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   523
    "Modified: / 1.4.1998 / 13:25:53 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   524
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   525
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   526
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   527
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   528
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   529
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   530
    ^ self at:#constantColor ifAbsentPut:[self default at:#constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   531
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   532
    "Created: / 31.3.1998 / 18:13:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   533
    "Modified: / 1.4.1998 / 13:20:37 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   534
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   535
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   536
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   537
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   538
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   539
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   540
    ^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   541
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   542
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   543
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   544
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   575
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   576
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   577
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   578
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   579
    ^ self at:#errorColor ifAbsentPut:[self default at:#errorColor]
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   580
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   581
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   582
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   583
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   584
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   585
     being implemented in the system. This may not be useful on slow machines"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   586
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   587
    ^ self at:#fullSelectorCheck ifAbsentPut:[self default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   588
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   589
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   590
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   591
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   592
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   593
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   594
    "the color used for global identifiers which are known to be classes;
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   595
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   596
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   597
    ^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   598
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   599
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   600
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   601
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   602
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   603
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   604
    "the emphasis used for global variable identifiers which are known to be classes;
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   605
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   606
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   607
    ^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   608
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   609
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   610
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   611
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   612
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   613
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   614
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   615
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   616
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   617
    ^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   618
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   619
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   620
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   621
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   622
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   623
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   624
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   625
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   626
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   627
    ^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   628
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   629
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   630
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   631
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   632
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   633
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   634
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   635
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   638
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   639
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   640
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   641
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   642
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   643
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   644
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   645
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   648
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   649
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   650
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   651
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   652
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   653
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   654
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   655
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   658
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   659
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   660
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   661
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   662
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   663
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   664
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   665
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   666
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   667
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   668
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   669
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   670
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   673
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   674
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   675
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   676
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   677
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   678
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   679
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   680
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   681
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   682
    ^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   683
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   684
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   685
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   686
     UserPreferences current at:#instVarIdentifierColor put:Color black.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   687
     UserPreferences current instVarIdentifierColor 
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   688
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   689
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   690
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   691
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   692
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   693
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   694
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   695
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   696
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   697
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   698
    ^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   699
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   700
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
   701
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   702
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   703
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   704
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   705
    "the color used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   706
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   707
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   708
    ^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   709
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   710
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   711
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   712
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   713
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   714
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   715
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   716
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   717
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   718
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   719
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   720
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   721
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   722
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   723
    ^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   724
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   725
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   726
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   727
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   728
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   729
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   730
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   731
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   734
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   735
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   736
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   737
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   738
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   739
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   740
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   741
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   742
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   743
    ^ self at:#methodSelectorEmphasis ifAbsentPut:[self default at:#methodSelectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   744
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   745
    "Created: / 31.3.1998 / 15:11:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   746
    "Modified: / 1.4.1998 / 13:24:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   747
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   748
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   749
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   750
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   751
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   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
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   754
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   755
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   756
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   757
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   758
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   759
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   760
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   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
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   763
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   764
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   765
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   766
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   767
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   768
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   769
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   772
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   773
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   774
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   775
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   776
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   777
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   778
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   779
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   780
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   781
    ^ self at:#selectorEmphasis ifAbsentPut:[self default at:#selectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   782
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   783
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   784
    "Modified: / 1.4.1998 / 13:23:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   785
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   786
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   787
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   788
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   789
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   790
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   791
    ^ self at:#selfColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   792
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   793
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   794
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   795
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   796
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   797
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   798
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   799
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   800
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   801
    ^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   802
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   803
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   804
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   805
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   806
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   807
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   808
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   809
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   810
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   811
    ^ self at:#stringColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   812
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   813
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   814
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   815
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   816
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   817
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   818
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   819
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   820
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   821
    ^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   822
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   823
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   824
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   825
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   826
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   827
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   828
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   829
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   832
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   833
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   834
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   835
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   836
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   837
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   838
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   839
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   842
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   843
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   844
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   845
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   846
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   847
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   848
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   849
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   850
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   851
    ^ self at:#symbolColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   852
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   853
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   854
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   855
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   856
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   857
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   858
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   859
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   860
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   861
    ^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   862
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   863
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   864
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   865
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   866
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   867
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   868
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   869
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   870
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   871
    ^ self at:#thisContextColor ifAbsentPut:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   872
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   873
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   874
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   875
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   876
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   877
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   878
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   879
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   880
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   881
    ^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   882
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
   883
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   884
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   885
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   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
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   904
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   905
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   906
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   907
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   908
    ^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   909
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   910
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   911
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   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
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   916
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   917
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   918
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   919
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   920
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   921
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   922
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   923
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   924
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   925
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   926
    ^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   927
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
   928
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   929
    "Modified: / 1.4.1998 / 13:22:45 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   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
262e182a394f ca wants all black
Claus Gittinger <cg@exept.de>
parents: 4343
diff changeset
   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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
! !