UserPreferences.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 22 Aug 2009 09:34:50 +0100
branchjv
changeset 17729 4187f74d2df8
parent 17723 0cd9ce703bab
child 17732 a1892eeca6c0
permissions -rw-r--r--
- small improvements in multi-language support - overidden methods now keep their source code locally - fixed generation of Make.spec
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
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
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
"
5516
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    12
"{ Package: 'stx:libbasic' }"
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    13
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
IdentityDictionary subclass:#UserPreferences
9742
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    15
	instanceVariableNames:''
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    16
	classVariableNames:'CurrentPreferences DefaultPreferences'
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    17
	poolDictionaries:''
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    18
	category:'System-Support'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1998 by eXept Software AG
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    26
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    40
    A Dictionary for user preference values.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    41
    For non-existing keys, either a defaultValue (false),
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    42
    or the value from a defaultDictionary is returned.
3353
0f0288822acd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
    43
3359
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    44
    This will eventually keep track of ALL user preferences.
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    45
    For now, not all preferences are found here -
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    46
    (some of them are currently spread over the system - especially, in Class-Variables)
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    47
    - but this will change over time.
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    48
10887
dc01356c015a comments
Claus Gittinger <cg@exept.de>
parents: 10880
diff changeset
    49
    If more prefs are added, think about adding a corresponding UI to the SystemSettingsDialog too.
dc01356c015a comments
Claus Gittinger <cg@exept.de>
parents: 10880
diff changeset
    50
4582
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
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    60
    Color isNil "Smalltalk isStandAloneApp" ifTrue:[
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    61
        ^ self.
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    62
    ].
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    63
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    64
    #(
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    65
        #useNewChangesBrowser           false
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    66
        #useNewInspector                false
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    67
        #showClockInLauncher            true
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    68
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    69
        #autoFormatting                 false
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    70
        #syntaxColoring                 true
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    71
        #fullSelectorCheck              false
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    72
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    73
        #defaultSyntaxColor             (Color black)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    74
        #defaultSyntaxEmphasis          normal
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    75
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    76
        #errorColor                     (Color red)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    77
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    78
        "/ #commentColor                   (Color 12.5 12.5 100)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    79
        "/ #constantColor                  (Color 25 0 0)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    80
        #commentEmphasis                normal
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    81
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    82
        #methodSelectorEmphasis         bold
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    83
        #selectorEmphasis               bold
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    84
        #unimplementedSelectorColor     (Color red)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    85
        #unimplementedSelectorEmphasis  normal
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
    86
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    87
"/ I prefer red-underwave over red identifier ...
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
    88
"/        #badIdentifierColor             (Color red)
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    89
        #instVarIdentifierColor         (Color 33 0 33)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    90
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    91
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    92
"/        #jsKeywordColor                 (Color black)
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    93
        #jsKeywordEmphasis              bold
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    94
        #jsKeywordColor                 (Color 33 33 0)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    95
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    96
        #controlFlowSelectorColor       (Color 0 0 100)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    97
        #commentColor                   (Color 0 50 0)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    98
        #constantColor                  (Color 64 8 8)
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
    99
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   100
     ) pairWiseDo:[:k :v |
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
   101
        DefaultPreferences at:k put:(v decodeAsLiteralArray).
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   102
    ].
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   103
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
   104
    "/ I prefer red-underwave over red identifier ...
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   105
    DefaultPreferences at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)).
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   106
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   107
    "
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   108
     self initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   109
    "
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   110
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
   111
    "Modified: / 07-12-2006 / 17:08:38 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   112
! !
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   113
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    CurrentPreferences isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   118
	CurrentPreferences := self new.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   119
	CurrentPreferences addAll:self default.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   120
	CurrentPreferences flyByHelpSettingChanged.
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   124
    "
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   125
     CurrentPreferences := nil
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   126
    "
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   127
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   128
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   129
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   130
    DefaultPreferences isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   131
	self initializeDefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   132
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   133
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   134
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   135
    "
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   136
     DefaultPreferences := nil.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   137
    "
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   138
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   139
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   140
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   141
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   142
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   143
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   144
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   145
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   146
syntaxColorKeys
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   147
    "returns the keys of syntax color items"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   148
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   149
    ^#(
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   150
	argumentIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   151
	  argumentIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   152
	booleanConstantColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   153
	  booleanConstantEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   154
	bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   155
	  bracketEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   156
	classVariableIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   157
	  classVariableIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   158
	constantColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   159
	  constantEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   160
	controlFlowSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   161
	  controlFlowSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   162
	commentColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   163
	  commentEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   164
	defaultSyntaxColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   165
	  defaultSyntaxEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   166
	errorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   167
	globalIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   168
	  globalIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   169
	globalClassIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   170
	  globalClassIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   171
	hereColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   172
	  hereEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   173
	identifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   174
	  identifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   175
	instVarIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   176
	  instVarIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   177
	localIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   178
	  localIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   179
	methodSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   180
	  methodSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   181
	poolVariableIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   182
	  poolVariableIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   183
	returnColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   184
	  returnEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   185
	selectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   186
	  selectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   187
	selfColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   188
	  selfEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   189
	stringColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   190
	  stringEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   191
	superColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   192
	  superEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   193
	symbolColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   194
	  symbolEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   195
	thisContextColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   196
	  thisContextEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   197
	unknownIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   198
	  unknownIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   199
	unimplementedSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   200
	  unimplementedSelectorEmphasis
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   201
    )
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   202
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
   203
    "Modified: / 08-09-2006 / 16:06:54 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   204
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   205
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   206
syntaxColorNames
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   207
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   208
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   209
"/ warning, the strings below are presented to the user
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   210
"/ as the syntax-color boxes comboList - however, they are
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   211
"/ also used (without separators) as key into myself.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   212
"/ Therefore, do not change the strings below.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   213
"/ I know - this is bad coding ....
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   214
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   215
^#(
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   216
'Argument Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   217
'Boolean Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   218
'Bracket Color'
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   219
'Class Variable Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   220
'Constant Color'
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
   221
'Control Flow Selector Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   222
'Comment Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   223
'Global Identifier Color'
4024
3a223c79e41c added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4023
diff changeset
   224
'Global Class Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   225
'Here Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   226
'Identifier Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   227
'InstVar Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   228
'Local Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   229
'Method Selector Color'
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
   230
'Pool Variable Identifier Color'
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   231
'Return Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   232
'Selector Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   233
'Self Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   234
'String Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   235
'Super Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   236
'Symbol Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   237
'This Context Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   238
'Unknown Identifier Color'
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   239
'Unimplemented Selector Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   240
)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   241
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
   242
    "Modified: / 08-09-2006 / 16:07:36 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
