UserPreferences.st
author Claus Gittinger <cg@exept.de>
Mon, 13 Feb 2012 12:59:34 +0100
changeset 14005 7d4c58528d0e
parent 14004 a1ea1699f5b0
child 14006 33c624d11a9d
permissions -rw-r--r--
added: #resetSyntaxColorsWithSideEffectHighlighting changed: #listOfPredefinedSyntaxColoringSchemes
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
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
    87
        "/ I prefer red-underwave over red identifier ...
Claus Gittinger <cg@exept.de>
parents: 13973
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
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
    91
        "/ I prefer redish background
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
    92
        "/      #sideEffectAssignmentColor          (Color 75 0 0)
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
    93
        #sideEffectAssignmentBackgroundColor    (Color 75 0 25)
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    94
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    95
"/        #jsKeywordColor                 (Color black)
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    96
        #jsKeywordEmphasis              bold
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    97
        #jsKeywordColor                 (Color 33 33 0)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    98
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
    99
        #controlFlowSelectorColor       (Color 0 0 100)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
   100
        #commentColor                   (Color 0 50 0)
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
   101
        #constantColor                  (Color 64 8 8)
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   102
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   103
     ) pairWiseDo:[:k :v |
11694
7200ceadd215 default colors
Claus Gittinger <cg@exept.de>
parents: 11691
diff changeset
   104
        DefaultPreferences at:k put:(v decodeAsLiteralArray).
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   105
    ].
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   106
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
   107
    "/ I prefer red-underwave over red identifier ...
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   108
    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
   109
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   110
    "
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   111
     self initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   112
    "
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   113
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
   114
    "Modified (comment): / 13-02-2012 / 11:36:08 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   115
! !
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   116
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    CurrentPreferences isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   121
	CurrentPreferences := self new.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   122
	CurrentPreferences addAll:self default.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   123
	CurrentPreferences flyByHelpSettingChanged.
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   127
    "
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   128
     CurrentPreferences := nil
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   129
    "
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   130
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   131
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   132
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   133
    DefaultPreferences isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   134
	self initializeDefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   135
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   136
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   137
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   138
    "
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   139
     DefaultPreferences := nil.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   140
    "
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   141
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   142
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   143
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   144
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   145
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   146
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   147
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   148
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   149
syntaxColorKeys
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   150
    "returns the keys of syntax color items"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   151
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   152
    ^#(
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   153
	argumentIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   154
	  argumentIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   155
	booleanConstantColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   156
	  booleanConstantEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   157
	bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   158
	  bracketEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   159
	classVariableIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   160
	  classVariableIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   161
	constantColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   162
	  constantEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   163
	controlFlowSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   164
	  controlFlowSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   165
	commentColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   166
	  commentEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   167
	defaultSyntaxColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   168
	  defaultSyntaxEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   169
	errorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   170
	globalIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   171
	  globalIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   172
	globalClassIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   173
	  globalClassIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   174
	hereColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   175
	  hereEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   176
	identifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   177
	  identifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   178
	instVarIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   179
	  instVarIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   180
	localIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   181
	  localIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   182
	methodSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   183
	  methodSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   184
	poolVariableIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   185
	  poolVariableIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   186
	returnColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   187
	  returnEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   188
	selectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   189
	  selectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   190
	selfColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   191
	  selfEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   192
	stringColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   193
	  stringEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   194
	superColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   195
	  superEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   196
	symbolColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   197
	  symbolEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   198
	thisContextColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   199
	  thisContextEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   200
	unknownIdentifierColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   201
	  unknownIdentifierEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   202
	unimplementedSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   203
	  unimplementedSelectorEmphasis
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
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
   206
    "Modified: / 08-09-2006 / 16:06:54 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   207
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   208
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   209
syntaxColorNames
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   210
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   211
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   212
"/ warning, the strings below are presented to the user
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   213
"/ as the syntax-color boxes comboList - however, they are
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   214
"/ also used (without separators) as key into myself.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   215
"/ Therefore, do not change the strings below.
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   216
"/ I know - this is bad coding ....
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   217
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   218
^#(
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   219
'Argument Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   220
'Boolean Constant Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   221
'Bracket Color'
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
   222
'Class Variable Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   223
'Constant Color'
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
   224
'Control Flow Selector Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   225
'Comment Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   226
'Global Identifier Color'
4024
3a223c79e41c added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4023
diff changeset
   227
'Global Class Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   228
'Here Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   229
'Identifier Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   230
'InstVar Identifier Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   231
'Local Identifier Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   232
'Method Selector Color'
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
   233
'Pool Variable Identifier Color'
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
   234
'Return Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   235
'Selector Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   236
'Self Color'
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
   237
'Side Effect Assignment Color'
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
   238
'Side Effect Assignment Background Color'
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   239
'String Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   240
'Super Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   241
'Symbol Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   242
'This Context Color'
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   243
'Unknown Identifier Color'
4319
8408b1df9e72 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4318
diff changeset
   244
'Unimplemented Selector Color'
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
   245
)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   246
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
   247
    "Modified: / 13-02-2012 / 11:57:38 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   250
!UserPreferences class methodsFor:'accessing - defaults'!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   251
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   252
defaultUserSettingsFile
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   253
    ^ (Filename homeDirectory construct:'.smalltalk') construct:'settings.rc'
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   254
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   255
    "Created: / 06-10-2008 / 08:27:15 / Jan Vrany <vranyj1@fel.cvut.cz>"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   256
! !
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   257
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   258
!UserPreferences class methodsFor:'accessing defaultPrefs'!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   259
11006
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   260
defaultSettingsFilename
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   261
    ^ 'settings.stx'
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   262
!
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   263
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   264
fileBrowserClass
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   265
    "the class to be used for file browsing (used to be the simple FileBrowser, but is now the FileBrowserV2)"
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   266
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   267
    ^ self current fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   268
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   269
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   270
     UserPreferences fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   271
    "
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   272
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   273
    "Modified: / 17-07-2010 / 14:50:34 / cg"
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   274
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   275
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   276
systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   277
    ^ self current systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   278
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   279
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   280
     UserPreferences systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   281
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   282
!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   283
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   284
versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   285
    ^ self current versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   286
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   287
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   288
     UserPreferences versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   289
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   290
! !
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   291
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   292
!UserPreferences class methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   293
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   294
saveSettings:userPrefs in:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   295
    "save settings to a settings-file."
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   296
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   297
    "a temporary kludge for old classVariable-based settings
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   298
     - all of those MUST go into the user-preferences dictionary eventually"
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   299
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   300
    |s screen|
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   301
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   302
    s := fileName asFilename writeStream.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   303
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   304
    screen := Screen current.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   305
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   306
    s nextPutLine:'"/ ST/X saved settings';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   307
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   308
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   309
      nextPutLine:'"/';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   310
      nextPutLine:'"/ this file was automatically generated by the';
7047
7236b784afa4 httpServer settings to user preferences to allow save in settings file
penk
parents: 7037
diff changeset
   311
      nextPutLine:'"/ ''save settings'' function of the SettingsDialog';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   312
      nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   313
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   314
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   315
    s nextPutLine:'"/'.
8252
16ed6cd9868d Use Timestamp/#asTimestamp instead of AbsoluteTime/#asAbsoluteTime
Stefan Vogel <sv@exept.de>
parents: 8233
diff changeset
   316
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   317
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   318
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   319
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   320
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   321
    s nextPutLine:'"/ Display settings:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   322
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   323
    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   324
    s nextPutLine:'Display notNil ifTrue:['.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   325
    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   326
      screen fixColors notNil ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   327
        s nextPutLine:'  Image flushDeviceImages.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   328
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   329
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   330
        s nextPutLine:'  ].'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   331
      ] ifFalse:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   332
        s nextPutLine:'  Display releaseFixColors.'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   333
      ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   334
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   335
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   336
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   337
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   338
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   339
      s nextPutLine:'  View defaultStyle:' , View defaultStyle storeString , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   340
    s nextPutLine:' ].'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   341
    s nextPutLine:'].'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   342
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   343
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   344
    s nextPutLine:'"/'.
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   345
    s nextPutLine:'"/ Parser/Compiler settings:'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   346
    s nextPutLine:'"/'.
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   347
    s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.';
9099
1b84eeb2d892 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9095
diff changeset
   348
      nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   349
      nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   350
      nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   351
      nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   352
      nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   353
      nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   354
      nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   355
      nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   356
      nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   357
      nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   358
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   359
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   360
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   361
      nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   362
      nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   363
      nextPutLine:'  ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   364
      nextPutLine:'  ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   365
      nextPutLine:'  ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   366
      nextPutLine:'  ' , (ParserFlags stcModulePath storeString) , ' asFilename exists ifTrue:[';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   367
      nextPutLine:'    ParserFlags stcModulePath: ' , (ParserFlags stcModulePath storeString) , '.';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   368
      nextPutLine:'  ].';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   369
      nextPutLine:'  ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   370
      nextPutLine:'  ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   371
      nextPutLine:'  ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   372
      nextPutLine:'  ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.';
9809
467839c26e46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9807
diff changeset
   373
      nextPutLine:'  ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   374
      nextPutLine:'  ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.';
9492
89bfc46b3b48 make command
fm
parents: 9491
diff changeset
   375
      nextPutLine:'  ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.';
9095
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   376
      nextPutLine:'  ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.';
fc7e3c1d66be stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents: 9055
diff changeset
   377
      nextPutLine:'  ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   378
      nextPutLine:'].';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   379
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   380
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   381
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   382
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   383
    HistoryManager notNil ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   384
        HistoryManager isActive ifTrue:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   385
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   386
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   387
        ] ifFalse:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   388
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   389
        ].
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   390
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   391
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   392
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   393
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   394
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   395
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   396
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   397
    s nextPutLine:'"/ Info & Debug Messages:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   398
    s nextPutLine:'"/'.
9055
405198de7653 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8965
diff changeset
   399
    s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   400
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
9055
405198de7653 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8965
diff changeset
   401
      nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   402
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   403
8619
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   404
"/    FlyByHelp isActive ifTrue:[
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   405
"/        s nextPutLine:'FlyByHelp start.'
03579873ab0d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8593
diff changeset
   406
