UserPreferences.st
author penk
Wed, 25 Sep 2002 10:42:51 +0200
changeset 6770 b9a5aa95c517
parent 6769 8cd2d038bfc6
child 6813 b03e92a48a76
permissions -rw-r--r--
*** empty log message ***
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
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
     3
	      All Rights Reserved
3347
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
5516
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    14
"{ Package: 'stx:libbasic' }"
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    15
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
IdentityDictionary subclass:#UserPreferences
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    18
	classVariableNames:'CurrentPreferences DefaultPreferences'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'System-Support'
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!UserPreferences class methodsFor:'documentation'!
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
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 1998 by eXept Software AG
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    28
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
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
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
documentation
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
"
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    42
    A Dictionary for user preference values.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    43
    For non-existing keys, either a defaultValue (false),
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    44
    or the value from a defaultDictionary is returned.
3353
0f0288822acd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
    45
3359
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    46
    This will eventually keep track of ALL user preferences.
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    47
    (which are currently spread over the system).
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    48
    For now, only a few preferences are found here - but this
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    49
    will change over time.
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    50
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    51
    UserPreferences current at:#foo
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    55
!UserPreferences class methodsFor:'initialization'!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    56
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
    57
initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    58
    DefaultPreferences := self new.
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    59
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    60
    #(
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    61
	#useNewChangesBrowser           false
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    62
	#useNewInspector                false
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    63
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    64
	#autoFormatting                 false
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    65
	#syntaxColoring                 true
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    66
	#fullSelectorCheck              false
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    67
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    68
	#defaultSyntaxColor             (Color black)
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    69
	#defaultSyntaxEmphasis          normal
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    70
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    71
	#errorColor                     (Color red)
4343
f8a422affe17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4342
diff changeset
    72
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    73
	#commentColor                   (Color 12.5 12.5 100)
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    74
	#commentEmphasis                normal
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    75
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    76
	#methodSelectorEmphasis         bold
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    77
	#selectorEmphasis               bold
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    78
	#unimplementedSelectorColor     (Color red)
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    79
	#unimplementedSelectorEmphasis  normal
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
    80
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    81
"/ I prefer red-underwave over red identifier ...
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    82
"/        #badIdentifierColor             (Color red)
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    83
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    84
	#constantColor                  (Color 25 0 0)
4330
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
    85
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    86
	#showClockInLauncher            true
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    87
     ) pairWiseDo:[:k :v |
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
    88
	DefaultPreferences at:k put:v decodeAsLiteralArray.
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    89
    ].
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    90
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    91
"/ I prefer red-underwave over red identifier ...
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    92
    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
    93
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    94
    "
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
    95
     self initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    96
    "
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    97
5236
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
    98
    "Modified: / 4.2.2000 / 20:06:53 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    99