17723
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   245
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   246
!UserPreferences class methodsFor:'accessing defaultPrefs'!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   247
11006
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   248
defaultSettingsFilename
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   249
    ^ 'settings.stx'
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   250
!
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   251
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   252
fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   253
    ^ self current fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   254
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   255
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   256
     UserPreferences fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   257
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   258
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   259
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   260
systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   261
    ^ self current systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   262
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   263
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   264
     UserPreferences systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   265
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   266
!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   267
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   268
versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   269
    ^ self current versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   270
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   271
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   272
     UserPreferences versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   273
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   274
! !
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   275
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   276
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   277
!UserPreferences methodsFor:'acccesing-locale'!
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   278
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   279
decimalPointCharacter
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
   280
    "toDo: migrate from ClassVar in Number;
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   281
     use this for new applications"
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   282
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   283
    ^ $.
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   284
!
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   285
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   286
thousandsSeparatorCharacter
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
   287
    "toDo: migrate from ClassVar elsewhere;
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   288
     use this for new applications"
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   289
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   290
    ^ $'
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   291
! !
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   292
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   293
!UserPreferences methodsFor:'accessing'!
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   294
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   295
at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   296
    |classNameToCheck classToCheck|
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   297
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   298
    value == true ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   299
	key == #useNewVersionDiffBrowser ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   300
	    classNameToCheck := #'VersionDiffBrowser'.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   301
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   302
	key == #useNewChangesBrowser ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   303
	    classNameToCheck := #'NewChangesBrowser'.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   304
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   305
	key == #useNewFileBrowser ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   306
	    classNameToCheck := #'FileBrowserV2'.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   307
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   308
	key == #useNewSystemBrowser ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   309
	    classNameToCheck := #'Tools::NewSystemBrowser'.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   310
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   311
	key == #useNewInspector ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   312
	    classNameToCheck := #'NewInspector::NewInspectorView'.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   313
	].
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   314
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   315
5791
8e96850a568d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5790
diff changeset
   316
    classNameToCheck notNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   317
	classToCheck := Smalltalk at:classNameToCheck.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   318
	classToCheck isNil ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   319
	    ('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   320
	] ifFalse:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   321
	    Autoload autoloadFailedSignal handle:[:ex |
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   322
		'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   323
	    ] do:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   324
		classToCheck autoload.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   325
	    ]
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   326
	]
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   327
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   328
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   329
    ^ super at:key put:value
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   330
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   331
17723
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   332
!UserPreferences methodsFor:'accessing - desktop'!
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   333
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   334
editorCommand
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   335
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   336
    ^self at:#'desktop.editor-command' ifAbsent:[ nil ]
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   337
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   338
    "Created: / 11-08-2009 / 17:05:50 / Jan Vrany <vranyj1@fel.cvut.cz>"
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   339
!
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   340
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   341
editorCommand: aString
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   342
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   343
    self at:#'desktop.editor-command' put: aString
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   344
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   345
    "Created: / 11-08-2009 / 17:06:23 / Jan Vrany <vranyj1@fel.cvut.cz>"
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   346
! !
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   347
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   348
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   349
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   350
0cd9ce703bab - Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   351
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   352
!UserPreferences methodsFor:'accessing-misc-communication'!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   353
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   354
dotNetBridgeRunsInIDE
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   355
    ^ self at:#dotNetBridgeRunsInIDE ifAbsent:false
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   356
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   357
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   358
dotNetBridgeRunsInIDE:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   359
    ^ self at:#dotNetBridgeRunsInIDE put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   360
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   361
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   362
dotNetBridgeVerbose
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   363
    ^ self at:#dotNetBridgeVerbose ifAbsent:false
11027
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   364
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   365
    "
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   366
     UserPreferences current dotNetBridgeVerbose
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   367
    "
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   368
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   369
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   370
dotNetBridgeVerbose:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   371
    ^ self at:#dotNetBridgeVerbose put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   372
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   373
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   374
smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   375
    ^ self at:#smtpServerName ifAbsent:nil
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   376
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   377
    "Created: / 20-09-2007 / 15:59:20 / cg"
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   378
!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   379
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   380
smtpServerName:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   381
    ^ self at:#smtpServerName put:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   382
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   383
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   384
     UserPreferences current smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   385
     UserPreferences current smtpServerName:'mailhost'
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   386
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   387
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   388
    "Created: / 20-09-2007 / 15:59:58 / cg"
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   389
! !
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   390
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   391
!UserPreferences methodsFor:'accessing-pref''d tools'!
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   392
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   393
changesBrowserClass
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   394
    self useNewChangesBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   395
	^ (NewChangesBrowser ? ChangesBrowser)
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   396
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   397
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   398
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   399
    "Created: / 17.10.1998 / 14:37:46 / cg"
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   400
!
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   401
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   402
fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   403
    self useNewFileBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   404
	^ (FileBrowserV2 ? FileBrowser)
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   405
    ].
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   406
    ^ FileBrowser
8869
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   407
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   408
    "
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   409
     UserPreferences current fileBrowserClass
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   410
    "
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   411
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   412
8619
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   413
flyByHelpActive
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   414
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   415
    ^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])"
8619
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   416
!
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   417
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   418
flyByHelpActive:aBoolean
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   419
    aBoolean ~~ self flyByHelpActive ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   420
	self at:#flyByHelpActive put:aBoolean.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   421
	self flyByHelpSettingChanged.
8619
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   422
    ].
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   423
!
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   424
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   425
inspectorClassSetting
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   426
    self useNewInspector ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   427
	^ (NewInspector::NewInspectorView ? InspectorView)
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   428
    ].
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   429
    ^ InspectorView
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   430
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   431
    "Modified: / 12.11.2001 / 15:47:35 / cg"
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   432
    "Created: / 12.11.2001 / 15:49:00 / cg"
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   433
!
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   434
11005
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   435
showTipOfTheDayAtStartup
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   436
    ^ self at:#showTipOfTheDayAtStartup ifAbsent:false
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   437
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   438
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   439
showTipOfTheDayAtStartup:aBoolean
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   440
    self at:#showTipOfTheDayAtStartup put:aBoolean.
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   441
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   442
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   443
systemBrowserClass
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   444
    self useNewSystemBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   445
	^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser)
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   446
    ].
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   447
    ^ SystemBrowser
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   448
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   449
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   450
useNativeFileDialog
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   451
    "using native file dialog"
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   452
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   453
    ^ self at:#useNativeFileDialog ifAbsent:false
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   454
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   455
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   456
useNativeFileDialog:aBoolean
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   457
    "using native file dialog (if available)"
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   458
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   459
    self at:#useNativeFileDialog put:aBoolean
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   460
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   461
    "
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   462
     UserPreferences current useNativeFileDialog:true
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   463
     UserPreferences current useNativeFileDialog:false
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   464
     UserPreferences current useNativeFileDialog
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   465
    "
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   466
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   467
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   468
useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   469
    "using new or old change browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   470
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   471
    ^ self at:#useNewChangesBrowser ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   472
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   473
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   474
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   475
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   476
useNewChangesBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   477
    "using new or old changeBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   478
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   479
    self at:#useNewChangesBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   480
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   481
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   482
     UserPreferences current useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   483
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   484
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   485
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   486
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   487
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   488
useNewFileBrowser
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   489
    "using new or old version diff viewer"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   490
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   491
    ^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded])
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   492
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   493
    "Modified: / 13.10.1998 / 15:53:05 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   494
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   495
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   496
useNewFileBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   497
    "using new or old file browser"
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   498
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   499
    self at:#useNewFileBrowser put:aBoolean
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   500
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   501
    "
6769
8cd2d038bfc6 *** empty log message ***
penk
parents: 6767
diff changeset
   502
     UserPreferences current useNewFileBrowser
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   503
    "
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   504
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   505
    "Modified: / 13.10.1998 / 15:53:21 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   506
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   507
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   508
useNewFileDialog
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   509
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   510
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   511
    ^ self at:#useNewFileDialog ifAbsent:true
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   512
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   513
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   514
useNewFileDialog:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   515
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   516
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   517
    self at:#useNewFileDialog put:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   518
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   519
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   520
     UserPreferences current useNewFileDialog:true
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   521
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   522
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   523
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   524
useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   525
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   526
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   527
    ^ self at:#useNewInspector ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   528
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   529
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   530
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   531
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   532
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   533
    "Modified: / 17.10.1998 / 14:45:12 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   534
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   535
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   536
useNewInspector:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   537
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   538
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   539
    self at:#useNewInspector put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   540
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   541
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   542
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   543
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   544
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   545
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   546
useNewSettingsApplication
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   547
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   548
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   549
    ^ self at:#useNewSettingsApplication ifAbsent:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   550
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   551
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   552
useNewSettingsApplication:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   553
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   554
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   555
    self at:#useNewSettingsApplication put:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   556
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   557
    "
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   558
     UserPreferences current useNewSettingsApplication:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   559
    "
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   560
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   561
    "Modified: / 13.10.1998 / 15:53:21 / cg"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   562
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   563
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   564
useNewSystemBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   565
    "using new or old system browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   566
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   567
    |newSystemBrowserClass useIt|