"/    ].
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   407
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   408
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   409
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   410
    s nextPutLine:'"/ Edit settings:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   411
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   412
    "/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   413
    s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   414
    s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   415
    (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   416
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   417
    ] ifFalse:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   418
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   419
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   420
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   421
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   422
    s nextPutLine:'"/ User preference values:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   423
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   424
    userPrefs keysAndValuesDo:[:k :v |
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   425
        |putSelector|
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   426
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   427
        putSelector := (k , ':') asSymbolIfInterned.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   428
        (UserPreferences includesSelector:putSelector) ifTrue:[
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   429
            s nextPutAll:'UserPreferences current ';
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   430
              nextPutAll:putSelector.
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   431
        ] ifFalse:[
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   432
            s nextPutAll:'UserPreferences current at:'.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   433
            k storeOn:s.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   434
            s nextPutAll:' put:'.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   435
        ].
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   436
        v storeOn:s.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   437
        s nextPut:$.; cr.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   438
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   439
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   440
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   441
    s nextPutLine:'"/'.
8424
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   442
    s nextPutLine:'"/ GC settings:'.
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   443
    s nextPutLine:'"/'.
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   444
    s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   445
      nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   446
      nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   447
      nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   448
      nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   449
      nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.';
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   450
      nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'.
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   451
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   452
    s cr.
6afb1a161efa Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents: 8420
diff changeset
   453
    s nextPutLine:'"/'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   454
    s nextPutLine:'"/ Misc settings:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   455
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   456
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   457
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   458
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   459
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   460
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   461
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   462
      "/ claus - I dont think its a good idea to save those ...
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   463
"/      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   464
"/      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   465
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   466
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   467
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   468
      nextPutLine:'Display notNil ifTrue:[';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   469
      nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   470
      nextPutLine:'].';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   471
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   472
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
7037
0771e159ad40 Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents: 7030
diff changeset
   473
    (NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   474
        s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   475
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   476
    Processor isTimeSlicing ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   477
        s nextPutLine:'Processor startTimeSlicing.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   478
        s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   479
    ] ifFalse:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   480
        s nextPutLine:'Processor stopTimeSlicing.'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   481
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   482
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   483
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   484
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   485
    s nextPutLine:'"/ Printer settings:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   486
    s nextPutLine:'"/'.
9491
4c56104767bc care for nil printer
fm
parents: 9487
diff changeset
   487
    Printer notNil ifTrue:[
11983
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   488
        s nextPutLine:'Printer := ' , (Printer name) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   489
        Printer supportsPrintingToCommand ifTrue:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   490
            s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   491
        ].
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   492
        Printer supportsPageSizes ifTrue:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   493
            s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   494
            s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   495
        ].
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   496
        Printer supportsMargins ifTrue:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   497
            s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   498
            s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   499
            s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   500
            s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   501
        ].
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   502
        Printer supportsPostscript ifTrue:[
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   503
            s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
1cbdd1c24ea5 changed: #saveSettings:in:
fm
parents: 11943
diff changeset
   504
        ].
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   505
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   506
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   507
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   508
    s nextPutLine:'"/ Font settings:'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   509
    s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   510
    s nextPutLine:'"/'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   511
    s nextPutLine:'Display notNil ifTrue:['.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   512
    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   513
    s nextPutLine:'  View defaultFont: ' , (View defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   514
    s nextPutLine:'  Label defaultFont: ' , (Label defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   515
    s nextPutLine:'  Button defaultFont: ' , (Button defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   516
    s nextPutLine:'  Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   517
    s nextPutLine:'  SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   518
    s nextPutLine:'  MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
7862
778a5ae98449 *** empty log message ***
ca
parents: 7714
diff changeset
   519
    s nextPutLine:'  MenuPanel defaultFont: ' , (MenuPanel defaultFont storeString) , '.'.
778a5ae98449 *** empty log message ***
ca
parents: 7714
diff changeset
   520
    s nextPutLine:'  NoteBookView defaultFont: ' , (NoteBookView defaultFont storeString) , '.'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   521
    s nextPutLine:'  PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   522
    s nextPutLine:'  TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   523
    s nextPutLine:'  EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   524
    s nextPutLine:'  CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   525
    s nextPutLine:' ].'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   526
    s nextPutLine:'].'.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   527
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   528
    s cr.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   529
    s nextPutLine:'"/'.
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   530
    s nextPutLine:'"/ SourceCodeManager settings:'.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   531
    s nextPutLine:'"/ (repositories are networked nowadays, so the settings are host independent)'.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   532
    s nextPutLine:'"/'.
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   533
    s nextPutLine:'Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
   534
    s nextPutLine:'AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'.
13340
47201972e303 added:6 methods
Claus Gittinger <cg@exept.de>
parents: 13308
diff changeset
   535
47201972e303 added:6 methods
Claus Gittinger <cg@exept.de>
parents: 13308
diff changeset
   536
    AbstractSourceCodeManager availableManagers do:[:eachManager |
47201972e303 added:6 methods
Claus Gittinger <cg@exept.de>
parents: 13308
diff changeset
   537
        eachManager savePreferencesOn:s
9742
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
   538
    ].
13340
47201972e303 added:6 methods
Claus Gittinger <cg@exept.de>
parents: 13308
diff changeset
   539
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   540
    s close.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   541
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   542
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   543
     Transcript topView application saveSettings
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   544
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   545
9492
89bfc46b3b48 make command
fm
parents: 9491
diff changeset
   546
    "Modified: / 09-08-2006 / 18:52:14 / fm"
13340
47201972e303 added:6 methods
Claus Gittinger <cg@exept.de>
parents: 13308
diff changeset
   547
    "Modified: / 18-04-2011 / 17:13:34 / cg"
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   548
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   549
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   550
!UserPreferences methodsFor:'acccesing-locale'!
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   551
12167
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   552
dateInputFormat
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   553
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   554
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   555
    ^ self 
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   556
        at:#dateInputFormat 
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   557
        ifAbsentPut:[
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   558
            (self language == #en and:[ self languageTerritory ~= #en])
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   559
                ifTrue:[ '%m %d %y' ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   560
                ifFalse:[ '%d %m %y' ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   561
        ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   562
!
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   563
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   564
dateInputFormat:aFormatString
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   565
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   566
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   567
    ^ self 
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   568
        at:#dateInputFormat 
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   569
        ifAbsentPut:[
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   570
            (self language == #en and:[ self languageTerritory ~= #en])
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   571
                ifTrue:[ '%m %d %y' ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   572
                ifFalse:[ '%d %m %y' ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   573
        ]
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   574
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   575
    "
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   576
     UserPreferences current dateInputFormat:'%d %m %y'  -- european
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   577
     UserPreferences current dateInputFormat:'%m %d %y'  -- us
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   578
    "
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   579
!
Claus Gittinger <cg@exept.de>
parents: 12117
diff changeset
   580
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   581
decimalPointCharacter
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
   582
    "toDo: migrate from ClassVar in Number;
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   583
     use this for new applications"
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   584
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   585
    ^ $.
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   586
!
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   587
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   588
thousandsSeparatorCharacter
11213
8457d57d9b76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11143
diff changeset
   589
    "toDo: migrate from ClassVar elsewhere;
10861
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   590
     use this for new applications"
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   591
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   592
    ^ $'
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   593
! !
d55a1b396726 thousands character
Claus Gittinger <cg@exept.de>
parents: 10815
diff changeset
   594
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   595
!UserPreferences methodsFor:'accessing'!
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   596
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   597
at:key 
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   598
    ^ super at:key asSymbol
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   599
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   600
    "Created: / 15-01-2012 / 14:27:29 / cg"
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   601
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   602
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   603
at:key ifAbsent:exceptionValue
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   604
    ^ super at:key asSymbol ifAbsent:exceptionValue
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   605
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   606
    "Created: / 15-01-2012 / 14:27:21 / cg"
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   607
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   608
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   609
at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   610
    |classNameToCheck classToCheck|
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   611
13119
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   612
"/    key isSymbol ifFalse:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   613
"/        self halt.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   614
"/        self at:key asSymbol put:value.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   615
"/        ^ self
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   616
"/    ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   617
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   618
    value == true ifTrue:[
13119
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   619
        key == #useNewVersionDiffBrowser ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   620
            classNameToCheck := #'VersionDiffBrowser'.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   621
        ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   622
        key == #useNewChangesBrowser ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   623
            classNameToCheck := #'NewChangesBrowser'.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   624
        ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   625
        key == #useNewFileBrowser ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   626
            classNameToCheck := #'FileBrowserV2'.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   627
        ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   628
        key == #useNewSystemBrowser ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   629
            classNameToCheck := #'Tools::NewSystemBrowser'.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   630
        ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   631
        key == #useNewInspector ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   632
            classNameToCheck := #'NewInspector::NewInspectorView'.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   633
        ].
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   634
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   635
5791
8e96850a568d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5790
diff changeset
   636
    classNameToCheck notNil ifTrue:[
13119
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   637
        classToCheck := Smalltalk at:classNameToCheck.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   638
        classToCheck isNil ifTrue:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   639
            ('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   640
        ] ifFalse:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   641
            Autoload autoloadFailedSignal handle:[:ex |
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   642
                'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   643
            ] do:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   644
                classToCheck autoload.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   645
            ]
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   646
        ]
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   647
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   648
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   649
    ^ super at:key asSymbol put:value
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   650
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   651
    "Modified: / 15-01-2012 / 14:26:53 / cg"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   652
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   653
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   654
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   655
!UserPreferences methodsFor:'accessing-misc-communication'!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   656
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   657
dotNetBridgeRunsInIDE
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   658
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   659
     already running and the bridge-exe will not be started by st/x"
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   660
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   661
    ^ self at:#dotNetBridgeRunsInIDE ifAbsent:false
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   662
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   663
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   664
dotNetBridgeRunsInIDE:aBoolean
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   665
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   666
     already running and the bridge-exe will not be started by st/x"
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   667
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   668
    ^ self at:#dotNetBridgeRunsInIDE put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   669
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   670
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   671
dotNetBridgeVerbose
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   672
    ^ self at:#dotNetBridgeVerbose ifAbsent:false
11027
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   673
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   674
    "
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   675
     UserPreferences current dotNetBridgeVerbose
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   676
    "
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   677
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   678
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   679
dotNetBridgeVerbose:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   680
    ^ self at:#dotNetBridgeVerbose put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   681
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   682
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   683
javaBridgeRunsInIDE
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   684
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   685
     already running and the bridge-exe will not be started by st/x"
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   686
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   687
    ^ self at:#javaBridgeRunsInIDE ifAbsent:false
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   688
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   689
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   690
javaBridgeRunsInIDE:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   691
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   692
     already running and the bridge-exe will not be started by st/x"
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   693
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   694
    ^ self at:#javaBridgeRunsInIDE put:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   695
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   696
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   697
logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   698
    ^ self at:#logHTTPRequests ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   699
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   700
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   701
logHTTPRequests:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   702
    ^ self at:#logHTTPRequests put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   703
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   704
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   705
     UserPreferences current logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   706
     UserPreferences current logHTTPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   707
     UserPreferences current logHTTPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   708
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   709
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   710
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   711
logSOAPRequests
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
   712
    ^ (self soapLoggingLevel ? 0) > 0
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   713
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   714
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   715
logSOAPRequests:aBoolean
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
   716
    self soapLoggingLevel:(aBoolean ifTrue:3 ifFalse:0)
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   717
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   718
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   719
     UserPreferences current logSOAPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   720
     UserPreferences current logSOAPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   721
     UserPreferences current logSOAPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   722
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   723
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
   724
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   725
smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   726
    ^ self at:#smtpServerName ifAbsent:nil
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   727
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   728
    "Created: / 20-09-2007 / 15:59:20 / cg"
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   729
!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   730
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   731
smtpServerName:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   732
    ^ self at:#smtpServerName put:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   733
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   734
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   735
     UserPreferences current smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   736
     UserPreferences current smtpServerName:'mailhost'
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   737
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   738
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   739
    "Created: / 20-09-2007 / 15:59:58 / cg"
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   740
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   741
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   742
soapErrorDebugging
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   743
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   744
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   745
    ^ self at:#soapErrorDebugging ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   746
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   747
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   748
soapErrorDebugging:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   749
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   750
    ^ self at:#soapErrorDebugging put:aBoolean
12774
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
   751
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
   752
    "
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
   753
     UserPreferences current soapErrorDebugging:true
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
   754
    "
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   755
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
   756
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   757
soapLoggingLevel
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   758
    ^ self at:#soapLoggingLevel ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   759
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   760
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   761
soapLoggingLevel:anIntegerBetween0_and_3
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
   762
    ^ self at:#soapLoggingLevel put:anIntegerBetween0_and_3
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   763
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   764
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   765
socksProxyHost
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   766
    ^ self at:#socksProxyHost ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   767
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   768
    "Created: / 27-12-2011 / 14:40:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   769
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   770
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   771
socksProxyHost:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   772
    ^ self at:#socksProxyHost put:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   773
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   774
    "Created: / 27-12-2011 / 14:42:15 / cg"
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   775
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   776
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   777
socksProxyPort
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   778
    ^ self at:#socksProxyPort ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   779
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
   780
    "Created: / 27-12-2011 / 14:40:32 / cg"
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   781
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   782
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   783
socksProxyPort:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   784
    ^ self at:#socksProxyPort put:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   785
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
   786
    "Created: / 27-12-2011 / 14:42:29 / cg"
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   787
! !
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   788
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   789
!UserPreferences methodsFor:'accessing-pref''d tools'!
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   790
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   791
changeSetBrowserClass
13523
03ec11a75c9d changed: #changeSetBrowserClass
sr
parents: 13522
diff changeset
   792
    ^ ChangeSetBrowser.
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   793
    ^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   794
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   795
    "Created: / 01-07-2011 / 16:33:13 / cg"
13523
03ec11a75c9d changed: #changeSetBrowserClass
sr
parents: 13522
diff changeset
   796
    "Modified: / 25-07-2011 / 12:21:42 / sr"
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   797
!
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
   798
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   799
changesBrowserClass
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   800
    self useNewChangesBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   801
	^ (NewChangesBrowser ? ChangesBrowser)
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   802
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   803
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   804
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   805
    "Created: / 17.10.1998 / 14:37:46 / cg"
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   806
!
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   807
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   808
fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   809
    self useNewFileBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   810
	^ (FileBrowserV2 ? FileBrowser)
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   811
    ].
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   812
    ^ FileBrowser
8869
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   813
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   814
    "
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   815
     UserPreferences current fileBrowserClass
6b7d0f4c1e24 comments
Claus Gittinger <cg@exept.de>
parents: 8826
diff changeset
   816
    "
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   817
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   818
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   819
inspectorClassSetting
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   820
    self useNewInspector ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   821
	^ (NewInspector::NewInspectorView ? InspectorView)
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   822
    ].
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   823
    ^ InspectorView
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   824
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   825
    "Modified: / 12.11.2001 / 15:47:35 / cg"
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
   826
    "Created: / 12.11.2001 / 15:49:00 / cg"
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   827
!
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
   828
11005
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   829
showTipOfTheDayAtStartup
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   830
    ^ self at:#showTipOfTheDayAtStartup ifAbsent:false
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   831
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   832
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   833
showTipOfTheDayAtStartup:aBoolean
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   834
    self at:#showTipOfTheDayAtStartup put:aBoolean.
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   835
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
   836
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   837
systemBrowserClass
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   838
    self useNewSystemBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   839
	^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser)
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   840
    ].
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
   841
    ^ SystemBrowser
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   842
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   843
13502
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   844
testRunnerClass
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   845
    self useTestRunner2 ifTrue:[
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   846
        ^ Tools::TestRunner2 ? TestRunner
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   847
    ].
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   848
    ^ TestRunner
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   849
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   850
    "Created: / 06-07-2011 / 13:55:03 / cg"
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   851
!
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
   852
13486
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   853
useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   854
    "using brand new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   855
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   856
    ^ self at:#useInspector2 ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   857
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   858
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   859
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   860
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   861
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   862
    "Modified: / 17-10-1998 / 14:45:12 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   863
    "Created: / 03-07-2011 / 22:35:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   864
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   865
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   866
useInspector2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   867
    "using very new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   868
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   869
    self at:#useInspector2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   870
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   871
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   872
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   873
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   874
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   875
    "Created: / 03-07-2011 / 22:36:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   876
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
   877
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   878
useNativeFileDialog
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   879
    ^ self nativeFileDialogs
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   880
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   881
    "Modified: / 24-08-2010 / 17:02:10 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   882
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   883
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   884
useNativeFileDialog:aBoolean
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   885
    self nativeFileDialogs:aBoolean
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   886
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
   887
    "Modified: / 24-08-2010 / 17:02:13 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   888
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
   889
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   890
useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   891
    "using new or old change browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   892
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   893
    ^ self at:#useNewChangesBrowser ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   894
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   895
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   896
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   897
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   898
useNewChangesBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   899
    "using new or old changeBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   900
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   901
    self at:#useNewChangesBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   902
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   903
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   904
     UserPreferences current useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   905
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   906
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   907
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   908
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   909
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   910
useNewFileBrowser
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   911
    "using new or old version diff viewer"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   912
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   913
    ^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded])
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   914
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   915
    "Modified: / 13.10.1998 / 15:53:05 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   916
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   917
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   918
useNewFileBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   919
    "using new or old file browser"
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   920
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   921
    self at:#useNewFileBrowser put:aBoolean
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   922
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   923
    "
6769
8cd2d038bfc6 *** empty log message ***
penk
parents: 6767
diff changeset
   924
     UserPreferences current useNewFileBrowser
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   925
    "
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   926
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   927
    "Modified: / 13.10.1998 / 15:53:21 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   928
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
   929
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   930
useNewFileDialog
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   931
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   932
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   933
    ^ self at:#useNewFileDialog ifAbsent:true
13973
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   934
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   935
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   936
     UserPreferences current useNewFileDialog:false
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   937
     UserPreferences current useNewFileDialog:true
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   938
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   939
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
   940
    "Modified (comment): / 23-01-2012 / 17:25:01 / cg"
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   941
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   942
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   943
useNewFileDialog:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   944
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   945
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   946
    self at:#useNewFileDialog put:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   947
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   948
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   949
     UserPreferences current useNewFileDialog:true
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   950
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   951
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
   952
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   953
useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   954
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   955
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   956
    ^ self at:#useNewInspector ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   957
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   958
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   959
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   960
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   961
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   962
    "Modified: / 17.10.1998 / 14:45:12 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   963
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   964
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   965
useNewInspector:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   966
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   967
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
   968
    self at:#useNewInspector put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   969
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   970
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   971
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   972
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   973
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   974
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   975
useNewSettingsApplication
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   976
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   977
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
   978
    ^ self at:#useNewSettingsApplication ifAbsent:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   979
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   980
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   981
useNewSettingsApplication:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   982
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   983
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   984
    self at:#useNewSettingsApplication put:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   985
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   986
    "
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
   987
     UserPreferences current useNewSettingsApplication:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   988
    "
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   989
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   990
    "Modified: / 13.10.1998 / 15:53:21 / cg"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   991
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
   992
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   993
useNewSystemBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   994
    "using new or old system browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
   995
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   996
    |newSystemBrowserClass useIt|
8000
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
   997
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
   998
    newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser).
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
   999
    useIt := self at:#useNewSystemBrowser ifAbsent:nil.
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1000
    useIt isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1001
	useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]).
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1002
	useIt ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1003
	    self at:#useNewSystemBrowser put:true.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1004
	].
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1005
    ].
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1006
    ^ useIt
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1007
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1008
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1009
useNewSystemBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1010
    "using new or old systemBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1011
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1012
    self at:#useNewSystemBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1013
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1014
    "
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1015
     UserPreferences current useNewSystemBrowser:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1016
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1017
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1018
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1019
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1020
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1021
useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1022
    "using new or old version diff viewer"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1023
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1024
    ^ self at:#useNewVersionDiffBrowser ifAbsent:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1025
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1026
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1027
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1028
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1029
useNewVersionDiffBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1030
    "using new or old versionDiffBrowser"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1031
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1032
    self at:#useNewVersionDiffBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1033
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1034
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1035
     UserPreferences current useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1036
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1037
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1038
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1039
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1040
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1041
useProcessMonitorV2
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1042
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1043
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1044
    ^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil)
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1045
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1046
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1047
useProcessMonitorV2:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1048
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1049
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1050
    self at:#useProcessMonitorV2 put:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1051
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1052
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1053
     UserPreferences current useProcessMonitorV2:true
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1054
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1055
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1056
    "Modified: / 13.10.1998 / 15:53:21 / cg"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1057
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1058
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1059
useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1060
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1061
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1062
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1063
    ^ self at:#useSmalltalkDocumentViewer ifAbsent:true
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1064
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1065
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1066
     UserPreferences current useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1067
     UserPreferences current useSmalltalkDocumentViewer:false
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1068
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1069
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1070
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1071
useSmalltalkDocumentViewer:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1072
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1073
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1074
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1075
    ^ self at:#useSmalltalkDocumentViewer put:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1076
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1077
13501
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1078
useTestRunner2
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1079
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1080
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1081
    ^ self at:#useTestRunner2 ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1082
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1083
    "Created: / 06-07-2011 / 13:41:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1084
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1085
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1086
useTestRunner2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1087
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1088
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1089
    self at:#useTestRunner2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1090
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1091
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1092
     UserPreferences current useTestRunner2:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1093
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1094
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1095
    "Created: / 06-07-2011 / 13:41:40 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1096
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1097
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1098
versionDiffViewerClass
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1099
    self useNewVersionDiffBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1100
	^ (VersionDiffBrowser ? DiffTextView)
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1101
    ].