! !
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   100
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    CurrentPreferences isNil ifTrue:[
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   105
	CurrentPreferences := self new.
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   106
	CurrentPreferences declareAllFrom:(self default).
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    "Created: / 31.3.1998 / 13:43:03 / cg"
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   111
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   112
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   113
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   114
    DefaultPreferences isNil ifTrue:[
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   115
	self initializeDefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   116
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   117
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   118
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   119
    "
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   120
     DefaultPreferences := nil.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   121
    "
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   122
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   123
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   124
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   125
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   126
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   127
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   128
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   129
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   130
syntaxColorKeys
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   131
    "returns the keys of syntax color items"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   132
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   133
    ^#(
5712
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   134
	argumentIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   135
	  argumentIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   136
	booleanConstantColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   137
	  booleanConstantEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   138
	bracketColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   139
	  bracketEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   140
	classVariableIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   141
	  classVariableIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   142
	constantColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   143
	  constantEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   144
	commentColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   145
	  commentEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   146
	defaultSyntaxColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   147
	  defaultSyntaxEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   148
	errorColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   149
	globalIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   150
	  globalIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   151
	globalClassIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   152
	  globalClassIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   153
	hereColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   154
	  hereEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   155
	identifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   156
	  identifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   157
	instVarIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   158
	  instVarIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   159
	localIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   160
	  localIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   161
	methodSelectorColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   162
	  methodSelectorEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   163
	returnColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   164
	  returnEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   165
	selectorColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   166
	  selectorEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   167
	selfColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   168
	  selfEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   169
	stringColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   170
	  stringEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   171
	superColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   172
	  superEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   173
	symbolColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   174
	  symbolEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   175
	thisContextColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   176
	  thisContextEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   177
	unknownIdentifierColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   178
	  unknownIdentifierEmphasis
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   179
	unimplementedSelectorColor
c723e5d4cd83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5661
diff changeset
   180
	  unimplementedSelectorEmphasis
4342
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
    "Modified: / 5.1.1980 / 00:48:09 / cg"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   184
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   185
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   186
syntaxColorNames
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   187
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   188
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   189
"/ warning, the strings below are presented to the user
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   190
"/ as the syntax-color boxes comboList - however, they are
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   191
"/ also used (without separators) as key into myself.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   192
"/ Therefore, do not change the strings below.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   193
"/ I know - this is bad coding ....
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   194
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   195
^#(
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   196
'Argument Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   197
'Boolean Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   198
'Bracket Color'
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   199
'Class Variable Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   200
'Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   201
'Comment Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   202
'Global Identifier Color'
4024
3a223c79e41c added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4023
diff changeset
   203
'Global Class Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   204
'Here Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   205
'Identifier Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   206
'InstVar Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   207
'Local Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   208
'Method Selector Color'
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   209
'Return Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   210
'Selector Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   211
'Self Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   212
'String Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   213
'Super Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   214
'Symbol Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   215
'This Context Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   216
'Unknown Identifier Color'
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   217
'Unimplemented Selector Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   218
)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   219
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   220
    "Modified: / 5.1.1980 / 00:48:09 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   223
!UserPreferences class methodsFor:'accessing defaultPrefs'!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   224
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   225
fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   226
    ^ self current fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   227
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   228
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   229
     UserPreferences fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   230
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   231
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   232
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   233
systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   234
    ^ self current systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   235
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   236
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   237
     UserPreferences systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   238
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   239
!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   240
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   241
versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   242
    ^ self current versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   243
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   244
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   245
     UserPreferences versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   246
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   247
! !
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   248
5236
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   249
!UserPreferences methodsFor:'accessing-pref''d tools'!
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   250
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   251
at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   252
    |classNameToCheck classToCheck|
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   253
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   254
    value == true ifTrue:[
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   255
        key == #useNewVersionDiffBrowser ifTrue:[
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   256
            classNameToCheck := #'VersionDiffBrowser'.
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   257
        ].
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   258
        key == #useNewChangesBrowser ifTrue:[
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   259
            classNameToCheck := #'NewChangesBrowser'.
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   260
        ].
6762
95b5545bbe7c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6761
diff changeset
   261
        key == #useNewFileBrowser ifTrue:[
6770
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   262
            classNameToCheck := #'FileBrowserV2'.