8000
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
   568
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
   569
    newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser).
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   570
    useIt := self at:#useNewSystemBrowser ifAbsent:nil.
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   571
    useIt isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   572
	useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]).
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   573
	useIt ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   574
	    self at:#useNewSystemBrowser put:true.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   575
	].
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   576
    ].
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   577
    ^ useIt
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   578
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   579
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   580
useNewSystemBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   581
    "using new or old systemBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   582
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   583
    self at:#useNewSystemBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   584
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   585
    "
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   586
     UserPreferences current useNewSystemBrowser:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   587
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   588
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   589
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   590
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   591
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   592
useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   593
    "using new or old version diff viewer"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   594
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   595
    ^ self at:#useNewVersionDiffBrowser ifAbsent:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   596
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   597
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   598
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   599
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   600
useNewVersionDiffBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   601
    "using new or old versionDiffBrowser"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   602
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   603
    self at:#useNewVersionDiffBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   604
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   605
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   606
     UserPreferences current useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   607
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   608
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   609
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   610
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   611
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   612
useProcessMonitorV2
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   613
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   614
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   615
    ^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil)
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   616
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   617
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   618
useProcessMonitorV2:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   619
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   620
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   621
    self at:#useProcessMonitorV2 put:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   622
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   623
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   624
     UserPreferences current useProcessMonitorV2:true
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   625
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   626
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   627
    "Modified: / 13.10.1998 / 15:53:21 / cg"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   628
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
   629
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   630
useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   631
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   632
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   633
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   634
    ^ self at:#useSmalltalkDocumentViewer ifAbsent:true
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   635
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   636
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   637
     UserPreferences current useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   638
     UserPreferences current useSmalltalkDocumentViewer:false
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   639
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   640
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   641
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   642
useSmalltalkDocumentViewer:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   643
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   644
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   645
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   646
    ^ self at:#useSmalltalkDocumentViewer put:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   647
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   648
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   649
versionDiffViewerClass
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   650
    self useNewVersionDiffBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   651
	^ (VersionDiffBrowser ? DiffTextView)
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   652
    ].
10992
f03d40b016f4 use new DiffCodeView
Claus Gittinger <cg@exept.de>
parents: 10924
diff changeset
   653
    ^ DiffCodeView
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   654
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   655
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   656
!UserPreferences methodsFor:'accessing-prefs-UI'!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
   657
11390
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   658
allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   659
    "return the flag which controls if text can be magnified via the ALT-wheel-action"
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   660
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   661
    ^ self at:#allowMouseWheelZoom ifAbsent:[ true ]
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   662
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   663
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   664
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   665
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   666
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   667
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   668
allowMouseWheelZoom:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   669
    "set/clear the flag which controls if text can be magnified via the ALT-wheel-action"
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   670
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   671
    ^ self at:#allowMouseWheelZoom put:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   672
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   673
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   674
     UserPreferences current allowMouseWheelZoom:true
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   675
     UserPreferences current allowMouseWheelZoom:false
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   676
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   677
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   678
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
   679
5071
ps
parents: 4684
diff changeset
   680
beepEnabled
ps
parents: 4684
diff changeset
   681
    "return the flag which controls the beeper"
ps
parents: 4684
diff changeset
   682
ps
parents: 4684
diff changeset
   683
    ^ self at:#beepEnabled ifAbsentPut:true
ps
parents: 4684
diff changeset
   684
ps
parents: 4684
diff changeset
   685
    "
ps
parents: 4684
diff changeset
   686
     UserPreferences current beepEnabled
ps
parents: 4684
diff changeset
   687
    "
ps
parents: 4684
diff changeset
   688
ps
parents: 4684
diff changeset
   689
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
   690
    "Created: / 3.12.1999 / 17:09:49 / ps"
ps
parents: 4684
diff changeset
   691
!
ps
parents: 4684
diff changeset
   692
ps
parents: 4684
diff changeset
   693
beepEnabled:aBoolean
ps
parents: 4684
diff changeset
   694
    "set/clear the flag which controls the beeper"
ps
parents: 4684
diff changeset
   695
ps
parents: 4684
diff changeset
   696
    ^ self at:#beepEnabled put:aBoolean
ps
parents: 4684
diff changeset
   697
ps
parents: 4684
diff changeset
   698
    "
ps
parents: 4684
diff changeset
   699
     UserPreferences current beepEnabled:false
ps
parents: 4684
diff changeset
   700
    "
ps
parents: 4684
diff changeset
   701
ps
parents: 4684
diff changeset
   702
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
   703
    "Created: / 3.12.1999 / 17:10:27 / ps"
ps
parents: 4684
diff changeset
   704
!
ps
parents: 4684
diff changeset
   705
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   706
beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   707
    "return the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   708
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   709
    ^ self at:#beepForErrorDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   710
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   711
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   712
     UserPreferences current beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   713
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   714
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   715
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   716
beepForErrorDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   717
    "set/clear the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   718
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   719
    ^ self at:#beepForErrorDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   720
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   721
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   722
     UserPreferences current beepForErrorDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   723
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   724
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   725
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   726
beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   727
    "return the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   728
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   729
    ^ self at:#beepForInfoDialog ifAbsent:false
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   730
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   731
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   732
     UserPreferences current beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   733
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   734
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   735
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   736
beepForInfoDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   737
    "set/clear the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   738
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   739
    ^ self at:#beepForInfoDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   740
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   741
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   742
     UserPreferences current beepForInfoDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   743
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   744
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   745
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   746
beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   747
    "return the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   748
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   749
    ^ self at:#beepForWarningDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   750
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   751
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   752
     UserPreferences current beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   753
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   754
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   755
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   756
beepForWarningDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   757
    "set/clear the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   758
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   759
    ^ self at:#beepForWarningDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   760
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   761
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   762
     UserPreferences current beepForWarningDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   763
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   764
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
   765
11691
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   766
beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   767
    "return the flag which controls the beeper"
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   768
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   769
    ^ self at:#beepInEditor ifAbsentPut:true
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   770
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   771
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   772
     UserPreferences current beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   773
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   774
!
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
   775
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   776
expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   777
    "expand the selection in a selectionInListView if the mouse is pressed while moving over
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   778
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   779
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   780
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   781
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   782
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   783
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   784
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   785
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   786
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   787
expandSelectionOnMouseMoveWithButtonPressed:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   788
    "expand the selection in a selectionInListView if the mouse is pressed while moving over
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   789
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   790
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   791
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   792
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   793
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   794
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   795
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   796
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
   797
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   798
focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   799
    "return the flag which controls if the keyboard focus should
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   800
     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
   801
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   802
     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
   803
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
   804
    ^ self at:#focusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ]
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   805
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   806
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   807
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   808
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   809
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   810
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   811
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   812
focusFollowsMouse:aBooleanOrNil
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   813
    "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
   814
     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
   815
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   816
     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
   817
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   818
    ^ self at:#focusFollowsMouse put:aBooleanOrNil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   819
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   820
    "
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   821
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
   822
     UserPreferences current focusFollowsMouse:false
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   823
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   824
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   825
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   826
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   827
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
   828
8759
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   829
motionDistanceToStartDrag
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   830
    "the motion distance (in pixel) to start drag (as opposed to adding to the selection)"
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   831
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   832
    ^ "DragMotionDistance ?" 10
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   833
!
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
   834
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   835
mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   836
    "return the flag which controls if the mouseWheel focus should
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   837
     follow the mouse (as in X) - as opposed to click mode (as in MS-win)"
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   838
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   839
    self focusFollowsMouse ifTrue:[^ true].
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   840
    ^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ]
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   841
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   842
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   843
     UserPreferences current mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   844
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   845
!
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   846
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   847
opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   848
    "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
   849
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   850
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   851
    ^ self at:#opaqueTableColumnResizing ifAbsent:false
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   852
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   853
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   854
     UserPreferences current opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   855
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   856
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   857
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   858
opaqueTableColumnResizing:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   859
    "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
   860
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   861
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   862
    ^ self at:#opaqueTableColumnResizing put:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   863
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   864
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   865
     UserPreferences current opaqueTableColumnResizing:true
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   866
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   867
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   868
    "Modified: / 11.9.1998 / 00:09:59 / cg"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   869
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
   870
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   871
opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   872
    "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
   873
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   874
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   875
    ^ self at:#opaqueVariablePanelResizing ifAbsent:false
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   876
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   877
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   878
     UserPreferences current opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   879
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   880
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   881
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   882
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   883
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   884
opaqueVariablePanelResizing:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   885
    "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
   886
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   887
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   888
    ^ self at:#opaqueVariablePanelResizing put:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   889
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   890
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   891
     UserPreferences current opaqueVariablePanelResizing:true
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   892
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   893
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   894
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   895
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
   896