10992
f03d40b016f4 use new DiffCodeView
Claus Gittinger <cg@exept.de>
parents: 10924
diff changeset
  1102
    ^ DiffCodeView
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1103
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1104
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1105
!UserPreferences methodsFor:'accessing-prefs-UI'!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
  1106
11390
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1107
allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1108
    "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
  1109
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1110
    ^ self at:#allowMouseWheelZoom ifAbsent:[ true ]
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1111
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1112
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1113
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1114
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1115
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1116
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1117
allowMouseWheelZoom:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1118
    "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
  1119
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1120
    ^ self at:#allowMouseWheelZoom put:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1121
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1122
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1123
     UserPreferences current allowMouseWheelZoom:true
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1124
     UserPreferences current allowMouseWheelZoom:false
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1125
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1126
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1127
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1128
11929
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1129
avoidSlowDrawingOperationsUnderWindows
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1130
    ^ OperatingSystem isMSWINDOWSlike
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1131
!
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1132
5071
ps
parents: 4684
diff changeset
  1133
beepEnabled
ps
parents: 4684
diff changeset
  1134
    "return the flag which controls the beeper"
ps
parents: 4684
diff changeset
  1135
ps
parents: 4684
diff changeset
  1136
    ^ self at:#beepEnabled ifAbsentPut:true
ps
parents: 4684
diff changeset
  1137
ps
parents: 4684
diff changeset
  1138
    "
ps
parents: 4684
diff changeset
  1139
     UserPreferences current beepEnabled
ps
parents: 4684
diff changeset
  1140
    "
ps
parents: 4684
diff changeset
  1141
ps
parents: 4684
diff changeset
  1142
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1143
    "Created: / 3.12.1999 / 17:09:49 / ps"
ps
parents: 4684
diff changeset
  1144
!
ps
parents: 4684
diff changeset
  1145
ps
parents: 4684
diff changeset
  1146
beepEnabled:aBoolean
ps
parents: 4684
diff changeset
  1147
    "set/clear the flag which controls the beeper"
ps
parents: 4684
diff changeset
  1148
ps
parents: 4684
diff changeset
  1149
    ^ self at:#beepEnabled put:aBoolean
ps
parents: 4684
diff changeset
  1150
ps
parents: 4684
diff changeset
  1151
    "
ps
parents: 4684
diff changeset
  1152
     UserPreferences current beepEnabled:false
ps
parents: 4684
diff changeset
  1153
    "
ps
parents: 4684
diff changeset
  1154
ps
parents: 4684
diff changeset
  1155
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1156
    "Created: / 3.12.1999 / 17:10:27 / ps"
ps
parents: 4684
diff changeset
  1157
!
ps
parents: 4684
diff changeset
  1158
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1159
beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1160
    "return the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1161
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1162
    ^ self at:#beepForErrorDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1163
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1164
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1165
     UserPreferences current beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1166
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1167
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1168
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1169
beepForErrorDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1170
    "set/clear the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1171
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1172
    ^ self at:#beepForErrorDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1173
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1174
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1175
     UserPreferences current beepForErrorDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1176
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1177
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1178
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1179
beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1180
    "return the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1181
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1182
    ^ self at:#beepForInfoDialog ifAbsent:false
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1183
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1184
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1185
     UserPreferences current beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1186
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1187
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1188
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1189
beepForInfoDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1190
    "set/clear the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1191
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1192
    ^ self at:#beepForInfoDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1193
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1194
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1195
     UserPreferences current beepForInfoDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1196
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1197
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1198
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1199
beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1200
    "return the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1201
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1202
    ^ self at:#beepForWarningDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1203
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1204
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1205
     UserPreferences current beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1206
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1207
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1208
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1209
beepForWarningDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1210
    "set/clear the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1211
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1212
    ^ self at:#beepForWarningDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1213
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1214
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1215
     UserPreferences current beepForWarningDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1216
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1217
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1218
11691
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1219
beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1220
    "return the flag which controls the beeper"
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1221
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1222
    ^ self at:#beepInEditor ifAbsentPut:true
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1223
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1224
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1225
     UserPreferences current beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1226
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1227
!
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1228
12209
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1229
closePopUpMenuChainOnEscape
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1230
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1231
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1232
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1233
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1234
    ^ self at:#closePopUpMenuChainOnEscape ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1235
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1236
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1237
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1238
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1239
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1240
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1241
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1242
closePopUpMenuChainOnEscape:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1243
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1244
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1245
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1246
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1247
    ^ self at:#closePopUpMenuChainOnEscape put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1248
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1249
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1250
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1251
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1252
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1253
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1254
13151
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1255
delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1256
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1257
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1258
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1259
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1260
    ^ self at:#delayedMenuShowAndHide ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1261
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1262
    "Created: / 29-11-2010 / 19:47:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1263
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1264
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1265
delayedMenuShowAndHide:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1266
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1267
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1268
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1269
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1270
    ^ self at:#delayedMenuShowAndHide put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1271
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1272
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1273
     UserPreferences current delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1274
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1275
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1276
    "Created: / 29-11-2010 / 19:47:36 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1277
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1278
13503
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1279
eclipseStyleMenus
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1280
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1281
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1282
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1283
    ^ self at:#eclipseStyleMenus ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1284
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1285
    "Created: / 08-07-2011 / 13:22:45 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1286
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1287
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1288
eclipseStyleMenus:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1289
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1290
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1291
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1292
    ^ self at:#eclipseStyleMenus put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1293
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1294
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1295
     UserPreferences current eclipseStyleMenus:true
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1296
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1297
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1298
    "Created: / 08-07-2011 / 13:22:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1299
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1300
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1301
expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1302
    "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
  1303
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1304
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1305
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1306
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1307
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1308
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1309
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1310
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1311
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1312
expandSelectionOnMouseMoveWithButtonPressed:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1313
    "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
  1314
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1315
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1316
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1317
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1318
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1319
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1320
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1321
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1322
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1323
flyByHelpActive
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1324
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1325
    ^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1326
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1327
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1328
flyByHelpActive:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1329
    aBoolean ~~ self flyByHelpActive ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1330
	self at:#flyByHelpActive put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1331
	self flyByHelpSettingChanged.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1332
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1333
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1334
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1335
focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1336
    "return the flag which controls if the keyboard focus should
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1337
     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
  1338
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1339
     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
  1340