6761
1dca917ed43b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6730
diff changeset
   263
        ].
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   264
        key == #useNewSystemBrowser ifTrue:[
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   265
            classNameToCheck := #'NewSystemBrowser'.
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   266
        ].
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   267
        key == #useNewInspector ifTrue:[
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   268
            classNameToCheck := #'NewInspector::NewInspectorView'.
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   269
        ].
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   270
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   271
5791
8e96850a568d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5790
diff changeset
   272
    classNameToCheck notNil ifTrue:[
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   273
        classToCheck := Smalltalk at:classNameToCheck.
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   274
        classToCheck isNil ifTrue:[
6770
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   275
            ('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR.
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   276
        ] ifFalse:[
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   277
            Autoload autoloadFailedSignal handle:[:ex |
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   278
                'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR.
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   279
            ] do:[
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   280
                classToCheck autoload.
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   281
            ]
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   282
        ]
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   283
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   284
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   285
    ^ super at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   286
!
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   287
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   288
changesBrowserClass
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   289
    self useNewChangesBrowser ifTrue:[
6767
323056b2a065 care for non-existing classes
Claus Gittinger <cg@exept.de>
parents: 6765
diff changeset
   290
        ^ (NewChangesBrowser ? ChangesBrowser)
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   291
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   292
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   293
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   294
    "Created: / 17.10.1998 / 14:37:46 / cg"
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   295
!
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   296
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   297
fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   298
    self useNewFileBrowser ifTrue:[
6767
323056b2a065 care for non-existing classes
Claus Gittinger <cg@exept.de>
parents: 6765
diff changeset
   299
        ^ (FileBrowserV2 ? FileBrowser)
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   300
    ].
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   301
    ^ FileBrowser
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   302
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   303
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   304
inspectorClassSetting
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   305
    self useNewInspector ifTrue:[
6767
323056b2a065 care for non-existing classes
Claus Gittinger <cg@exept.de>
parents: 6765
diff changeset
   306
        ^ (NewInspector::NewInspectorView ? InspectorView)
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   307
    ].
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   308
    ^ InspectorView
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   309
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   310
    "Modified: / 12.11.2001 / 15:47:35 / cg"
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   311
    "Created: / 12.11.2001 / 15:49:00 / cg"
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   312
!
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   313
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   314
systemBrowserClass
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   315
    self useNewSystemBrowser ifTrue:[
6767
323056b2a065 care for non-existing classes
Claus Gittinger <cg@exept.de>
parents: 6765
diff changeset
   316
        ^ (NewSystemBrowser ? SystemBrowser)
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   317
    ].
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   318
    ^ SystemBrowser
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   319
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   320
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   321
useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   322
    "using new or old change browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   323
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   324
    ^ self at:#useNewChangesBrowser ifAbsentPut:false
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   325
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   326
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   327
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   328
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   329
useNewChangesBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   330
    "using new or old changeBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   331
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   332
    self at:#useNewChangesBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   333
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   334
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   335
     UserPreferences current useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   336
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   337
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   338
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   339
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   340
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   341
useNewFileBrowser
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   342
    "using new or old version diff viewer"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   343
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   344
    ^ self at:#useNewFileBrowser ifAbsentPut:false
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   345
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   346
    "Modified: / 13.10.1998 / 15:53:05 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   347
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   348
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   349
useNewFileBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   350
    "using new or old file browser"
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   351
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   352
    self at:#useNewFileBrowser put:aBoolean
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   353
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   354
    "
6769
8cd2d038bfc6 *** empty log message ***
penk
parents: 6767
diff changeset
   355
     UserPreferences current useNewFileBrowser
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   356
    "
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   357
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   358
    "Modified: / 13.10.1998 / 15:53:21 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   359
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   360
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   361
useNewFileDialog
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   362
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   363
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   364
    ^ self at:#useNewFileDialog ifAbsentPut:false
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   365
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   366
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   367
useNewFileDialog:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   368
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   369
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   370
    self at:#useNewFileDialog put:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   371
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   372
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   373
     UserPreferences current useNewFileDialog:true
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   374
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   375
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   376
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   377
useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   378
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   379
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   380
    ^ self at:#useNewInspector ifAbsentPut:false
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   381
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   382
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   383
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   384
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   385
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   386
    "Modified: / 17.10.1998 / 14:45:12 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   387
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   388
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   389
useNewInspector:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   390
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   391
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   392
    self at:#useNewInspector put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   393
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   394
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   395
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   396
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   397
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   398
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   399
useNewSystemBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   400
    "using new or old system browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   401
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   402
    ^ self at:#useNewSystemBrowser ifAbsentPut:false
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   403
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   404
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   405
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   406
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   407
useNewSystemBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   408
    "using new or old systemBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   409
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   410
    self at:#useNewSystemBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   411
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   412
    "
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   413
     UserPreferences current useNewSystemBrowser:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   414
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   415
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   416
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   417
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   418
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   419
useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   420
    "using new or old version diff viewer"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   421
6666
26396997886c default is to use the new versionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 6525
diff changeset
   422
    ^ self at:#useNewVersionDiffBrowser ifAbsentPut:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   423
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   424
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   425
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   426
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   427
useNewVersionDiffBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   428
    "using new or old versionDiffBrowser"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   429
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   430
    self at:#useNewVersionDiffBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   431
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   432
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   433
     UserPreferences current useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   434
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   435
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   436
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   437
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   438
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   439
versionDiffViewerClass
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   440
    self useNewVersionDiffBrowser ifTrue:[
6770
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
   441
        ^ (VersionDiffBrowser ? DiffTextView)
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   442
    ].
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   443
    ^ DiffTextView
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   444
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   445
5236
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   446
!UserPreferences methodsFor:'accessing-prefs'!
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   447
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   448
autoFormatting
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   449
    "return the flag which controls automatic formatting of code (in some browsers)
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   450
     Notice, the regular browser does not (yet) do automatic formating."
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   451
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   452
    ^ self at:#autoFormatting ifAbsentPut:false
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   453
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   454
    "
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   455
     UserPreferences current autoFormatting
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   456
    "
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   457
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   458
    "Created: / 4.2.2000 / 20:08:08 / cg"
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   459
    "Modified: / 5.2.2000 / 15:38:33 / cg"
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   460
!
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   461
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   462
autoFormatting:aBoolean
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   463
    "turn on/off automatic formatting of code (in some browsers);
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   464
     Notice, the regular browser does not (yet) do automatic formating."
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   465
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   466
    ^ self at:#autoFormatting put:aBoolean
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   467
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   468
    "
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   469
     UserPreferences current autoFormatting:true
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   470
     UserPreferences current autoFormatting:false
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   471
    "
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   472
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   473
    "Created: / 4.2.2000 / 20:08:26 / cg"
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   474
    "Modified: / 5.2.2000 / 15:38:20 / cg"
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   475
!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
   476
5071
ps
parents: 4684
diff changeset
   477
beepEnabled
ps
parents: 4684
diff changeset
   478
    "return the flag which controls the beeper"
ps
parents: 4684
diff changeset
   479
ps
parents: 4684
diff changeset
   480
    ^ self at:#beepEnabled ifAbsentPut:true
ps
parents: 4684
diff changeset
   481
ps
parents: 4684
diff changeset
   482
    "
ps
parents: 4684
diff changeset
   483
     UserPreferences current beepEnabled
ps
parents: 4684
diff changeset
   484
    "
ps
parents: 4684
diff changeset
   485
ps
parents: 4684
diff changeset
   486
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
   487
    "Created: / 3.12.1999 / 17:09:49 / ps"
ps
parents: 4684
diff changeset
   488
!
ps
parents: 4684
diff changeset
   489
ps
parents: 4684
diff changeset
   490
beepEnabled:aBoolean
ps
parents: 4684
diff changeset
   491
    "set/clear the flag which controls the beeper"
ps
parents: 4684
diff changeset
   492
ps
parents: 4684
diff changeset
   493
    ^ self at:#beepEnabled put:aBoolean
ps
parents: 4684
diff changeset
   494
ps
parents: 4684
diff changeset
   495
    "
ps
parents: 4684
diff changeset
   496
     UserPreferences current beepEnabled:false
ps
parents: 4684
diff changeset
   497
    "
ps
parents: 4684
diff changeset
   498
ps
parents: 4684
diff changeset
   499
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
   500
    "Created: / 3.12.1999 / 17:10:27 / ps"
ps
parents: 4684
diff changeset
   501
!
ps
parents: 4684
diff changeset
   502
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   503
focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   504
    "return the flag which controls if the keyboard focus should
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   505
     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
   506
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   507
     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
   508
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   509
    ^ self at:#focusFollowsMouse ifAbsent:nil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   510
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   511
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   512
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   513
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   514
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   515
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   516
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   517
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   518
focusFollowsMouse:aBooleanOrNil
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   519
    "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
   520
     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
   521
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   522
     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
   523
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   524
    ^ self at:#focusFollowsMouse put:aBooleanOrNil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   525
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   526
    "
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   527
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   528
     UserPreferences current focusFollowsMouse:false
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   529
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   530
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   531
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   532
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   533
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   534
4396
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   535
functionKeySequences
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   536
    "return the collection of function-key macros.
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   537
     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
   538
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   539
    ^ self at:#functionKeySequences ifAbsentPut:[Dictionary new]
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   540
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   541
    "
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   542
     UserPreferences current functionKeySequences
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   543
    "
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   544
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   545
    "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
   546
!
951890a68aba added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents: 4344
diff changeset
   547
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   548
opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   549
    "return the flag which controls if table column resizing should be done
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   550
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   551
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   552
    ^ self at:#opaqueTableColumnResizing ifAbsentPut:false
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   553
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   554
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   555
     UserPreferences current opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   556
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   557
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   558
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   559
opaqueTableColumnResizing:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   560
    "change the flag which controls if table column resizing should be done
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   561
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   562
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   563
    ^ self at:#opaqueTableColumnResizing put:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   564
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   565
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   566
     UserPreferences current opaqueTableColumnResizing:true
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   567
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   568
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   569
    "Modified: / 11.9.1998 / 00:09:59 / cg"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   570
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   571
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   572
opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   573
    "return the flag which controls if variable panel resizing should be done
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   574
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   575
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   576
    ^ self at:#opaqueVariablePanelResizing ifAbsentPut:false
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   577
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   578
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   579
     UserPreferences current opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   580
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   581
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   582
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   583
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   584
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   585
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   586
opaqueVariablePanelResizing:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   587
    "change the flag which controls if variable panel resizing should be done
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   588
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   589
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   590
    ^ self at:#opaqueVariablePanelResizing put:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   591
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   592
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   593
     UserPreferences current opaqueVariablePanelResizing:true
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   594
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   595
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   596
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   597
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   598
6525
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   599
searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   600
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   601
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   602
    ^ self at:#searchDialogIsModal ifAbsent:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   603
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   604
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   605
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   606
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   607
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   608
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   609
searchDialogIsModal:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   610
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   611
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   612
    ^ self at:#searchDialogIsModal put:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   613
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   614
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   615
     UserPreferences current searchDialogIsModal:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   616
     UserPreferences current searchDialogIsModal:false
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   617
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   618
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   619
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   620
4330
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   621
showClockInLauncher
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   622
    "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
   623
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   624
    ^ self at:#showClockInLauncher ifAbsentPut:false
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   625
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   626
    "
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   627
     UserPreferences current showClockInLauncher
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   628
    "
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   629
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   630
    "Modified: / 11.9.1998 / 00:09:59 / cg"
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   631
!
a90c5a801fdf added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents: 4327
diff changeset
   632
4331
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   633
showClockInLauncher:aBooleanOrNil
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   634
    "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
   635
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   636
    ^ self at:#showClockInLauncher put:aBooleanOrNil
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   637
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   638
    "
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   639
     UserPreferences current showClockInLauncher:false.
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   640
     NewLauncher open.   
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   641
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   642
     UserPreferences current showClockInLauncher:true.
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   643
     NewLauncher open.   
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   644
    "
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   645
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   646
    "Modified: / 11.9.1998 / 00:09:59 / cg"
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   647
!
25267ad7ed8f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4330
diff changeset
   648
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   649
startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   650
    "if true, textDrag is only started when the CTRL-key is down"
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   651
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   652
    ^ self at:#startTextDragWithControl ifAbsent:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   653
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   654
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   655
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   656
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   657
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   658
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   659
startTextDragWithControl:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   660
    "if true, textDrag is only started when the CTRL-key is down"
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   661
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   662
    ^ self at:#startTextDragWithControl put:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   663
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   664
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   665
     UserPreferences current startTextDragWithControl:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   666
     UserPreferences current startTextDragWithControl:false
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   667
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   668
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   669
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   670
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   672
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   673
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
   674
    ^ self at:#syntaxColoring ifAbsentPut:true
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
   680
    "Modified: / 11.9.1998 / 00:09:59 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   684
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   685
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   688
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   689
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   690
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   691
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
   692
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   694
    "Modified: / 1.4.1998 / 13:23:03 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   695
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   696
5236
93251cfe68d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5114
diff changeset
   697
!UserPreferences methodsFor:'accessing-syntaxColoring prefs'!
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   698
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   699
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   700
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   701
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   702
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   703
    ^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   704
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   705
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   706
    "Modified: / 1.4.1998 / 13:19:58 / cg"
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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   709
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   710
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   711
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   712
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   713
    ^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   714
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   715
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   716
    "Modified: / 1.4.1998 / 13:19:55 / cg"
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
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   719
badIdentifierColor
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   720
    "the color used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   721
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   722
4336
1e9719956923 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
   723
    ^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   724
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   725
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   726
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   727
badIdentifierEmphasis
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   728
    "the emphasis used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   729
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   730
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   731
    ^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   732
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   733
    "Modified: / 7.7.1999 / 00:30:00 / cg"
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   734
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
   735
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   736
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   737
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   738
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   739
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   740
    ^ self at:#booleanConstantColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   741
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   742
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   743
    "Modified: / 1.4.1998 / 13:20:07 / cg"
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
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   746
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   747
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   748
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   749
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   750
    ^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   751
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   752
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   753
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   754
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   755
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   756
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   757
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   758
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   759
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   760
    ^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   761
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   762
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   763
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   764
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   765
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   766
     self current bracketColor 
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   767
     self current bracketEmphasis 
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   768
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   769
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   770
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   771
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   772
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   773
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   774
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   775
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   776
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   777
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   778
    ^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   779
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   780
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   781
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   782
     self current bracketEmphasis 
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   783
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   784
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   785
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   786
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   787
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
   788
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   789
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   790
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   791
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   792
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   793
    ^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   794
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   795
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   796
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   797
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   798
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   799
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   800
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   801
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   802
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   803
    ^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   804
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   805
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   806
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   807
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   808
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   809
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   810
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   811
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   812
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   813
    ^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   814
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   815
    "Created: / 31.3.1998 / 15:10:23 / cg"
3832
3cb925b0c2e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3827
diff changeset
   816
    "Modified: / 11.9.1998 / 19:24:04 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   817
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   818
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   819
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   820
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   821
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   822
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   823
    ^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   824
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   825
    "Created: / 31.3.1998 / 15:09:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   826
    "Modified: / 1.4.1998 / 13:25:53 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   827
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   828
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   829
commentEmphasisAndColor
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   830
    ^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor).
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   831
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   832
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   833
!
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
   834
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   835
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   836
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   837
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   838
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   839
    ^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   840
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   841
    "Created: / 31.3.1998 / 18:13:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   842
    "Modified: / 1.4.1998 / 13:20:37 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   843
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   844
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   845
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   846
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   847
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   848
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   849
    ^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis]
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
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   852
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   853
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   854
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   855
defaultSyntaxColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   856
    "the color used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   857
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   858
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   859
    ^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor]
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   860
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   861
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   862
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   863
defaultSyntaxEmphasis
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   864
    "the emphasis used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   865
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   866
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   867
    ^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis]
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   868
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   869
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   870
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   871
doesNotUnderstand:aMessage
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   872
    |k def|
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   873
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   874
    k := aMessage selector.
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   875
    aMessage numArgs == 0 ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   876
        (self includesKey:k) ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   877
            ^ self at:k
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   878
        ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   879
        ((def := self class default) includesKey:k) ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   880
            ^ def at:k
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   881
        ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   882
        ^ self defaultValue
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   883
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   884
"/    ((aMessage numArgs == 1)
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   885
"/    and:[ (k endsWith:$:)])
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   886
"/    ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   887
"/        k := (k copyWithoutLast:1) asSymbol.
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   888
"/        ((self includesKey:k) 
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   889
"/        or:[ self class default includesKey:k ]) ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   890
"/            ^ self at:k put:(aMessage arg1)
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   891
"/        ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   892
"/    ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   893
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
   894
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   895
    ^ super doesNotUnderstand:aMessage
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   896
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   897
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   898
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   899
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   900
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   901
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   902
    ^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor]
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   903
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   904
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
   905
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   906
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   907
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   908
     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
   909
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
   910
    ^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   911
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   912
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   913
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   914
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
   915
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   916
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   917
    "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
   918
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   919
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   920
    ^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   921
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   922
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   923
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   924
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   925
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   926
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   927
    "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
   928
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   929
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   930
    ^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   931
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   932
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   933
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   934
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
   935
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   936
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   937
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   938
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   939
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   940
    ^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   941
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   942
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   943
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   944
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   945
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   946
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   947
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   948
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   949
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   950
    ^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   951
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   952
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   953
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   954
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   955
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   956
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   957
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   958
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   959
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   960
    ^ self at:#hereColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   961
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   962
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   963
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   964
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   965
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   966
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   967
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   968
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   969
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   970
    ^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   971
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   972
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   973
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   974
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   975
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   976
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   977
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   978
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   979
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   980
    ^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   981
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   982
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   983
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   984
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   985
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   986
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   987
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
   988
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   989
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   990
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   991
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   992
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   993
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   994
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   995
    ^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   996
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   997
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   998
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
   999
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1000
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1001
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1002
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1003
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1004
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1005
    ^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1006
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1007
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1008
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1009
     UserPreferences current at:#instVarIdentifierColor put:Color black.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1010
     UserPreferences current instVarIdentifierColor 
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1011
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1012
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1013
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1014
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1015
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1016
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1017
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1018
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1019
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1020
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1021
    ^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1022
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1023
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1024
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1025
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1026
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1027
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1028
    "the color used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1029
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1030
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1031
    ^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1032
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1033
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1034
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1035
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1036
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1037
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1038
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1039
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1040
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1041
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1042
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1043
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1044
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1045
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1046
    ^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1047
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1048
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1049
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1050
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1051
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1052
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1053
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1054
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1055
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1056
    ^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1057
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1058
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1059
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1060
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1061
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1062
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1063
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1064
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1065
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1066
    ^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1067
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1068
    "Created: / 31.3.1998 / 15:11:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1069
    "Modified: / 1.4.1998 / 13:24:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1070
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1071
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1072
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1073
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1074
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1075
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1076
    ^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1077
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1078
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1079
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1080
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1081
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1082
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1083
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1084
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1085
    ^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1086
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1087
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1088
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1089
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1090
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1091
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1092
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1093
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1094
    ^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1095
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1096
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1097
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1098
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1099
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1100
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1101
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1102
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1103
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1104
    ^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1105
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1106
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1107
    "Modified: / 1.4.1998 / 13:23:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1108
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1109
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1110
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1111
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1112
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1113
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1114
    ^ self at:#selfColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1115
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1116
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1117
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1118
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1119
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1120
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1121
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1122
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1123
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1124
    ^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1125
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1126
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1127
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1128
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1129
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1130
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1131
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1132
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1133
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1134
    ^ self at:#stringColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1135
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1136
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1137
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1138
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1139
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1140
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1141
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1142
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1143
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1144
    ^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1145
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1146
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1147
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1148
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1149
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1150
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1151
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1152
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1153
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1154
    ^ self at:#superColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1155
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1156
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1157
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1158
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1159
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1160
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1161
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1162
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1163
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1164
    ^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1165
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1166
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1167
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1168
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1169
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1170
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1171
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1172
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1173
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1174
    ^ self at:#symbolColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1175
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1176
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1177
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1178
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1179
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1180
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1181
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1182
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1183
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1184
    ^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1185
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1186
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1187
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1188
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1189
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1190
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1191
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1192
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1193
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  1194
    ^ self at:#thisContextColor ifAbsentPut:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1195
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1196
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1197
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1198
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1199
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1200
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1201
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1202
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1203
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  1204
    ^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1205
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1206
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1207
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1208
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1209
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1210
unimplementedSelectorColor
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1211
    "the color used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1212
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1213
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1214
    ^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor]
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1215
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1216
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1217
unimplementedSelectorEmphasis
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1218
    "the emphasis used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1219
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1220
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1221
    ^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis]
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1222
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1223
    "Created: / 31.3.1998 / 15:19:09 / cg"
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1224
    "Modified: / 1.4.1998 / 13:23:59 / cg"
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1225
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1226
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1227
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1228
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1229
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1230
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1231
    ^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1232
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1233
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1234
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1235
     self current at:#unknownIdentifierEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1236
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1237
     self current unknownIdentifierColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1238
     self current unknownIdentifierEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1239
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1240
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1241
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1242
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1243
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1244
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1245
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1246
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1247
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1248
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1249
    ^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1250
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1251
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1252
    "Modified: / 1.4.1998 / 13:22:45 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1253
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1254
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1255
!UserPreferences methodsFor:'default settings'!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1256
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1257
listOfPredefinedSyntaxColoringSchemes
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1258
    "return a list of pre-defined syntax highlightning styles
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1259
     (as shown in the Launchers 'source and debugger settings' dialog."
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1260
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1261
    ^ #(
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1262
            (#resetSyntaxColors                             'default')
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1263
            (#resetSyntaxColorsGreenComments                'green comments')
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1264
            (#resetSyntaxColorsBlueSelectorsGreenComments   'blue selectors; green comments [dolphin style]')
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1265
            (#resetSyntaxColorsBlueSelectorsGreyComments    'blue selectors; grey comments')
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1266
            (#resetSyntaxColorsAllBlackExceptBadIDs         'no colors, but highlight errors')
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1267
      )
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1268
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1269
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1270
resetSyntaxColors
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1271
    "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
  1272
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1273
    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
  1274
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1275
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1276
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1277
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1278
resetSyntaxColorsAllBlackExceptBadIDs
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1279
    "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
  1280
     except for bad identifiers, which are underwaved."
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1281
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1282
    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
  1283
    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
  1284
    self at:#errorColor            put:Color black.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1285
    self at:#commentColor          put:Color black.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1286
    self at:#constantColor         put:Color black.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1287
    self at:#methodSelectorEmphasis put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1288
    self at:#selectorEmphasis       put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1289
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1290
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1291
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1292
resetSyntaxColorsBlueSelectorsGreenComments
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1293
    "resets the colors in the CurrentPreferences to alternative default values
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1294
     (with blue selectors and green comments)"
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1295
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1296
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1297
    self at:#commentColor put:(Color green darkened).
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1298
    self at:#commentEmphasis put:#italic.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1299
    self at:#selectorColor put:(Color blue).
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1300
    self at:#selectorEmphasis put:#normal.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1301
    self at:#methodSelectorColor put:(Color blue).
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1302
    self at:#methodSelectorEmphasis put:#bold.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1303
!
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1304
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1305
resetSyntaxColorsBlueSelectorsGreyComments
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1306
    "resets the colors in the CurrentPreferences to alternative default values
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1307
     (with blue selectors and grey comments)"
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1308
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1309
    self resetSyntaxColorsBlueSelectorsGreenComments.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  1310
    self at:#commentColor    put:(Color gray).
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1311
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  1312
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1313
resetSyntaxColorsGreenComments
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1314
    "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
  1315
     (with green comments)"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1316
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1317
    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
  1318
    self at:#commentColor put:(Color green darkened).
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1319
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1320
! !
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  1321
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1322
!UserPreferences methodsFor:'default value'!
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1323
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1324
defaultValue
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1325
    "the defaultValue for non-existing keys"
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1326
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1327
    ^ false
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1328
!
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1329
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1330
errorKeyNotFound:aKey
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1331
    "for any non-existing key, false is returned"
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1332
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  1333
    ^ self defaultValue
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1334
! !
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  1335
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1336
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1337
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1338
version
6770
b9a5aa95c517 *** empty log message ***
penk
parents: 6769
diff changeset
  1339
    ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.81 2002-09-25 08:42:51 penk Exp $'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1340
! !