6525
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   897
searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   898
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   899
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   900
    ^ self at:#searchDialogIsModal ifAbsent:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   901
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   902
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   903
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   904
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   905
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   906
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   907
searchDialogIsModal:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   908
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   909
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   910
    ^ self at:#searchDialogIsModal put:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   911
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   912
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   913
     UserPreferences current searchDialogIsModal:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   914
     UserPreferences current searchDialogIsModal:false
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   915
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   916
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   917
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
   918
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   919
startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   920
    "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
   921
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   922
    ^ self at:#startTextDragWithControl ifAbsent:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   923
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   924
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   925
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   926
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   927
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   928
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   929
startTextDragWithControl:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   930
    "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
   931
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   932
    ^ self at:#startTextDragWithControl put:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   933
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   934
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   935
     UserPreferences current startTextDragWithControl:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   936
     UserPreferences current startTextDragWithControl:false
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   937
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   938
    "
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   939
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   940
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   941
!UserPreferences methodsFor:'accessing-prefs-browser'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   942
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   943
autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   944
    "return the flag which controls automatic formatting of code (in some browsers)
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   945
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   946
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
   947
    ^ self at:#autoFormatting ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   948
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   949
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   950
     UserPreferences current autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   951
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   952
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   953
    "Created: / 4.2.2000 / 20:08:08 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   954
    "Modified: / 5.2.2000 / 15:38:33 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   955
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   956
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   957
autoFormatting:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   958
    "turn on/off automatic formatting of code (in some browsers);
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   959
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   960
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   961
    ^ self at:#autoFormatting put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   962
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   963
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   964
     UserPreferences current autoFormatting:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   965
     UserPreferences current autoFormatting:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   966
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   967
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   968
    "Created: / 4.2.2000 / 20:08:26 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   969
    "Modified: / 5.2.2000 / 15:38:20 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   970
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   971
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   972
enforceCodeStyle
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   973
    "return the flag which controls enforcing a certain code style (in some browsers)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   974
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
   975
    ^ self at:#enforceCodeStyle ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   976
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   977
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   978
     UserPreferences current enforceCodeStyle
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   979
     UserPreferences current enforceCodeStyle:true
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   980
     UserPreferences current enforceCodeStyle:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   981
    "
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   982
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   983
    "Modified: / 27-03-2007 / 21:51:42 / cg"
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   984
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
   985
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   986
generateComments
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   987
    "return true; comments shall be generated (by the codeGenerator tool)"
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   988
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
   989
    ^ self at:#generateComments ifAbsent:true.
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   990
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   991
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   992
     UserPreferences current generateComments
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   993
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   994
!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   995
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   996
generateCommentsForGetters
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   997
    "return true if comments for simple getters are to be generated (by the codeGenerator tool).
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   998
     The default is now false, as these look stupid in the browser and were only generated
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
   999
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1000
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1001
    ^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false].
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1002
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1003
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1004
     UserPreferences current generateCommentsForGetters
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1005
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1006
!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1007
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1008
generateCommentsForSetters
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1009
    "return true if comments for simple setters are to be generated (by the codeGenerator tool).
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1010
     The default is now false, as these look stupid in the browser and were only generated
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1011
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1012
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1013
    ^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false].
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1014
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1015
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1016
     UserPreferences current generateCommentsForSetters
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1017
    "
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1018
!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1019
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1020
showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1021
    "experimental."
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1022
11214
ad61819068b9 changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents: 11213
diff changeset
  1023
    ^ self at:#showAcceptCancelBarInBrowser ifAbsent:true
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1024
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1025
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1026
     UserPreferences current showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1027
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1028
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1029
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1030
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1031
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1032
showAcceptCancelBarInBrowser:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1033
    "experimental."
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1034
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1035
    ^ self at:#showAcceptCancelBarInBrowser put:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1036
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1037
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1038
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1039
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1040
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1041
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1042
11064
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1043
showSearchBarInBrowser
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1044
    "true, if the search-entry fields are shown in the browser itself
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1045
     (like in firefox). False if a dialog is to be opened."
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1046
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1047
    "/ cg: disabled for now, until fixed.
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1048
    "/ does not initially select the searchString.
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1049
    "/ thereby interrupting the workflow...
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1050
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1051
    ^ self at:#showSearchBarInBrowser ifAbsent:false
11064
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1052
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1053
    "
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1054
     UserPreferences current showSearchBarInBrowser
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1055
     UserPreferences current showSearchBarInBrowser:true
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1056
     UserPreferences current showSearchBarInBrowser:false
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1057
    "
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1058
!
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1059
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1060
showSearchBarInBrowser:aBoolean
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1061
    "true, if the search-entry fields are shown in the browser itself
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
  1062
     (like in firefox). False if a dialog is to be opened."
11064
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1063
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1064
    ^ self at:#showSearchBarInBrowser put:aBoolean
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1065
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1066
    "
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1067
     UserPreferences current showSearchBarInBrowser:true
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1068
     UserPreferences current showSearchBarInBrowser:false
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1069
    "
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1070
!
3d81c222939a add #showSearchBarInBrowser
fm
parents: 11027
diff changeset
  1071
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1073
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1074
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1075
    ^ self at:#syntaxColoring ifAbsent:true
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
  1081
    "Modified: / 11.9.1998 / 00:09:59 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1085
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1086
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1089
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1090
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1091
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1092
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1093
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1095
    "Modified: / 1.4.1998 / 13:23:03 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1096
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1097
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1098
!UserPreferences methodsFor:'accessing-prefs-browser-colors'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1099
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1100
emphasisForChangedCode
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1101
    "the emphasis for changed code (in changeSet) in the browser"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1102
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1103
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1104
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1105
    emp := self at:#emphasisForChangedCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1106
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1107
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1108
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1109
	"/ emp := #color->Color blue darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1110
	self at:#emphasisForChangedCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1111
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1112
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1113
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1114
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1115
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil].
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1116
     UserPreferences current emphasisForChangedCode.
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1117
     UserPreferences current at:#emphasisForChangedCode put:nil.
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1118
    "
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1119
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1120
    "Modified: / 10-11-2006 / 17:27:23 / cg"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1121