13391
0a6201dcb4b4 changed: #focusFollowsMouse
Stefan Vogel <sv@exept.de>
parents: 13373
diff changeset
  1341
    ^ self at:#focusFollowsMouse ifAbsent:[ false ]
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1342
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1343
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1344
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1345
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1346
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1347
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1348
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1349
focusFollowsMouse:aBooleanOrNil
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1350
    "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
  1351
     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
  1352
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1353
     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
  1354
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1355
    ^ self at:#focusFollowsMouse put:aBooleanOrNil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1356
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1357
    "
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1358
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1359
     UserPreferences current focusFollowsMouse:false
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1360
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1361
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1362
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1363
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1364
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1365
13103
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1366
forceWindowsIntoMonitorBounds
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1367
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1368
     if false, they may be placed as to cross a boundary. This only affects initial placement,
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1369
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1370
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1371
    ^ self at:#forceWindowsIntoMonitorBounds ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1372
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1373
    "Created: / 22-10-2010 / 10:59:10 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1374
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1375
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1376
forceWindowsIntoMonitorBounds:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1377
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1378
     if false, they may be placed as to cross a boundary. This only affects initial placement,
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1379
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1380
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1381
    ^ self at:#forceWindowsIntoMonitorBounds put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1382
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1383
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1384
     UserPreferences current forceWindowsIntoMonitorBounds:false
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1385
     UserPreferences current forceWindowsIntoMonitorBounds:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1386
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1387
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1388
    "Modified: / 22-10-2010 / 11:13:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1389
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  1390
8759
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  1391
motionDistanceToStartDrag
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  1392
    "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
  1393
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  1394
    ^ "DragMotionDistance ?" 10
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  1395
!
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  1396
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1397
mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1398
    "return the flag which controls if the mouseWheel focus should
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1399
     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
  1400
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1401
    self focusFollowsMouse ifTrue:[^ true].
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1402
    ^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ]
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1403
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1404
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1405
     UserPreferences current mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1406
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1407
!
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1408
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1409
nativeDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1410
    ^ self at:#nativeDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1411
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1412
    "Created: / 24-08-2010 / 17:01:47 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1413
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1414
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1415
nativeDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1416
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1417
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1418
    self at:#nativeDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1419
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1420
    currentScreen notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1421
        currentScreen supportsNativeDialogs ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1422
            currentScreen nativeDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1423
        ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1424
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1425
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1426
    "Modified: / 24-08-2010 / 18:06:43 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1427
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1428
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1429
nativeFileDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1430
    ^ self at:#nativeFileDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1431
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1432
    "Created: / 24-08-2010 / 17:01:59 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1433
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1434
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1435
nativeFileDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1436
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1437
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1438
    self at:#nativeFileDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1439
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1440
    currentScreen notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1441
        currentScreen supportsNativeFileDialogs ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1442
            currentScreen nativeFileDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1443
        ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1444
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1445
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1446
    "Modified: / 24-08-2010 / 18:06:27 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1447
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1448
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1449
nativeWidgets
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1450
    ^ self at:#nativeWidgets ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1451
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1452
    "Created: / 24-08-2010 / 16:58:44 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1453
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1454
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1455
nativeWidgets:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1456
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1457
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1458
    self at:#nativeWidgets put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1459
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1460
    currentScreen notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1461
        currentScreen supportsNativeWidgets ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1462
            currentScreen nativeWidgets:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1463
        ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1464
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1465
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1466
    "Created: / 24-08-2010 / 16:58:14 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1467
    "Modified: / 24-08-2010 / 18:05:56 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1468
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1469
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1470
opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1471
    "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
  1472
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1473
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1474
    ^ self at:#opaqueTableColumnResizing ifAbsent:false
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1475
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1476
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1477
     UserPreferences current opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1478
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1479
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1480
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1481
opaqueTableColumnResizing:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1482
    "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
  1483
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1484
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1485
    ^ self at:#opaqueTableColumnResizing put:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1486
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1487
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1488
     UserPreferences current opaqueTableColumnResizing:true
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1489
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1490
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1491
    "Modified: / 11.9.1998 / 00:09:59 / cg"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1492
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  1493
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1494
opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1495
    "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
  1496
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1497
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1498
    ^ self at:#opaqueVariablePanelResizing ifAbsent:false
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1499
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1500
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1501
     UserPreferences current opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1502
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1503
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1504
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1505
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1506
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1507
opaqueVariablePanelResizing:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1508
    "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
  1509
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1510
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1511
    ^ self at:#opaqueVariablePanelResizing put:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1512
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1513
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1514
     UserPreferences current opaqueVariablePanelResizing:true
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1515
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1516
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1517
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1518
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  1519
6525
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1520
searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1521
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1522
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1523
    ^ self at:#searchDialogIsModal ifAbsent:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1524
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1525
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1526
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1527
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1528
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1529
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1530
searchDialogIsModal:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1531
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1532
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1533
    ^ self at:#searchDialogIsModal put:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1534
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1535
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1536
     UserPreferences current searchDialogIsModal:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1537
     UserPreferences current searchDialogIsModal:false
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1538
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1539
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1540
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  1541
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1542
selectOnRightClick
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1543
    "the Windows behavior of selecting on a right-click"
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1544
11943
5edb32c7f9c2 selectOnRightClick - default
Claus Gittinger <cg@exept.de>
parents: 11931
diff changeset
  1545
    ^ self at:#selectOnRightClick ifAbsent:false
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1546
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1547
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1548
selectOnRightClick:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1549
    "the Windows behavior of selecting on a right-click"
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1550
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1551
    ^ self at:#selectOnRightClick put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1552
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1553
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1554
     UserPreferences current selectOnRightClick:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1555
     UserPreferences current selectOnRightClick:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1556
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1557
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1558
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1559
showDottedLinesInTree
13304
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  1560
    ^ self 
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  1561
        at:#showDottedLinesInTree 
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  1562
        ifAbsent:[ OperatingSystem isMSWINDOWSlike not
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  1563
                   or:[  OperatingSystem isVistaLike not ] ]
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1564
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1565
    "Created: / 03-12-2010 / 11:31:46 / cg"
13304
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  1566
    "Modified: / 09-02-2011 / 23:27:03 / cg"
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1567
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1568
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1569
showDottedLinesInTree:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1570
    ^ self at:#showDottedLinesInTree put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1571
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1572
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1573
     UserPreferences current showDottedLinesInTree:true.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1574
     UserPreferences current showDottedLinesInTree:false.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1575
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1576
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1577
    "Created: / 03-12-2010 / 11:31:53 / cg"
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1578
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  1579
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1580
showRightButtonMenuOnRelease
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1581
    "the Windows behavior of showing the right-button menu on a release.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1582
     Not yet fully implemented."
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1583
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1584
    ^ self at:#showRightButtonMenuOnRelease ifAbsent:true
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1585
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1586
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1587
showRightButtonMenuOnRelease:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1588
    "the Windows behavior of showing the right-button menu on a release.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1589
     Not yet fully implemented."
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1590
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1591
    ^ self at:#showRightButtonMenuOnRelease put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1592
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1593
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1594
     UserPreferences current showRightButtonMenuOnRelease:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1595
     UserPreferences current showRightButtonMenuOnRelease:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1596
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1597
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  1598
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1599
startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1600
    "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
  1601
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1602
    ^ self at:#startTextDragWithControl ifAbsent:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1603
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1604
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1605
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1606
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1607
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1608
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1609
startTextDragWithControl:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1610
    "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
  1611
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1612
    ^ self at:#startTextDragWithControl put:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1613
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1614
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1615
     UserPreferences current startTextDragWithControl:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1616
     UserPreferences current startTextDragWithControl:false
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1617
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1618
    "
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  1619
!
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  1620
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1621
toolTipAutoHideDelay
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1622
    "return the time, tooltips are shown"
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1623
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1624
    ^ self at:#toolTipAutoHideDelay ifAbsentPut:[FlyByHelp showTime]
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1625
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1626
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1627
     UserPreferences current toolTipAutoHideDelay
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1628
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1629
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1630
    "Created: / 10-11-2010 / 12:08:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1631
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1632
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1633
toolTipAutoHideDelay:aTimeDuration
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1634
    "set the time, tooltips are shown. Nil means: dont hide"
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1635
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1636
    self at:#toolTipAutoHideDelay put:aTimeDuration.
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  1637
    FlyByHelp showTime: (aTimeDuration isInteger ifTrue:[aTimeDuration] ifFalse:[aTimeDuration asSeconds]).
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1638
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1639
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1640
     UserPreferences current toolTipAutoHideDelay:10 seconds
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1641
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1642
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1643
    "Created: / 10-11-2010 / 12:09:33 / cg"
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  1644
    "Modified: / 07-03-2011 / 23:56:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1645
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  1646
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  1647
waitCursorVisibleTime
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  1648
    "anser the time (in ms), how long a wait cursor should be visible at least"
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  1649
13684
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  1650
    ^ 100
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  1651
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  1652
    "Modified: / 12-09-2011 / 11:08:53 / cg"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1653
!
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1654
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1655
workAroundRenderingBugOnVista
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  1656
    "a temporary kludge for the vista-cleartype character redraw bug"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1657
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1658
    ^ OperatingSystem isMSWINDOWSlike
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1659
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  1660
    "Created: / 08-11-2010 / 14:47:52 / cg"
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  1661
    "Modified: / 09-11-2010 / 13:02:43 / cg"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1662
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1663
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1664
!UserPreferences methodsFor:'accessing-prefs-browser'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1665
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1666
autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1667
    "return the flag which controls automatic formatting of code (in some browsers)
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1668
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1669
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1670
    ^ self at:#autoFormatting ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1671
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1672
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1673
     UserPreferences current autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1674
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1675
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1676
    "Created: / 4.2.2000 / 20:08:08 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1677
    "Modified: / 5.2.2000 / 15:38:33 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1678
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1679
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1680
autoFormatting:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1681
    "turn on/off automatic formatting of code (in some browsers);
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1682
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1683
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1684
    ^ self at:#autoFormatting put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1685
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1686
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1687
     UserPreferences current autoFormatting:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1688
     UserPreferences current autoFormatting:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1689
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1690
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1691
    "Created: / 4.2.2000 / 20:08:26 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1692
    "Modified: / 5.2.2000 / 15:38:20 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1693
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1694
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1695
enforceCodeStyle
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1696
    "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
  1697
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1698
    ^ self at:#enforceCodeStyle ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1699
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1700
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1701
     UserPreferences current enforceCodeStyle
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  1702
     UserPreferences current enforceCodeStyle:true
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  1703
     UserPreferences current enforceCodeStyle:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1704
    "
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  1705
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  1706
    "Modified: / 27-03-2007 / 21:51:42 / cg"
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1707
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  1708
12947
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1709
enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1710
    "return the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1711
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1712
    ^ self at:#enforceComment ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1713
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1714
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1715
     UserPreferences current enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1716
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1717
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1718
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1719
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1720
    "Created: / 17-07-2010 / 14:16:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1721
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1722
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1723
enforceComment:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1724
    "set/clear the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1725
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1726
    ^ self at:#enforceComment put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1727
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1728
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1729
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1730
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1731
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1732
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1733
    "Created: / 17-07-2010 / 14:17:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1734
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  1735
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1736
showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1737
    "experimental."
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1738
11214
ad61819068b9 changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents: 11213
diff changeset
  1739
    ^ self at:#showAcceptCancelBarInBrowser ifAbsent:true
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1740
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1741
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1742
     UserPreferences current showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1743
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1744
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1745
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1746
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1747
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1748
showAcceptCancelBarInBrowser:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1749
    "experimental."
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1750
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1751
    ^ self at:#showAcceptCancelBarInBrowser put:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1752
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1753
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1754
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1755
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1756
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1757
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  1758
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1759
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1760
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1761
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  1762
    ^ self at:#syntaxColoring ifAbsent:true
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1763
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1764
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1765
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1766
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1767
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
  1768
    "Modified: / 11.9.1998 / 00:09:59 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1769
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1770
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1771
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1772
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1773
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1774
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1775
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1776
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1777
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1778
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1779
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  1780
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1781
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1782
    "Modified: / 1.4.1998 / 13:23:03 / cg"
12189
fm
parents: 12175
diff changeset
  1783
!
fm
parents: 12175
diff changeset
  1784
fm
parents: 12175
diff changeset
  1785
useSearchBarInBrowser
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  1786
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  1787
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  1788
fm
parents: 12175
diff changeset
  1789
    "/ cg: disabled for now, until fixed.
fm
parents: 12175
diff changeset
  1790
    "/ does not initially select the searchString.
fm
parents: 12175
diff changeset
  1791
    "/ thereby interrupting the workflow...
fm
parents: 12175
diff changeset
  1792
fm
parents: 12175
diff changeset
  1793
    ^ self at:#useSearchBarInBrowser ifAbsent:false