!
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1122
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1123
emphasisForChangedCodeInSmallTeam
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1124
    "the emphasis for changed code (in a remote changeSet) in the browser.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1125
     You need the SmallTeam extension to be present for this to work."
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1126
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1127
    |emp|
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1128
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1129
    emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1130
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1131
	emp := #color->Color yellow darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1132
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1133
	self at:#emphasisForChangedCodeInSmallTeam put:emp.
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1134
    ].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1135
    ^ emp
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1136
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1137
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1138
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1139
     UserPreferences current emphasisForChangedCodeInSmallTeam.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1140
     UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1141
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1142
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1143
    "Created: / 10-11-2006 / 16:31:00 / cg"
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1144
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1145
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1146
emphasisForDifferentPackage
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1147
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1148
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1149
    emp := self at:#emphasisForDifferentPackage ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1150
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1151
	emp := #color->Color green darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1152
	"/ emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1153
	self at:#emphasisForDifferentPackage put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1154
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1155
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1156
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1157
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1158
     self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1159
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1160
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1161
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1162
emphasisForModifiedBuffer
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1163
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1164
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1165
    emp := self at:#emphasisForModifiedBuffer ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1166
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1167
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1168
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1169
	self at:#emphasisForModifiedBuffer put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1170
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1171
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1172
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1173
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1174
     self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1175
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1176
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1177
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1178
emphasisForObsoleteCode
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1179
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1180
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1181
    emp := self at:#emphasisForObsoleteCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1182
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1183
	emp := #color->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1184
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1185
	self at:#emphasisForObsoleteCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1186
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1187
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1188
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1189
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1190
     self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1191
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1192
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1193
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1194
emphasisForReadVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1195
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1196
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1197
    emp := self at:#emphasisForReadVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1198
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1199
	emp := #underline.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1200
	self at:#emphasisForReadVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1201
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1202
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1203
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1204
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1205
emphasisForWrittenVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1206
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1207
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1208
    emp := self at:#emphasisForWrittenVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1209
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1210
	emp := Array with:#underline with:#underlineColor->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1211
	self at:#emphasisForWrittenVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1212
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1213
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1214
! !
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1215
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1216
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'!
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1217
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1218
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1219
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1220
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1221
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1222
    ^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1223
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1224
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1225
    "Modified: / 1.4.1998 / 13:19:58 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1226
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1227
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1228
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1229
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1230
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1231
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1232
    ^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1233
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1234
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1235
    "Modified: / 1.4.1998 / 13:19:55 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1236
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1237
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1238
badIdentifierColor
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1239
    "the color used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1240
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1241
4336
1e9719956923 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  1242
    ^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1243
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1244
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1245
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1246
badIdentifierEmphasis
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1247
    "the emphasis used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1248
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1249
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1250
    ^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1251
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
  1252
    "Modified: / 7.7.1999 / 00:30:00 / cg"
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1253
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1254
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1255
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1256
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1257
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1258
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1259
    ^ self at:#booleanConstantColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1260
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1261
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1262
    "Modified: / 1.4.1998 / 13:20:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1263
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1264
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1265
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1266
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1267
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1268
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1269
    ^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1270
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1271
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1272
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1273
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1274
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1275
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1276
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1277
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1278
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1279
    ^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1280
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1281
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1282
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1283
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1284
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1285
     self current bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1286
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1287
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1288
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1289
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1290
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1291
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1292
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1293
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1294
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1295
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1296
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1297
    ^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1298
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1299
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1300
     self current at:#bracketEmphasis  put:#bold
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1301
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1302
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1303
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1304
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1305
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1306
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1307
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1308
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1309
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1310
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1311
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1312
    ^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1313
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1314
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1315
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1316
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1317
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1318
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1319
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1320
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1321
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1322
    ^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1323
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1324
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1325
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1326
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  1327
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1328
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1329
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1330
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1331
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1332
    ^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1333
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1334
    "Created: / 31.3.1998 / 15:10:23 / cg"
3832
3cb925b0c2e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3827
diff changeset
  1335
    "Modified: / 11.9.1998 / 19:24:04 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1336
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1337
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1338
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1339
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1340
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1341
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1342
    ^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1343
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1344
    "Created: / 31.3.1998 / 15:09:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1345
    "Modified: / 1.4.1998 / 13:25:53 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1346
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1347
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1348
commentEmphasisAndColor
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1349
    ^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor).
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1350
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1351
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1352
!
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  1353
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1354
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1355
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1356
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1357
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1358
    ^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1359
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1360
    "Created: / 31.3.1998 / 18:13:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1361
    "Modified: / 1.4.1998 / 13:20:37 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1362
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1363
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1364
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1365
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1366
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1367
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1368
    ^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1369
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1370
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1371
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1372
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1373
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1374
controlFlowSelectorColor
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1375
    "the color used for some selected controlFlow selectors (such as if, while etc.);
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1376
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1377
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1378
    ^ self at:#controlFlowSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1379
	    ifAbsentPut:[UserPreferences default
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1380
			    at:#controlFlowSelectorColor ifAbsent:[self selectorColor]]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1381
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1382
    "Created: / 08-09-2006 / 15:51:20 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1383
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1384
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1385
controlFlowSelectorEmphasis
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1386
    "the emphasis used for some selected controlFlow selectors (such as if, while etc.);
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1387
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1388
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1389
    ^ self at:#controlFlowSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1390
	    ifAbsentPut:[UserPreferences default
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1391
			    at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1392
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1393
    "Created: / 08-09-2006 / 15:51:04 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1394
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  1395
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1396
defaultSyntaxColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1397
    "the color used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1398
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1399
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1400
    ^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor]
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1401
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1402
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1403
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1404
defaultSyntaxEmphasis
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1405
    "the emphasis used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1406
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1407
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1408
    ^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis]
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1409
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1410
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1411
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1412
doesNotUnderstand:aMessage
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
  1413
    |k def|
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1414
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1415
    k := aMessage selector.
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1416
    aMessage numArgs == 0 ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1417
	(self includesKey:k) ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1418
	    ^ self at:k
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1419
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1420
	((def := self class default) includesKey:k) ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1421
	    ^ def at:k
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1422
	].
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1423
	^ self defaultValue
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1424
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1425
"/    ((aMessage numArgs == 1)
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1426
"/    and:[ (k endsWith:$:)])
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1427
"/    ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1428
"/        k := (k copyWithoutLast:1) asSymbol.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1429
"/        ((self includesKey:k)
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1430
"/        or:[ self class default includesKey:k ]) ifTrue:[
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1431
"/            ^ self at:k put:(aMessage arg1)
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1432
"/        ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1433
"/    ].
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1434
7272
a45033450ad8 *** empty log message ***
penk
parents: 7271
diff changeset
  1435
    aMessage numArgs == 1 ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1436
	('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1437
	^ nil
7272
a45033450ad8 *** empty log message ***
penk
parents: 7271
diff changeset
  1438
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  1439
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1440
    ^ super doesNotUnderstand:aMessage
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1441
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1442
8965
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1443
emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1444
    ^ self at:#emphasizeParenthesisLevel ifAbsent:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1445
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1446
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1447
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1448
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1449
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1450
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1451
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1452
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1453
emphasizeParenthesisLevel:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1454
    self at:#emphasizeParenthesisLevel put:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1455
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1456
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1457
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1458
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1459
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1460
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1461
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  1462
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1463
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1464
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1465
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1466
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1467
    ^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor]
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1468
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1469
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  1470
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1471
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1472
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1473
     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
  1474
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1475
    ^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1476
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1477
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1478
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1479
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  1480
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1481
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1482
    "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
  1483
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1484
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1485
    ^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1486
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1487
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1488
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1489
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1490
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1491
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1492
    "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
  1493
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1494
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1495
    ^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1496
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1497
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1498
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1499
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  1500
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1501
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1502
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1503
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1504
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1505
    ^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1506
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1507
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1508
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1509
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1510
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1511
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1512
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1513
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1514
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1515
    ^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1516
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1517
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1518
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1519
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1520
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1521
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1522
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1523
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1524
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1525
    ^ self at:#hereColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1526
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1527
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1528
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1529
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1530
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1531
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1532
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1533
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1534
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1535
    ^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1536
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1537
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1538
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1539
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1540
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1541
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1542
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1543
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1544
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1545
    ^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1546
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1547
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1548
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1549
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1550
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1551
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1552
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1553
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1554
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1555
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1556
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1557
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1558
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1559
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1560
    ^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1561
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1562
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1563
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1564
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1565
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1566
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1567
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1568
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1569
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1570
    ^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1571
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1572
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1573
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1574
     UserPreferences current at:#instVarIdentifierColor put:Color black.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1575
     UserPreferences current instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1576
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1577
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1578
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1579
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1580
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1581
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1582
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1583
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1584
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1585
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1586
    ^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1587
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1588
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  1589
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1590
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  1591
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1592
jsKeywordColor
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1593
    ^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor]
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1594
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1595
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1596
jsKeywordEmphasis
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1597
    ^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1598
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  1599
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1600
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1601
    "the color used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1602
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1603
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1604
    ^ self at:#localIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1605
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1606
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1607
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1608
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1609
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1610
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1611
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  1612
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1613
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1614
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1615
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1616
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1617
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1618
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1619
    ^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1620
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1621
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1622
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1623
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1624
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1625
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1626
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1627
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1628
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1629
    ^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1630
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1631
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1632
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1633
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1634
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1635
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1636
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1637
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1638
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1639
    ^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1640
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1641
    "Created: / 31.3.1998 / 15:11:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1642
    "Modified: / 1.4.1998 / 13:24:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1643
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1644
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1645
numberConstantColor
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1646
    "the color used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1647
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1648
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1649
    ^ self at:#numberConstantColor ifAbsent:[ self constantColor ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1650
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1651
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1652
numberConstantEmphasis
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1653
    "the emphasis used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1654
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1655
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1656
    ^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1657
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  1658
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1659
poolVariableIdentifierColor
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1660
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1661
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1662
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1663
    ^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1664
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1665
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1666
poolVariableIdentifierEmphasis
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1667
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1668
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1669
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1670
    ^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1671
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  1672
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1673
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1674
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1675
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1676
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1677
    ^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1678
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1679
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1680
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1681
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1682
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1683
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1684
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1685
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1686
    ^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1687
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1688
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1689
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  1690
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1691
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1692
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1693
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1694
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1695
    ^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1696
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1697
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1698
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1699
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1700
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1701
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1702
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1703
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1704
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1705
    ^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1706
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1707
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1708
    "Modified: / 1.4.1998 / 13:23:59 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1709
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1710
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1711
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1712
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1713
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1714
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1715
    ^ self at:#selfColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1716
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1717
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1718
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1719
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1720
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1721
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1722
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1723
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1724
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1725
    ^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1726
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1727
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1728
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1729
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1730
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1731
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1732
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1733
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1734
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1735
    ^ self at:#stringColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1736
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1737
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1738
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1739
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1740
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1741
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1742
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1743
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1744
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1745
    ^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1746
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1747
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1748
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1749
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1750
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1751
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1752
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1753
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1754
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1755
    ^ self at:#superColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1756
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1757
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1758
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1759
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1760
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1761
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1762
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1763
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1764
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1765
    ^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1766
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1767
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1768
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1769
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1770
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1771
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1772
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1773
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1774
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1775
    ^ self at:#symbolColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1776
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1777
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1778
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1779
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1780
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1781
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1782
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1783
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1784
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1785
    ^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1786
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1787
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1788
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1789
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1790
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1791
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1792
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1793
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1794
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  1795
    ^ self at:#thisContextColor ifAbsentPut:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1796
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1797
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1798
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1799
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1800
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1801
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1802
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1803
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1804
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  1805
    ^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1806
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  1807
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1808
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1809
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1810
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1811
unimplementedSelectorColor
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1812
    "the color used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1813
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1814
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1815
    ^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor]
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1816
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1817
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1818
unimplementedSelectorEmphasis
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1819
    "the emphasis used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1820
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1821
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  1822
    ^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis]
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1823
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1824
    "Created: / 31.3.1998 / 15:19:09 / cg"
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1825
    "Modified: / 1.4.1998 / 13:23:59 / cg"
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1826
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  1827
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1828
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1829
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1830
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1831
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1832
    ^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1833
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1834
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1835
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1836
     self current at:#unknownIdentifierEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1837
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1838
     self current unknownIdentifierColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  1839
     self current unknownIdentifierEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1840
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  1841
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1842
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1843
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1844
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1845
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1846
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1847
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1848
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1849
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  1850
    ^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1851
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  1852
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1853
    "Modified: / 1.4.1998 / 13:22:45 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1854
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1855
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1856
!UserPreferences methodsFor:'accessing-prefs-code'!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1857
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1858
categoryForMenuActionsMethods
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1859
    ^ 'menu actions'.
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1860
! !
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  1861
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1862
!UserPreferences methodsFor:'accessing-prefs-editor'!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1863
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1864
deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1865
    "if true, a delete also updates the clipboard with the deleted text"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1866
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1867
    ^ self at:#deleteSetsClipboardText ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1868
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1869
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1870
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1871
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1872
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1873
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1874
deleteSetsClipboardText:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1875
    "if true, a delete also updates the clipboard with the deleted text"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1876
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1877
    ^ self at:#deleteSetsClipboardText put:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1878
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1879
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1880
     UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1881
     UserPreferences current deleteSetsClipboardText:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1882
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1883
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1884
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1885
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1886
extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1887
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1888
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1889
10310
89d972739353 extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents: 10240
diff changeset
  1890
    ^ self at:#extendedWordSelectMode ifAbsent:true
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1891
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1892
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1893
     UserPreferences current extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1894
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1895
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1896
    "Created: / 03-07-2006 / 16:49:58 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1897
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1898
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1899
extendedWordSelectMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1900
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1901
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1902
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1903
    ^ self at:#extendedWordSelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1904
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1905
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1906
     UserPreferences current extendedWordSelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1907
     UserPreferences current extendedWordSelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1908
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1909
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1910
    "Created: / 03-07-2006 / 16:50:20 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1911
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1912
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1913
numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1914
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1915
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1916
     Notice: you may run out of memory, if editing a lot and the number of undos is not limited."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1917
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1918
    ^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1919
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1920
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1921
     UserPreferences current numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1922
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1923
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1924
    "Modified: / 09-10-2006 / 11:01:35 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1925
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1926
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1927
numberOfRememberedUndoOperationsInEditor:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1928
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1929
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1930
     Notice: you may run out of memory, if editing a lot and the number of undos is not limited."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1931
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1932
    ^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1933
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1934
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1935
     UserPreferences current numberOfRememberedUndoOperationsInEditor:20
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1936
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1937
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1938
    "Created: / 09-10-2006 / 11:00:56 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1939
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1940
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1941
st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1942
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1943
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1944
    ^ self at:#st80EditMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1945
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1946
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1947
     UserPreferences current st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1948
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1949
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1950
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1951
st80EditMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1952
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1953
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1954
    ^ self at:#st80EditMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1955
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1956
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1957
     UserPreferences current st80EditMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1958
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1959
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1960
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1961
st80SelectMode
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1962
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1963
     (select to corresponding lparen/double-quote) ?"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1964
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1965
    ^ self at:#st80SelectMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1966
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1967
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1968
     UserPreferences current st80SelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1969
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1970
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1971
    "Created: / 03-07-2006 / 16:25:19 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1972
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1973
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1974
st80SelectMode:aBoolean
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1975
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1976
     (select to corresponding lparen/double-quote)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1977
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1978
    ^ self at:#st80SelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1979
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1980
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1981
     UserPreferences current st80SelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1982
     UserPreferences current st80SelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1983
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1984
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  1985
    "Created: / 03-07-2006 / 16:25:27 / cg"
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1986
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1987
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1988
whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1989
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1990
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1991
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1992
    ^ self at:#whitespaceWordSelectMode ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1993
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1994
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1995
     UserPreferences current whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1996
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1997
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1998
    "Created: / 03-07-2006 / 16:49:58 / cg"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1999
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2000
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2001
whitespaceWordSelectMode:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2002
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2003
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2004
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2005
    ^ self at:#whitespaceWordSelectMode put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2006
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2007
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2008
     UserPreferences current whitespaceWordSelectMode:true
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2009
     UserPreferences current whitespaceWordSelectMode:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2010
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2011
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2012
    "Created: / 03-07-2006 / 16:50:20 / cg"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  2013