fm
parents: 12175
diff changeset
  1794
fm
parents: 12175
diff changeset
  1795
    "
fm
parents: 12175
diff changeset
  1796
     UserPreferences current useSearchBarInBrowser
fm
parents: 12175
diff changeset
  1797
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  1798
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  1799
    "
fm
parents: 12175
diff changeset
  1800
!
fm
parents: 12175
diff changeset
  1801
fm
parents: 12175
diff changeset
  1802
useSearchBarInBrowser:aBoolean
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  1803
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  1804
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  1805
fm
parents: 12175
diff changeset
  1806
    ^ self at:#useSearchBarInBrowser put:aBoolean
fm
parents: 12175
diff changeset
  1807
fm
parents: 12175
diff changeset
  1808
    "
fm
parents: 12175
diff changeset
  1809
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  1810
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  1811
    "
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1812
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  1813
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1814
!UserPreferences methodsFor:'accessing-prefs-browser-colors'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1815
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1816
colorForInstrumentedFullyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1817
    "the color for code in the browser which is instrumented 
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1818
     and where all branches have been executed (also code, which has been executed)"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1819
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1820
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1821
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1822
    clr := self at:#colorForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1823
    clr isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1824
        clr := Color green slightlyDarkened.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1825
        self at:#colorForInstrumentedFullyCoveredCode put:clr.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1826
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1827
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1828
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1829
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1830
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1831
        at:#emphasisForInstrumentedFullyCoveredCode 
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1832
        put:(Color green slightlyDarkened).
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1833
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1834
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1835
    "Created: / 28-04-2010 / 13:58:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1836
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1837
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1838
colorForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1839
    "the color for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1840
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1841
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1842
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1843
    clr := self at:#colorForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1844
    clr isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1845
        clr := Color red slightlyDarkened.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1846
        self at:#colorForInstrumentedNeverCalledCode put:clr.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1847
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1848
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1849
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1850
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1851
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1852
        at:#colorForInstrumentedNeverCalledCode 
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1853
        put:(Color red slightlyDarkened).
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1854
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1855
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1856
    "Created: / 28-04-2010 / 13:59:43 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1857
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1858
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1859
colorForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1860
    "color for code in the browser which is instrumented and where some branches have been
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1861
     executed"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1862
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1863
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1864
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1865
    clr := self at:#colorForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1866
    clr isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1867
        clr := Color orange.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1868
        self at:#colorForInstrumentedPartiallyCoveredCode put:clr.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1869
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1870
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1871
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1872
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1873
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1874
        at:#colorForInstrumentedPartiallyCoveredCode 
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1875
        put:(Color orange slightlyLightened).
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1876
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1877
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1878
    "Created: / 28-04-2010 / 14:00:56 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1879
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  1880
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1881
colorForPseudoProtocolsInMethodListInBrowser
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1882
    "eventually, make this also a settings value (for people with weak gray-visibility)"
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1883
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1884
    |bg|
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1885
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1886
    SelectionInListView notNil ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1887
        bg := SelectionInListView defaultBackgroundColor.
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1888
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1889
    bg isNil ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1890
        View notNil ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1891
            bg := View defaultBackgroundColor.
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1892
        ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1893
        bg isNil ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1894
            ^ Color grey
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1895
        ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1896
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1897
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1898
    (Color grey brightness - (bg brightness)) abs < 0.3 ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1899
        (bg brightness) > 0.7 ifTrue:[
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1900
            ^ Color grey:20.
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1901
        ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1902
        ^ Color grey:80.
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1903
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1904
    ^ Color grey
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1905
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1906
    "Created: / 07-09-2011 / 09:51:12 / cg"
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1907
!
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  1908
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1909
emphasisForChangedCode
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1910
    "the emphasis for changed code (in changeSet) in the browser"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1911
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1912
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1913
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1914
    emp := self at:#emphasisForChangedCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1915
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1916
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1917
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1918
	"/ emp := #color->Color blue darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1919
	self at:#emphasisForChangedCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1920
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1921
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1922
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1923
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1924
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil].
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1925
     UserPreferences current emphasisForChangedCode.
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1926
     UserPreferences current at:#emphasisForChangedCode put:nil.
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1927
    "
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  1928
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1929
    "Modified: / 10-11-2006 / 17:27:23 / cg"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1930