! !
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  2014
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2015
!UserPreferences methodsFor:'accessing-prefs-times'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2016
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2017
timeToAutoExpandItemsWhenDraggingOver
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2018
    "in a hierarchical tree view"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2019
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2020
    ^ 700  "/ millis
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2021
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2022
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2023
twoDigitDateHandler
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2024
    "return a block which converts a two-digit date.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2025
     Possible algorithms:
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2026
	- identity: treat as year 00..99
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2027
	- add 1900: treat as 1900..1999
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2028
	- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2029
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2030
     TODO: make this configurable, keep in dictionary and add to settings.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2031
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2032
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2033
    ^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2034
    "/ ^ [:x | 1900+x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2035
    "/ ^ [:x | x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2036
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2037
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2038
!UserPreferences methodsFor:'accessing-prefs-tools'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2039
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2040
allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2041
    "if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2042
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2043
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2044
    ^ self at:#allowSendMailFromDebugger ifAbsent:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2045
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2046
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2047
     UserPreferences current allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2048
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2049
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2050
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2051
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2052
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2053
allowSendMailFromDebugger:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2054
    "if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2055
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2056
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2057
    ^ self at:#allowSendMailFromDebugger put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2058
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2059
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2060
     UserPreferences current allowSendMailFromDebugger:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2061
     UserPreferences current allowSendMailFromDebugger:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2062
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2063
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2064
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2065
autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2066
    "return the flag which controls automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2067
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2068
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  2069
    ^ self at:#autoDefineWorkspaceVariables ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2070
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2071
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2072
     UserPreferences current autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2073
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2074
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2075
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2076
autoDefineWorkspaceVariables:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2077
    "turn on/off automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2078
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2079
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2080
    ^ self at:#autoDefineWorkspaceVariables put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2081
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2082
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2083
     UserPreferences current autoDefineWorkspaceVariables:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2084
     UserPreferences current autoDefineWorkspaceVariables:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2085
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2086
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2087
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2088
autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2089
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2090
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2091
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2092
    ^ self at:#autoRaiseDebugger ifAbsent:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2093
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2094
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2095
     UserPreferences current autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2096
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2097
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2098
    "Created: / 15-05-2007 / 13:29:10 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2099
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2100
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2101
autoRaiseDebugger:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2102
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2103
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2104
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2105
    ^ self at:#autoRaiseDebugger put:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2106
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2107
    "
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2108
     UserPreferences current autoRaiseDebugger
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2109
     UserPreferences current autoRaiseDebugger:false
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2110
     UserPreferences current autoRaiseDebugger:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2111
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2112
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2113
    "Created: / 15-05-2007 / 13:29:31 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2114
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  2115
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2116
buildDirectory
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2117
    ^ self at:#buildDirectory ifAbsent:nil
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2118
!
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2119
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2120
buildDirectory:aFilenameStringOrNil
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2121
    ^ self at:#buildDirectory put:aFilenameStringOrNil
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2122
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2123
    "
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2124
     UserPreferences current buildDirectory
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2125
    "
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2126
!
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
  2127
11419
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2128
editToolbarVisibleInWorkspace
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2129
    "return the flag which defaults the edit-toolbar-visibility in a workspace application"
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2130
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2131
    ^ self at:#editToolbarVisibleInWorkspace ifAbsent:false
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2132
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2133
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2134
editToolbarVisibleInWorkspace:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2135
    "set the flag which defaults the edit-toolbar-visibility in a workspace application"
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2136
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2137
    ^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2138
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  2139
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2140
functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2141
    "return the collection of function-key macros.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2142
     Thats a dictionary, which assigns code to F-keys"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2143
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2144
    ^ self at:#functionKeySequences ifAbsentPut:[Dictionary new]
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2145
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2146
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2147
     UserPreferences current functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2148
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2149
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2150
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2151
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2152
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2153
infoVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2154
    "return the flag which defaults the info-visibility in a workspace application"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2155
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2156
    ^ self at:#infoVisibleInWorkspace ifAbsent:false
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2157
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2158
    "Created: / 14-07-2007 / 16:43:37 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2159
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2160
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2161
infoVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2162
    "set the flag which defaults the info-visibility in a workspace application"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2163
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2164
    ^ self at:#infoVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2165
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2166
    "Created: / 14-07-2007 / 16:43:44 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2167
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2168
10815
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2169
language
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2170
    "/ intermediate migration code;
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2171
    "/ for now, Smalltalk uses a global language and territory setting;
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2172
    "/ however, for multi-user operation, this must be in a preference-setting.
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2173
    "/ for now, forward to smalltalk, while all references to "Smalltalk-language"
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2174
    "/ are replaced with "UserPreferences current language"
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2175
17729
4187f74d2df8 - small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17723
diff changeset
  2176
    ^ Language
10815
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2177
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2178
    "
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2179
     UserPreferences current language
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2180
    "
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2181
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2182
    "Created: / 20-09-2006 / 23:55:01 / cg"
17729
4187f74d2df8 - small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17723
diff changeset
  2183
    "Modified: / 21-08-2009 / 15:36:53 / Jan Vrany <vranyj1@fel.cvut.cz>"
10815
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2184
!
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2185
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2186
languageTerritory
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2187
    "/ intermediate migration code;
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2188
    "/ for now, Smalltalk uses a global language and territory setting;
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2189
    "/ however, for multi-user operation, this must be in a preference-setting.
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2190
    "/ for now, forward to smalltalk, while all references to "Smalltalk-language"
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2191
    "/ are replaced with "UserPreferences current language"
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2192
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2193
    ^ Smalltalk languageTerritory
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2194
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2195
    "
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2196
     UserPreferences current languageTerritory
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2197
    "
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2198
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2199
    "Created: / 20-09-2006 / 23:55:01 / cg"
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2200
!
69839cbc8c8e language, territory
Claus Gittinger <cg@exept.de>
parents: 10789
diff changeset
  2201
9989
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2202
localBuild
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2203
    ^ self at:#localBuild ifAbsent:false
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2204
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2205
    "Created: / 20-09-2006 / 23:55:01 / cg"
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2206
!
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2207
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2208
localBuild:aBoolean
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2209
    ^ self at:#localBuild put:aBoolean
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2210
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2211
    "
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2212
     UserPreferences current localBuild
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2213
    "
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2214
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2215
    "Created: / 20-09-2006 / 23:55:26 / cg"
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2216
!
5421d67d5e29 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9913
diff changeset
  2217
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2218
showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2219
    "return the flag which controls if a clock is shown in the launcher"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2220
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  2221
    ^ self at:#showClockInLauncher ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2222
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2223
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2224
     UserPreferences current showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2225
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2226
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2227
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2228
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2229
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2230
showClockInLauncher:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2231
    "set/clear the flag which controls if a clock is shown in the launcher"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2232
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2233
    ^ self at:#showClockInLauncher put:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2234
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2235
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2236
     UserPreferences current showClockInLauncher:false.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2237
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2238
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2239
     UserPreferences current showClockInLauncher:true.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2240
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2241
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2242
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2243
    "Modified: / 11.9.1998 / 00:09:59 / cg"
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2244
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2245
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2246
toolbarVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2247
    "return the flag which defaults the toolbar-visibility in a workspace application"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2248
10665
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  2249
    ^ self at:#toolbarVisibleInWorkspace ifAbsent:true
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  2250
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  2251
    "Modified: / 18-07-2007 / 08:55:44 / cg"
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2252
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2253
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2254
toolbarVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2255
    "set the flag which defaults the toolbar-visibility in a workspace application"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2256
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2257
    ^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2258
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2259
    "Created: / 14-07-2007 / 16:42:09 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2260
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  2261
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2262
useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2263
    ^ self at:#useNewLayoutInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2264
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2265
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2266
     UserPreferences current useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2267
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2268
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2269
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2270
useNewLayoutInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2271
    ^ self at:#useNewLayoutInDebugger put:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2272
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2273
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2274
useRefactoringSupport
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2275
    "return the flag which enables/disables use of refactoring package in browser.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2276
     If enabled, this enables all kinds of refactorings, better search and undo features.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2277
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2278
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  2279
    ^ self at:#useRefactoringSupport ifAbsent:true
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2280
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2281
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2282
useRefactoringSupport:aBooleanOrNil
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2283
    "enable/disable use of refactoring package in browser.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2284
     If enabled, this enables all kinds of refactorings, better search and undo features.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2285
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2286
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  2287
    ^ self at:#useRefactoringSupport put:aBooleanOrNil
7625
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  2288
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  2289
    "
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  2290
     UserPreferences current useRefactoringSupport:false
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  2291
     UserPreferences current useRefactoringSupport:true
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  2292
    "
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2293
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2294
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2295
verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2296
    ^ self at:#verboseBacktraceInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2297
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2298
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2299
     UserPreferences current verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2300
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2301
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2302
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2303
verboseBacktraceInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  2304
    ^ self at:#verboseBacktraceInDebugger put:aBoolean
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2305
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2306
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2307
!UserPreferences methodsFor:'default settings'!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2308
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2309
listOfPredefinedSyntaxColoringSchemes
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2310
    "return a list of pre-defined syntax highlightning styles
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2311
     (as shown in the Launchers 'source and debugger settings' dialog."
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2312
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2313
    ^ #(
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2314
            (#resetSyntaxColors                                         'default')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2315
            (#resetSyntaxColorsToVCStyle                                'green comments; blue controlFlow, red constants [visual-c style]')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2316
            (#resetSyntaxColorsBlueControlFlowSelectors                 'blue controlFlow')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2317
            (#resetSyntaxColorsGreenComments                            'green comments')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2318
            (#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors    'green comments; blue controlFlow')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2319
            (#resetSyntaxColorsBlueSelectorsGreenComments               'blue selectors; green comments [dolphin style]')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2320
            (#resetSyntaxColorsBlueSelectorsGreyComments                'blue selectors; grey comments')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2321
            (#resetSyntaxColorsToSqueakStyle                            'blue selectors; green comments [squeak style]')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2322
            (#resetSyntaxColorsAllBlackExceptBadIDs                     'no colors, but highlight errors')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2323
            (#resetSyntaxColorsToVW7Style                               'light blue comments [vw7 style]')
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2324
      )
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2325
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2326
    "Modified: / 08-09-2006 / 16:11:34 / cg"
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2327
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2328
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2329
resetSyntaxColors
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2330
    "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
  2331
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2332
    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
  2333
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2334
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2335
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2336
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2337
resetSyntaxColorsAllBlackExceptBadIDs
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2338
    "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
  2339
     except for bad identifiers, which are underwaved."
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2340
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2341
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2342
    self at:#badIdentifierEmphasis  put:(Array with:#underwave with:(#underlineColor->Color red)).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2343
    self at:#errorColor             put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2344
    self at:#commentColor           put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2345
    self at:#constantColor          put:Color black.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2346
    self at:#methodSelectorEmphasis put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2347
    self at:#selectorEmphasis       put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2348
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2349
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2350
resetSyntaxColorsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2351
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2352
     (with blue control flow selectors)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2353
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2354
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2355
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2356
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2357
    "Created: / 08-09-2006 / 16:11:52 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2358
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2359
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2360
resetSyntaxColorsBlueSelectorsGreenComments
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2361
    "resets the colors in the CurrentPreferences to alternative default values
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2362
     (with blue selectors and green comments)"
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2363
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2364
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2365
    self at:#commentColor           put:(Color green darkened).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2366
    self at:#commentEmphasis        put:#italic.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2367
    self at:#selectorColor          put:(Color blue).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2368
    self at:#selectorEmphasis       put:#normal.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2369
    self at:#methodSelectorColor    put:(Color blue).
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2370
    self at:#methodSelectorEmphasis put:#bold.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2371
!
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2372
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2373
resetSyntaxColorsBlueSelectorsGreyComments
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2374
    "resets the colors in the CurrentPreferences to alternative default values
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2375
     (with blue selectors and grey comments)"
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2376
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2377
    self resetSyntaxColorsBlueSelectorsGreenComments.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  2378
    self at:#commentColor    put:(Color gray).
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2379
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  2380
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2381
resetSyntaxColorsGreenComments
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2382
    "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
  2383
     (with green comments)"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2384
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2385
    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
  2386
    self at:#commentColor put:(Color green darkened).
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2387
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2388
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2389
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2390
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2391
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2392
     (with green comments, blue control flow)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2393
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2394
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2395
    self at:#commentColor put:(Color green darkened).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2396
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2397
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2398
    "Created: / 08-09-2006 / 16:10:38 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2399
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2400
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2401
resetSyntaxColorsToSqueakStyle
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2402
    "resets the colors in the CurrentPreferences to alternative default values
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2403
     (with blue selectors and green comments)"
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2404
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2405
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2406
    self at:#commentColor             put:(Color green darkened).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2407
    self at:#commentEmphasis          put:#italic.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2408
    self at:#selectorColor            put:(Color blue:80).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2409
    self at:#selectorEmphasis         put:#normal.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2410
    self at:#methodSelectorColor      put:(Color black).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2411
    self at:#methodSelectorEmphasis   put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2412
    self at:#globalIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2413
    self at:#localIdentifierColor     put:(Color grey:40).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2414
    self at:#instVarIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2415
    self at:#constantColor            put:(Color red:67).
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2416
!
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2417
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2418
resetSyntaxColorsToVCStyle
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2419
    "resets the colors in the CurrentPreferences to visual C default style
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2420
     (green comments, blue keywords, redish string constants)"
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2421
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2422
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2423
    self at:#controlFlowSelectorColor put:(Color blue).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2424
    self at:#commentColor             put:(Color green darkened).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2425
    self at:#constantColor            put:(Color red:64 green:8 blue:8).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2426
!
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  2427
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2428
resetSyntaxColorsToVW7Style
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2429
    "resets the colors in the CurrentPreferences to alternative default values
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2430
     (with light blue comments, green variables)"
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2431
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2432
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2433
    self at:#commentColor             put:(Color blue lightened).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2434
    self at:#selectorColor            put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2435
    self at:#selectorEmphasis         put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2436
    self at:#methodSelectorColor      put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2437
    self at:#methodSelectorEmphasis   put:#bold.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2438
    self at:#identifierEmphasis       put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  2439
    self at:#identifierColor          put:(Color green darkened).
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2440
! !
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  2441
7266
f2b64d3b43cf method category rename
Claus Gittinger <cg@exept.de>
parents: 7246
diff changeset
  2442
!UserPreferences methodsFor:'default values'!
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2443
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2444
defaultValue
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2445
    "the defaultValue for non-existing keys"
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2446
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2447
    ^ false
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2448
!
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2449
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2450
errorKeyNotFound:aKey
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2451
    "for any non-existing key, false is returned"
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2452
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  2453
    ^ self defaultValue
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2454
! !
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  2455
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2456
!UserPreferences methodsFor:'misc'!
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2457
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2458
flyByHelpSettingChanged
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2459
    FlyByHelp notNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2460
	(CurrentPreferences at:#flyByHelpActive) ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2461
	    FlyByHelp start.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2462
	] ifFalse:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2463
	    FlyByHelp stop.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2464
	].
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2465
    ].
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2466
! !
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  2467
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2468
!UserPreferences methodsFor:'obsolete'!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2469
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2470
useNewSettinsApplication
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  2471
    <resource: #obsolete>
8545
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  2472
    "obsolete - will be removed in next release.
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  2473
     (this is kept for a while, as it may have found its way into some
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  2474
      saved user preference files)"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2475
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  2476
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  2477
    ^ self useNewSettingsApplication
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2478
!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2479
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2480
useNewSettinsApplication:aBoolean
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  2481
    <resource: #obsolete>
7030
52b794e6abee *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7029
diff changeset
  2482
    "obsolete - will be removed in next release"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2483
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  2484
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  2485
    self useNewSettingsApplication:aBoolean.
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2486
! !
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  2487
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2488
!UserPreferences methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2489
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2490
saveIn:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2491
    self class saveSettings:self in:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2492
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  2493
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2494
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2495
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2496
version
17729
4187f74d2df8 - small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17723
diff changeset
  2497
    ^ '$Id: UserPreferences.st 10468 2009-08-22 08:34:50Z vranyj1 $'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2498
! !