!
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1931
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1932
emphasisForChangedCodeInSmallTeam
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1933
    "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
  1934
     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
  1935
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1936
    |emp|
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1937
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1938
    emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1939
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1940
	emp := #color->Color yellow darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1941
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1942
	self at:#emphasisForChangedCodeInSmallTeam put:emp.
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1943
    ].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1944
    ^ emp
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1945
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1946
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1947
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1948
     UserPreferences current emphasisForChangedCodeInSmallTeam.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1949
     UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1950
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1951
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  1952
    "Created: / 10-11-2006 / 16:31:00 / cg"
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1953
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1954
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1955
emphasisForDifferentPackage
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1956
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1957
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1958
    emp := self at:#emphasisForDifferentPackage ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1959
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1960
	emp := #color->Color green darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1961
	"/ emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1962
	self at:#emphasisForDifferentPackage put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1963
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1964
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1965
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1966
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1967
     self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  1968
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1969
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  1970
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1971
emphasisForInstrumentedFullyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1972
    "the emphasis for code in the browser which is instrumented and where all branches have been
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1973
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1974
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1975
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1976
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1977
    emp := self at:#emphasisForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1978
    emp isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1979
        emp := #color->Color green slightlyDarkened.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1980
        emp := Array with:#bold with:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1981
        "/ emp := #color->Color blue darkened.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1982
        self at:#emphasisForInstrumentedFullyCoveredCode put:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1983
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1984
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1985
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1986
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1987
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1988
        at:#emphasisForInstrumentedFullyCoveredCode 
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1989
        put:(Array with:#bold with:(#color->Color green slightlyDarkened)).
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1990
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1991
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1992
    "Created: / 27-04-2010 / 13:01:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1993
    "Modified: / 27-04-2010 / 14:48:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1994
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1995
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1996
emphasisForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1997
    "the emphasis for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1998
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  1999
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2000
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2001
    emp := self at:#emphasisForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2002
    emp isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2003
        emp := #color->Color red slightlyDarkened.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2004
        emp := Array with:#bold with:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2005
        "/ emp := #color->Color blue darkened.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2006
        self at:#emphasisForInstrumentedNeverCalledCode put:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2007
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2008
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2009
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2010
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2011
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2012
        at:#emphasisForInstrumentedNeverCalledCode 
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2013
        put:(Array with:#bold with:(#color->Color red slightlyDarkened)).
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2014
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2015
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2016
    "Created: / 27-04-2010 / 12:59:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2017
    "Modified: / 27-04-2010 / 14:48:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2018
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2019
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2020
emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2021
    "the emphasis for code in the browser which is instrumented and where some branches have been
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2022
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2023
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2024
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2025
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2026
    emp := self at:#emphasisForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2027
    emp isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2028
        emp := #color->Color orange.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2029
        emp := Array with:#bold with:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2030
        "/ emp := #color->Color blue darkened.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2031
        self at:#emphasisForInstrumentedPartiallyCoveredCode put:emp.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2032
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2033
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2034
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2035
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2036
     UserPreferences current
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2037
        at:#emphasisForInstrumentedPartiallyCoveredCode 
12902
a7d0611e313a comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12901
diff changeset
  2038
        put:(Array with:#bold with:(#color->Color orange slightlyLightened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2039
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2040
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2041
    "Created: / 27-04-2010 / 13:01:20 / cg"
12902
a7d0611e313a comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12901
diff changeset
  2042
    "Modified: / 27-04-2010 / 18:50:43 / cg"
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2043
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  2044
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2045
emphasisForModifiedBuffer
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2046
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2047
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2048
    emp := self at:#emphasisForModifiedBuffer ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2049
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2050
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2051
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2052
	self at:#emphasisForModifiedBuffer put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2053
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2054
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2055
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2056
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2057
     self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2058
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2059
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2060
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2061
emphasisForNamespacedCode
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2062
    "the emphasis for changed code (in changeSet) in the browser"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2063
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2064
    |emp|
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2065
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2066
    emp := self at:#emphasisForNamespacedCode ifAbsent:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2067
    emp isNil ifTrue:[
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2068
        emp := #color->Color green darkened.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2069
        "/ emp := Array with:#bold with:emp.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2070
        "/ emp := #color->Color blue darkened.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2071
        self at:#emphasisForNamespacedCode put:emp.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2072
    ].
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2073
    ^ emp
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2074
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2075
    "
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2076
     self allInstancesDo:[:pref |pref at:#emphasisForNamespacedCode put:nil]. 
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2077
     UserPreferences current emphasisForNamespacedCode. 
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2078
     UserPreferences current at:#emphasisForNamespacedCode put:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2079
    "
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2080
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2081
    "Created: / 01-07-2010 / 18:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2082
!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2083
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2084
emphasisForObsoleteCode
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2085
    |emp|
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
    emp := self at:#emphasisForObsoleteCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2088
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2089
	emp := #color->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2090
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2091
	self at:#emphasisForObsoleteCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2092
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2093
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2094
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2095
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2096
     self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2097
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2098
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2099
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2100
emphasisForReadVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2101
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2102
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2103
    emp := self at:#emphasisForReadVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2104
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2105
	emp := #underline.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2106
	self at:#emphasisForReadVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2107
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2108
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2109
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2110
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2111
emphasisForWrittenVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2112
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2113
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2114
    emp := self at:#emphasisForWrittenVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2115
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2116
	emp := Array with:#underline with:#underlineColor->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2117
	self at:#emphasisForWrittenVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2118
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2119
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2120
! !
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2121
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2122
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'!
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2123
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2124
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2125
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2126
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2127
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2128
    ^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2129
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2130
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2131
    "Modified: / 1.4.1998 / 13:19:58 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2132
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2133
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2134
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2135
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2136
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2137
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2138
    ^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2139
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2140
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2141
    "Modified: / 1.4.1998 / 13:19:55 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2142
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2143
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2144
badIdentifierColor
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2145
    "the color used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2146
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2147
4336
1e9719956923 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2148
    ^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2149
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2150
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2151
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2152
badIdentifierEmphasis
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2153
    "the emphasis used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2154
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2155
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2156
    ^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis ifAbsent:#normal]
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2157
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2158
    "Modified: / 21-04-2011 / 12:34:50 / cg"
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2159
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2160
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2161
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2162
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2163
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2164
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2165
    ^ self at:#booleanConstantColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2166
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2167
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2168
    "Modified: / 1.4.1998 / 13:20:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2169
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2170
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2171
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2172
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2173
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2174
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2175
    ^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2176
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2177
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2178
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2179
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2180
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2181
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2182
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2183
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2184
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2185
    ^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2186
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2187
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2188
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2189
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2190
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2191
     self current bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2192
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2193
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2194
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2195
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2196
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2197
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2198
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2199
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2200
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2201
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2202
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2203
    ^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2204
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2205
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2206
     self current at:#bracketEmphasis  put:#bold
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2207
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2208
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2209
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2210
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2211
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2212
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2213
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2214
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2215
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2216
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2217
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2218
    ^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2219
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2220
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2221
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2222
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2223
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2224
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2225
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2226
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2227
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2228
    ^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2229
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2230
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2231
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2232
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  2233
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2234
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2235
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2236
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2237
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2238
    ^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor ifAbsent:[Color black]]
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2239
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2240
    "Created: / 31-03-1998 / 15:10:23 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2241
    "Modified: / 21-04-2011 / 12:33:39 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2242
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2243
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2244
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2245
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2246
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2247
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2248
    ^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2249
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2250
    "Created: / 31-03-1998 / 15:09:59 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2251
    "Modified: / 21-04-2011 / 12:34:48 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2252
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2253
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  2254
commentEmphasisAndColor
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2255
    ^ self emphasis:(self commentEmphasis) andColor:(self commentColor).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2256
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2257
    "Modified: / 17-02-2011 / 14:20:41 / cg"
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  2258
!
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  2259
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2260
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2261
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2262
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2263
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2264
    ^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor ifAbsent:[Color black]]
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2265
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2266
    "Created: / 31-03-1998 / 18:13:15 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2267
    "Modified: / 21-04-2011 / 12:33:36 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2268
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2269
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2270
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2271
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2272
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2273
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2274
    ^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2275
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2276
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2277
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2278
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2279
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2280
controlFlowSelectorColor
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2281
    "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
  2282
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2283
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2284
    ^ self at:#controlFlowSelectorColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2285
	    ifAbsentPut:[UserPreferences default
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2286
			    at:#controlFlowSelectorColor ifAbsent:[self selectorColor]]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2287
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2288
    "Created: / 08-09-2006 / 15:51:20 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2289
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2290
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2291
controlFlowSelectorEmphasis
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2292
    "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
  2293
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2294
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2295
    ^ self at:#controlFlowSelectorEmphasis
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2296
	    ifAbsentPut:[UserPreferences default
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2297
			    at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2298
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2299
    "Created: / 08-09-2006 / 15:51:04 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2300
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  2301
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2302
defaultSyntaxColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2303
    "the color used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2304
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2305
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2306
    ^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor ifAbsent:[Color black]]
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2307
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2308
    "Modified: / 21-04-2011 / 12:31:48 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2309
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2310
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2311
defaultSyntaxEmphasis
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2312
    "the emphasis used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2313
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2314
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2315
    ^ self 
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2316
        at:#defaultSyntaxEmphasis 
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2317
        ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis ifAbsent:#normal]
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2318
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2319
    "Modified: / 21-04-2011 / 12:34:46 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2320
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2321
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2322
doesNotUnderstand:aMessage
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
  2323
    |k def|
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2324
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2325
    k := aMessage selector.
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  2326
    aMessage numArgs == 0 ifTrue:[
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2327
        (self includesKey:k) ifTrue:[
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2328
            ^ self at:k
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2329
        ].
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2330
        ((def := self class default) includesKey:k) ifTrue:[
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2331
            ^ def at:k
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2332
        ].
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2333
        ^ self defaultValue
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2334
    ].
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2335
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2336
    "/ this is needed, if a setting is loaded (via the settings.stx) at a time
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2337
    "/ when the corresponding package which uses that setting is not yet loaded;
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2338
    "/ for example: libsvn settings, with no libsvn being present.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2339
    "/ if obsolete keys accumulate over time, we might need a settings cleanup GUI to
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2340
    "/ care for that.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2341
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2342
    ((aMessage numArgs == 1)
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2343
    and:[ (k endsWith:$:)])
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2344
    ifTrue:[
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2345
        k := (k copyWithoutLast:1) asSymbol.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2346
        ^ self at:k put:(aMessage arg1)
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2347
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  2348
7272
a45033450ad8 *** empty log message ***
penk
parents: 7271
diff changeset
  2349
    aMessage numArgs == 1 ifTrue:[
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2350
        ('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2351
        ^ nil
7272
a45033450ad8 *** empty log message ***
penk
parents: 7271
diff changeset
  2352
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  2353
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2354
    ^ super doesNotUnderstand:aMessage
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2355
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  2356
    "Modified (comment): / 19-08-2011 / 14:01:56 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2357
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2358
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2359
emphasis:e andColor:c
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2360
    ^ Text addEmphasis:e to:(#color->c).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2361
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2362
    "Created: / 17-02-2011 / 14:20:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2363
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2364
8965
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2365
emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2366
    ^ self at:#emphasizeParenthesisLevel ifAbsent:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2367
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2368
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2369
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2370
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2371
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2372
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2373
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2374
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2375
emphasizeParenthesisLevel:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2376
    self at:#emphasizeParenthesisLevel put:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2377
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2378
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2379
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2380
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2381
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2382
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2383
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  2384
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2385
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2386
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2387
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2388
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2389
    ^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor ifAbsent:[Color black]]
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2390
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2391
    "Modified: / 21-04-2011 / 12:33:33 / cg"
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2392
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  2393
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2394
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2395
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2396
     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
  2397
4628
Claus Gittinger <cg@exept.de>
parents: 4583
diff changeset
  2398
    ^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2399
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2400
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2401
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2402
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  2403
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2404
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2405
    "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
  2406
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2407
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2408
    ^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2409
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2410
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2411
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2412
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2413
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2414
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2415
    "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
  2416
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2417
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2418
    ^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2419
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2420
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2421
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2422
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  2423
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2424
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2425
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2426
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2427
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2428
    ^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2429
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2430
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2431
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2432
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2433
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2434
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2435
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2436
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2437
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2438
    ^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2439
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2440
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2441
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2442
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2443
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2444
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2445
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2446
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2447
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2448
    ^ self at:#hereColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2449
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2450
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2451
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2452
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2453
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2454
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2455
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2456
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2457
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2458
    ^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2459
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2460
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2461
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2462
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2463
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2464
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2465
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2466
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2467
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2468
    ^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2469
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2470
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2471
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2472
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2473
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2474
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2475
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2476
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2477
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2478
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2479
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2480
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2481
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2482
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2483
    ^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2484
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2485
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2486
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2487
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2488
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2489
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2490
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2491
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2492
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2493
    ^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2494
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2495
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2496
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2497
     UserPreferences current at:#instVarIdentifierColor put:Color black.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2498
     UserPreferences current instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2499
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2500
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2501
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2502
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2503
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2504
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2505
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2506
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2507
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2508
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2509
    ^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2510
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2511
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  2512
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2513
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  2514
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2515
jsKeywordColor
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2516
    ^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor]
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2517
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2518
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2519
jsKeywordEmphasis
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2520
    ^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2521
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  2522
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2523
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2524
    "the color used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2525
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2526
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2527
    ^ self at:#localIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2528
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2529
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2530
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2531
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2532
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2533
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2534
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  2535
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2536
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2537
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2538
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2539
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2540
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2541
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2542
    ^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2543
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2544
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2545
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2546
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2547
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2548
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2549
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2550
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2551
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2552
    ^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2553
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2554
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2555
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2556
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2557
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2558
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2559
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2560
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2561
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2562
    ^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2563
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2564
    "Created: / 31-03-1998 / 15:11:16 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2565
    "Modified: / 21-04-2011 / 12:34:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2566
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2567
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2568
numberConstantColor
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2569
    "the color used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2570
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2571
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2572
    ^ self at:#numberConstantColor ifAbsent:[ self constantColor ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2573
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2574
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2575
numberConstantEmphasis
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2576
    "the emphasis used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2577
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2578
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2579
    ^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2580
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  2581
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2582
poolVariableIdentifierColor
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2583
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2584
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2585
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2586
    ^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor]
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2587
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2588
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2589
poolVariableIdentifierEmphasis
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2590
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2591
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2592
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2593
    ^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis]
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2594
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  2595
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2596
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2597
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2598
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2599
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2600
    ^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2601
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2602
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2603
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2604
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2605
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2606
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2607
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2608
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2609
    ^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2610
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2611
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2612
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  2613
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2614
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2615
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2616
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2617
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2618
    ^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2619
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2620
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2621
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2622
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2623
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2624
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2625
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2626
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2627
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2628
    ^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2629
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2630
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2631
    "Modified: / 21-04-2011 / 12:34:39 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2632
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2633
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2634
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2635
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2636
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2637
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2638
    ^ self at:#selfColor ifAbsentPut:[self identifierColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2639
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2640
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2641
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2642
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2643
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2644
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2645
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2646
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2647
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2648
    ^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2649
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2650
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2651
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2652
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2653
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2654
sideEffectAssignmentBackgroundColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2655
    "the bg-color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars).
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2656
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2657
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2658
    ^ self at:#sideEffectAssignmentBackgroundColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2659
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2660
    "Created: / 13-02-2012 / 11:35:20 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2661
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2662
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2663
sideEffectAssignmentColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2664
    "the color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars).
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2665
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2666
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2667
    ^ self at:#sideEffectAssignmentColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2668
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2669
    "Created: / 13-02-2012 / 11:35:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2670
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  2671
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2672
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2673
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2674
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2675
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2676
    ^ self at:#stringColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2677
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2678
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2679
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2680
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2681
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2682
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2683
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2684
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2685
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2686
    ^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2687
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2688
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2689
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2690
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2691
13308
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2692
stringEmphasisAndColor
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2693
    ^ self emphasis:(self stringEmphasis) andColor:(self stringColor).
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2694
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2695
    "Created: / 17-02-2011 / 14:29:10 / cg"
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2696
!
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  2697
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2698
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2699
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2700
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2701
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2702
    ^ self at:#superColor ifAbsentPut:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2703
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2704
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2705
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2706
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2707
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2708
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2709
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2710
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2711
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2712
    ^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2713
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2714
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2715
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2716
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2717
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2718
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2719
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2720
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2721
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2722
    ^ self at:#symbolColor ifAbsentPut:[self constantColor]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2723
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2724
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2725
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2726
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2727
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2728
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2729
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2730
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2731
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2732
    ^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis]
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2733
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2734
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2735
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2736
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2737
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2738
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2739
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2740
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2741
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2742
    ^ self at:#thisContextColor ifAbsentPut:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2743
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2744
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2745
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2746
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2747
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2748
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2749
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2750
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2751
3355
d013e5affe18 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2752
    ^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2753
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  2754
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2755
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2756
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2757
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2758
unimplementedSelectorColor
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2759
    "the color used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2760
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2761
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2762
    ^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor ifAbsent:[Color black]]
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2763
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2764
    "Modified: / 21-04-2011 / 12:33:29 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2765
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2766
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2767
unimplementedSelectorEmphasis
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2768
    "the emphasis used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2769
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2770
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2771
    ^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2772
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  2773
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  2774
    "Modified: / 21-04-2011 / 12:34:36 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2775
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  2776
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2777
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2778
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2779
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2780
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2781
    ^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2782
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2783
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2784
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2785
     self current at:#unknownIdentifierEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2786
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2787
     self current unknownIdentifierColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  2788
     self current unknownIdentifierEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2789
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  2790
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2791
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2792
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2793
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2794
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2795
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2796
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2797
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2798
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  2799
    ^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2800
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  2801
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2802
    "Modified: / 1.4.1998 / 13:22:45 / cg"
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2803
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2804
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2805
xmlAttributeColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2806
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2807
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2808
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2809
    ^ self at:#xmlAttributeColor ifAbsentPut:[ Color green darkened ]
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2810
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2811
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2812
     self current at:#xmlAttributeColor put:Color black
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2813
     self current xmlAttributeColor         
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2814
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2815
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2816
    "Created: / 24-07-2011 / 21:30:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2817
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2818
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2819
xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2820
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2821
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2822
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2823
    ^ self at:#xmlAttributeEmphasis ifAbsentPut:[ #normal ]
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2824
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2825
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2826
     self current at:#xmlAttributeEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2827
     self current xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2828
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2829
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2830
    "Created: / 24-07-2011 / 21:30:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2831
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2832
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2833
xmlCDataColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2834
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2835
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2836
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2837
    ^ self at:#xmlCDataColor ifAbsentPut:[ Color blue ]
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2838
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2839
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2840
     self current at:#xmlCDataColor put:Color black
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2841
     self current xmlCDataColor         
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2842
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2843
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2844
    "Created: / 24-07-2011 / 21:31:30 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2845
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2846
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2847
xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2848
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2849
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2850
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2851
    ^ self at:#xmlCDataEmphasis ifAbsentPut:[ #normal ]
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2852
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2853
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2854
     self current at:#xmlCDataEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2855
     self current xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2856
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2857
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2858
    "Created: / 24-07-2011 / 21:31:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2859
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  2860
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2861
xmlTagColor
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2862
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2863
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2864
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2865
    ^ self at:#xmlTagColor ifAbsentPut:[ Color blue ]
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2866
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2867
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2868
     self current at:#xmlTagColor put:Color black
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2869
     self current xmlTagColor         
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2870
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2871
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2872
    "Created: / 17-02-2011 / 14:18:28 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2873
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2874
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2875
xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2876
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2877
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2878
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2879
    ^ self at:#xmlTagEmphasis ifAbsentPut:[ #bold ]
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2880
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2881
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2882
     self current at:#xmlTagEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2883
     self current xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2884
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2885
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  2886
    "Created: / 17-02-2011 / 14:18:01 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2887
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2888
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2889
!UserPreferences methodsFor:'accessing-prefs-code'!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2890
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2891
categoryForMenuActionsMethods
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2892
    ^ 'menu actions'.
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  2893
!
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  2894
13722
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2895
ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2896
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2897
     if on, categories like public and private are ignored (if the method already has a category).
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2898
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2899
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2900
    ^ self at:#ignorePublicPrivateCategories ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2901
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2902
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2903
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2904
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2905
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2906
    "Created: / 23-09-2011 / 19:49:37 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2907
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2908
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2909
ignorePublicPrivateCategories:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2910
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2911
     if on, categories like public and private are ignored (if the method already has a category).
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2912
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2913
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2914
    self at:#ignorePublicPrivateCategories put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2915
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2916
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2917
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2918
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2919
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2920
    "Created: / 23-09-2011 / 19:49:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2921
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  2922
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2923
keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2924
    "when fetching the source from a file/cvs, should the source be kept in the image ?
12619
baba8c6085e2 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12618
diff changeset
  2925
     If on, the image will grow over time by about 10-20 Mb.
baba8c6085e2 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12618
diff changeset
  2926
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2927
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2928
    ^ self at:#keepMethodSourceCode ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2929
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2930
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2931
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2932
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2933
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2934
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2935
keepMethodSourceCode:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2936
    "when fetching the source from a file/cvs, should the source be kept in the image ?
12619
baba8c6085e2 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12618
diff changeset
  2937
     If on, the image will grow over time by about 10-20 Mb.
baba8c6085e2 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12618
diff changeset
  2938
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2939
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2940
    ^ self at:#keepMethodSourceCode put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2941
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2942
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2943
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2944
     UserPreferences current keepMethodSourceCode:true
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2945
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2946
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  2947
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  2948
numberOfLinesForLongMethod
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  2949
    "how many lines for a method's source to be considered as 'long'"
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  2950
12175
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  2951
    ^ self at:#numberOfLinesForLongMethod ifAbsent:30
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  2952
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  2953
    "
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  2954
     UserPreferences current numberOfLinesForLongMethod
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  2955
    "
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2956
! !
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  2957
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2958
!UserPreferences methodsFor:'accessing-prefs-code generator'!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2959
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2960
generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2961
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2962
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2963
    ^ self at:#generateComments ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2964
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2965
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2966
     UserPreferences current generateComments  
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2967
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2968
     UserPreferences current generateComments:true
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2969
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2970
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2971
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2972
generateComments:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2973
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2974
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2975
    self at:#generateComments put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2976
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2977
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2978
     UserPreferences current generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2979
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2980
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2981
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2982
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2983
generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2984
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2985
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2986
    ^ self at:#generateCommentsForAspectMethods ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2987
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2988
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2989
     UserPreferences current generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2990
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2991
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2992
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2993
generateCommentsForAspectMethods:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2994
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2995
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2996
    self at:#generateCommentsForAspectMethods put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2997
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2998
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  2999
     UserPreferences current generateCommentsForAspectMethods:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3000
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3001
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3002
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3003
generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3004
    "return true if comments for simple getters are to be generated (by the codeGenerator tool).
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3005
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3006
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3007
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3008
    ^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3009
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3010
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3011
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3012
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3013
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3014
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3015
generateCommentsForGetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3016
    "true if comments for simple getters are to be generated (by the codeGenerator tool).
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3017
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3018
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3019
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3020
    self at:#generateCommentsForGetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3021
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3022
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3023
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3024
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3025
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3026
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3027
generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3028
    "return true if comments for simple setters are to be generated (by the codeGenerator tool).
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3029
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3030
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3031
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3032
    ^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3033
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3034
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3035
     UserPreferences current generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3036
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3037
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3038
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3039
generateCommentsForSetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3040
    "true if comments for simple setters are to be generated (by the codeGenerator tool).
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3041
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3042
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3043
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3044
    self at:#generateCommentsForSetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3045
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3046
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3047
     UserPreferences current generateSommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3048
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3049
! !
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  3050
13547
f08daec3c459 changed: #historyManagerSignature
Claus Gittinger <cg@exept.de>
parents: 13523
diff changeset
  3051
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3052
!UserPreferences methodsFor:'accessing-prefs-editor'!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3053
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3054
deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3055
    "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
  3056
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3057
    ^ self at:#deleteSetsClipboardText ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3058
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3059
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3060
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3061
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3062
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3063
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3064
deleteSetsClipboardText:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3065
    "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
  3066
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3067
    ^ self at:#deleteSetsClipboardText put:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3068
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3069
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3070
     UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3071
     UserPreferences current deleteSetsClipboardText:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3072
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3073
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3074
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3075
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3076
enforcedDropModeForFiles
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  3077
    "when dropping a file, paste the #name, the #contents or ask ?
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3078
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3079
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3080
    ^ self at:#enforcedDropModeForFiles ifAbsent:nil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3081
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3082
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3083
     UserPreferences current enforcedDropModeForFiles
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3084
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3085
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3086
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3087
enforcedDropModeForFiles:aSymbolOrNil
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  3088
    "when dropping a file, paste the #name, the #contents or ask ?
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3089
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3090
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3091
    ^ self at:#enforcedDropModeForFiles put:aSymbolOrNil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3092
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3093
    "
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  3094
     UserPreferences current enforcedDropModeForFiles:#contents
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  3095
     UserPreferences current enforcedDropModeForFiles:#name
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3096
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3097
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  3098
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3099
extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3100
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3101
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3102
10310
89d972739353 extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents: 10240
diff changeset
  3103
    ^ self at:#extendedWordSelectMode ifAbsent:true
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3104
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3105
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3106
     UserPreferences current extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3107
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3108
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3109
    "Created: / 03-07-2006 / 16:49:58 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3110
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3111
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3112
extendedWordSelectMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3113
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3114
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3115
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3116
    ^ self at:#extendedWordSelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3117
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3118
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3119
     UserPreferences current extendedWordSelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3120
     UserPreferences current extendedWordSelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3121
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3122
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3123
    "Created: / 03-07-2006 / 16:50:20 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3124
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3125
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3126
numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3127
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3128
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3129
     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
  3130
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3131
    ^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3132
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3133
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3134
     UserPreferences current numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3135
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3136
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3137
    "Modified: / 09-10-2006 / 11:01:35 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3138
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3139
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3140
numberOfRememberedUndoOperationsInEditor:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3141
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3142
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3143
     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
  3144
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3145
    ^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3146
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3147
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3148
     UserPreferences current numberOfRememberedUndoOperationsInEditor:20
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3149
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3150
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3151
    "Created: / 09-10-2006 / 11:00:56 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3152
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3153
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3154
st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3155
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3156
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3157
    ^ self at:#st80EditMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3158
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3159
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3160
     UserPreferences current st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3161
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3162
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3163
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3164
st80EditMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3165
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3166
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3167
    ^ self at:#st80EditMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3168
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3169
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3170
     UserPreferences current st80EditMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3171
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3172
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3173
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3174
st80SelectMode
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3175
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3176
     (select to corresponding lparen/double-quote) ?"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3177
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3178
    ^ self at:#st80SelectMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3179
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3180
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3181
     UserPreferences current st80SelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3182
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3183
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3184
    "Created: / 03-07-2006 / 16:25:19 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3185
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3186
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3187
st80SelectMode:aBoolean
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3188
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3189
     (select to corresponding lparen/double-quote)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3190
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3191
    ^ self at:#st80SelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3192
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3193
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3194
     UserPreferences current st80SelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3195
     UserPreferences current st80SelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3196
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3197
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3198
    "Created: / 03-07-2006 / 16:25:27 / cg"
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3199
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3200
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3201
whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3202
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3203
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3204
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3205
    ^ self at:#whitespaceWordSelectMode ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3206
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3207
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3208
     UserPreferences current whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3209
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3210
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3211
    "Created: / 03-07-2006 / 16:49:58 / cg"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3212
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3213
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3214
whitespaceWordSelectMode:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3215
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3216
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3217
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3218
    ^ self at:#whitespaceWordSelectMode put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3219
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3220
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3221
     UserPreferences current whitespaceWordSelectMode:true
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3222
     UserPreferences current whitespaceWordSelectMode:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3223
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3224
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  3225
    "Created: / 03-07-2006 / 16:50:20 / cg"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3226
! !
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  3227
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3228
!UserPreferences methodsFor:'accessing-prefs-localization'!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3229
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3230
language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3231
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3232
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3233
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3234
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3235
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3236
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3237
    ^ self at:#language ifAbsent:[Smalltalk language].
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3238
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3239
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3240
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3241
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3242
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3243
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3244
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3245
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3246
language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3247
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3248
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3249
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3250
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3251
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3252
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3253
    self at:#language put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3254
    Smalltalk language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3255
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3256
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3257
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3258
     UserPreferences current language:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3259
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3260
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3261
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3262
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3263
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3264
languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3265
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3266
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3267
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3268
    "/ for now, forward to smalltalk, while all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3269
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3270
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3271
    ^ self at:#languageTerritory ifAbsent:[Smalltalk languageTerritory]
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3272
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3273
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3274
     UserPreferences current languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3275
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3276
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3277
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3278
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3279
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3280
languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3281
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3282
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3283
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3284
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3285
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3286
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3287
    self at:#languageTerritory put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3288
    Smalltalk languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3289
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3290
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3291
     UserPreferences current languageTerritory 
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3292
     UserPreferences current languageTerritory:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3293
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3294
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3295
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3296
! !
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  3297
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3298
!UserPreferences methodsFor:'accessing-prefs-times'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3299
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3300
timeToAutoExpandItemsWhenDraggingOver
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3301
    "in a hierarchical tree view"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3302
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3303
    ^ 700  "/ millis
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3304
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3305
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3306
twoDigitDateHandler
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3307
    "return a block which converts a two-digit date.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3308
     Possible algorithms:
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3309
	- identity: treat as year 00..99
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3310
	- add 1900: treat as 1900..1999
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3311
	- 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
  3312
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3313
     TODO: make this configurable, keep in dictionary and add to settings.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3314
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3315
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3316
    ^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3317
    "/ ^ [:x | 1900+x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3318
    "/ ^ [:x | x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3319
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3320
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3321
!UserPreferences methodsFor:'accessing-prefs-tools'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3322
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3323
allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3324
    "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
  3325
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3326
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3327
    ^ self at:#allowSendMailFromDebugger ifAbsent:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3328
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3329
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3330
     UserPreferences current allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3331
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3332
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3333
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3334
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3335
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3336
allowSendMailFromDebugger:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3337
    "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
  3338
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3339
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3340
    ^ self at:#allowSendMailFromDebugger put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3341
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3342
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3343
     UserPreferences current allowSendMailFromDebugger:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3344
     UserPreferences current allowSendMailFromDebugger:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3345
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3346
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3347
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3348
autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3349
    "return the flag which controls automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3350
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3351
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  3352
    ^ self at:#autoDefineWorkspaceVariables ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3353
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3354
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3355
     UserPreferences current autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3356
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3357
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3358
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3359
autoDefineWorkspaceVariables:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3360
    "turn on/off automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3361
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3362
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3363
    ^ self at:#autoDefineWorkspaceVariables put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3364
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3365
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3366
     UserPreferences current autoDefineWorkspaceVariables:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3367
     UserPreferences current autoDefineWorkspaceVariables:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3368
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3369
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3370
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3371
autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3372
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3373
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3374
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3375
    ^ self at:#autoRaiseDebugger ifAbsent:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3376
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3377
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3378
     UserPreferences current autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3379
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3380
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3381
    "Created: / 15-05-2007 / 13:29:10 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3382
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3383
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3384
autoRaiseDebugger:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3385
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3386
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3387
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3388
    ^ self at:#autoRaiseDebugger put:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3389
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3390
    "
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3391
     UserPreferences current autoRaiseDebugger
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3392
     UserPreferences current autoRaiseDebugger:false
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3393
     UserPreferences current autoRaiseDebugger:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3394
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3395
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3396
    "Created: / 15-05-2007 / 13:29:31 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3397
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  3398
11419
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3399
editToolbarVisibleInWorkspace
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3400
    "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
  3401
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3402
    ^ self at:#editToolbarVisibleInWorkspace ifAbsent:false
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3403
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3404
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3405
editToolbarVisibleInWorkspace:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3406
    "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
  3407
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3408
    ^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3409
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  3410
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3411
functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3412
    "return the collection of function-key macros.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3413
     Thats a dictionary, which assigns code to F-keys"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3414
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3415
    ^ self at:#functionKeySequences ifAbsentPut:[Dictionary new]
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3416
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3417
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3418
     UserPreferences current functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3419
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3420
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3421
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3422
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3423
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3424
infoVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3425
    "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
  3426
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3427
    ^ self at:#infoVisibleInWorkspace ifAbsent:false
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3428
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3429
    "Created: / 14-07-2007 / 16:43:37 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3430
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3431
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3432
infoVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3433
    "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
  3434
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3435
    ^ self at:#infoVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3436
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3437
    "Created: / 14-07-2007 / 16:43:44 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3438
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3439
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3440
showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3441
    "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
  3442
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  3443
    ^ self at:#showClockInLauncher ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3444
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3445
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3446
     UserPreferences current showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3447
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3448
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3449
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3450
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3451
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3452
showClockInLauncher:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3453
    "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
  3454
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3455
    ^ self at:#showClockInLauncher put:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3456
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3457
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3458
     UserPreferences current showClockInLauncher:false.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3459
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3460
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3461
     UserPreferences current showClockInLauncher:true.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3462
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3463
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3464
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3465
    "Modified: / 11.9.1998 / 00:09:59 / cg"
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3466
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3467
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3468
toolbarVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3469
    "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
  3470
10665
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  3471
    ^ self at:#toolbarVisibleInWorkspace ifAbsent:true
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  3472
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  3473
    "Modified: / 18-07-2007 / 08:55:44 / cg"
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3474
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3475
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3476
toolbarVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3477
    "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
  3478
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3479
    ^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3480
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3481
    "Created: / 14-07-2007 / 16:42:09 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3482
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  3483
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3484
useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3485
    ^ self at:#useNewLayoutInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3486
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3487
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3488
     UserPreferences current useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3489
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3490
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3491
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3492
useNewLayoutInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3493
    ^ self at:#useNewLayoutInDebugger put:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3494
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3495
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3496
useRefactoringSupport
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3497
    "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
  3498
     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
  3499
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3500
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  3501
    ^ self at:#useRefactoringSupport ifAbsent:true
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3502
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3503
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3504
useRefactoringSupport:aBooleanOrNil
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3505
    "enable/disable use of refactoring package in browser.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3506
     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
  3507
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3508
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  3509
    ^ self at:#useRefactoringSupport put:aBooleanOrNil
7625
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  3510
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  3511
    "
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  3512
     UserPreferences current useRefactoringSupport:false
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  3513
     UserPreferences current useRefactoringSupport:true
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  3514
    "
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3515
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3516
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3517
verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3518
    ^ self at:#verboseBacktraceInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3519
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3520
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3521
     UserPreferences current verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3522
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3523
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3524
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3525
verboseBacktraceInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  3526
    ^ self at:#verboseBacktraceInDebugger put:aBoolean
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3527
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3528
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3529
!UserPreferences methodsFor:'accessing-prefs-tools-building'!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3530
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3531
buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3532
    ^ self at:#buildDirectory ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3533
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3534
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3535
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3536
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3537
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3538
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3539
buildDirectory:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3540
    ^ self at:#buildDirectory put:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3541
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3542
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3543
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3544
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3545
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3546
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3547
localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3548
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3549
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3550
    ^ self at:#localBuild ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3551
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3552
    "Created: / 20-09-2006 / 23:55:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3553
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3554
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3555
localBuild:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3556
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3557
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3558
    ^ self at:#localBuild put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3559
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3560
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3561
     UserPreferences current localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3562
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3563
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3564
    "Created: / 20-09-2006 / 23:55:26 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3565
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3566
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3567
usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3568
    ^ self at:#usedCompilerForBuild ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3569
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3570
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3571
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3572
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3573
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3574
    "Created: / 22-01-2012 / 10:52:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3575
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3576
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3577
usedCompilerForBuild:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3578
    ^ self at:#usedCompilerForBuild put:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3579
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3580
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3581
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3582
     UserPreferences current usedCompilerForBuild:'bcc'
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3583
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3584
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3585
    "Created: / 22-01-2012 / 10:52:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3586
! !
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  3587
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
  3588
!UserPreferences methodsFor:'accessing-scm'!
13596
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3589
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3590
showBadRevisionStringDialogs
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3591
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3592
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3593
    ^ self at: #'showBadRevisionStringDialogs' ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3594
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3595
    "Created: / 19-08-2011 / 12:51:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3596
!
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3597
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3598
showBadRevisionStringDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3599
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3600
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3601
    ^ self at: #'showBadRevisionStringDialogs' put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3602
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3603
    "Created: / 19-08-2011 / 12:51:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3604
! !
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  3605
13943
26472baf6c58 category of:20 methods
Claus Gittinger <cg@exept.de>
parents: 13942
diff changeset
  3606
!UserPreferences methodsFor:'default settings-syntax colors'!
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3607
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3608
listOfPredefinedSyntaxColoringSchemes
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3609
    "return a list of pre-defined syntax highlightning styles
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3610
     (as shown in the Launchers 'source and debugger settings' dialog."
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3611
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3612
    ^ #(
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3613
            (#resetSyntaxColorsWithSideEffectHighlighting               'default')
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3614
            (#resetSyntaxColors                                         'default without side effect highlighting')
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3615
            (#resetSyntaxColorsToVCStyle                                'green comments; blue controlFlow, red constants [visual-c style]')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3616
            (#resetSyntaxColorsBlueControlFlowSelectors                 'blue controlFlow')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3617
            (#resetSyntaxColorsGreenComments                            'green comments')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3618
            (#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors    'green comments; blue controlFlow')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3619
            (#resetSyntaxColorsBlueSelectorsGreenComments               'blue selectors; green comments [dolphin style]')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3620
            (#resetSyntaxColorsBlueSelectorsGreyComments                'blue selectors; grey comments')
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3621
            (#resetSyntaxColorsToSqueakStyle1                           'blue selectors; green comments [squeak style]')
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3622
            (#resetSyntaxColorsToSqueakStyle2                           'blue selectors; green comments; brown self [new squeak style]')
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3623
            (#resetSyntaxColorsAllBlackExceptBadIDs                     'no colors, but highlight errors')
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3624
            (#resetSyntaxColorsToVW7Style                               'light blue comments [vw7 style]')
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3625
      )
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3626
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3627
    "Modified: / 13-02-2012 / 12:59:16 / cg"
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3628
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3629
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3630
resetSyntaxColors
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3631
    "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
  3632
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3633
    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
  3634
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3635
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3636
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3637
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3638
resetSyntaxColorsAllBlackExceptBadIDs
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3639
    "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
  3640
     except for bad identifiers, which are underwaved."
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3641
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3642
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3643
    self at:#badIdentifierEmphasis  put:(Array with:#underwave with:(#underlineColor->Color red)).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3644
    self at:#errorColor             put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3645
    self at:#commentColor           put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3646
    self at:#constantColor          put:Color black.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3647
    self at:#methodSelectorEmphasis put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3648
    self at:#selectorEmphasis       put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3649
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3650
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3651
resetSyntaxColorsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3652
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3653
     (with blue control flow selectors)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3654
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3655
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3656
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3657
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3658
    "Created: / 08-09-2006 / 16:11:52 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3659
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3660
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3661
resetSyntaxColorsBlueSelectorsGreenComments
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3662
    "resets the colors in the CurrentPreferences to alternative default values
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3663
     (with blue selectors and green comments)"
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3664
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3665
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3666
    self at:#commentColor           put:(Color green darkened).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3667
    self at:#commentEmphasis        put:#italic.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3668
    self at:#selectorColor          put:(Color blue).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3669
    self at:#selectorEmphasis       put:#normal.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3670
    self at:#methodSelectorColor    put:(Color blue).
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3671
    self at:#methodSelectorEmphasis put:#bold.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3672
!
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3673
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3674
resetSyntaxColorsBlueSelectorsGreyComments
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3675
    "resets the colors in the CurrentPreferences to alternative default values
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3676
     (with blue selectors and grey comments)"
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3677
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3678
    self resetSyntaxColorsBlueSelectorsGreenComments.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  3679
    self at:#commentColor    put:(Color gray).
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3680
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  3681
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3682
resetSyntaxColorsGreenComments
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3683
    "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
  3684
     (with green comments)"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3685
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3686
    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
  3687
    self at:#commentColor put:(Color green darkened).
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3688
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3689
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3690
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3691
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3692
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3693
     (with green comments, blue control flow)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3694
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3695
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3696
    self at:#commentColor put:(Color green darkened).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3697
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3698
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3699
    "Created: / 08-09-2006 / 16:10:38 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3700
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3701
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3702
resetSyntaxColorsToSqueakStyle
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3703
    "resets the colors in the CurrentPreferences to alternative default values
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3704
     (with blue selectors and green comments)"
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3705
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3706
    self resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3707
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3708
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3709
resetSyntaxColorsToSqueakStyle1
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3710
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3711
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3712
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3713
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3714
    self at:#commentColor             put:(Color green darkened).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3715
    self at:#commentEmphasis          put:#italic.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3716
    self at:#selectorColor            put:(Color blue:80).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3717
    self at:#selectorEmphasis         put:#normal.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3718
    self at:#methodSelectorColor      put:(Color black).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3719
    self at:#methodSelectorEmphasis   put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3720
    self at:#globalIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3721
    self at:#localIdentifierColor     put:(Color grey:40).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3722
    self at:#instVarIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3723
    self at:#constantColor            put:(Color red:67).
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3724
!
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3725
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3726
resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3727
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3728
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3729
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3730
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3731
    self at:#commentColor             put:(Color green darkened).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3732
    self at:#commentEmphasis          put:#italic.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3733
    self at:#selectorColor            put:(Color blue:80).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3734
    self at:#selectorEmphasis         put:#normal.
12391
35ee0cb7fd56 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12348
diff changeset
  3735
    self at:#controlFlowSelectorEmphasis put:#bold.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3736
    self at:#methodSelectorColor      put:(Color black).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3737
    self at:#methodSelectorEmphasis   put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3738
    self at:#globalIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3739
    self at:#localIdentifierColor     put:(Color grey:40).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3740
    self at:#instVarIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3741
    self at:#constantColor            put:(Color red:67).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3742
    self at:#selfColor                put:(Color red:50 ).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3743
    self at:#selfEmphasis             put:#bold.
12282
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  3744
    self at:#localIdentifierColor     put:(Color grey:50 ).
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  3745
    self at:#localIdentifierEmphasis  put:#normal.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3746
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  3747
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3748
resetSyntaxColorsToVCStyle
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3749
    "resets the colors in the CurrentPreferences to visual C default style
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3750
     (green comments, blue keywords, redish string constants)"
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3751
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3752
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3753
    self at:#controlFlowSelectorColor put:(Color blue).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3754
    self at:#commentColor             put:(Color green darkened).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3755
    self at:#constantColor            put:(Color red:64 green:8 blue:8).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3756
!
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  3757
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3758
resetSyntaxColorsToVW7Style
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3759
    "resets the colors in the CurrentPreferences to alternative default values
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3760
     (with light blue comments, green variables)"
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3761
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3762
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3763
    self at:#commentColor             put:(Color blue lightened).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3764
    self at:#selectorColor            put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3765
    self at:#selectorEmphasis         put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3766
    self at:#methodSelectorColor      put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3767
    self at:#methodSelectorEmphasis   put:#bold.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3768
    self at:#identifierEmphasis       put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  3769
    self at:#identifierColor          put:(Color green darkened).
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3770
!
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3771
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3772
resetSyntaxColorsWithSideEffectHighlighting
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3773
    "resets the colors in the CurrentPreferences to their default values
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3774
     plus side effect highlicting"
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3775
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3776
    self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil].
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3777
    self at:#sideEffectAssignmentBackgroundColor put:(Color rgbValue:16rFFDBDB).
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3778
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3779
    "Created: / 13-02-2012 / 12:12:56 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3780
! !
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  3781
7266
f2b64d3b43cf method category rename
Claus Gittinger <cg@exept.de>
parents: 7246
diff changeset
  3782
!UserPreferences methodsFor:'default values'!
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3783
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3784
defaultValue
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3785
    "the defaultValue for non-existing keys"
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3786
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3787
    ^ false
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3788
!
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3789
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3790
errorKeyNotFound:aKey
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3791
    "for any non-existing key, false is returned"
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3792
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  3793
    ^ self defaultValue
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3794
! !
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  3795
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3796
!UserPreferences methodsFor:'misc'!
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3797
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3798
flyByHelpSettingChanged
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3799
    FlyByHelp notNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3800
	(CurrentPreferences at:#flyByHelpActive) ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3801
	    FlyByHelp start.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3802
	] ifFalse:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3803
	    FlyByHelp stop.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3804
	].
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3805
    ].
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3806
! !
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  3807
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3808
!UserPreferences methodsFor:'obsolete'!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3809
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3810
useNewSettinsApplication
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  3811
    <resource: #obsolete>
8545
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  3812
    "obsolete - will be removed in next release.
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  3813
     (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
  3814
      saved user preference files)"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3815
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  3816
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  3817
    ^ self useNewSettingsApplication
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3818
!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3819
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3820
useNewSettinsApplication:aBoolean
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  3821
    <resource: #obsolete>
7030
52b794e6abee *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7029
diff changeset
  3822
    "obsolete - will be removed in next release"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3823
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  3824
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  3825
    self useNewSettingsApplication:aBoolean.
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3826
! !
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  3827
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3828
!UserPreferences methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3829
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3830
saveIn:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3831
    self class saveSettings:self in:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3832
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  3833
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3834
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3835
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  3836
version
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3837
    ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.299 2012-02-13 11:59:34 cg Exp $'
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  3838
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  3839
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3840
version_CVS
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  3841
    ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.299 2012-02-13 11:59:34 cg Exp $'
12096
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  3842
!
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  3843
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3844
version_SVN
13466
74f7e2b60ae3 added: #historyManagerAllowEditOfHistory
Claus Gittinger <cg@exept.de>
parents: 13399
diff changeset
  3845
    ^ '§ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1  §'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3846
! !