UserPreferences.st
author Claus Gittinger <cg@exept.de>
Mon, 30 Jul 2018 12:13:09 +0200
changeset 23246 35d957c7a840
parent 23229 b4629be3e498
child 23295 be4a26cd6ea2
permissions -rw-r--r--
#FEATURE by cg class: OrderedCollection refactored to allow subclasses to use a different underlying container (see WeakOrderedCollection) added: #containerClass changed: #grow: #initContents: #makeRoomAtFront #makeRoomAtIndex: #makeRoomAtIndex:for: #makeRoomAtLast
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23229
b4629be3e498 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 23212
diff changeset
     1
"{ Encoding: utf8 }"
b4629be3e498 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 23212
diff changeset
     2
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 1998 by eXept Software AG
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
     5
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
5516
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    14
"{ Package: 'stx:libbasic' }"
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    15
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
    16
"{ NameSpace: Smalltalk }"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
    17
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
IdentityDictionary subclass:#UserPreferences
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
    19
	instanceVariableNames:'modified'
9742
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    20
	classVariableNames:'CurrentPreferences DefaultPreferences'
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    21
	poolDictionaries:''
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    22
	category:'System-Support'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 1998 by eXept Software AG
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    30
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
documentation
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    44
    A Dictionary for user preference values.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    45
    For non-existing keys, either a defaultValue (false),
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    46
    or the value from a defaultDictionary is returned.
3353
0f0288822acd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
    47
3359
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    48
    This will eventually keep track of ALL user preferences.
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    49
    For now, not all preferences are found here -
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    50
    (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
    51
    - but this will change over time.
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    52
10887
dc01356c015a comments
Claus Gittinger <cg@exept.de>
parents: 10880
diff changeset
    53
    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
    54
18690
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    55
    Notice, that ST/X is intended to be multi-user capable, supporting multiple users on multiple screens.
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    56
    This is effectively used by (at least) 2 ST/X customers we are aware of (for multi-screen applications).
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    57
    So do not break it, by putting user-specific stuff into class variables.
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    58
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    59
    Usage:
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    60
        UserPreferences current at:#foo
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    61
    or
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    62
        UserPreferences current at:#foo put:something
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    66
!UserPreferences class methodsFor:'initialization'!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    67
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    68
initializeDefaultsIn:preferences
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    69
    Color isNil "Smalltalk isStandAloneApp" ifTrue:[
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    70
        ^ self.
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    71
    ].
19954
8ba5a0cbe56a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 19953
diff changeset
    72
    Color initialize.
10240
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    73
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    74
    #(
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    75
        #useNewChangesBrowser           false
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    76
        #useNewInspector                false
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    77
        #showClockInLauncher            true
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    78
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    79
        #autoFormatting                 false
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    80
        #syntaxColoring                 true
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    81
        #fullSelectorCheck              false
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    82
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    83
        #defaultSyntaxColor             (Color black)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    84
        #defaultSyntaxEmphasis          normal
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    85
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    86
        #errorColor                     (Color red)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    87
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    88
        "/ #commentColor                   (Color 12.5 12.5 100)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    89
        #commentColor                   (Color 0 50 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    90
        #commentEmphasis                normal
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    91
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    92
        #methodSelectorEmphasis         bold
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    93
        #selectorEmphasis               bold
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    94
        #unimplementedSelectorColor     (Color red)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    95
        #unimplementedSelectorEmphasis  normal
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    96
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    97
        "/ I prefer red-underwave over red identifier ...
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    98
        "/      #badIdentifierColor                 (Color red)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
    99
        #instVarIdentifierColor         (Color 33 0 33)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   100
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   101
        "/ I prefer redish background
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   102
        "/      #sideEffectAssignmentColor          (Color 75 0 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   103
        "/ #sideEffectAssignmentBackgroundColor    (Color 100 86 86)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   104
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   105
        #jsKeywordEmphasis              bold
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   106
        "/ #jsKeywordColor                 (Color black)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   107
        #jsKeywordColor                 (Color 33 33 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   108
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   109
        #controlFlowSelectorColor       (Color 0 0 100)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   110
        #debugSelectorColor             (Color 80 0 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   111
        #errorRaisingSelectorColor      (Color 80 0 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   112
        "/ #constantColor                  (Color 25 0 0)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   113
        #constantColor                  (Color 64 8 8)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   114
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   115
        #globalIdentifierColor          (Color 67 0 67)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   116
        #unknownIdentifierColor         (Color 67 0 67)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   117
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   118
        #returnColor                    (Color 0 0 100)
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   119
        #returnEmphasis                 bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   120
     ) pairWiseDo:[:k :v |
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   121
        preferences at:k put:(v decodeAsLiteralArray).
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   122
    ].
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   123
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
   124
    "/ I prefer red-underwave over red identifier ...
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   125
    preferences at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)).
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   126
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   127
    "
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   128
     self initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   129
    "
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   130
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   131
    "Created: / 06-06-2016 / 10:42:14 / cg"
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   132
!
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   133
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   134
readSettingsFile
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   135
    "read the settings from standard places,
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   136
     If a --preferences command line argument was given, read it from there"
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   137
     
23212
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   138
    "JV@2012-03-07: Try following settings files:
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   139
       $HOME/.smalltalk/settings.stx
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   140
       $HOME/.smalltalk/settings.rc
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   141
       $PWD/settings.stx
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   142
       $PWD/settings.rc
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   143
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   144
    in that order. Whichever is found, it is read and the rest
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   145
    is not used. Also, path to the file which has beed read is
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   146
    stored in 'UserPreferences current at:#settingsFilename'
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   147
    "
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   148
    |commandLineArguments files continue idx|
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   149
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   150
    files := nil.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   151
    commandLineArguments := Smalltalk commandLineArguments.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   152
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   153
    idx := commandLineArguments indexOf: '--preferences'.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   154
    idx ~~ 0 ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   155
        | file |
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   156
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   157
        commandLineArguments size <= idx ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   158
            self error:'UserPreferences [error]: --preferences requires an argument, none given'
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   159
        ].
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   160
        file := (Smalltalk commandLineArguments at: idx + 1) asFilename.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   161
        file exists ifFalse:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   162
            self error:('UserPreferences [error]: preference file ''', file pathName,''' does not exist').
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   163
        ].
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   164
        file isDirectory ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   165
            self error:('UserPreferences [error]: preference file ''', file pathName,''' is not a regular file').
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   166
        ].
23212
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   167
        file isReadable ifFalse:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   168
            self error:('UserPreferences [error]: preference file ''', file pathName,''' is not readable (check permissions)').
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   169
        ].
23212
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   170
        files := Array with: file.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   171
        commandLineArguments removeAtIndex: idx + 1.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   172
        commandLineArguments removeAtIndex: idx.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   173
    ].
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   174
    files isNil ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   175
        files := {
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   176
                    (Filename homeDirectory / '.smalltalk' / 'settings.stx') . "/ per-user settings file (new default?)
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   177
                    (Filename homeDirectory / '.smalltalk' / 'settings.rc') .  "/ for backward compatibility with jv-branch
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   178
                    (Smalltalk getSystemFileName: 'settings.stx') .            "/ old stx default
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   179
                    (Smalltalk getSystemFileName: 'settings.rc') .             "/ for backward compatibility with jv-branch
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   180
                 }.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   181
    ].
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   182
    continue := true.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   183
    files do:[:each|
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   184
        | eachFile |
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   185
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   186
        (continue and:[each notNil and:[(eachFile := each asFilename) exists]]) ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   187
            continue := false.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   188
            eachFile pathName infoPrintCR.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   189
            eachFile fileIn.
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   190
            UserPreferences current at:#settingsFilename put: eachFile pathName.
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   191
        ].
23212
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   192
    ].
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   193
    continue ifTrue:[
6d6e0212d313 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23211
diff changeset
   194
        Smalltalk silentLoading ifFalse:[
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   195
            'UserPreferences [info]: no settings.stx file found' infoPrintCR 
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   196
        ].
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   197
    ].
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   198
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   199
    "Created: / 16-07-2018 / 12:50:32 / Claus Gittinger"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   200
! !
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   201
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    CurrentPreferences isNil ifTrue:[
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   206
        CurrentPreferences := self new.
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   207
        self initializeDefaultsIn:CurrentPreferences.
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   208
        CurrentPreferences flyByHelpSettingChanged.
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   212
    "
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   213
     CurrentPreferences := nil
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   214
    "
17414
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   215
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   216
    "Modified: / 05-02-2015 / 07:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   217
    "Modified: / 06-06-2016 / 10:42:59 / cg"
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
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   220
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   221
    DefaultPreferences isNil ifTrue:[
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   222
        DefaultPreferences := self new.
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   223
        self initializeDefaultsIn:DefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   224
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   225
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   226
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   227
    "
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   228
     DefaultPreferences := nil.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   229
    "
19952
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   230
fbc6851eacec #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19918
diff changeset
   231
    "Modified: / 06-06-2016 / 10:41:45 / cg"
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   232
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   233
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   234
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   235
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   236
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   237
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   238
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   239
19918
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   240
setCurrent:preferencesInstance
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   241
    "sets the CurrentPreferences to preferencesInstance"
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   242
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   243
    CurrentPreferences := preferencesInstance
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   244
!
49dd92f59382 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19852
diff changeset
   245
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   246
syntaxColorKeys
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   247
    "returns the keys of syntax color items"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   248
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   249
    ^ self syntaxColorNamesAndKeys collectAll:[:each | each from:2]
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   250
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   251
    "
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   252
     self syntaxColorKeys
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   253
    "
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   254
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   255
"/    ^#(
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   256
"/        argumentIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   257
"/          argumentIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   258
"/        booleanConstantColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   259
"/          booleanConstantEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   260
"/        bracketColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   261
"/          bracketEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   262
"/        classVariableIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   263
"/          classVariableIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   264
"/        constantColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   265
"/          constantEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   266
"/        controlFlowSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   267
"/          controlFlowSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   268
"/        commentColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   269
"/          commentEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   270
"/        defaultSyntaxColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   271
"/          defaultSyntaxEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   272
"/        errorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   273
"/        globalIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   274
"/          globalIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   275
"/        globalClassIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   276
"/          globalClassIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   277
"/        hereColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   278
"/          hereEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   279
"/        identifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   280
"/          identifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   281
"/        instVarIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   282
"/          instVarIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   283
"/        localIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   284
"/          localIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   285
"/        methodSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   286
"/          methodSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   287
"/        poolVariableIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   288
"/          poolVariableIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   289
"/        returnColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   290
"/          returnEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   291
"/        selectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   292
"/          selectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   293
"/        selfColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   294
"/          selfEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   295
"/        stringColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   296
"/          stringEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   297
"/        superColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   298
"/          superEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   299
"/        symbolColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   300
"/          symbolEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   301
"/        thisContextColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   302
"/          thisContextEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   303
"/        unknownIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   304
"/          unknownIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   305
"/        unimplementedSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   306
"/          unimplementedSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   307
"/        sideEffectAssignmentBackgroundColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   308
"/          sideEffectAssignmentColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   309
"/        colorForInstrumentedFullyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   310
"/            emphasisForInstrumentedFullyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   311
"/        colorForInstrumentedPartiallyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   312
"/            emphasisForInstrumentedPartiallyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   313
"/        colorForInstrumentedNeverCalledCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   314
"/            emphasisForInstrumentedNeverCalledCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   315
"/    )
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   316
14007
1ee2f49e87df changed: #syntaxColorKeys
Claus Gittinger <cg@exept.de>
parents: 14006
diff changeset
   317
    "Modified: / 14-02-2012 / 10:17:46 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   318
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   319
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   320
syntaxColorNames
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   321
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   322
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   323
    ^ self syntaxColorNamesAndKeys collect:#first.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   324
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   325
"/"/ warning, the strings below are presented to the user
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   326
"/"/ as the syntax-color boxes comboList - however, they are
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   327
"/"/ also used (without separators) as key into myself.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   328
"/"/ Therefore, do not change the strings below.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   329
"/"/ I know - this is bad coding ....
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   330
"/
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   331
"/^#(
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   332
"/'Argument Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   333
"/'Boolean Constant Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   334
"/'Bracket Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   335
"/'Class Variable Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   336
"/'Collection Enumeration Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   337
"/'Constant Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   338
"/'Control Flow Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   339
"/'Comment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   340
"/'Debug Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   341
"/'Error Raising Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   342
"/'Global Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   343
"/'Global Class Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   344
"/'Here Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   345
"/'Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   346
"/'InstVar Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   347
"/'Local Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   348
"/'Method Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   349
"/'Pool Variable Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   350
"/'Return Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   351
"/'Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   352
"/'Self Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   353
"/'Side Effect Assignment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   354
"/'Side Effect Assignment Background Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   355
"/'String Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   356
"/'Super Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   357
"/'Symbol Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   358
"/'This Context Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   359
"/'Unknown Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   360
"/'Unimplemented Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   361
"/'Side Effect Assignment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   362
"/'Coverage: Reached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   363
"/'Coverage: Partially Reached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   364
"/'Coverage: Unreached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   365
"/)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   366
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
   367
    "Modified: / 14-02-2012 / 15:51:38 / cg"
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   368
!
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   369
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   370
syntaxColorNamesAndKeys
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   371
    "returns the names and keys of syntax color items"
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   372
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   373
    ^#(
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   374
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   375
	  'Argument Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   376
	  argumentIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   377
	  argumentIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   378
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   379
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   380
	  'Boolean Constant Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   381
	  booleanConstantColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   382
	  booleanConstantEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   383
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   384
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   385
	  'Bracket Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   386
	  bracketColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   387
	  bracketEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   388
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   389
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   390
	  'Class Variable Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   391
	  classVariableIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   392
	  classVariableIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   393
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   394
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   395
	  'Constant Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   396
	  constantColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   397
	  constantEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   398
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   399
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   400
	  'Control Flow Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   401
	  controlFlowSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   402
	  controlFlowSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   403
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   404
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   405
	  'Comment Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   406
	  commentColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   407
	  commentEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   408
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   409
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   410
	  'Collection Enumeration Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   411
	  collectionEnumerationSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   412
	  collectionEnumerationSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   413
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   414
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   415
	  'Debug Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   416
	  debugSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   417
	  debugSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   418
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   419
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   420
	  'Default Syntax Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   421
	  defaultSyntaxColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   422
	  defaultSyntaxEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   423
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   424
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   425
	  'Error Raising Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   426
	  errorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   427
	  errorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   428
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   429
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   430
	  'Global Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   431
	  globalIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   432
	  globalIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   433
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   434
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   435
	  'Global Class Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   436
	  globalClassIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   437
	  globalClassIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   438
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   439
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   440
	  'Here Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   441
	  hereColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   442
	  hereEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   443
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   444
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   445
	  'Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   446
	  identifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   447
	  identifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   448
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   449
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   450
	  'InstVar Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   451
	  instVarIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   452
	  instVarIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   453
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   454
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   455
	  'Local Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   456
	  localIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   457
	  localIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   458
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   459
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   460
	  'Method Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   461
	  methodSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   462
	  methodSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   463
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   464
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   465
	  'Pool Variable Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   466
	  poolVariableIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   467
	  poolVariableIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   468
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   469
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   470
	  'Return Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   471
	  returnColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   472
	  returnEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   473
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   474
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   475
	  'Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   476
	  selectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   477
	  selectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   478
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   479
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   480
	  'Self Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   481
	  selfColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   482
	  selfEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   483
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   484
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   485
	  'String Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   486
	  stringColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   487
	  stringEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   488
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   489
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   490
	  'Super Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   491
	  superColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   492
	  superEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   493
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   494
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   495
	  'Symbol Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   496
	  symbolColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   497
	  symbolEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   498
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   499
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   500
	  'This Context Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   501
	  thisContextColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   502
	  thisContextEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   503
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   504
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   505
	  'Unknown Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   506
	  unknownIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   507
	  unknownIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   508
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   509
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   510
	  'Unimplemented Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   511
	  unimplementedSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   512
	  unimplementedSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   513
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   514
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   515
	  'Side Effect Assignment Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   516
	  sideEffectAssignmentColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   517
	  sideEffectAssignmentColorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   518
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   519
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   520
	  'Side Effect Assignment Background Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   521
	  sideEffectAssignmentBackgroundColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   522
	  sideEffectAssignmentBackgroundColorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   523
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   524
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   525
	  'Coverage: Reached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   526
	  colorForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   527
	  emphasisForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   528
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   529
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   530
	  'Coverage: Partially Reached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   531
	  colorForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   532
	  emphasisForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   533
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   534
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   535
	  'Coverage: Unreached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   536
	  colorForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   537
	  emphasisForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   538
	)
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   539
    )
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   540
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   541
    "Modified: / 14-02-2012 / 10:17:46 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   544
!UserPreferences class methodsFor:'accessing - defaults'!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   545
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   546
defaultUserSettingsFile
16651
0954be8fb1d2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16641
diff changeset
   547
    ^ (Filename usersPrivateSmalltalkDirectory) / 'settings.stx'
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   548
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   549
    "Created: / 06-10-2008 / 08:27:15 / Jan Vrany <vranyj1@fel.cvut.cz>"
18867
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   550
!
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   551
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   552
defaultWorkspaceDirectory
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   553
    ^ (Filename usersPrivateSmalltalkDirectory) / 'workspace'
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   554
! !
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   555
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   556
!UserPreferences class methodsFor:'accessing defaultPrefs'!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   557
11006
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   558
defaultSettingsFilename
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   559
    ^ 'settings.stx'
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   560
!
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   561
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   562
fileBrowserClass
22239
abb9af0353bb #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22225
diff changeset
   563
    "the class to be used for file browsing 
abb9af0353bb #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22225
diff changeset
   564
     (used to be the simple FileBrowser, but is now the FileBrowserV2)"
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   565
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   566
    ^ self current fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   567
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   568
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   569
     UserPreferences fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   570
    "
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   571
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   572
    "Modified: / 17-07-2010 / 14:50:34 / cg"
22239
abb9af0353bb #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22225
diff changeset
   573
    "Modified (comment): / 01-09-2017 / 14:02:23 / cg"
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   574
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   575
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   576
systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   577
    ^ self current systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   578
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   579
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   580
     UserPreferences systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   581
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   582
!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   583
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   584
versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   585
    ^ self current versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   586
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   587
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   588
     UserPreferences versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   589
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   590
! !
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   591
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   592
!UserPreferences class methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   593
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   594
saveSettings:userPrefs in:fileNameOrString
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   595
    "save settings to a settings-file."
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   596
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   597
    "a temporary kludge for old classVariable-based settings
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   598
     - all of those MUST go into the user-preferences dictionary eventually"
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   599
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   600
    |screen fileName dir|
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   601
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   602
    fileName := fileNameOrString asFilename.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   603
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   604
    screen := Screen current.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   605
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   606
    (dir := fileName directory) exists ifFalse:[
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   607
        dir recursiveMakeDirectory.
17417
b64ee00eabdd class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 17415
diff changeset
   608
    ].
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   609
    fileName writingFileDo:[:s|
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   610
        s nextPutLine:'"/ ST/X saved settings';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   611
          nextPutLine:'"/ DO NOT MODIFY MANUALLY';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   612
          nextPutLine:'"/ (modifications would be lost with next save-settings)';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   613
          nextPutLine:'"/';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   614
          nextPutLine:'"/ this file was automatically generated by the';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   615
          nextPutLine:'"/ ''save settings'' function of the SettingsDialog';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   616
          nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   617
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   618
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   619
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   620
        s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   621
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   622
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   623
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   624
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   625
        s nextPutLine:'"/ Display settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   626
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   627
        s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   628
        s nextPutLine:'Display notNil ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   629
        s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   630
          screen fixColors notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   631
            s nextPutLine:'  Image flushDeviceImages.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   632
            s nextPutLine:'  Color colorAllocationFailSignal catch:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   633
            s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   634
            s nextPutLine:'  ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   635
          ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   636
            s nextPutLine:'  Display releaseFixColors.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   637
          ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   638
          s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   639
          s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   640
          s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   641
          s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   642
          s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   643
          s nextPutLine:'  View defaultStyle:' , View defaultStyle storeString , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   644
        s nextPutLine:' ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   645
        s nextPutLine:'].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   646
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   647
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   648
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   649
        s nextPutLine:'"/ Parser/Compiler settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   650
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   651
        s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   652
          nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   653
          nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   654
          nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   655
          nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   656
          nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   657
          nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   658
          nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   659
          nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   660
          nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.';
21643
6f43e93466a3 #BUGFIX by mawalch
mawalch
parents: 21385
diff changeset
   661
          nextPutLine:'ParserFlags stringsAreImmutable: ' , (ParserFlags stringsAreImmutable storeString) , '.';
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   662
          nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   663
          nextPutLine:'ParserFlags lineNumberInfo: ' , (ParserFlags lineNumberInfo storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   664
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   665
          nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   666
          nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   667
          nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   668
          nextPutLine:'  ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   669
          nextPutLine:'  ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.';
19310
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   670
          nextPutLine:'  ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   671
          nextPutLine:'  ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.';
22899
468afe6fd785 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22658
diff changeset
   672
          nextPutLine:'  ExternalBytes sizeofPointer = ' , (ExternalBytes sizeofPointer storeString) , ' ifTrue:[';
19310
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   673
          nextPutLine:'    ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   674
          nextPutLine:'    ',(ParserFlags stcModulePath ? 'modules') storeString , ' asFilename exists ifTrue:[';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   675
          nextPutLine:'      ParserFlags stcModulePath: ' , (ParserFlags stcModulePath ? 'modules') storeString , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   676
          nextPutLine:'    ].';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   677
          nextPutLine:'    ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   678
          nextPutLine:'    ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   679
          nextPutLine:'    ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   680
          nextPutLine:'    ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   681
          nextPutLine:'    ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   682
          nextPutLine:'    ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   683
          nextPutLine:'    ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.';
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   684
          nextPutLine:'  ].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   685
          nextPutLine:'].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   686
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   687
          nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   688
          nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   689
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   690
        HistoryManager notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   691
            HistoryManager isActive ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   692
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   693
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   694
            ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   695
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   696
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   697
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   698
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   699
        s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   700
        s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   701
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   702
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   703
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   704
        s nextPutLine:'"/ Info & Debug Messages:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   705
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   706
        s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   707
          nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   708
          nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   709
          nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
14307
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   710
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   711
    "/    FlyByHelp isActive ifTrue:[
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   712
    "/        s nextPutLine:'FlyByHelp start.'
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   713
    "/    ].
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   714
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   715
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   716
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   717
        s nextPutLine:'"/ Edit settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   718
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   719
        "/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   720
        "/ s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   721
        s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   722
        (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   723
            s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   724
        ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   725
            s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   726
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   727
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   728
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   729
        s nextPutLine:'"/ User preference values:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   730
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   731
        userPrefs keysAndValuesDo:[:k :v |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   732
            |putSelector|
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   733
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   734
            putSelector := (k , ':') asSymbolIfInterned.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   735
            (UserPreferences includesSelector:putSelector) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   736
                s nextPutAll:'UserPreferences current ';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   737
                  nextPutAll:putSelector.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   738
            ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   739
                s nextPutAll:'UserPreferences current at:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   740
                k storeOn:s.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   741
                s nextPutAll:' put:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   742
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   743
            v storeOn:s.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   744
            s nextPut:$.; cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   745
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   746
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   747
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   748
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   749
        s nextPutLine:'"/ GC settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   750
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   751
        s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   752
          nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   753
          nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   754
          nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   755
          nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   756
          nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   757
          nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   758
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   759
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   760
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   761
        s nextPutLine:'"/ Misc settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   762
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   763
        s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   764
          nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   765
          nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   766
          nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   767
          nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   768
20815
9d37f600a822 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20712
diff changeset
   769
          "/ claus - I don't think its a good idea to save those ...
14307
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   770
    "/      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   771
    "/      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   772
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   773
          nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   774
          nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   775
          nextPutLine:'Display notNil ifTrue:[';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   776
          nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   777
          nextPutLine:'].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   778
          nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   779
          nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   780
        (NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   781
            s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   782
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   783
        Processor isTimeSlicing ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   784
            s nextPutLine:'Processor startTimeSlicing.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   785
            s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   786
        ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   787
            s nextPutLine:'Processor stopTimeSlicing.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   788
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   789
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   790
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   791
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   792
        s nextPutLine:'"/ Printer settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   793
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   794
        Printer notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   795
            s nextPutLine:'Printer := ' , (Printer name) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   796
            Printer supportsPrintingToCommand ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   797
                s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   798
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   799
            Printer supportsPageSizes ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   800
                s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   801
                s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   802
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   803
            Printer supportsMargins ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   804
                s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   805
                s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   806
                s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   807
                s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   808
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   809
            Printer supportsPostscript ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   810
                s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   811
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   812
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   813
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   814
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   815
        s nextPutLine:'"/ Font settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   816
        s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   817
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   818
        s nextPutLine:'Display notNil ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   819
        s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   820
        {
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   821
            SimpleView . Label . CheckBox . CheckLabel . Button . Toggle .
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   822
            SelectionInListView . MenuView . MenuPanel . NoteBookView . PullDownMenu .
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   823
            TextView . EditTextView . CodeView
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   824
        } do:[:cls |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   825
            s nextPutLine:'  ',cls name,' defaultFont: ' , (cls defaultFont storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   826
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   827
        s nextPutLine:' ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   828
        s nextPutLine:'].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   829
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   830
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   831
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   832
        s nextPutLine:'"/ SourceCodeManager settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   833
        s nextPutLine:'"/ (repositories are networked nowadays, so the settings are host independent)'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   834
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   835
        s nextPutLine:'Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   836
        s nextPutLine:'AbstractSourceCodeManager notNil ifTrue:[AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   837
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   838
        AbstractSourceCodeManager availableManagers do:[:eachManager |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   839
            eachManager savePreferencesOn:s
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   840
        ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
   841
18824
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
   842
        userPrefs useSystemLanguage ifFalse:[
18825
818e7cc51e31 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18824
diff changeset
   843
            s nextPutAll:('Smalltalk language:',UserPreferences current language storeString).
18826
e5a65a9bb86f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18825
diff changeset
   844
            s nextPutLine:(' territory:',UserPreferences current languageTerritory storeString,'.').
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
   845
        ].
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   846
        s syncData.
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   847
        userPrefs beUnmodified.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   848
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   849
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   850
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   851
     Transcript topView application saveSettings
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   852
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   853
9492
89bfc46b3b48 make command
fm
parents: 9491
diff changeset
   854
    "Modified: / 09-08-2006 / 18:52:14 / fm"
14358
0537cf5714b0 lineNumberInfo moved from parser to parserflags
Claus Gittinger <cg@exept.de>
parents: 14342
diff changeset
   855
    "Modified: / 26-09-2012 / 13:33:47 / cg"
21643
6f43e93466a3 #BUGFIX by mawalch
mawalch
parents: 21385
diff changeset
   856
    "Modified: / 13-03-2017 / 17:21:04 / mawalch"
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   857
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   858
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   859
!UserPreferences methodsFor:'accessing'!
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   860
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   861
at:key
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   862
    ^ super at:key asSymbol
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   863
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   864
    "Created: / 15-01-2012 / 14:27:29 / cg"
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   865
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   866
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   867
at:key ifAbsent:exceptionValue
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   868
    ^ super
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   869
	at:key asSymbol
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   870
	ifAbsent:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   871
	    "/ Look to DefaultPreferences first...
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   872
	    (DefaultPreferences notNil and:[self ~~ DefaultPreferences]) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   873
		DefaultPreferences at:key ifAbsent:exceptionValue
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   874
	    ] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   875
		exceptionValue value
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   876
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   877
	].
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   878
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   879
    "Created: / 15-01-2012 / 14:27:21 / cg"
17414
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   880
    "Modified (format): / 05-02-2015 / 07:10:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   881
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   882
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   883
at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   884
    |classNameToCheck classToCheck|
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   885
13119
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   886
"/    key isSymbol ifFalse:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   887
"/        self halt.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   888
"/        self at:key asSymbol put:value.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   889
"/        ^ self
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   890
"/    ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   891
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   892
    value == true ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   893
	key == #useNewVersionDiffBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   894
	    classNameToCheck := #'VersionDiffBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   895
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   896
	key == #useNewChangesBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   897
	    classNameToCheck := #'NewChangesBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   898
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   899
	key == #useNewFileBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   900
	    classNameToCheck := #'FileBrowserV2'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   901
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   902
	key == #useNewSystemBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   903
	    classNameToCheck := #'Tools::NewSystemBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   904
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   905
	key == #useNewInspector ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   906
	    classNameToCheck := #'NewInspector::NewInspectorView'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   907
	].
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   908
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   909
5791
8e96850a568d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5790
diff changeset
   910
    classNameToCheck notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   911
	classToCheck := Smalltalk at:classNameToCheck.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   912
	classToCheck isNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   913
	    ('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   914
	] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   915
	    Autoload autoloadFailedSignal handle:[:ex |
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   916
		'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   917
	    ] do:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   918
		classToCheck autoload.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   919
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   920
	]
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   921
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   922
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   923
    ^ super at:key asSymbol put:value
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   924
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   925
    "Modified: / 15-01-2012 / 14:26:53 / cg"
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   926
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   927
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   928
beModified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   929
    "this is not needed for settings applications, which notice any modifications
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   930
     themself. Howvever, if someone else modifies the settings (programmatically),
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   931
     the change should be remembered, so that the user can be warned at session end"
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   932
     
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   933
    modified := true
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   934
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   935
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   936
beUnmodified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   937
    "done when saved"
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   938
    
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   939
    modified := false
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   940
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   941
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   942
isModified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   943
    "this is set, if someone modifies the settings programmatically,
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   944
     so that the user can be warned at session end"
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   945
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   946
    ^ modified ? false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   947
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   948
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   949
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
   950
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   951
!UserPreferences methodsFor:'accessing-locale'!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   952
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   953
dateInputFormat
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   954
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   955
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   956
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   957
	at:#dateInputFormat
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   958
	ifAbsentPut:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   959
	    (self language == #en and:[ self languageTerritory ~= #en])
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   960
		ifTrue:[ '%m %d %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   961
		ifFalse:[ '%d %m %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   962
	]
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   963
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   964
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   965
dateInputFormat:aFormatString
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   966
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   967
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   968
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   969
	at:#dateInputFormat
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   970
	ifAbsentPut:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   971
	    (self language == #en and:[ self languageTerritory ~= #en])
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   972
		ifTrue:[ '%m %d %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   973
		ifFalse:[ '%d %m %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   974
	]
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   975
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   976
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   977
     UserPreferences current dateInputFormat:'%d %m %y'  -- european
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   978
     UserPreferences current dateInputFormat:'%m %d %y'  -- us
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   979
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   980
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   981
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   982
decimalPointCharacter
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   983
    "toDo: migrate from ClassVar in Number;
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   984
     use this for new applications"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   985
20865
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   986
    ^ self at:#decimalPointCharacter ifAbsent:[ $. ]
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   987
!
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   988
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   989
decimalPointCharacter:aCharacter
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   990
    ^ self at:#decimalPointCharacter put:aCharacter
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   991
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   992
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   993
thousandsSeparatorCharacter
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   994
    "toDo: migrate from ClassVar elsewhere;
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   995
     use this for new applications"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   996
20865
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   997
    ^ self at:#thousandsSeparatorCharacter ifAbsent:[ $, ]
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   998
!
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
   999
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
  1000
thousandsSeparatorCharacter:aCharacter
d60381249b45 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20852
diff changeset
  1001
    ^ self at:#thousandsSeparatorCharacter put:aCharacter
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1002
! !
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1003
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1004
!UserPreferences methodsFor:'accessing-misc'!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1005
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1006
selectorNamespacesEnabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1007
    "Return true, if selector namespaces support is enabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1008
     for this system. Note, that this method may return true
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1009
     even if selector namespaces are not supported by this system.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1010
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1011
     This is rather user setting. To ask whether the selector namespaces
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1012
     support should be used, use:
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1013
18928
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1014
        UserPreferences current selectorNamespacesSupportedAndEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1015
    "
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1016
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1017
    ^self at:#selectorNamespacesEnabled ifAbsent:false.
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1018
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1019
    "
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1020
        UserPreferences current selectorNamespacesEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1021
        UserPreferences current selectorNamespacesSupportedAndEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1022
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1023
        UserPreferences current selectorNamespacesEnabled: true.
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
  1024
        UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1025
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1026
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1027
    "Created: / 19-07-2012 / 15:26:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1028
!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1029
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1030
selectorNamespacesEnabled: aBoolean
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1031
    "Enables/disables selector namespaces support for this system.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1032
     Please note that even if selector namespaces are enabled here,
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1033
     they may not be supported by the system/VM.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1034
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1035
     This is rather user setting. To ask whether the selector namespaces
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1036
     are supported use
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1037
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1038
	ConfigurableFeatures includesFeature:#SelectorNamespaces
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1039
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1040
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1041
    self at:#selectorNamespacesEnabled put: aBoolean
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1042
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1043
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1044
	UserPreferences current selectorNamespacesEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1045
	UserPreferences current selectorNamespacesSupportedAndEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1046
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1047
	UserPreferences current selectorNamespacesEnabled: true.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1048
	UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1049
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1050
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1051
    "Created: / 19-07-2012 / 15:27:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1052
!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1053
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1054
selectorNamespacesSupportedAndEnabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1055
    "Return true, if selector namespaces are both enabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1056
     and supported by this system/VM, false otherwise
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1057
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1058
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1059
    ^ (ConfigurableFeatures includesFeature:#SelectorNamespaces)
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1060
	and:[self selectorNamespacesEnabled]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1061
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1062
    "
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1063
	UserPreferences current selectorNamespacesEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1064
	UserPreferences current selectorNamespacesSupportedAndEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1065
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1066
	UserPreferences current selectorNamespacesEnabled: true.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1067
	UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1068
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1069
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1070
    "Created: / 19-07-2012 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1071
! !
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
  1072
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1073
!UserPreferences methodsFor:'accessing-misc-communication'!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1074
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1075
dotNetBridgeRunsInIDE
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1076
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1077
     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
  1078
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1079
    ^ self at:#dotNetBridgeRunsInIDE ifAbsent:false
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1080
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1081
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1082
dotNetBridgeRunsInIDE:aBoolean
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1083
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1084
     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
  1085
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1086
    ^ self at:#dotNetBridgeRunsInIDE put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1087
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1088
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1089
dotNetBridgeVerbose
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1090
    ^ self at:#dotNetBridgeVerbose ifAbsent:false
11027
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1091
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1092
    "
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1093
     UserPreferences current dotNetBridgeVerbose
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1094
    "
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1095
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1096
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1097
dotNetBridgeVerbose:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1098
    ^ self at:#dotNetBridgeVerbose put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1099
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1100
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1101
javaBridgeRunsInIDE
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1102
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1103
     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
  1104
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1105
    ^ self at:#javaBridgeRunsInIDE ifAbsent:false
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1106
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1107
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1108
javaBridgeRunsInIDE:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1109
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1110
     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
  1111
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1112
    ^ self at:#javaBridgeRunsInIDE put:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1113
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1114
22932
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1115
logExecutedOSCommands
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1116
    ^ self at:#logExecutedOSCommands ifAbsent:false
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1117
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1118
    "
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1119
     UserPreferences current logExecutedOSCommands
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1120
    "
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1121
!
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1122
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1123
logExecutedOSCommands:aBoolean
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1124
    ^ self at:#logExecutedOSCommands put:aBoolean
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1125
!
9084fa64673e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22899
diff changeset
  1126
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1127
logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1128
    ^ self at:#logHTTPRequests ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1129
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1130
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1131
logHTTPRequests:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1132
    ^ self at:#logHTTPRequests put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1133
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1134
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1135
     UserPreferences current logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1136
     UserPreferences current logHTTPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1137
     UserPreferences current logHTTPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1138
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1139
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1140
23066
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1141
logNetCommunications
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1142
    ^ self at:#logNetCommunications ifAbsent:false
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1143
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1144
    "Created: / 13-06-2018 / 17:28:35 / Claus Gittinger"
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1145
!
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1146
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1147
logNetCommunications:aBoolean
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1148
    self at:#logNetCommunications put:aBoolean.
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1149
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1150
    "/ use Smalltalk at: to avoid prerequisite package dependency
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1151
    (Smalltalk at:#'Net::NetEnvironment') notNil ifTrue:[
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1152
        (Smalltalk at:#'Net::NetEnvironment') verbose:aBoolean.
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1153
    ].    
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1154
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1155
    "
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1156
     UserPreferences current logNetCommunications
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1157
     UserPreferences current logNetCommunications:true
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1158
     UserPreferences current logNetCommunications:false
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1159
    "
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1160
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1161
    "Created: / 13-06-2018 / 17:29:42 / Claus Gittinger"
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1162
!
caf3599f703e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22947
diff changeset
  1163
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1164
logSOAPRequests
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
  1165
    ^ (self soapLoggingLevel ? 0) > 0
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1166
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1167
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1168
logSOAPRequests:aBoolean
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
  1169
    self soapLoggingLevel:(aBoolean ifTrue:3 ifFalse:0)
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1170
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1171
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1172
     UserPreferences current logSOAPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1173
     UserPreferences current logSOAPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1174
     UserPreferences current logSOAPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1175
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1176
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1177
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1178
smallteamViaXMPPEnabled
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1179
    ^ self at:#smallteamViaXMPPEnabled ifAbsent:false
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1180
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1181
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1182
smallteamViaXMPPEnabled:aBoolean
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1183
    self at:#smallteamViaXMPPEnabled put:aBoolean
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1184
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1185
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1186
smallteamXMPPPassword
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1187
    ^ self at:#smallteamXMPPPassword ifAbsent:[ '' ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1188
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1189
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1190
smallteamXMPPPassword:aPasswordString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1191
    self at:#smallteamXMPPPassword put:aPasswordString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1192
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1193
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1194
smallteamXMPPServer
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1195
    ^ self at:#smallteamXMPPServer ifAbsent:[ 'exept.de' ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1196
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1197
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1198
smallteamXMPPServer:aHostname
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1199
    self at:#smallteamXMPPServer put:aHostname
19391
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1200
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1201
    "
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1202
     UserPreferences current smallteamXMPPUser:'exept.de'.
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1203
    "
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1204
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1205
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1206
smallteamXMPPUser
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1207
    ^ self at:#smallteamXMPPUser ifAbsent:[ OperatingSystem getLoginName ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1208
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1209
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1210
smallteamXMPPUser:aUsernameString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1211
    self at:#smallteamXMPPUser put:aUsernameString
19391
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1212
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1213
    "
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1214
     UserPreferences current smallteamXMPPUser:'cg'.
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1215
    "
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1216
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1217
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1218
smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1219
    ^ self at:#smtpServerName ifAbsent:nil
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1220
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1221
    "Created: / 20-09-2007 / 15:59:20 / cg"
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1222
!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1223
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1224
smtpServerName:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1225
    ^ self at:#smtpServerName put:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1226
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1227
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1228
     UserPreferences current smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1229
     UserPreferences current smtpServerName:'mailhost'
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1230
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1231
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1232
    "Created: / 20-09-2007 / 15:59:58 / cg"
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1233
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1234
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1235
soapErrorDebugging
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1236
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1237
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1238
    ^ self at:#soapErrorDebugging ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1239
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1240
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1241
soapErrorDebugging:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1242
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1243
    ^ self at:#soapErrorDebugging put:aBoolean
12774
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1244
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1245
    "
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1246
     UserPreferences current soapErrorDebugging:true
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1247
    "
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1248
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1249
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1250
soapLoggingLevel
20674
f2a78b474642 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20625
diff changeset
  1251
    ^ self at:#soapLoggingLevel ifAbsent:[0]
f2a78b474642 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20625
diff changeset
  1252
f2a78b474642 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20625
diff changeset
  1253
    "Modified: / 16-10-2016 / 23:55:34 / cg"
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1254
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1255
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1256
soapLoggingLevel:anIntegerBetween0_and_3
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1257
    ^ self at:#soapLoggingLevel put:anIntegerBetween0_and_3
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1258
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1259
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1260
socksProxyHost
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1261
    ^ self at:#socksProxyHost ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1262
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1263
    "Created: / 27-12-2011 / 14:40:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1264
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1265
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1266
socksProxyHost:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1267
    ^ self at:#socksProxyHost put:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1268
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1269
    "Created: / 27-12-2011 / 14:42:15 / cg"
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1270
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1271
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1272
socksProxyPort
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1273
    ^ self at:#socksProxyPort ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1274
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1275
    "Created: / 27-12-2011 / 14:40:32 / cg"
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1276
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1277
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1278
socksProxyPort:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1279
    ^ self at:#socksProxyPort put:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1280
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1281
    "Created: / 27-12-2011 / 14:42:29 / cg"
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1282
! !
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1283
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1284
!UserPreferences methodsFor:'accessing-pref''d tools'!
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
  1285
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1286
changeSetBrowserClass
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1287
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1288
    | class className |
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1289
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1290
    className := self at: #changeSetBrowserClassName ifAbsent:[nil].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1291
    className notNil ifTrue:[
19576
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1292
        class := Smalltalk at: className asSymbol.
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1293
        class notNil ifTrue:[ ^ class ].
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1294
    ].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1295
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1296
    "Original code"
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1297
    ^ ChangeSetBrowser.
19576
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1298
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1299
"/    self useNewChangeSetBrowser ifTrue:[
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1300
"/        ^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1301
"/    ].
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1302
"/    ^ ChangeSetBrowser ? Tools::ChangeSetBrowser2
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1303
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1304
    "
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1305
     self current changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1306
    "
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1307
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1308
    "Created: / 01-07-2011 / 16:33:13 / cg"
13523
03ec11a75c9d changed: #changeSetBrowserClass
sr
parents: 13522
diff changeset
  1309
    "Modified: / 25-07-2011 / 12:21:42 / sr"
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1310
    "Modified: / 25-01-2012 / 17:11:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1311
!
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1312
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1313
changeSetBrowserClass: aClass
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1314
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1315
    self at: #changeSetBrowserClassName put: aClass name.
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1316
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1317
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1318
	UserPreferences current changeSetBrowserClass
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1319
	UserPreferences current changeSetBrowserClass: Tools::ChangeSetBrowser2.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1320
	UserPreferences current changeSetBrowserClass: ChangeSetBrowser.
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1321
    "
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1322
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1323
    "Created: / 25-01-2012 / 17:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1324
!
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1325
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1326
changesBrowserClass
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1327
    "the browser to be used for the changeFile"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1328
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1329
    | class className |
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1330
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1331
    className := self at: #changesBrowserClassName ifAbsent:[nil].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1332
    className notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1333
	class := Smalltalk at: className asSymbol.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1334
	class notNil ifTrue:[ ^ class ].
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1335
    ].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1336
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1337
    "/ Old code
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1338
    self useNewChangesBrowser ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1339
	^ (NewChangesBrowser ? ChangesBrowser)
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1340
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1341
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1342
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1343
    "Created: / 17-10-1998 / 14:37:46 / cg"
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1344
    "Modified: / 25-01-2012 / 17:11:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1345
!
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1346
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1347
changesBrowserClass: aClass
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1348
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1349
    self at: #changesBrowserClassName put: aClass name.
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1350
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1351
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1352
	UserPreferences current changesBrowserClass
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1353
	UserPreferences current changesBrowserClass: Tools::ChangeSetBrowser2.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1354
	UserPreferences current changesBrowserClass: ChangeSetBrowser.
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1355
    "
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1356
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1357
    "Created: / 25-01-2012 / 17:12:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1358
!
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1359
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1360
externalDiffCommandTemplate
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1361
    "the external command to use for diff"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1362
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  1363
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1364
	at:#externalDiffCommandTemplate
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1365
	ifAbsent:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1366
	    OperatingSystem isMSDOSlike ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1367
		'diff %1 %2'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1368
	    ] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1369
		'diff -b %1 %2'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1370
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1371
	]
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1372
14736
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1373
    "
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1374
     UserPreferences current externalDiffCommandTemplate
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1375
    "
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1376
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1377
    "Modified: / 13-10-1998 / 15:53:05 / cg"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1378
    "Created: / 26-07-2012 / 15:06:31 / cg"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1379
!
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1380
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1381
externalDiffCommandTemplate:aString
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1382
    "the external command to use for diff.
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1383
     The default is 'diff %1 %2' on msdos and 'diff -b %1 %2' on unix"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1384
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1385
    self at:#externalDiffCommandTemplate put:aString
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1386
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1387
    "
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1388
     UserPreferences current externalDiffCommandTemplate
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1389
    "
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1390
!
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1391
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1392
inspectorClassSetting
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1393
    self useNewInspector ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1394
	^ (NewInspector::NewInspectorView ? InspectorView)
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1395
    ].
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1396
    ^ InspectorView
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1397
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1398
    "Modified: / 12.11.2001 / 15:47:35 / cg"
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1399
    "Created: / 12.11.2001 / 15:49:00 / cg"
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1400
!
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1401
11005
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1402
showTipOfTheDayAtStartup
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1403
    ^ self at:#showTipOfTheDayAtStartup ifAbsent:false
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1404
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1405
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1406
showTipOfTheDayAtStartup:aBoolean
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1407
    self at:#showTipOfTheDayAtStartup put:aBoolean.
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1408
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1409
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1410
systemBrowserClass
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1411
    self useNewSystemBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1412
	^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser)
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1413
    ].
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1414
    ^ SystemBrowser
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1415
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1416
13502
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1417
testRunnerClass
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1418
    self useTestRunner2 ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1419
	^ Tools::TestRunner2 ? TestRunner
13502
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1420
    ].
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1421
    ^ TestRunner
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1422
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1423
    "Created: / 06-07-2011 / 13:55:03 / cg"
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1424
!
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1425
13486
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1426
useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1427
    "using brand new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1428
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1429
    ^ self at:#useInspector2 ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1430
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1431
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1432
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1433
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1434
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1435
    "Modified: / 17-10-1998 / 14:45:12 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1436
    "Created: / 03-07-2011 / 22:35:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1437
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1438
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1439
useInspector2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1440
    "using very new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1441
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1442
    self at:#useInspector2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1443
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1444
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1445
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1446
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1447
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1448
    "Created: / 03-07-2011 / 22:36:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1449
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1450
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1451
useNativeFileDialog
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1452
    ^ self nativeFileDialogs
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1453
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1454
    "Modified: / 24-08-2010 / 17:02:10 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1455
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1456
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1457
useNativeFileDialog:aBoolean
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1458
    self nativeFileDialogs:aBoolean
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1459
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1460
    "Modified: / 24-08-2010 / 17:02:13 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1461
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1462
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1463
useNewChangeSetBrowser
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1464
    "using old or jan's changeSetBrowser for package diffs"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1465
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1466
    ^ self at:#useNewChangeSetBrowser ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1467
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1468
    "Modified: / 13-10-1998 / 15:53:05 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1469
    "Created: / 26-07-2012 / 15:06:31 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1470
!
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1471
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1472
useNewChangeSetBrowser:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1473
    "using old or jan's changeSetBrowser for package diffs"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1474
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1475
    ^ self at:#useNewChangeSetBrowser put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1476
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1477
    "Created: / 26-07-2012 / 15:06:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1478
!
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1479
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1480
useNewChangesBrowser
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1481
    "using new or old change browser for the changes file"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1482
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1483
    ^ self at:#useNewChangesBrowser ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1484
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1485
    "Modified: / 13-10-1998 / 15:53:05 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1486
    "Modified (comment): / 26-07-2012 / 15:04:37 / cg"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1487
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1488
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1489
useNewChangesBrowser:aBoolean
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1490
    "using new or old changeBrowser for the changes file"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1491
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1492
    self at:#useNewChangesBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1493
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1494
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1495
     UserPreferences current useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1496
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1497
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1498
    "Modified: / 13-10-1998 / 15:53:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1499
    "Modified (comment): / 26-07-2012 / 15:04:39 / cg"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1500
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1501
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1502
useNewFileBrowser
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1503
    "using new or old version diff viewer"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1504
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1505
    ^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded])
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1506
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1507
    "Modified: / 13.10.1998 / 15:53:05 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1508
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1509
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1510
useNewFileBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1511
    "using new or old file browser"
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1512
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1513
    self at:#useNewFileBrowser put:aBoolean
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1514
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1515
    "
6769
8cd2d038bfc6 *** empty log message ***
penk
parents: 6767
diff changeset
  1516
     UserPreferences current useNewFileBrowser
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1517
    "
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1518
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1519
    "Modified: / 13.10.1998 / 15:53:21 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1520
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1521
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1522
useNewFileDialog
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1523
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1524
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1525
    ^ self at:#useNewFileDialog ifAbsent:true
13973
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1526
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1527
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1528
     UserPreferences current useNewFileDialog:false
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1529
     UserPreferences current useNewFileDialog:true
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1530
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1531
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1532
    "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
  1533
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1534
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1535
useNewFileDialog:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1536
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1537
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1538
    self at:#useNewFileDialog put:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1539
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1540
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1541
     UserPreferences current useNewFileDialog:true
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1542
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1543
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1544
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1545
useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1546
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1547
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1548
    ^ self at:#useNewInspector ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1549
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1550
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1551
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1552
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1553
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1554
    "Modified: / 17.10.1998 / 14:45:12 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1555
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1556
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1557
useNewInspector:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1558
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1559
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1560
    self at:#useNewInspector put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1561
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1562
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1563
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1564
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1565
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1566
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1567
useNewSettingsApplication
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1568
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1569
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1570
    ^ self at:#useNewSettingsApplication ifAbsent:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1571
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1572
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1573
useNewSettingsApplication:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1574
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1575
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1576
    self at:#useNewSettingsApplication put:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1577
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1578
    "
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1579
     UserPreferences current useNewSettingsApplication:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1580
    "
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1581
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1582
    "Modified: / 13.10.1998 / 15:53:21 / cg"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1583
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1584
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1585
useNewSystemBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1586
    "using new or old system browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1587
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1588
    |newSystemBrowserClass useIt|
8000
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
  1589
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
  1590
    newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser).
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1591
    useIt := self at:#useNewSystemBrowser ifAbsent:nil.
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1592
    useIt isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1593
	useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]).
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1594
	useIt ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1595
	    self at:#useNewSystemBrowser put:true.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1596
	].
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1597
    ].
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1598
    ^ useIt
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1599
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1600
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1601
useNewSystemBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1602
    "using new or old systemBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1603
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1604
    self at:#useNewSystemBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1605
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1606
    "
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1607
     UserPreferences current useNewSystemBrowser:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1608
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1609
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1610
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1611
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1612
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1613
useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1614
    "using new or old version diff viewer"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1615
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1616
    ^ self at:#useNewVersionDiffBrowser ifAbsent:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1617
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1618
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1619
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1620
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1621
useNewVersionDiffBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1622
    "using new or old versionDiffBrowser"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1623
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1624
    self at:#useNewVersionDiffBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1625
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1626
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1627
     UserPreferences current useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1628
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1629
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1630
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1631
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1632
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1633
useProcessMonitorV2
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1634
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1635
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1636
    ^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil)
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1637
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1638
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1639
useProcessMonitorV2:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1640
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1641
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1642
    self at:#useProcessMonitorV2 put:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1643
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1644
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1645
     UserPreferences current useProcessMonitorV2:true
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1646
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1647
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1648
    "Modified: / 13.10.1998 / 15:53:21 / cg"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1649
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1650
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1651
useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1652
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1653
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1654
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1655
    ^ self at:#useSmalltalkDocumentViewer ifAbsent:true
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1656
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1657
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1658
     UserPreferences current useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1659
     UserPreferences current useSmalltalkDocumentViewer:false
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1660
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1661
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1662
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1663
useSmalltalkDocumentViewer:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1664
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1665
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1666
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1667
    ^ self at:#useSmalltalkDocumentViewer put:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1668
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1669
13501
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1670
useTestRunner2
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1671
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1672
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1673
    ^ self at:#useTestRunner2 ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1674
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1675
    "Created: / 06-07-2011 / 13:41:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1676
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1677
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1678
useTestRunner2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1679
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1680
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1681
    self at:#useTestRunner2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1682
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1683
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1684
     UserPreferences current useTestRunner2:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1685
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1686
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1687
    "Created: / 06-07-2011 / 13:41:40 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1688
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1689
16542
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1690
useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1691
    "switch between xtermView (xembed) and vt100 (st/x emulation)
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1692
     if possible on that architecture."
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1693
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1694
    ^ self at:#useXTermViewIfAvailable ifAbsent:false
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1695
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1696
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1697
     UserPreferences current useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1698
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1699
!
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1700
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1701
useXTermViewIfAvailable:aBoolean
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1702
    "switch between xtermView (xembed) and vt100 (st/x emulation)
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1703
     if possible on that architecture."
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1704
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1705
    self at:#useXTermViewIfAvailable put:aBoolean
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1706
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1707
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1708
     UserPreferences current useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1709
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1710
!
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1711
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1712
versionDiffViewerClass
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1713
    self useNewVersionDiffBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1714
	^ (VersionDiffBrowser ? DiffTextView)
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1715
    ].
10992
f03d40b016f4 use new DiffCodeView
Claus Gittinger <cg@exept.de>
parents: 10924
diff changeset
  1716
    ^ DiffCodeView
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1717
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1718
23211
5f3063fde804 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23066
diff changeset
  1719
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1720
!UserPreferences methodsFor:'accessing-prefs-UI'!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
  1721
11390
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1722
allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1723
    "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
  1724
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1725
    ^ self at:#allowMouseWheelZoom ifAbsent:[ true ]
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1726
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1727
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1728
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1729
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1730
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1731
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1732
allowMouseWheelZoom:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1733
    "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
  1734
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1735
    ^ self at:#allowMouseWheelZoom put:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1736
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1737
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1738
     UserPreferences current allowMouseWheelZoom:true
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1739
     UserPreferences current allowMouseWheelZoom:false
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1740
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1741
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1742
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1743
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1744
avoidConfirmationsForExperiencedUsers
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1745
    "some confirmers ara annoying, if you are an experienced st/x user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1746
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1747
    ^ self at:#avoidConfirmationsForExperiencedUsers ifAbsent:[ false ]
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1748
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1749
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1750
     UserPreferences current avoidConfirmationsForExperiencedUsers
14698
5eeda6b08571 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14543
diff changeset
  1751
     UserPreferences current avoidConfirmationsForExperiencedUsers:true
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1752
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1753
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1754
    "Created: / 05-09-2012 / 11:26:55 / cg"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1755
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1756
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1757
avoidConfirmationsForExperiencedUsers:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1758
    "some confirmers ara annoying, if you are an experienced st/x user.
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1759
     Set/clear the flag which controls this"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1760
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1761
    ^ self at:#avoidConfirmationsForExperiencedUsers put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1762
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1763
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1764
     UserPreferences current avoidConfirmationsForExperiencedUsers:true
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1765
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1766
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1767
    "Created: / 05-09-2012 / 11:27:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1768
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1769
11929
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1770
avoidSlowDrawingOperationsUnderWindows
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1771
    ^ OperatingSystem isMSWINDOWSlike
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1772
!
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1773
5071
ps
parents: 4684
diff changeset
  1774
beepEnabled
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1775
    "return the flag which controls the beeper.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1776
     This affects any beeping"
5071
ps
parents: 4684
diff changeset
  1777
ps
parents: 4684
diff changeset
  1778
    ^ self at:#beepEnabled ifAbsentPut:true
ps
parents: 4684
diff changeset
  1779
ps
parents: 4684
diff changeset
  1780
    "
ps
parents: 4684
diff changeset
  1781
     UserPreferences current beepEnabled
ps
parents: 4684
diff changeset
  1782
    "
ps
parents: 4684
diff changeset
  1783
ps
parents: 4684
diff changeset
  1784
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1785
    "Created: / 3.12.1999 / 17:09:49 / ps"
ps
parents: 4684
diff changeset
  1786
!
ps
parents: 4684
diff changeset
  1787
ps
parents: 4684
diff changeset
  1788
beepEnabled:aBoolean
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1789
    "set/clear the flag which controls the beeper.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1790
     This affects any beeping"
5071
ps
parents: 4684
diff changeset
  1791
ps
parents: 4684
diff changeset
  1792
    ^ self at:#beepEnabled put:aBoolean
ps
parents: 4684
diff changeset
  1793
ps
parents: 4684
diff changeset
  1794
    "
ps
parents: 4684
diff changeset
  1795
     UserPreferences current beepEnabled:false
ps
parents: 4684
diff changeset
  1796
    "
ps
parents: 4684
diff changeset
  1797
ps
parents: 4684
diff changeset
  1798
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1799
    "Created: / 3.12.1999 / 17:10:27 / ps"
ps
parents: 4684
diff changeset
  1800
!
ps
parents: 4684
diff changeset
  1801
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1802
beepForErrorDialog
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1803
    "return the flag which controls beeping for error dialogs
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1804
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1805
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1806
    ^ self at:#beepForErrorDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1807
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1808
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1809
     UserPreferences current beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1810
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1811
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1812
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1813
beepForErrorDialog:aBoolean
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1814
    "set/clear the flag which controls beeping for error dialogs.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1815
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1816
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1817
    ^ self at:#beepForErrorDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1818
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1819
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1820
     UserPreferences current beepForErrorDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1821
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1822
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1823
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1824
beepForInfoDialog
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1825
    "return the flag which controls beeping for info dialogs.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1826
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1827
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1828
    ^ self at:#beepForInfoDialog ifAbsent:false
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1829
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1830
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1831
     UserPreferences current beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1832
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1833
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1834
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1835
beepForInfoDialog:aBoolean
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1836
    "set/clear the flag which controls beeping for info dialogs.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1837
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1838
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1839
    ^ self at:#beepForInfoDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1840
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1841
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1842
     UserPreferences current beepForInfoDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1843
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1844
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1845
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1846
beepForWarningDialog
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1847
    "return the flag which controls beeping for warning dialogs.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1848
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1849
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1850
    ^ self at:#beepForWarningDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1851
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1852
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1853
     UserPreferences current beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1854
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1855
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1856
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1857
beepForWarningDialog:aBoolean
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1858
    "set/clear the flag which controls beeping for warning dialogs.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1859
     (unless completely disabled via beepEnabled)"
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1860
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1861
    ^ self at:#beepForWarningDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1862
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1863
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1864
     UserPreferences current beepForWarningDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1865
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1866
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1867
11691
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1868
beepInEditor
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1869
    "return the flag which controls the beeper in editors.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1870
     This affects beeping in response to a bad user operation (not system failure beeps).
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1871
     (unless completely disabled via beepEnabled)"
11691
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1872
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1873
    ^ self at:#beepInEditor ifAbsentPut:true
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1874
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1875
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1876
     UserPreferences current beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1877
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1878
!
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1879
22447
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1880
beepInEditor:aBoolean
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1881
    "set/clear the flag which controls the beeper in editors.
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1882
     This affects beeping in response to a bad user operation (not system failure beeps).
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1883
     (unless completely disabled via beepEnabled)"
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1884
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1885
    ^ self at:#beepInEditor put:aBoolean
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1886
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1887
    "
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1888
     UserPreferences current beepInEditor
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1889
    "
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1890
!
b1693621ba1d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22359
diff changeset
  1891
22330
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1892
busyBackgroundColorInDoits
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1893
    "if non nil, that color is shown as background in editors while 
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1894
     performing a doit (i.e. in addition to showing a busy cursor).
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1895
     If nil is returned, the color remains unchanged."
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1896
22339
c3ec01dc8cd4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22330
diff changeset
  1897
    ^ self at:#busyBackgroundColorInDoits ifAbsent:[ Color green lightened lightened lightened ]
22330
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1898
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1899
    "Created: / 01-11-2017 / 11:25:02 / cg"
22339
c3ec01dc8cd4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22330
diff changeset
  1900
    "Modified: / 09-11-2017 / 21:12:30 / cg"
22330
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1901
!
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1902
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1903
busyBackgroundColorInDoits:aColorOrNil
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1904
    "if non nil, that color is shown as background in editors while 
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1905
     performing a doit (i.e. in addition to showing a busy cursor).
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1906
     If nil is returned, the color remains unchanged."
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1907
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1908
    self at:#busyBackgroundColorInDoits put:aColorOrNil.
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1909
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1910
    "Created: / 01-11-2017 / 11:25:38 / cg"
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1911
!
f2f00d96911e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22318
diff changeset
  1912
14734
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1913
button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1914
    "if true, an ALT-left click is translated to a right click
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1915
     Useful with 1-button mice"
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1916
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1917
    ^ self at:#button2WithAltKey ifAbsent:[ false ]
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1918
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1919
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1920
     UserPreferences current button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1921
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1922
!
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1923
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1924
button2WithAltKey: aBoolean
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1925
    "if true, an ALT-left click is translated to a right click
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1926
     Useful with 1-button mice"
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1927
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1928
    ^ self at:#button2WithAltKey put: aBoolean
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1929
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1930
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1931
     UserPreferences current button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1932
     UserPreferences current button2WithAltKey:true
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1933
     UserPreferences current button2WithAltKey:false
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1934
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1935
!
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1936
12209
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1937
closePopUpMenuChainOnEscape
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1938
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1939
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1940
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1941
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1942
    ^ self at:#closePopUpMenuChainOnEscape ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1943
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1944
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1945
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1946
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1947
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1948
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1949
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1950
closePopUpMenuChainOnEscape:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1951
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1952
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1953
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1954
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1955
    ^ self at:#closePopUpMenuChainOnEscape put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1956
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1957
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1958
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1959
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1960
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1961
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1962
13151
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1963
delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1964
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1965
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1966
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1967
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1968
    ^ self at:#delayedMenuShowAndHide ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1969
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1970
    "Created: / 29-11-2010 / 19:47:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1971
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1972
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1973
delayedMenuShowAndHide:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1974
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1975
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1976
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1977
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1978
    ^ self at:#delayedMenuShowAndHide put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1979
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1980
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1981
     UserPreferences current delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1982
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1983
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1984
    "Created: / 29-11-2010 / 19:47:36 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1985
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1986
13503
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1987
eclipseStyleMenus
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1988
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1989
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1990
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1991
    ^ self at:#eclipseStyleMenus ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1992
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1993
    "Created: / 08-07-2011 / 13:22:45 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1994
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1995
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1996
eclipseStyleMenus:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1997
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1998
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1999
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2000
    ^ self at:#eclipseStyleMenus put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2001
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2002
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2003
     UserPreferences current eclipseStyleMenus:true
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2004
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2005
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2006
    "Created: / 08-07-2011 / 13:22:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2007
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  2008
15817
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2009
enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2010
    "return the flag which enables a workaround for a redraw bug when running X/Linux in the VMWare virtual machine"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2011
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2012
    ^ self at:#enableVMWareDrawingBugWorkaround ifAbsent:[ false ]
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2013
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2014
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2015
     UserPreferences current enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2016
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2017
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2018
    "Created: / 19-11-2013 / 09:53:20 / cg"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2019
!
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2020
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2021
enableVMWareDrawingBugWorkaround:aBoolean
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2022
    "change the flag which enables a workaround for a redraw bug when running X/Linux in the VMWare virtual machine"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2023
20712
f494e69b5d2e #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20674
diff changeset
  2024
    "/ self assert:(aBoolean isBoolean).
15817
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2025
    self at:#enableVMWareDrawingBugWorkaround put:aBoolean.
20712
f494e69b5d2e #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20674
diff changeset
  2026
    (Screen notNil and:[Screen current notNil and:[Screen current isX11Platform]]) ifTrue:[
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  2027
        Screen current maxOperationsUntilFlush:(aBoolean ifTrue:[1] ifFalse:[nil])
15817
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2028
    ].
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2029
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2030
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2031
     UserPreferences current enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2032
     UserPreferences current enableVMWareDrawingBugWorkaround:true
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2033
     UserPreferences current enableVMWareDrawingBugWorkaround:false
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2034
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2035
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2036
    "Created: / 19-11-2013 / 09:53:45 / cg"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2037
!
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  2038
22509
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2039
enforcedPositionOfOKButtonInDialogs
22508
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2040
    "this can be used to override any setting from the viewStyle,
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2041
     and force it to true. This is a customer request and useful if either
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2042
     the stylesheet is in error, or the user is using expecco on both windows
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2043
     and unix machines and wants to have the same feeling.
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2044
     Return: #left to force at left, #right to force to the right, 
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2045
             nil to use whatever the stylesheet uses"
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2046
22509
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2047
    ^ self at:#enforcedPositionOfOKButtonInDialogs ifAbsent:[ nil ]
22510
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2048
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2049
    "
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2050
     UserPreferences current enforcedPositionOfOKButtonInDialogs
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2051
     UserPreferences current enforcedPositionOfOKButtonInDialogs:#left
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2052
     UserPreferences current enforcedPositionOfOKButtonInDialogs:nil
16f285076355 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22509
diff changeset
  2053
    "
22509
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2054
!
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2055
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2056
enforcedPositionOfOKButtonInDialogs:aSymbolOrNil
22508
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2057
    "this can be used to override any setting from the viewStyle,
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2058
     and force it to true. This is a customer request and useful if either
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2059
     the stylesheet is in error, or the user is using expecco on both windows
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2060
     and unix machines and wants to have the same feeling.
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2061
     Return: #left to force at left, #right to force to the right, 
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2062
             nil to use whatever the stylesheet uses"
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2063
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2064
    aSymbolOrNil isNil ifTrue:[
22509
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2065
        self removeKey:#enforcedPositionOfOKButtonInDialogs
22508
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2066
    ] ifFalse:[
22509
2eab1afa5e91 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 22508
diff changeset
  2067
        self at:#enforcedPositionOfOKButtonInDialogs put:aSymbolOrNil
22508
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2068
    ].
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2069
!
0f6d8b4bb9ed #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22447
diff changeset
  2070
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2071
expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2072
    "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
  2073
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2074
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2075
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2076
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2077
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2078
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2079
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2080
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2081
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2082
expandSelectionOnMouseMoveWithButtonPressed:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2083
    "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
  2084
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2085
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2086
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2087
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2088
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2089
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2090
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2091
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  2092
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2093
flyByHelpActive
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2094
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2095
    ^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2096
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2097
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2098
flyByHelpActive:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2099
    aBoolean ~~ self flyByHelpActive ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2100
	self at:#flyByHelpActive put:aBoolean.
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2101
    ].
17104
39fff879b31b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16859
diff changeset
  2102
    self flyByHelpSettingChanged.
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2103
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2104
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2105
focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2106
    "return the flag which controls if the keyboard focus should
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2107
     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
  2108
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2109
     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
  2110
13391
0a6201dcb4b4 changed: #focusFollowsMouse
Stefan Vogel <sv@exept.de>
parents: 13373
diff changeset
  2111
    ^ self at:#focusFollowsMouse ifAbsent:[ false ]
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2112
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2113
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2114
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2115
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2116
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2117
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2118
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2119
focusFollowsMouse:aBooleanOrNil
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  2120
    "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
  2121
     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
  2122
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2123
     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
  2124
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2125
    ^ self at:#focusFollowsMouse put:aBooleanOrNil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2126
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2127
    "
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  2128
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  2129
     UserPreferences current focusFollowsMouse:false
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2130
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2131
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2132
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2133
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2134
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  2135
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2136
fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2137
    "experimental"
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2138
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2139
    ^ self at:#fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2140
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2141
    "
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2142
     UserPreferences current fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2143
     UserPreferences current fontPreferences:nil
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2144
    "
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2145
!
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2146
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2147
fontPreferences:aDictionary
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2148
    "experimental"
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2149
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2150
    self at:#fontPreferences put:aDictionary.
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2151
    aDictionary isNil ifTrue:[^ self].
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2152
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2153
    self fontPreferencesChanged.
19630
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  2154
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  2155
    "
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  2156
     UserPreferences current fontPreferences
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  2157
     UserPreferences current fontPreferences:nil
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  2158
    "
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2159
!
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2160
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2161
fontPreferencesChanged
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2162
    "tells view classes about changed font preferences"
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2163
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2164
    |dict fn getFont|
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2165
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2166
    dict := self at:#fontPreferences.
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2167
    dict isNil ifTrue:[^ self].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2168
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2169
    getFont :=
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2170
        [:key|
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2171
            |s fn|
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2172
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  2173
            s := dict at:key ifAbsent:nil.
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2174
            s notNil ifTrue:[
18813
b213982a4cb8 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2175
                fn := Object readFrom:s.
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2176
                self useXftFontsOnly ifTrue:[
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2177
                    fn := XftFontDescription for:fn
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2178
                    "/ cg: don't allocate on the display, because it takes
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2179
                    "/ dam long sometimes when Xft fonts are used.
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2180
                    "/ startup feels better, if we do it lazy.
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2181
                ] ifFalse:[
19787
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  2182
                    Display notNil ifTrue:[fn := fn onDevice:Display].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2183
                ]
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2184
            ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2185
            fn
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2186
        ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2187
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2188
    fn := getFont value:#Other.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2189
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2190
        SimpleView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2191
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2192
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2193
    fn := getFont value:#Label.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2194
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2195
        Label defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2196
        CheckBox defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2197
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2198
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2199
    fn := getFont value:#Button.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2200
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2201
        Button defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2202
        Toggle defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2203
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2204
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2205
    fn := getFont value:#Text.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2206
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2207
        TextView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2208
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2209
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2210
    fn := getFont value:#InputField.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2211
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2212
        EditField withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2213
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2214
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2215
    fn := getFont value:#List.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2216
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2217
        SelectionInListView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2218
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2219
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2220
    fn := getFont value:#Tooltip.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2221
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2222
        ActiveHelpView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2223
    ].
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2224
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2225
    fn := getFont value:#Menu.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  2226
    fn notNil ifTrue:[
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2227
        ListView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2228
        MenuView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2229
        MenuPanel defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2230
        NoteBookView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2231
        PullDownMenu defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2232
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2233
!
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2234
13103
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2235
forceWindowsIntoMonitorBounds
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2236
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2237
     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
  2238
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2239
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2240
    ^ self at:#forceWindowsIntoMonitorBounds ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2241
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2242
    "Created: / 22-10-2010 / 10:59:10 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2243
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2244
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2245
forceWindowsIntoMonitorBounds:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2246
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2247
     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
  2248
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2249
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2250
    ^ self at:#forceWindowsIntoMonitorBounds put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2251
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2252
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2253
     UserPreferences current forceWindowsIntoMonitorBounds:false
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2254
     UserPreferences current forceWindowsIntoMonitorBounds:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2255
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2256
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2257
    "Modified: / 22-10-2010 / 11:13:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2258
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2259
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2260
menuPanelTakesFocusOnClick
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2261
    "if true, the menu panel takes the focus and allows further control via
14742
afc7517c76cc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14736
diff changeset
  2262
     cursor and tab keys."
afc7517c76cc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14736
diff changeset
  2263
15713
2ab7ecc832d9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15703
diff changeset
  2264
    "/ read comment in menuPanel - for now, it should be on,
2ab7ecc832d9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15703
diff changeset
  2265
    "/ otherwise you cannot control a menu with cursor keys or escape. sigh.
21125
aa7155bed06e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21041
diff changeset
  2266
    ^ self at:#menuPanelTakesFocusOnClick ifAbsent:[ true "false" ]
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2267
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2268
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2269
     UserPreferences current menuPanelTakesFocusOnClick
16641
2a3e378e9516 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16589
diff changeset
  2270
     UserPreferences current menuPanelTakesFocusOnClick:false
2a3e378e9516 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16589
diff changeset
  2271
     UserPreferences current menuPanelTakesFocusOnClick:true
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2272
    "
14742
afc7517c76cc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14736
diff changeset
  2273
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2274
    "Modified: / 11.9.1998 / 00:09:59 / cg"
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2275
!
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2276
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2277
menuPanelTakesFocusOnClick:aBooleanOrNil
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2278
    "if true, the menu panel takes the focus and allows further control via
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2279
     cursor and tab keys.
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2280
     Used to be on, but now we changed the default as it turned out to be counter productive"
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2281
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2282
    ^ self at:#menuPanelTakesFocusOnClick put:aBooleanOrNil
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2283
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2284
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2285
     UserPreferences current menuPanelTakesFocusOnClick:true
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2286
     UserPreferences current menuPanelTakesFocusOnClick:false
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2287
     UserPreferences current menuPanelTakesFocusOnClick
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2288
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2289
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2290
    "Modified: / 11.9.1998 / 00:09:59 / cg"
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2291
!
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2292
22225
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2293
metaIsMouseWheelZoom
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2294
    "return the flag which controls if meta+mouseWheel shall invoke the zoom.
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2295
     (or else, the horizontal scroll)"
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2296
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2297
    ^ self at:#metaIsMouseWheelZoom ifAbsent:[ false ]
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2298
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2299
    "
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2300
     UserPreferences current metaIsMouseWheelZoom
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2301
    "
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2302
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2303
    "Created: / 30-08-2017 / 14:46:12 / cg"
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2304
!
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2305
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2306
metaIsMouseWheelZoom:aBoolean
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2307
    "set/clear the flag which controls if meta+mouseWheel shall invoke the zoom.
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2308
     (or else, the horizontal scroll)"
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2309
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2310
    self at:#metaIsMouseWheelZoom put:aBoolean
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2311
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2312
    "
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2313
     UserPreferences current metaIsMouseWheelZoom
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2314
     UserPreferences current metaIsMouseWheelZoom:true
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2315
     UserPreferences current metaIsMouseWheelZoom:false
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2316
    "
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2317
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2318
    "Created: / 30-08-2017 / 14:46:34 / cg"
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2319
!
3984da94914f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22145
diff changeset
  2320
8759
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2321
motionDistanceToStartDrag
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2322
    "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
  2323
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2324
    ^ "DragMotionDistance ?" 10
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2325
!
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2326
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2327
mouseWheelDirectionReversed
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2328
    "if set, mouse wheel motions are upside-down.
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2329
     I got very confused with macOSX10.9, behavind different from 10.6,
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2330
     so I added this option"
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2331
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2332
    ^ self at:#mouseWheelDirectionReversed ifAbsent:[ false ]
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2333
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2334
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2335
     UserPreferences current mouseWheelDirectionReversed
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2336
     UserPreferences current mouseWheelDirectionReversed:true
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2337
     UserPreferences current mouseWheelDirectionReversed:false
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2338
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2339
!
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2340
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2341
mouseWheelDirectionReversed:aBoolean
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2342
    "if set, mouse wheel motions are upside-down.
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2343
     I got very confused with macOSX10.9, behavind different from 10.6,
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2344
     so I added this option"
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2345
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2346
    self at:#mouseWheelDirectionReversed put:aBoolean
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2347
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2348
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2349
     UserPreferences current mouseWheelDirectionReversed
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2350
     UserPreferences current mouseWheelDirectionReversed:true
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2351
     UserPreferences current mouseWheelDirectionReversed:false
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2352
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2353
!
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2354
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2355
mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2356
    "return the flag which controls if the mouseWheel focus should
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2357
     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
  2358
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2359
    self focusFollowsMouse ifTrue:[^ true].
16859
0fb09ef5abf0 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 16813
diff changeset
  2360
    ^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current isWindowsPlatform ]
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2361
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2362
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2363
     UserPreferences current mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2364
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2365
!
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2366
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2367
mouseWheelScale
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2368
    "if set, mouse wheel motions are scaled by this number"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2369
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2370
    ^ self at:#mouseWheelScale ifAbsent:[ 1 ]
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2371
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2372
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2373
     UserPreferences current mouseWheelScale
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2374
     UserPreferences current mouseWheelScale:0.5
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2375
     UserPreferences current mouseWheelScale:1
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2376
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2377
!
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2378
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2379
mouseWheelScale:aNumber
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2380
    "if set, mouse wheel motions are scaled by this number"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2381
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2382
    self at:#mouseWheelScale put:aNumber.
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2383
    WindowSensor mouseWheelScale:aNumber.
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2384
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2385
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2386
     UserPreferences current mouseWheelScale
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2387
     UserPreferences current mouseWheelScale:0.25
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2388
     UserPreferences current mouseWheelScale:0.5
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2389
     UserPreferences current mouseWheelScale:1
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2390
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2391
     WindowSensor mouseWheelScale
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2392
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2393
!
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2394
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2395
nativeDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2396
    ^ self at:#nativeDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2397
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2398
    "Created: / 24-08-2010 / 17:01:47 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2399
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2400
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2401
nativeDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2402
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2403
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2404
    self at:#nativeDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2405
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2406
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2407
	currentScreen supportsNativeDialogs ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2408
	    currentScreen nativeDialogs:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2409
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2410
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2411
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2412
    "Modified: / 24-08-2010 / 18:06:43 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2413
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2414
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2415
nativeFileDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2416
    ^ self at:#nativeFileDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2417
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2418
    "Created: / 24-08-2010 / 17:01:59 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2419
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2420
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2421
nativeFileDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2422
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2423
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2424
    self at:#nativeFileDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2425
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2426
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2427
	currentScreen supportsNativeFileDialogs ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2428
	    currentScreen nativeFileDialogs:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2429
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2430
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2431
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2432
    "Modified: / 24-08-2010 / 18:06:27 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2433
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2434
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2435
nativeWidgets
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2436
    ^ self at:#nativeWidgets ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2437
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2438
    "Created: / 24-08-2010 / 16:58:44 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2439
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2440
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2441
nativeWidgets:aBoolean
16813
4d8bb499fc3b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16699
diff changeset
  2442
    "enable/disable native widgets on the current display"
4d8bb499fc3b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16699
diff changeset
  2443
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2444
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2445
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2446
    self at:#nativeWidgets put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2447
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2448
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2449
	currentScreen supportsNativeWidgets ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2450
	    currentScreen nativeWidgets:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2451
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2452
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2453
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2454
    "Created: / 24-08-2010 / 16:58:14 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2455
    "Modified: / 24-08-2010 / 18:05:56 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2456
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2457
16587
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2458
onlyShowTooltipsForActiveWindow
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2459
    "on a mac (and maybe on others), it is preferable to turn this on"
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2460
17180
f37997ce874f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17138
diff changeset
  2461
    ^ self at:#onlyShowTooltipsForActiveWindow ifAbsent:true
16587
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2462
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2463
    "
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2464
     UserPreferences current onlyShowTooltipsForActiveWindow
21031
44d5bfdb4f58 #FEATURE by mawalch
mawalch
parents: 20872
diff changeset
  2465
     UserPreferences current onlyShowTooltipsForActiveWindow:false
16587
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2466
    "
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2467
!
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2468
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2469
onlyShowTooltipsForActiveWindow:aBooleanOrNil
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2470
    "on a mac (and maybe on others), it is preferable to turn this on"
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2471
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2472
    ^ self at:#onlyShowTooltipsForActiveWindow put:aBooleanOrNil
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2473
!
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2474
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2475
opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2476
    "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
  2477
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2478
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  2479
    ^ self at:#opaqueTableColumnResizing ifAbsent:false
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2480
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2481
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2482
     UserPreferences current opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2483
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2484
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2485
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2486
opaqueTableColumnResizing:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2487
    "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
  2488
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2489
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2490
    ^ self at:#opaqueTableColumnResizing put:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2491
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2492
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2493
     UserPreferences current opaqueTableColumnResizing:true
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2494
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2495
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2496
    "Modified: / 11.9.1998 / 00:09:59 / cg"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2497
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2498
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2499
opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2500
    "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
  2501
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2502
18550
ecbf5bb59f22 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18497
diff changeset
  2503
    ^ self at:#opaqueVariablePanelResizing ifAbsent:true
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2504
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2505
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2506
     UserPreferences current opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2507
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2508
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2509
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2510
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2511
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2512
opaqueVariablePanelResizing:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2513
    "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
  2514
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2515
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2516
    ^ self at:#opaqueVariablePanelResizing put:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2517
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2518
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2519
     UserPreferences current opaqueVariablePanelResizing:true
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2520
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2521
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2522
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2523
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2524
6525
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2525
searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2526
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2527
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2528
    ^ self at:#searchDialogIsModal ifAbsent:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2529
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2530
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2531
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2532
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2533
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2534
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2535
searchDialogIsModal:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2536
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2537
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2538
    ^ self at:#searchDialogIsModal put:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2539
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2540
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2541
     UserPreferences current searchDialogIsModal:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2542
     UserPreferences current searchDialogIsModal:false
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2543
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2544
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2545
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2546
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2547
selectOnRightClick
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2548
    "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
  2549
21385
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2550
    ^ self 
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2551
        at:#selectOnRightClick 
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2552
        ifAbsent:[ OperatingSystem isMSWINDOWSlike ]
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2553
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2554
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2555
selectOnRightClick:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2556
    "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
  2557
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2558
    ^ self at:#selectOnRightClick put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2559
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2560
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2561
     UserPreferences current selectOnRightClick:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2562
     UserPreferences current selectOnRightClick:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2563
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2564
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2565
18808
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2566
shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2567
    "if true (the default), a shift-mouse-wheel does horizontal scrolling"
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2568
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2569
    ^ self at:#shiftMouseWheelScrollsHorizontally ifAbsent:[ true ]
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2570
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2571
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2572
     UserPreferences current shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2573
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2574
!
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2575
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2576
shiftMouseWheelScrollsHorizontally:aBoolean
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2577
    "if true (the default), a shift-mouse-wheel does horizontal scrolling"
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2578
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2579
    self at:#shiftMouseWheelScrollsHorizontally put:aBoolean
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2580
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2581
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2582
     UserPreferences current shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2583
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2584
!
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2585
15588
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2586
shouldRememberLastExtent
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2587
    ^ self at:#shouldRememberLastExtent ifAbsent:true
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2588
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2589
    "Created: / 31-07-2013 / 18:11:17 / cg"
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2590
!
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2591
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2592
shouldRememberLastExtent:aBoolean
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2593
    ^ self at:#shouldRememberLastExtent put:aBoolean
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2594
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2595
    "
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2596
     UserPreferences current shouldRememberLastExtent.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2597
     UserPreferences current shouldRememberLastExtent:true.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2598
     UserPreferences current shouldRememberLastExtent:false.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2599
    "
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2600
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2601
    "Created: / 31-07-2013 / 18:11:25 / cg"
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2602
!
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2603
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2604
showDottedLinesInTree
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2605
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2606
	at:#showDottedLinesInTree
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2607
	ifAbsent:[ OperatingSystem isMSWINDOWSlike not
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2608
		   or:[  OperatingSystem isVistaLike not ] ]
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2609
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2610
    "Created: / 03-12-2010 / 11:31:46 / cg"
13304
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  2611
    "Modified: / 09-02-2011 / 23:27:03 / cg"
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2612
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2613
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2614
showDottedLinesInTree:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2615
    ^ self at:#showDottedLinesInTree put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2616
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2617
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2618
     UserPreferences current showDottedLinesInTree:true.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2619
     UserPreferences current showDottedLinesInTree:false.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2620
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2621
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2622
    "Created: / 03-12-2010 / 11:31:53 / cg"
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2623
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2624
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2625
showRightButtonMenuOnRelease
17232
e1f21dd5c764 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17180
diff changeset
  2626
    "the Windows behavior of showing the right-button menu on a release."
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2627
21385
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2628
    ^ self 
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2629
        at:#showRightButtonMenuOnRelease 
679f333fec78 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21235
diff changeset
  2630
        ifAbsent:[ OperatingSystem isMSWINDOWSlike ]
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2631
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2632
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2633
showRightButtonMenuOnRelease:aBoolean
17232
e1f21dd5c764 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17180
diff changeset
  2634
    "the Windows behavior of showing the right-button menu on a release."
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2635
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2636
    ^ self at:#showRightButtonMenuOnRelease put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2637
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2638
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2639
     UserPreferences current showRightButtonMenuOnRelease:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2640
     UserPreferences current showRightButtonMenuOnRelease:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2641
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2642
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2643
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2644
startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2645
    "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
  2646
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2647
    ^ self at:#startTextDragWithControl ifAbsent:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2648
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2649
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2650
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2651
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2652
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2653
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2654
startTextDragWithControl:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2655
    "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
  2656
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2657
    ^ self at:#startTextDragWithControl put:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2658
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2659
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2660
     UserPreferences current startTextDragWithControl:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2661
     UserPreferences current startTextDragWithControl:false
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2662
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2663
    "
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2664
!
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2665
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2666
toolTipAutoHideDelay
16466
11c565cfffc2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16385
diff changeset
  2667
    "return the time in seconds, tooltips are shown. 0 means: show forever"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2668
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2669
    ^ self at:#toolTipAutoHideDelay ifAbsentPut:[FlyByHelp showTime]
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2670
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2671
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2672
     UserPreferences current toolTipAutoHideDelay
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2673
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2674
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2675
    "Created: / 10-11-2010 / 12:08:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2676
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2677
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2678
toolTipAutoHideDelay:aTimeDuration
20815
9d37f600a822 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20712
diff changeset
  2679
    "set the time, tooltips are shown. 0 means: don't hide"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2680
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2681
    self at:#toolTipAutoHideDelay put:aTimeDuration.
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2682
    FlyByHelp showTime: (aTimeDuration isInteger
20815
9d37f600a822 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20712
diff changeset
  2683
                            ifTrue:[aTimeDuration]
9d37f600a822 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20712
diff changeset
  2684
                            ifFalse:[aTimeDuration asSeconds]).
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2685
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2686
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2687
     UserPreferences current toolTipAutoHideDelay:10 seconds
16466
11c565cfffc2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16385
diff changeset
  2688
     UserPreferences current toolTipAutoHideDelay:0
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2689
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2690
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2691
    "Created: / 10-11-2010 / 12:09:33 / cg"
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2692
    "Modified: / 07-03-2011 / 23:56:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2693
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2694
15728
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2695
toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2696
    "return a symbol, or nil. If nil, the value from the stylesheet is used."
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2697
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2698
    ^ self at:#toolTipShapeStyle ifAbsent:[ nil ]
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2699
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2700
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2701
     UserPreferences current toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2702
     UserPreferences current toolTipShapeStyle:#cartoon
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2703
     UserPreferences current toolTipShapeStyle:nil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2704
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2705
!
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2706
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2707
toolTipShapeStyle:aSymbolOrNil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2708
    "A symbol, or nil. If nil, the value from the stylesheet is used."
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2709
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2710
    self at:#toolTipShapeStyle put:aSymbolOrNil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2711
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2712
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2713
     UserPreferences current toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2714
     UserPreferences current toolTipShapeStyle:#cartoon
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2715
     UserPreferences current toolTipShapeStyle:nil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2716
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2717
!
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2718
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2719
useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2720
    "return the flag which controls some color combinations
17593
9c4d879c9be0 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17569
diff changeset
  2721
     to compensate for color deficiencies, such as red-green blindness.
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2722
     For example, red-green is replaced by red-blue"
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2723
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2724
    ^ self at:#useColorsForColorBlindness ifAbsent:[ false ]
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2725
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2726
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2727
     UserPreferences current useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2728
     UserPreferences current useColorsForColorBlindness:true
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2729
     UserPreferences current useColorsForColorBlindness:false
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2730
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2731
!
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2732
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2733
useColorsForColorBlindness:aBoolean
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2734
    "change the flag which controls some color combinations
17593
9c4d879c9be0 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17569
diff changeset
  2735
     to compensate for color deficiencies, such as red-green blindness.
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2736
     For example, red-green is replaced by red-blue"
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2737
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2738
    self at:#useColorsForColorBlindness put:aBoolean
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2739
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2740
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2741
     UserPreferences current useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2742
     UserPreferences current useColorsForColorBlindness:true
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2743
     UserPreferences current useColorsForColorBlindness:false
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2744
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2745
!
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2746
17138
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2747
useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2748
    "experimental:
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2749
     a flag to suppress any use of Xft Fonts on X window displays"
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2750
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2751
    ^ self at:#useXFontsOnly ifAbsent:[ false ]
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2752
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2753
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2754
     UserPreferences current useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2755
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2756
!
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2757
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2758
useXFontsOnly:aBoolean
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2759
    "experimental:
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2760
     a flag to suppress any use of Xft Fonts on X window displays"
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2761
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2762
    self at:#useXFontsOnly put:aBoolean
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2763
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2764
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2765
     UserPreferences current useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2766
     UserPreferences current useXFontsOnly:true
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2767
     UserPreferences current useXFontsOnly:false
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2768
     UserPreferences current useXftFontsOnly:true
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2769
     UserPreferences current useXftFontsOnly:false
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2770
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2771
!
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2772
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2773
useXftFontsOnly
16266
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2774
    "experimental:
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2775
     return the flag which controls if ONLY Xft fonts should be used.
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2776
     If changed, this should be done very early during startup, before any other fonts
20119
2fac94083d6f #OTHER by mawalch
mawalch
parents: 19965
diff changeset
  2777
     are already acquired (i.e. before any views are opened)"
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2778
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2779
    ^ self at:#useXftFontsOnly ifAbsent:[ false ]
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2780
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2781
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2782
     UserPreferences current useXftFontsOnly
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2783
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2784
!
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2785
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2786
useXftFontsOnly:aBooleanOrNil
16266
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2787
    "experimental:
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2788
     set/clear the flag which controls if ONLY Xft fonts should be used.
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2789
     If changed, this should be done very early during startup, before any other fonts
20119
2fac94083d6f #OTHER by mawalch
mawalch
parents: 19965
diff changeset
  2790
     are already acquired (i.e. before any views are opened)"
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2791
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2792
    ^ self at:#useXftFontsOnly put:aBooleanOrNil
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2793
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2794
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2795
     UserPreferences current useXftFontsOnly:true
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2796
     UserPreferences current useXftFontsOnly:false
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2797
     UserPreferences current useXftFontsOnly
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2798
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2799
!
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2800
21041
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2801
viewStyle
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2802
    ^ self at:#viewStyle ifAbsent:[ nil ]
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2803
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2804
    "
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2805
     UserPreferences current viewStyle
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2806
     UserPreferences current viewStyle:(ViewStyle adwaita)
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2807
    "
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2808
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2809
    "Created: / 24-11-2016 / 17:58:30 / cg"
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2810
!
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2811
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2812
viewStyle:aStyleSymbol
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2813
    self at:#viewStyle put:aStyleSymbol
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2814
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2815
    "
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2816
     UserPreferences current viewStyle
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2817
     UserPreferences current viewStyle:(ViewStyle adwaita)
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2818
    "
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2819
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2820
    "Created: / 24-11-2016 / 17:58:51 / cg"
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2821
!
76b15013e62c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21031
diff changeset
  2822
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2823
waitCursorVisibleTime
21781
6ccea3435815 #DOCUMENTATION by mawalch
mawalch
parents: 21776
diff changeset
  2824
    "answer the time (in ms), how long a wait cursor should be visible at least"
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2825
13684
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2826
    ^ 100
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2827
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2828
    "Modified: / 12-09-2011 / 11:08:53 / cg"
21781
6ccea3435815 #DOCUMENTATION by mawalch
mawalch
parents: 21776
diff changeset
  2829
    "Modified (comment): / 30-05-2017 / 19:44:41 / mawalch"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2830
!
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2831
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2832
workAroundRenderingBugOnVista
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  2833
    "a temporary kludge for the vista-cleartype character redraw bug"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2834
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2835
    ^ OperatingSystem isMSWINDOWSlike
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2836
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2837
    "Created: / 08-11-2010 / 14:47:52 / cg"
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  2838
    "Modified: / 09-11-2010 / 13:02:43 / cg"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2839
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2840
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2841
!UserPreferences methodsFor:'accessing-prefs-browser'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2842
19852
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2843
acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2844
    "the original order was accept-cancel-compare.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2845
     However, we found that the danger of pressing cancel by accident
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2846
     was too high, so we changed the default.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2847
     If you want to go back, return #acceptCancelCompare here"
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2848
     
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2849
    ^ self at:#acceptCancelBarOrder ifAbsent:#acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2850
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2851
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2852
     UserPreferences current acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2853
     UserPreferences current acceptCancelBarOrder: #acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2854
     UserPreferences current acceptCancelBarOrder: #acceptCancelCompare
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2855
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2856
!
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2857
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2858
acceptCancelBarOrder:aSymbol
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2859
    "the original order was accept-cancel-compare.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2860
     However, we found that the danger of pressing cancel by accident
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2861
     was too high, so we changed the default.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2862
     If you want to go back, return #acceptCancelCompare here"
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2863
     
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2864
    self at:#acceptCancelBarOrder put:aSymbol
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2865
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2866
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2867
     UserPreferences current acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2868
     UserPreferences current acceptCancelBarOrder: #acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2869
     UserPreferences current acceptCancelBarOrder: #acceptCancelCompare
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2870
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2871
!
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2872
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2873
autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2874
    "return the flag which controls automatic formatting of code (in some browsers)
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2875
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2876
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  2877
    ^ self at:#autoFormatting ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2878
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2879
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2880
     UserPreferences current autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2881
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2882
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2883
    "Created: / 4.2.2000 / 20:08:08 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2884
    "Modified: / 5.2.2000 / 15:38:33 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2885
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2886
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2887
autoFormatting:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2888
    "turn on/off automatic formatting of code (in some browsers);
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2889
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2890
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2891
    ^ self at:#autoFormatting put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2892
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2893
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2894
     UserPreferences current autoFormatting:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2895
     UserPreferences current autoFormatting:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2896
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2897
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2898
    "Created: / 4.2.2000 / 20:08:26 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2899
    "Modified: / 5.2.2000 / 15:38:20 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2900
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2901
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2902
autoIndentInCodeView
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2903
    "return the flag which controls automatic cursor control in editors which
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2904
     show code(autoIndent)"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2905
16699
eafc8ff6f15a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16698
diff changeset
  2906
    ^ self at:#autoIndentInCodeView ifAbsent:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2907
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2908
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2909
     UserPreferences current autoIndentInCodeView
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2910
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2911
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2912
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2913
autoIndentInCodeView:aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2914
    "flag which controls automatic cursor control in editors which
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2915
     show code(autoIndent)"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2916
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2917
    ^ self at:#autoIndentInCodeView put:aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2918
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2919
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2920
     UserPreferences current autoIndentInCodeView:true
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2921
     UserPreferences current autoIndentInCodeView:false
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2922
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2923
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2924
20852
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2925
confirmCheckinOfPrivateClasses
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2926
    "If set, a confirmation dialog is shown when attempting to checkin a private class."
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2927
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2928
    ^ self at:#confirmCheckinOfPrivateClasses ifAbsent:[true].
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2929
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2930
    "
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2931
     UserPreferences current confirmCheckinOfPrivateClasses
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2932
     UserPreferences current confirmCheckinOfPrivateClasses:true
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2933
     UserPreferences current confirmCheckinOfPrivateClasses:false
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2934
    "
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2935
!
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2936
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2937
confirmCheckinOfPrivateClasses:aBoolean
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2938
    "If set, a confirmation dialog is shown when attempting to checkin a private class."
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2939
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2940
    self at:#confirmCheckinOfPrivateClasses put:aBoolean.
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2941
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2942
    "
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2943
     UserPreferences current confirmCheckinOfPrivateClasses
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2944
     UserPreferences current confirmCheckinOfPrivateClasses:true
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2945
     UserPreferences current confirmCheckinOfPrivateClasses:false
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2946
    "
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2947
!
77d4e07567b2 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 20815
diff changeset
  2948
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2949
enforceCodeStyle
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2950
    "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
  2951
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  2952
    ^ self at:#enforceCodeStyle ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2953
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2954
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2955
     UserPreferences current enforceCodeStyle
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2956
     UserPreferences current enforceCodeStyle:true
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2957
     UserPreferences current enforceCodeStyle:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2958
    "
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2959
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2960
    "Modified: / 27-03-2007 / 21:51:42 / cg"
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2961
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2962
12947
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2963
enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2964
    "return the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2965
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2966
    ^ self at:#enforceComment ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2967
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2968
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2969
     UserPreferences current enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2970
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2971
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2972
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2973
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2974
    "Created: / 17-07-2010 / 14:16:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2975
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2976
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2977
enforceComment:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2978
    "set/clear the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2979
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2980
    ^ self at:#enforceComment put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2981
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2982
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2983
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2984
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2985
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2986
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2987
    "Created: / 17-07-2010 / 14:17:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2988
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2989
14415
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2990
runLintChecksInBackground
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2991
    "controls the browser's lint-check behavior;
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2992
     background operation (Jan's pref) makes it difficult to stop and debug...)"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2993
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2994
    ^ self at:#runLintChecksInBackground ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2995
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2996
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2997
     UserPreferences current runLintChecksInBackground
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2998
     UserPreferences current runLintChecksInBackground:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2999
     UserPreferences current runLintChecksInBackground:false
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3000
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3001
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3002
    "Created: / 17-07-2010 / 14:16:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3003
!
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3004
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3005
runLintChecksInBackground:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3006
    "controls the browser's lint-check behavior;
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3007
     background operation (Jan's pref) makes it difficult to stop and debug...)"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3008
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3009
    ^ self at:#runLintChecksInBackground put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3010
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3011
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3012
     UserPreferences current runLintChecksInBackground:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3013
     UserPreferences current runLintChecksInBackground:false
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3014
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3015
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3016
    "Created: / 17-07-2010 / 14:17:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3017
!
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  3018
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3019
showAcceptCancelBarInBrowser
19797
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3020
    "this is a little confusing: the codeview2 has its own accept/cancel bar
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3021
     which can be turned on separately.
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3022
     The codeview2 will suppress the regular accept/cancel bar, if it uses its own."
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3023
     
11214
ad61819068b9 changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents: 11213
diff changeset
  3024
    ^ self at:#showAcceptCancelBarInBrowser ifAbsent:true
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3025
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3026
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3027
     UserPreferences current showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3028
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3029
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3030
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3031
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3032
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3033
showAcceptCancelBarInBrowser:aBoolean
19797
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3034
    "this is a little confusing: the codeview2 has its own accept/cancel bar
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3035
     which can be turned on separately.
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  3036
     The codeview2 will suppress the regular accept/cancel bar, if it uses its own."
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3037
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3038
    ^ self at:#showAcceptCancelBarInBrowser put:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3039
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3040
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3041
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3042
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3043
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3044
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  3045
20625
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3046
showMarqueeInfo
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3047
    "If set, show multiline infos in the info area as a scrolling marquee text"
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3048
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3049
    ^ self at:#showMarqueeInfo ifAbsent:[true].
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3050
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3051
    "
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3052
     UserPreferences current showMarqueeInfo
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3053
     UserPreferences current showMarqueeInfo:true
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3054
     UserPreferences current showMarqueeInfo:false
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3055
    "
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3056
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3057
    "Created: / 04-04-2012 / 14:02:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3058
!
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3059
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3060
showMarqueeInfo:aBoolean
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3061
    "If set, show multiline infos in the info area as a scrolling marquee text"
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3062
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3063
    self at:#showMarqueeInfo put:aBoolean.
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3064
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3065
    "
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3066
     UserPreferences current showMarqueeInfo
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3067
     UserPreferences current showMarqueeInfo:true
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3068
     UserPreferences current showMarqueeInfo:false
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3069
    "
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3070
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3071
    "Created: / 04-04-2012 / 14:02:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3072
!
2e8560b3d14c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20613
diff changeset
  3073
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3074
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3075
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3076
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  3077
    ^ self at:#syntaxColoring ifAbsent:true
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3078
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3079
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3080
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3081
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3082
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
  3083
    "Modified: / 11.9.1998 / 00:09:59 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3084
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3085
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3086
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3087
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3088
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3089
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3090
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  3091
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  3092
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  3093
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  3094
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  3095
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3096
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3097
    "Modified: / 1.4.1998 / 13:23:03 / cg"
12189
fm
parents: 12175
diff changeset
  3098
!
fm
parents: 12175
diff changeset
  3099
fm
parents: 12175
diff changeset
  3100
useSearchBarInBrowser
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  3101
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  3102
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  3103
fm
parents: 12175
diff changeset
  3104
    "/ cg: disabled for now, until fixed.
fm
parents: 12175
diff changeset
  3105
    "/ does not initially select the searchString.
fm
parents: 12175
diff changeset
  3106
    "/ thereby interrupting the workflow...
fm
parents: 12175
diff changeset
  3107
fm
parents: 12175
diff changeset
  3108
    ^ self at:#useSearchBarInBrowser ifAbsent:false
fm
parents: 12175
diff changeset
  3109
fm
parents: 12175
diff changeset
  3110
    "
fm
parents: 12175
diff changeset
  3111
     UserPreferences current useSearchBarInBrowser
fm
parents: 12175
diff changeset
  3112
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  3113
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  3114
    "
fm
parents: 12175
diff changeset
  3115
!
fm
parents: 12175
diff changeset
  3116
fm
parents: 12175
diff changeset
  3117
useSearchBarInBrowser:aBoolean
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  3118
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  3119
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  3120
fm
parents: 12175
diff changeset
  3121
    ^ self at:#useSearchBarInBrowser put:aBoolean
fm
parents: 12175
diff changeset
  3122
fm
parents: 12175
diff changeset
  3123
    "
fm
parents: 12175
diff changeset
  3124
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  3125
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  3126
    "
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3127
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3128
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3129
!UserPreferences methodsFor:'accessing-prefs-browser-colors'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3130
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3131
colorForInstrumentedFullyCoveredCode
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3132
    "the color for code in the browser which is instrumented
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3133
     and where all branches have been executed (also code, which has been executed)"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3134
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3135
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3136
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3137
    clr := self at:#colorForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3138
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3139
	clr := Color green slightlyDarkened "darkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3140
	"/ self at:#colorForInstrumentedFullyCoveredCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3141
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3142
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3143
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3144
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3145
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3146
	at:#emphasisForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3147
	put:(Color green slightlyDarkened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3148
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3149
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3150
    "Created: / 28-04-2010 / 13:58:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3151
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3152
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3153
colorForInstrumentedFullyCoveredCode:aColor
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3154
    "the color for code in the browser which is instrumented
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3155
     and where all branches have been executed (also code, which has been executed)"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3156
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3157
    self at:#colorForInstrumentedFullyCoveredCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3158
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3159
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3160
     UserPreferences current colorForInstrumentedFullyCoveredCode:(Color green slightlyDarkened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3161
     UserPreferences current colorForInstrumentedFullyCoveredCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3162
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3163
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3164
    "Created: / 28-04-2010 / 13:58:52 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3165
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3166
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3167
colorForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3168
    "the color for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3169
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3170
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3171
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3172
    clr := self at:#colorForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3173
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3174
	clr := Color red "slightlyDarkened" "darkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3175
	"/ self at:#colorForInstrumentedNeverCalledCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3176
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3177
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3178
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3179
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3180
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3181
	at:#colorForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3182
	put:(Color red slightlyDarkened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3183
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3184
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3185
    "Created: / 28-04-2010 / 13:59:43 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3186
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3187
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3188
colorForInstrumentedNeverCalledCode:aColor
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3189
    "the color for code in the browser which is instrumented but has never been called"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3190
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3191
    self at:#colorForInstrumentedNeverCalledCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3192
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3193
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3194
     UserPreferences current colorForInstrumentedNeverCalledCode:(Color red slightlyDarkened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3195
     UserPreferences current colorForInstrumentedNeverCalledCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3196
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3197
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3198
    "Created: / 28-04-2010 / 13:59:43 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3199
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3200
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3201
colorForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3202
    "color for code in the browser which is instrumented and where some branches have been
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3203
     executed"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3204
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3205
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3206
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3207
    clr := self at:#colorForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3208
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3209
	clr := Color orange "slightlyDarkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3210
	"/ self at:#colorForInstrumentedPartiallyCoveredCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3211
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3212
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3213
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3214
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3215
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3216
	at:#colorForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3217
	put:(Color orange slightlyLightened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3218
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3219
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3220
    "Created: / 28-04-2010 / 14:00:56 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3221
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  3222
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3223
colorForInstrumentedPartiallyCoveredCode:aColor
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3224
    "color for code in the browser which is instrumented and where some branches have been
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3225
     executed"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3226
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3227
    self at:#colorForInstrumentedPartiallyCoveredCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3228
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3229
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3230
     UserPreferences current colorForInstrumentedPartiallyCoveredCode:(Color orange slightlyLightened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3231
     UserPreferences current colorForInstrumentedPartiallyCoveredCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3232
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3233
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3234
    "Created: / 28-04-2010 / 14:00:56 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3235
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  3236
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3237
colorForPseudoProtocolsInMethodListInBrowser
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3238
    "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
  3239
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3240
    |bg|
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3241
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3242
    SelectionInListView notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3243
	bg := SelectionInListView defaultBackgroundColor.
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3244
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3245
    bg isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3246
	View notNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3247
	    bg := View defaultBackgroundColor.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3248
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3249
	bg isNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3250
	    ^ Color gray
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3251
	].
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3252
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3253
16698
6cc3755c970a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16695
diff changeset
  3254
    (Color gray brightness - (bg brightness)) abs < 0.3 ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3255
	(bg brightness) > 0.7 ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3256
	    ^ Color gray:20.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3257
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3258
	^ Color gray:80.
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3259
    ].
16698
6cc3755c970a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16695
diff changeset
  3260
    ^ Color gray
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3261
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3262
    "Created: / 07-09-2011 / 09:51:12 / cg"
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3263
!
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  3264
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3265
emphasisForChangedCode
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3266
    "the emphasis for changed code (in changeSet) in the browser"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3267
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3268
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3269
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3270
    emp := self at:#emphasisForChangedCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3271
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3272
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3273
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3274
	"/ emp := #color->Color blue darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3275
	self at:#emphasisForChangedCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3276
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3277
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3278
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3279
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3280
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil].
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  3281
     UserPreferences current emphasisForChangedCode.
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  3282
     UserPreferences current at:#emphasisForChangedCode put:nil.
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3283
    "
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  3284
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3285
    "Modified: / 10-11-2006 / 17:27:23 / cg"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3286
!
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3287
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3288
emphasisForChangedCodeInSmallTeam
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3289
    "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
  3290
     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
  3291
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3292
    |emp|
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3293
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3294
    emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3295
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3296
	emp := #color->Color yellow darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3297
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3298
	self at:#emphasisForChangedCodeInSmallTeam put:emp.
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3299
    ].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3300
    ^ emp
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3301
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3302
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3303
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3304
     UserPreferences current emphasisForChangedCodeInSmallTeam.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3305
     UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3306
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3307
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  3308
    "Created: / 10-11-2006 / 16:31:00 / cg"
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3309
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3310
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3311
emphasisForDifferentPackage
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3312
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3313
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3314
    emp := self at:#emphasisForDifferentPackage ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3315
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3316
	emp := #color->Color green darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3317
	"/ emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3318
	self at:#emphasisForDifferentPackage put:emp.
7549
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
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3321
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3322
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3323
     self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3324
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3325
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3326
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3327
emphasisForInstrumentedFullyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3328
    "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
  3329
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3330
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3331
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3332
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3333
    emp := self at:#emphasisForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3334
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3335
	emp := #color->Color green slightlyDarkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3336
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3337
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3338
	self at:#emphasisForInstrumentedFullyCoveredCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3339
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3340
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3341
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3342
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3343
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3344
	at:#emphasisForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3345
	put:(Array with:#bold with:(#color->Color green slightlyDarkened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3346
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3347
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3348
    "Created: / 27-04-2010 / 13:01:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3349
    "Modified: / 27-04-2010 / 14:48:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3350
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3351
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3352
emphasisForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3353
    "the emphasis for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3354
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3355
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3356
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3357
    emp := self at:#emphasisForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3358
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3359
	emp := #color->Color red slightlyDarkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3360
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3361
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3362
	self at:#emphasisForInstrumentedNeverCalledCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3363
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3364
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3365
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3366
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3367
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3368
	at:#emphasisForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3369
	put:(Array with:#bold with:(#color->Color red slightlyDarkened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3370
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3371
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3372
    "Created: / 27-04-2010 / 12:59:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3373
    "Modified: / 27-04-2010 / 14:48:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3374
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3375
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3376
emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3377
    "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
  3378
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3379
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3380
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3381
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3382
    emp := self at:#emphasisForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3383
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3384
	emp := #color->Color orange.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3385
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3386
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3387
	self at:#emphasisForInstrumentedPartiallyCoveredCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3388
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3389
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3390
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3391
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3392
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3393
	at:#emphasisForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3394
	put:(Array with:#bold with:(#color->Color orange slightlyLightened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3395
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3396
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3397
    "Created: / 27-04-2010 / 13:01:20 / cg"
12902
a7d0611e313a comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12901
diff changeset
  3398
    "Modified: / 27-04-2010 / 18:50:43 / cg"
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3399
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3400
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3401
emphasisForModifiedBuffer
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3402
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3403
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3404
    emp := self at:#emphasisForModifiedBuffer ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3405
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3406
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3407
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3408
	self at:#emphasisForModifiedBuffer put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3409
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3410
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3411
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3412
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3413
     self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3414
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3415
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3416
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3417
emphasisForNamespacedCode
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3418
    "the emphasis for changed code (in changeSet) in the browser"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3419
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3420
    |emp|
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3421
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3422
    emp := self at:#emphasisForNamespacedCode ifAbsent:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3423
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3424
	emp := #color->Color green darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3425
	"/ emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3426
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3427
	self at:#emphasisForNamespacedCode put:emp.
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3428
    ].
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3429
    ^ emp
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3430
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3431
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3432
     self allInstancesDo:[:pref |pref at:#emphasisForNamespacedCode put:nil].
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3433
     UserPreferences current emphasisForNamespacedCode.
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3434
     UserPreferences current at:#emphasisForNamespacedCode put:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3435
    "
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3436
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3437
    "Created: / 01-07-2010 / 18:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3438
!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3439
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3440
emphasisForObsoleteCode
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3441
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3442
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3443
    emp := self at:#emphasisForObsoleteCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3444
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3445
	emp := #color->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3446
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3447
	self at:#emphasisForObsoleteCode put:emp.
7549
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
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3450
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3451
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3452
     self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3453
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3454
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3455
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3456
emphasisForReadVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3457
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3458
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3459
    emp := self at:#emphasisForReadVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3460
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3461
	emp := #underline.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3462
	self at:#emphasisForReadVariable put:emp.
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
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3465
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3466
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3467
emphasisForWrittenVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3468
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3469
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3470
    emp := self at:#emphasisForWrittenVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3471
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3472
	emp := Array with:#underline with:#underlineColor->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3473
	self at:#emphasisForWrittenVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3474
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3475
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3476
! !
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3477
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3478
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'!
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3479
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3480
annotationColor
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3481
    "the color used for annotations/resource specs;
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3482
     If syntaxColoring is turned on."
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3483
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3484
    ^ self at:#annotationColor ifAbsent:[nil]
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3485
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3486
    "Created: / 21-10-2017 / 17:02:15 / cg"
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3487
!
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3488
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3489
annotationEmphasis
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3490
    "the emphasis used for annotations/resource specs;
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3491
     If syntaxColoring is turned on."
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3492
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3493
    ^ self at:#annotationEmphasis ifAbsent:[nil]
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3494
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3495
    "Created: / 21-10-2017 / 17:02:32 / cg"
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3496
!
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3497
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3498
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3499
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3500
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3501
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3502
    ^ self at:#argumentIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3503
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3504
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3505
    "Modified: / 1.4.1998 / 13:19:58 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3506
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3507
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3508
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3509
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3510
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3511
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3512
    ^ self at:#argumentIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3513
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3514
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3515
    "Modified: / 1.4.1998 / 13:19:55 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3516
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3517
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3518
badIdentifierColor
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3519
    "the color used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3520
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3521
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3522
    ^ self at:#badIdentifierColor ifAbsent:[self identifierColor]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3523
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3524
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3525
badIdentifierEmphasis
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3526
    "the emphasis used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3527
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3528
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3529
    ^ self 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3530
        at:#badIdentifierEmphasis 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3531
        ifAbsent:[
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3532
            UserPreferences default 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3533
                at:#badIdentifierEmphasis 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3534
                ifAbsent:#normal]
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3535
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3536
    "Modified: / 21-04-2011 / 12:34:50 / cg"
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3537
    "Modified (format): / 21-10-2017 / 17:01:23 / cg"
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3538
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3539
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3540
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3541
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3542
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3543
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3544
    ^ self at:#booleanConstantColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3545
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3546
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3547
    "Modified: / 1.4.1998 / 13:20:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3548
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3549
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3550
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3551
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3552
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3553
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3554
    ^ self at:#booleanConstantEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3555
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3556
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3557
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3558
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3559
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3560
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3561
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3562
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3563
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3564
    ^ self at:#bracketColor ifAbsent:[self defaultSyntaxColor]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3565
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3566
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3567
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3568
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3569
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3570
     self current bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3571
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3572
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3573
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3574
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3575
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3576
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3577
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3578
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3579
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3580
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3581
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3582
    ^ self at:#bracketEmphasis ifAbsent:[self defaultSyntaxEmphasis]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3583
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3584
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3585
     self current at:#bracketEmphasis  put:#bold
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3586
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3587
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3588
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3589
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3590
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3591
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3592
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3593
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3594
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3595
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3596
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3597
    ^ self at:#classVariableIdentifierColor ifAbsent:[self globalIdentifierColor]
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3598
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3599
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3600
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3601
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3602
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3603
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3604
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3605
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3606
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3607
    ^ self at:#classVariableIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3608
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3609
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3610
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3611
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3612
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3613
collectionEnumerationSelectorColor
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3614
    "the color used for some selected collection enumeration
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3615
     selectors (such as collect:, select: etc.);
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3616
     If syntaxColoring is turned on.
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3617
     If left nil, the normal selector color is used."
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3618
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3619
    ^ self at:#collectionEnumerationSelectorColor ifAbsent:[self selectorColor]
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3620
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3621
    "Created: / 14-02-2012 / 15:52:39 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3622
    "Modified: / 21-10-2017 / 16:14:19 / cg"
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3623
!
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3624
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3625
collectionEnumerationSelectorEmphasis
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3626
    "the color used for some selected collection enumeration
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3627
     selectors (such as collect:, select: etc.);
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3628
     If syntaxColoring is turned on.
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3629
     If left nil, the normal selector emphasis is used."
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3630
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3631
    ^ self at:#collectionEnumerationSelectorEmphasis ifAbsent:[self selectorEmphasis]
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3632
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3633
    "Created: / 14-02-2012 / 15:58:58 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3634
    "Modified: / 21-10-2017 / 16:14:26 / cg"
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3635
!
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3636
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3637
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3638
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3639
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3640
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3641
    ^ self 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3642
        at:#commentColor 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3643
        ifAbsent:[
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3644
            UserPreferences default 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3645
                at:#commentColor 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3646
                ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3647
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3648
    "Created: / 31-03-1998 / 15:10:23 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3649
    "Modified: / 21-04-2011 / 12:33:39 / cg"
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3650
    "Modified (format): / 21-10-2017 / 17:02:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3651
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3652
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3653
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3654
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3655
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3656
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3657
    ^ self 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3658
        at:#commentEmphasis 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3659
        ifAbsent:[
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3660
            UserPreferences default 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3661
                at:#commentEmphasis 
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3662
                ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3663
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3664
    "Created: / 31-03-1998 / 15:09:59 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3665
    "Modified: / 21-04-2011 / 12:34:48 / cg"
22318
8c141a0b82dc #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22317
diff changeset
  3666
    "Modified (format): / 21-10-2017 / 17:03:11 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3667
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3668
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3669
commentEmphasisAndColor
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3670
    ^ self emphasis:(self commentEmphasis) andColor:(self commentColor).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3671
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3672
    "Modified: / 17-02-2011 / 14:20:41 / cg"
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3673
!
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3674
15925
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3675
commentFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3676
    "the font used for comments; nil if no special font has been defined.
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3677
     If syntaxColoring is turned on."
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3678
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3679
    ^ self at:#commentFont ifAbsent:nil
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3680
!
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3681
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3682
commentFont:aFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3683
    "the font used for comments; nil if no special font has been defined.
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3684
     If syntaxColoring is turned on."
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3685
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3686
    self at:#commentFont put:aFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3687
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3688
    "
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3689
     UserPreferences current commentFont:(XftFontDescription family: 'Comic Sans' size: 12)
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3690
     UserPreferences current commentFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3691
    "
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3692
!
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3693
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3694
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3695
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3696
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3697
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3698
    ^ self at:#constantColor ifAbsent:[UserPreferences default at:#constantColor ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3699
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3700
    "Created: / 31-03-1998 / 18:13:15 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3701
    "Modified: / 21-04-2011 / 12:33:36 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3702
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3703
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3704
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3705
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3706
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3707
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3708
    ^ self at:#constantEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3709
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3710
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3711
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3712
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3713
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3714
controlFlowSelectorColor
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3715
    "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
  3716
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3717
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3718
    ^ self at:#controlFlowSelectorColor ifAbsent:[self selectorColor]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3719
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3720
    "Created: / 08-09-2006 / 15:51:20 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3721
    "Modified: / 21-10-2017 / 16:13:58 / cg"
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3722
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3723
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3724
controlFlowSelectorEmphasis
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3725
    "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
  3726
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3727
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3728
    ^ self at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3729
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3730
    "Created: / 08-09-2006 / 15:51:04 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3731
    "Modified: / 21-10-2017 / 16:14:07 / cg"
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3732
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3733
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3734
debugSelectorColor
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3735
    "the color used for some selected debug
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3736
     selectors (such as halt etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3737
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3738
     If left nil, the normal selector color is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3739
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3740
    ^ self at:#debugSelectorColor ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3741
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3742
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3743
debugSelectorEmphasis
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3744
    "the color used for some selected debug
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3745
     selectors (such as halt etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3746
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3747
     If left nil, the normal selector emphasis is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3748
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3749
    ^ self at:#debugSelectorEmphasis ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3750
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3751
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3752
defaultSyntaxColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3753
    "the color used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3754
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3755
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3756
    ^ self at:#defaultSyntaxColor ifAbsent:[UserPreferences default at:#defaultSyntaxColor ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3757
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3758
    "Modified: / 21-04-2011 / 12:31:48 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3759
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3760
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3761
defaultSyntaxEmphasis
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3762
    "the emphasis used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3763
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3764
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3765
    ^ self
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3766
        at:#defaultSyntaxEmphasis
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3767
        ifAbsent:[UserPreferences default at:#defaultSyntaxEmphasis ifAbsent:#normal]
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3768
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3769
    "Modified: / 21-04-2011 / 12:34:46 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3770
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3771
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3772
emphasis:e andColor:c
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3773
    ^ Text addEmphasis:e to:(#color->c).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3774
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3775
    "Created: / 17-02-2011 / 14:20:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3776
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3777
8965
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3778
emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3779
    ^ self at:#emphasizeParenthesisLevel ifAbsent:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3780
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3781
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3782
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3783
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3784
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3785
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3786
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3787
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3788
emphasizeParenthesisLevel:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3789
    self at:#emphasizeParenthesisLevel put:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3790
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3791
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3792
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3793
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3794
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3795
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3796
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3797
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3798
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3799
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3800
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3801
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3802
    ^ self at:#errorColor ifAbsent:[UserPreferences default at:#errorColor ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3803
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3804
    "Modified: / 21-04-2011 / 12:33:33 / cg"
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3805
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3806
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3807
errorRaisingSelectorColor
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3808
    "the color used for some selected error raising
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3809
     selectors (such as raise etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3810
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3811
     If left nil, the normal selector color is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3812
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3813
    ^ self at:#errorRaisingSelectorColor ifAbsent:[self selectorColor]
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3814
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3815
    "Modified: / 21-10-2017 / 16:14:43 / cg"
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3816
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3817
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3818
errorRaisingSelectorEmphasis
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3819
    "the color used for some selected error raising
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3820
     selectors (such as raise etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3821
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3822
     If left nil, the normal selector emphasis is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3823
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3824
    ^ self at:#errorRaisingSelectorEmphasis ifAbsent:[self selectorEmphasis]
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3825
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  3826
    "Modified: / 21-10-2017 / 16:14:37 / cg"
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3827
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3828
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3829
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3830
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3831
     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
  3832
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3833
    ^ self at:#fullSelectorCheck ifAbsent:[UserPreferences default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3834
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3835
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3836
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3837
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3838
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3839
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3840
    "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
  3841
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3842
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3843
    ^ self at:#globalClassIdentifierColor ifAbsent:[self globalIdentifierColor]
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3844
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3845
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3846
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3847
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3848
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3849
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3850
    "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
  3851
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3852
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3853
    ^ self at:#globalClassIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3854
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3855
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3856
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3857
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3858
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3859
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3860
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3861
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3862
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3863
    ^ self at:#globalIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3864
22658
a6fd8eb664d0 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22510
diff changeset
  3865
    "
a6fd8eb664d0 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22510
diff changeset
  3866
     self current globalIdentifierColor
a6fd8eb664d0 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22510
diff changeset
  3867
    "
a6fd8eb664d0 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 22510
diff changeset
  3868
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3869
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3870
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3871
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3872
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3873
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3874
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3875
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3876
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3877
    ^ self at:#globalIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3878
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3879
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3880
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3881
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3882
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3883
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3884
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3885
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3886
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3887
    ^ self at:#hereColor ifAbsent:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3888
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3889
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3890
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3891
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3892
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3893
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3894
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3895
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3896
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3897
    ^ self at:#hereEmphasis ifAbsent:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3898
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3899
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3900
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3901
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3902
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3903
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3904
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3905
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3906
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3907
    ^ self at:#identifierColor ifAbsent:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3908
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3909
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3910
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3911
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3912
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3913
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3914
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3915
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3916
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3917
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3918
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3919
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3920
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3921
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3922
    ^ self at:#identifierEmphasis ifAbsent:[self defaultSyntaxEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3923
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3924
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3925
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3926
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3927
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3928
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3929
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3930
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3931
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3932
    ^ self at:#instVarIdentifierColor ifAbsent:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3933
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3934
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3935
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3936
     UserPreferences current at:#instVarIdentifierColor put:Color black.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3937
     UserPreferences current instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3938
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3939
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3940
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3941
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3942
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3943
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3944
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3945
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3946
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3947
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3948
    ^ self at:#instVarIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3949
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3950
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3951
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3952
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3953
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3954
jsKeywordColor
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3955
    ^ self at:#jsKeywordColor ifAbsent:[self defaultSyntaxColor]
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3956
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3957
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3958
jsKeywordEmphasis
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3959
    ^ self at:#jsKeywordEmphasis ifAbsent:[self defaultSyntaxEmphasis]
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3960
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3961
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3962
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3963
    "the color used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3964
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3965
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3966
    ^ self at:#localIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3967
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3968
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3969
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3970
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3971
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3972
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3973
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3974
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3975
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3976
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3977
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3978
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3979
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3980
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3981
    ^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3982
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3983
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3984
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3985
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3986
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3987
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3988
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3989
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3990
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3991
    ^ self at:#methodSelectorColor ifAbsent:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3992
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3993
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3994
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3995
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3996
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3997
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3998
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3999
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4000
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4001
    ^ self at:#methodSelectorEmphasis ifAbsent:[UserPreferences default at:#methodSelectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4002
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4003
    "Created: / 31-03-1998 / 15:11:16 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  4004
    "Modified: / 21-04-2011 / 12:34:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4005
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4006
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4007
numberConstantColor
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4008
    "the color used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4009
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4010
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4011
    ^ self at:#numberConstantColor ifAbsent:[ self constantColor ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4012
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4013
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4014
numberConstantEmphasis
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4015
    "the emphasis used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4016
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4017
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4018
    ^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4019
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  4020
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4021
poolVariableIdentifierColor
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4022
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4023
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4024
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4025
    ^ self at:#poolVariableIdentifierColor ifAbsent:[self globalIdentifierColor]
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4026
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4027
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4028
poolVariableIdentifierEmphasis
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4029
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4030
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4031
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4032
    ^ self at:#poolVariableIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4033
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  4034
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4035
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4036
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4037
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4038
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4039
    ^ self at:#returnColor ifAbsent:[self defaultSyntaxColor]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4040
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4041
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4042
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4043
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4044
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4045
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4046
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4047
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4048
    ^ self at:#returnEmphasis ifAbsent:[#bold "self defaultSyntaxEmphasis"]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4049
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4050
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4051
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  4052
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4053
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4054
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4055
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4056
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4057
    ^ self at:#selectorColor ifAbsent:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4058
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4059
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4060
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4061
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4062
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4063
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4064
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4065
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4066
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4067
    ^ self at:#selectorEmphasis ifAbsent:[UserPreferences default at:#selectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4068
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4069
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  4070
    "Modified: / 21-04-2011 / 12:34:39 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4071
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4072
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4073
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4074
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4075
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4076
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4077
    ^ self at:#selfColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4078
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4079
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4080
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4081
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4082
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4083
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4084
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4085
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4086
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4087
    ^ self at:#selfEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4088
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4089
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4090
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4091
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4092
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4093
sideEffectAssignmentBackgroundColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4094
    "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
  4095
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4096
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4097
    ^ self at:#sideEffectAssignmentBackgroundColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4098
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4099
    "Created: / 13-02-2012 / 11:35:20 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4100
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4101
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4102
sideEffectAssignmentColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4103
    "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
  4104
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4105
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4106
    ^ self at:#sideEffectAssignmentColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4107
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4108
    "Created: / 13-02-2012 / 11:35:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4109
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  4110
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4111
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4112
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4113
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4114
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  4115
    ^ self at:#stringColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4116
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4117
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4118
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4119
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4120
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4121
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4122
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4123
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4124
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4125
    ^ self at:#stringEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4126
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4127
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4128
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4129
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4130
13308
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4131
stringEmphasisAndColor
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4132
    ^ self emphasis:(self stringEmphasis) andColor:(self stringColor).
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4133
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4134
    "Created: / 17-02-2011 / 14:29:10 / cg"
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4135
!
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  4136
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4137
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4138
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4139
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4140
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4141
    ^ self at:#superColor ifAbsent:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4142
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4143
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4144
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4145
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4146
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4147
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4148
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4149
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4150
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4151
    ^ self at:#superEmphasis ifAbsent:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4152
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4153
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4154
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4155
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4156
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4157
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4158
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4159
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4160
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  4161
    ^ self at:#symbolColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4162
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4163
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4164
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4165
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4166
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4167
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4168
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4169
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4170
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4171
    ^ self at:#symbolEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4172
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4173
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4174
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4175
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4176
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4177
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4178
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4179
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4180
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4181
    ^ self at:#thisContextColor ifAbsent:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4182
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4183
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4184
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4185
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4186
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4187
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4188
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4189
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4190
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4191
    ^ self at:#thisContextEmphasis ifAbsent:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4192
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  4193
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4194
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4195
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4196
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4197
unimplementedSelectorColor
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4198
    "the color used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4199
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4200
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4201
    ^ self 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4202
        at:#unimplementedSelectorColor 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4203
        ifAbsent:[
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4204
            UserPreferences default 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4205
                at:#unimplementedSelectorColor 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4206
                ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4207
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4208
    "Modified: / 21-04-2011 / 12:33:29 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4209
    "Modified (format): / 21-10-2017 / 16:15:10 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4210
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4211
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4212
unimplementedSelectorEmphasis
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4213
    "the emphasis used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4214
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4215
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4216
    ^ self 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4217
        at:#unimplementedSelectorEmphasis 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4218
        ifAbsent:[
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4219
            UserPreferences default 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4220
                at:#unimplementedSelectorEmphasis 
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4221
                ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4222
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  4223
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  4224
    "Modified: / 21-04-2011 / 12:34:36 / cg"
22317
c0b01717c2a4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22239
diff changeset
  4225
    "Modified (format): / 21-10-2017 / 16:15:25 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4226
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  4227
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4228
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4229
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4230
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4231
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4232
    ^ self at:#unknownIdentifierColor ifAbsent:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4233
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  4234
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  4235
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  4236
     self current at:#unknownIdentifierEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  4237
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  4238
     self current unknownIdentifierColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  4239
     self current unknownIdentifierEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  4240
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  4241
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4242
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4243
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4244
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4245
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4246
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4247
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4248
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4249
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  4250
    ^ self at:#unknownIdentifierEmphasis ifAbsent:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4251
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  4252
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  4253
    "Modified: / 1.4.1998 / 13:22:45 / cg"
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4254
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4255
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4256
xmlAttributeColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4257
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4258
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4259
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4260
    ^ self at:#xmlAttributeColor ifAbsent:[ Color green darkened ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4261
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4262
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4263
     self current at:#xmlAttributeColor put:Color black
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4264
     self current xmlAttributeColor
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4265
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4266
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4267
    "Created: / 24-07-2011 / 21:30:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4268
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4269
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4270
xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4271
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4272
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4273
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4274
    ^ self at:#xmlAttributeEmphasis ifAbsent:[ #bold "#normal" ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4275
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4276
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4277
     self current at:#xmlAttributeEmphasis put:#normal
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4278
     self current at:#xmlAttributeEmphasis put:#bold
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4279
     self current xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4280
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4281
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4282
    "Created: / 24-07-2011 / 21:30:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4283
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4284
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4285
xmlCDataColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4286
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4287
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4288
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4289
    ^ self at:#xmlCDataColor ifAbsent:[ Color blue ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4290
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4291
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4292
     self current at:#xmlCDataColor put:Color black
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4293
     self current xmlCDataColor
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4294
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4295
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4296
    "Created: / 24-07-2011 / 21:31:30 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4297
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4298
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4299
xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4300
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4301
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4302
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4303
    ^ self at:#xmlCDataEmphasis ifAbsent:[ #normal ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4304
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4305
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4306
     self current at:#xmlCDataEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4307
     self current xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4308
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4309
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4310
    "Created: / 24-07-2011 / 21:31:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4311
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  4312
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4313
xmlTagColor
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4314
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4315
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4316
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4317
    ^ self at:#xmlTagColor ifAbsent:[ Color blue ]
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4318
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4319
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4320
     self current at:#xmlTagColor put:Color black
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4321
     self current xmlTagColor
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4322
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4323
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4324
    "Created: / 17-02-2011 / 14:18:28 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4325
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4326
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4327
xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4328
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4329
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4330
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  4331
    ^ self at:#xmlTagEmphasis ifAbsent:[ #bold ]
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4332
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4333
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4334
     self current at:#xmlTagEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4335
     self current xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4336
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4337
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4338
    "Created: / 17-02-2011 / 14:18:01 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4339
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4340
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4341
!UserPreferences methodsFor:'accessing-prefs-changes & history'!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4342
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4343
historyManagerAllowEditOfHistory:aBoolean
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4344
    "useful if you have 'beginner students', to prevent them from changing the history"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4345
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4346
    self 
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4347
        at: #'history-manager.allow-edit-of-history'
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4348
        put:aBoolean
22947
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4349
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4350
    "
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4351
        self default historyManagerAllowEditOfHistory:true.
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4352
        self default historyManagerAllowEditOfHistory:false.
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4353
    "
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4354
45a2ead06130 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 22932
diff changeset
  4355
    "Modified (comment): / 16-05-2018 / 14:24:00 / Stefan Vogel"
21234
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4356
!
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4357
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4358
historyManagerEnabled
21235
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4359
    "automatically add history line comments to accepted methods"
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4360
21234
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4361
    ^self 
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4362
        at: #'history-manager.enabled'
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4363
        ifAbsent: true 
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4364
!
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4365
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4366
historyManagerEnabled:aBoolean
21235
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4367
    "automatically add history line comments to accepted methods"
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4368
21234
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4369
    ^self 
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4370
        at: #'history-manager.enabled'
5484b13cded1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21125
diff changeset
  4371
        put: aBoolean 
21235
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4372
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4373
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4374
    "
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4375
     UserPreferences current historyManagerEnabled
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4376
     UserPreferences current historyManagerEnabled:true
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4377
     UserPreferences current historyManagerEnabled:false
4859f3fef7ca #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 21234
diff changeset
  4378
    "
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4379
! !
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4380
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4381
!UserPreferences methodsFor:'accessing-prefs-code'!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4382
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4383
categoryForMenuActionsMethods
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4384
    ^ 'menu actions'.
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4385
!
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4386
15715
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4387
haltInObsoleteMethod
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4388
    "sometimes, these are annoying..."
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4389
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4390
    ^ self at:#haltInObsoleteMethod ifAbsent:true
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4391
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4392
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4393
     UserPreferences current haltInObsoleteMethod
15715
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4394
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4395
     UserPreferences current haltInObsoleteMethod:true
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4396
     UserPreferences current haltInObsoleteMethod:false
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4397
    "
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4398
!
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4399
13722
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4400
ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4401
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4402
     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
  4403
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4404
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4405
    ^ self at:#ignorePublicPrivateCategories ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4406
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4407
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4408
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4409
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4410
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4411
    "Created: / 23-09-2011 / 19:49:37 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4412
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4413
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4414
ignorePublicPrivateCategories:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4415
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4416
     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
  4417
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4418
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4419
    self at:#ignorePublicPrivateCategories put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4420
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4421
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4422
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4423
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4424
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4425
    "Created: / 23-09-2011 / 19:49:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4426
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4427
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4428
keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4429
    "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
  4430
     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
  4431
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4432
19755
6f0e180f46a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19700
diff changeset
  4433
    "/ changed to always cache the sources.
6f0e180f46a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19700
diff changeset
  4434
    "/ these days, memory is so cheap (times of 4Mb machines are gone)
6f0e180f46a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19700
diff changeset
  4435
    ^ self at:#keepMethodSourceCode ifAbsent:true
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4436
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4437
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4438
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4439
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4440
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4441
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4442
keepMethodSourceCode:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4443
    "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
  4444
     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
  4445
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4446
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4447
    ^ self at:#keepMethodSourceCode put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4448
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4449
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4450
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4451
     UserPreferences current keepMethodSourceCode:true
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4452
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4453
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4454
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4455
numberOfLinesForLongMethod
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4456
    "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
  4457
12175
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4458
    ^ self at:#numberOfLinesForLongMethod ifAbsent:30
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4459
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4460
    "
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4461
     UserPreferences current numberOfLinesForLongMethod
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4462
    "
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4463
! !
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4464
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4465
!UserPreferences methodsFor:'accessing-prefs-code generator'!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4466
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4467
generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4468
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4469
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4470
    ^ self at:#generateComments ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4471
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4472
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4473
     UserPreferences current generateComments
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4474
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4475
     UserPreferences current generateComments:true
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4476
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4477
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4478
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4479
generateComments:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4480
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4481
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4482
    self at:#generateComments put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4483
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4484
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4485
     UserPreferences current generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4486
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4487
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4488
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4489
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4490
generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4491
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4492
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4493
    ^ self at:#generateCommentsForAspectMethods ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4494
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4495
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4496
     UserPreferences current generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4497
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4498
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4499
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4500
generateCommentsForAspectMethods:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4501
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4502
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4503
    self at:#generateCommentsForAspectMethods put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4504
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4505
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4506
     UserPreferences current generateCommentsForAspectMethods:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4507
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4508
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4509
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4510
generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4511
    "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
  4512
     The default is now false, as these look stupid in the browser and were only generated
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  4513
     for the HTMLDocumentGenerator, which is not able to generate these comments on the fly."
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4514
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4515
    ^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4516
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4517
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4518
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4519
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4520
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4521
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4522
generateCommentsForGetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4523
    "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
  4524
     The default is now false, as these look stupid in the browser and were only generated
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  4525
     for the HTMLDocumentGenerator, which is not able to generate these comments on the fly."
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4526
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4527
    self at:#generateCommentsForGetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4528
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4529
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4530
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4531
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4532
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4533
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4534
generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4535
    "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
  4536
     The default is now false, as these look stupid in the browser and were only generated
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  4537
     for the HTMLDocumentGenerator, which is not able to generate these comments on the fly."
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4538
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4539
    ^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4540
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4541
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4542
     UserPreferences current generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4543
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4544
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4545
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4546
generateCommentsForSetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4547
    "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
  4548
     The default is now false, as these look stupid in the browser and were only generated
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  4549
     for the HTMLDocumentGenerator, which is not able to generate these comments on the fly."
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4550
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4551
    self at:#generateCommentsForSetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4552
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4553
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4554
     UserPreferences current generateSommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4555
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4556
! !
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4557
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4558
!UserPreferences methodsFor:'accessing-prefs-code view'!
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4559
15426
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4560
assignmentBackgroundColorForNavigationService
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4561
    ^ (Color rgbValue:16rFFDBDB)
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4562
!
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4563
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4564
codeView2AutoPrettyPrint
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4565
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4566
    ^self at:#codeView2AutoPrettyPrint ifAbsent: false
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4567
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4568
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4569
     UserPreferences current codeView2AutoPrettyPrint
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4570
     UserPreferences current codeView2AutoPrettyPrint:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4571
     UserPreferences current codeView2AutoPrettyPrint:false"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4572
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4573
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4574
    "Created: / 07-08-2011 / 12:46:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4575
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4576
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4577
codeView2AutoPrettyPrint: aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4578
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4579
    ^self at:#codeView2AutoPrettyPrint put: aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4580
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4581
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4582
     UserPreferences current codeView2AutoPrettyPrint
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4583
     UserPreferences current codeView2AutoPrettyPrint:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4584
     UserPreferences current codeView2AutoPrettyPrint:false"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4585
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4586
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4587
    "Created: / 07-08-2011 / 12:47:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4588
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4589
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4590
codeView2QuickSendersAndImplementorsOnControl
14733
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4591
    "if true, CTRL-click opens the quick senders/implementors menu;
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4592
     if false, you have to press ALT"
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4593
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4594
    ^self at:#codeView2QuickSendersAndImplementorsOnControl ifAbsent: false
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4595
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4596
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4597
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4598
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4599
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false"
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4600
!
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4601
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4602
codeView2QuickSendersAndImplementorsOnControl: aBoolean
14733
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4603
    "if true, CTRL-click opens the quick senders/implementors menu;
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4604
     if false, you have to press ALT"
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4605
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4606
    ^self at:#codeView2QuickSendersAndImplementorsOnControl put: aBoolean
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4607
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4608
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4609
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4610
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4611
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false"
14915
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4612
!
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4613
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4614
selectorBackgroundColorForNavigationService
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4615
    ^ (Color rgbValue:"16rADD9FF" 16rDBEEFF)
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4616
!
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4617
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4618
variableBackgroundColorForNavigationService
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4619
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4620
	at: #variableBackgroundColorForNavigationService
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4621
	ifAbsent: [
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4622
	    (Color rgbValue:16rFFFFA7)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4623
	    "/ (Color rgbValue:16rEFD7A7)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4624
	]
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  4625
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  4626
    "Modified: / 01-10-2013 / 11:35:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4627
! !
13547
f08daec3c459 changed: #historyManagerSignature
Claus Gittinger <cg@exept.de>
parents: 13523
diff changeset
  4628
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4629
!UserPreferences methodsFor:'accessing-prefs-defaultPackages'!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4630
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4631
addPreloadedPackage:packageName
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4632
    "add this to the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4633
     This will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4634
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4635
    (self at:#preloadedPackages ifAbsentPut:[Set new]) add:packageName.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4636
    Smalltalk loadPackage:packageName.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4637
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4638
    "
18557
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4639
     UserPreferences current preloadedPackages
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4640
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4641
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4642
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4643
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4644
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4645
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4646
preloadedPackages
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4647
    "the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4648
     These will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4649
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4650
    ^ self at:#preloadedPackages ifAbsent:[ #() ].
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4651
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4652
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4653
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4654
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4655
     UserPreferences current preloadedPackages
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4656
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4657
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4658
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4659
preloadedPackages:setOfPreloadedPackages
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4660
    "define the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4661
     This will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4662
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4663
    |set|
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4664
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4665
    set := setOfPreloadedPackages asSet.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4666
    self at:#preloadedPackages put:set.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4667
    set do:[:each |
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4668
	Smalltalk loadPackage:each
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4669
    ].
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4670
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4671
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4672
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4673
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4674
     UserPreferences current preloadedPackages
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4675
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4676
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4677
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4678
removePreloadedPackage:packageName
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4679
    "remove this from the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4680
     This will be no longer be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4681
18557
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4682
    |preloaded|
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4683
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4684
    preloaded := self at:#preloadedPackages ifAbsent:[nil].
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4685
    preloaded notNil ifTrue:[
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4686
        preloaded remove:packageName ifAbsent:[]
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4687
    ].
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4688
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4689
    "
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4690
     UserPreferences current preloadedPackages
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4691
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4692
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4693
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4694
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4695
! !
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4696
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4697
!UserPreferences methodsFor:'accessing-prefs-editor'!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4698
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4699
appendAbbreviationsToCompletionSuggestions
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4700
    "show abbreviations in completion"
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4701
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4702
    ^ self at:#appendAbbreviationsToCompletionSuggestions ifAbsent:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4703
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4704
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4705
     UserPreferences current appendAbbreviationsToCompletionSuggestions
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4706
     UserPreferences current appendAbbreviationsToCompletionSuggestions:true
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4707
     UserPreferences current appendAbbreviationsToCompletionSuggestions:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4708
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4709
!
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4710
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4711
appendAbbreviationsToCompletionSuggestions:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4712
    "show abbreviations in completion"
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4713
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4714
    ^ self at:#appendAbbreviationsToCompletionSuggestions put:aBoolean
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4715
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4716
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4717
     UserPreferences current appendAbbreviationsToCompletionSuggestions
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4718
     UserPreferences current appendAbbreviationsToCompletionSuggestions:true
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4719
     UserPreferences current appendAbbreviationsToCompletionSuggestions:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4720
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4721
!
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4722
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4723
codeCompletionOnControlKey
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4724
    "show completion with CTRL-key - experimental"
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4725
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4726
    ^ self at:#codeCompletionOnControlKey ifAbsent:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4727
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4728
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4729
     UserPreferences current codeCompletionOnControlKey
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4730
     UserPreferences current codeCompletionOnControlKey:true
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4731
     UserPreferences current codeCompletionOnControlKey:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4732
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4733
!
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4734
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4735
codeCompletionOnControlKey:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4736
    "show completion with CTRL key - experimental"
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4737
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4738
    ^ self at:#codeCompletionOnControlKey put:aBoolean
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4739
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4740
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4741
     UserPreferences current codeCompletionOnControlKey
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4742
     UserPreferences current codeCompletionOnControlKey:true
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4743
     UserPreferences current codeCompletionOnControlKey:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4744
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4745
!
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4746
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4747
codeCompletionOnTabKey
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4748
    "show completion with TAB-key - experimental"
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4749
15767
169f9c6acec2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15748
diff changeset
  4750
    ^ self at:#codeCompletionOnTabKey ifAbsent:true
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4751
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4752
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4753
     UserPreferences current codeCompletionOnTabKey
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4754
     UserPreferences current codeCompletionOnTabKey:true
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4755
     UserPreferences current codeCompletionOnTabKey:false
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4756
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4757
!
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4758
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4759
codeCompletionOnTabKey:aBoolean
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4760
    "show completion with TAB-key - experimental"
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4761
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4762
    self at:#codeCompletionOnTabKey put:aBoolean
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4763
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4764
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4765
     UserPreferences current codeCompletionOnTabKey
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4766
     UserPreferences current codeCompletionOnTabKey:true
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4767
     UserPreferences current codeCompletionOnTabKey:false
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4768
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4769
!
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4770
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4771
codeCompletionViewKeyboardNavigationNeedsModifier
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4772
    "if you find it annoying, that cursor up/down is intercepted by a floating
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4773
     completion view, set this to true. Then cursor up/down are only passed to the completion
16585
a3ad6aafc186 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16584
diff changeset
  4774
     view if a shift- or control modifier is pressed.
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4775
     The default is false for backward compatibility"
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4776
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4777
    ^ self at:#codeCompletionViewKeyboardNavigationNeedsModifier ifAbsent:[false]
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4778
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4779
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4780
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4781
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4782
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4783
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4784
!
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4785
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4786
codeCompletionViewKeyboardNavigationNeedsModifier:aBoolean
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4787
    "if you find it annoying, that cursor up/down is intercepted by a floating
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4788
     completion view, set this to true. Then cursor up/down are only passed to the completion
16585
a3ad6aafc186 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16584
diff changeset
  4789
     view if a shift- or control modifier is pressed.
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4790
     The default is false for backward compatibility"
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4791
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4792
    self at:#codeCompletionViewKeyboardNavigationNeedsModifier put:aBoolean
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4793
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4794
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4795
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4796
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4797
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4798
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4799
!
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4800
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4801
deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4802
    "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
  4803
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4804
    ^ self at:#deleteSetsClipboardText ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4805
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4806
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4807
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4808
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4809
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4810
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4811
deleteSetsClipboardText:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4812
    "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
  4813
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4814
    ^ self at:#deleteSetsClipboardText put:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4815
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4816
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4817
     UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4818
     UserPreferences current deleteSetsClipboardText:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4819
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4820
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4821
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4822
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4823
enforcedDropModeForFiles
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4824
    "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
  4825
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4826
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4827
    ^ self at:#enforcedDropModeForFiles ifAbsent:nil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4828
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4829
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4830
     UserPreferences current enforcedDropModeForFiles
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4831
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4832
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4833
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4834
enforcedDropModeForFiles:aSymbolOrNil
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4835
    "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
  4836
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4837
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4838
    ^ self at:#enforcedDropModeForFiles put:aSymbolOrNil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4839
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4840
    "
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4841
     UserPreferences current enforcedDropModeForFiles:#contents
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4842
     UserPreferences current enforcedDropModeForFiles:#name
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4843
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4844
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4845
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4846
extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4847
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4848
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4849
10310
89d972739353 extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents: 10240
diff changeset
  4850
    ^ self at:#extendedWordSelectMode ifAbsent:true
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4851
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4852
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4853
     UserPreferences current extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4854
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4855
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4856
    "Created: / 03-07-2006 / 16:49:58 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4857
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4858
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4859
extendedWordSelectMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4860
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4861
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4862
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4863
    ^ self at:#extendedWordSelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4864
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4865
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4866
     UserPreferences current extendedWordSelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4867
     UserPreferences current extendedWordSelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4868
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4869
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4870
    "Created: / 03-07-2006 / 16:50:20 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4871
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4872
19965
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4873
generateBackupFileWhenSaving
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4874
    "if true, the editor will write a backup file
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4875
     before saving. The default is true"
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4876
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4877
    ^ self at:#generateBackupFileWhenSaving ifAbsent:true "false"
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4878
!
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4879
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4880
generateBackupFileWhenSaving:aBoolean
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4881
    "if true, the editor will write a backup file
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4882
     before saving. The default is true"
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4883
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4884
    self at:#generateBackupFileWhenSaving put:aBoolean
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4885
!
13ab13cf8d72 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19954
diff changeset
  4886
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4887
immediateCodeCompletion
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4888
    "show completion, as you type - experimental"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4889
19684
95ecd59eca16 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19634
diff changeset
  4890
    ^ self at:#immediateCodeCompletion ifAbsent:true "false"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4891
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4892
    "
15725
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4893
     UserPreferences current immediateCodeCompletion
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4894
     UserPreferences current immediateCodeCompletion:true
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4895
     UserPreferences current immediateCodeCompletion:false
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4896
    "
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4897
!
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4898
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4899
immediateCodeCompletion:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4900
    "show completion, as you type - experimental"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4901
15726
a38e1e075388 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15725
diff changeset
  4902
    ^ self at:#immediateCodeCompletion put:aBoolean
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4903
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4904
    "
15725
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4905
     UserPreferences current immediateCodeCompletion
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4906
     UserPreferences current immediateCodeCompletion:true
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4907
     UserPreferences current immediateCodeCompletion:false
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4908
    "
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4909
!
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4910
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4911
numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4912
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4913
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4914
     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
  4915
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4916
    ^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4917
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4918
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4919
     UserPreferences current numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4920
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4921
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4922
    "Modified: / 09-10-2006 / 11:01:35 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4923
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4924
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4925
numberOfRememberedUndoOperationsInEditor:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4926
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4927
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4928
     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
  4929
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4930
    ^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4931
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4932
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4933
     UserPreferences current numberOfRememberedUndoOperationsInEditor:20
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4934
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4935
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4936
    "Created: / 09-10-2006 / 11:00:56 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4937
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4938
14052
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4939
selectAllWhenClickingBeyondEnd
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4940
    "select mode, when clicking after the end of text,
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4941
     as in st80 (or squeak), select all"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4942
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4943
    ^ self at:#selectAllWhenClickingBeyondEnd ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4944
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4945
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4946
     UserPreferences current selectAllWhenClickingBeyondEnd
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4947
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4948
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4949
    "Created: / 07-03-2012 / 14:00:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4950
!
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4951
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4952
selectAllWhenClickingBeyondEnd:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4953
    "select mode, when clicking after the end of text,
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4954
     as in st80 (or squeak), select all"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4955
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4956
    ^ self at:#selectAllWhenClickingBeyondEnd put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4957
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4958
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4959
     UserPreferences current selectAllWhenClickingBeyondEnd:true
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4960
     UserPreferences current selectAllWhenClickingBeyondEnd:false
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4961
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4962
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4963
    "Created: / 07-03-2012 / 14:00:23 / cg"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4964
!
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4965
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4966
selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4967
    "Returns selection extension mode. Mode is either
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4968
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4969
    #traditional ... Shift-End always moves end of selection (iff it is on the same line)
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4970
		     Shift->Home always moves beggining of selection (iff it is on the same line)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4971
		     That's how CG likes it.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4972
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4973
    #standard ...    That's how vast majority text editors and text widgets behaves, therefore
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4974
		     this is how most users expects it to behave.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4975
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4976
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4977
    For historical reasons, #traditional is the default..."
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4978
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4979
    ^ self at: #selectionExtensionMode ifAbsent:[ #traditional ]
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4980
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4981
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4982
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4983
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4984
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4985
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4986
    UserPreferences current selectionExtensionMode:#traditional
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4987
    UserPreferences current selectionExtensionMode:#standard
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4988
    UserPreferences current selectionExtensionMode:nil
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4989
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4990
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4991
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4992
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4993
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4994
    "Created: / 27-03-2014 / 09:19:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4995
!
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4996
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4997
selectionExtensionMode: aSymbol
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4998
    "Sets selection extension mode. Must be either:
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4999
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5000
    #traditional ... Shift-End always moves end of selection (iff it is on the same line)
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5001
		     Shift->Home always moves beggining of selection (iff it is on the same line)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5002
		     That's how CG likes it.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5003
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5004
    #standard ...    That's how vast majority text editors and text widgets behaves, therefore
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5005
		     this is how most users expects it to behave.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5006
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5007
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5008
    For historical reasons, #traditional is the default..."
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5009
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5010
    aSymbol isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5011
	self removeKey:#selectionExtensionMode.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5012
	^ self.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5013
    ].
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5014
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5015
    (#(traditional standard) includes: aSymbol) ifFalse:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5016
	self error:'Invalid value. Possible values are #traditional and #standard'.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5017
    ].
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5018
    self at: #selectionExtensionMode put: aSymbol
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5019
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5020
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5021
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5022
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5023
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5024
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5025
    UserPreferences current selectionExtensionMode:#traditional
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5026
    UserPreferences current selectionExtensionMode:#standard
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5027
    UserPreferences current selectionExtensionMode:nil
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5028
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5029
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5030
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5031
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5032
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5033
    "Created: / 27-03-2014 / 09:18:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5034
!
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  5035
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5036
st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5037
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5038
20613
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5039
    ^ self at:#st80EditMode ifAbsent:[false]
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5040
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5041
    "
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5042
     UserPreferences current st80EditMode
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5043
     UserPreferences current st80EditMode:true
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5044
     UserPreferences current st80EditMode
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5045
     UserPreferences current st80EditMode:false
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5046
     UserPreferences current st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5047
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5048
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5049
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5050
st80EditMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5051
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5052
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5053
    ^ self at:#st80EditMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5054
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5055
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5056
     UserPreferences current st80EditMode:true
20613
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5057
     UserPreferences current st80EditMode:false
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5058
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5059
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5060
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5061
st80SelectMode
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5062
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5063
     (select to corresponding lparen/double-quote) ?"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5064
20613
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5065
    ^ self at:#st80SelectMode ifAbsent:[false]
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5066
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5067
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5068
     UserPreferences current st80SelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5069
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5070
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5071
    "Created: / 03-07-2006 / 16:25:19 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5072
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5073
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5074
st80SelectMode:aBoolean
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5075
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5076
     (select to corresponding lparen/double-quote)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5077
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5078
    ^ self at:#st80SelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5079
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5080
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5081
     UserPreferences current st80SelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5082
     UserPreferences current st80SelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5083
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5084
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5085
    "Created: / 03-07-2006 / 16:25:27 / cg"
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5086
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5087
20613
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5088
trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5089
    "if true, blank lines are trimmed to zero size in the editor"
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5090
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5091
    ^ self at:#trimBlankLines ifAbsent:[true]
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5092
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5093
    "
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5094
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5095
     UserPreferences current trimBlankLines:true
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5096
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5097
     UserPreferences current trimBlankLines:false
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5098
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5099
    "
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5100
!
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5101
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5102
trimBlankLines:aBoolean
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5103
    "if true, blank lines are trimmed to zero size in the editor"
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5104
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5105
    self at:#trimBlankLines put:aBoolean
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5106
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5107
    "
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5108
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5109
     UserPreferences current trimBlankLines:true
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5110
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5111
     UserPreferences current trimBlankLines:false
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5112
     UserPreferences current trimBlankLines
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5113
    "
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5114
!
b70eb66c0f7a #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 20607
diff changeset
  5115
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5116
whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5117
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5118
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5119
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5120
    ^ self at:#whitespaceWordSelectMode ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5121
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5122
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5123
     UserPreferences current whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5124
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5125
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5126
    "Created: / 03-07-2006 / 16:49:58 / cg"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5127
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5128
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5129
whitespaceWordSelectMode:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5130
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5131
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5132
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5133
    ^ self at:#whitespaceWordSelectMode put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5134
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5135
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5136
     UserPreferences current whitespaceWordSelectMode:true
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5137
     UserPreferences current whitespaceWordSelectMode:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5138
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5139
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  5140
    "Created: / 03-07-2006 / 16:50:20 / cg"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5141
! !
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  5142
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5143
!UserPreferences methodsFor:'accessing-prefs-external tools'!
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5144
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5145
defaultFileOpenCommandFor:suffix
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5146
    "for the fileBrowser - remember which command to use as-per suffix"
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5147
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5148
    ^ (self at:#defaultFileOpenCommands ifAbsentPut:[Dictionary new])
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5149
        at:suffix ifAbsent:nil
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5150
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5151
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5152
defaultFileOpenCommandFor:suffix put:openCmd
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5153
    "for the fileBrowser - remember which command to use as-per suffix"
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5154
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5155
    (self at:#defaultFileOpenCommands ifAbsentPut:[Dictionary new])
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5156
        at:suffix put:openCmd
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5157
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  5158
22145
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5159
dllPath
23229
b4629be3e498 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 23212
diff changeset
  5160
    ^ self at:#dllPath ifAbsent:[#()]
22145
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5161
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5162
    "
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5163
     ExpeccoPreferences current dllPath.
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5164
     ExpeccoPreferences current dllPath:{ '/usr/local/lib' '/opt/local/lib' }
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5165
    "
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5166
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5167
    "Created: / 12-02-2017 / 01:39:41 / cg"
23229
b4629be3e498 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 23212
diff changeset
  5168
    "Modified: / 22-07-2018 / 15:58:11 / Stefan Vogel"
22145
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5169
!
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5170
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5171
dllPath:aCollectionOfFolderNames
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5172
    self at:#dllPath put:aCollectionOfFolderNames.
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5173
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5174
    "
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5175
     UserPreferences current dllPath.
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5176
     UserPreferences current dllPath:{ '/usr/local/lib' '/opt/local/lib' }
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5177
    "
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5178
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5179
    "Created: / 12-02-2017 / 01:39:57 / cg"
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5180
!
3728c8f40263 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21845
diff changeset
  5181
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5182
osFileExplorerCommand
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5183
    "return an OS command template to open a finder/explorer or similar"
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5184
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5185
    ^ self at:#osFileExplorerCommand ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5186
!
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5187
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5188
osFileExplorerCommand:aString
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5189
    "define an OS command template to open a finder/explorer or similar"
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5190
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5191
    self at:#osFileExplorerCommand put:aString
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5192
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5193
    "
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5194
     UserPreferences current osFileExplorerCommand
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5195
     
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5196
     osx:
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5197
     UserPreferences current osFileExplorerCommand:'open %1'
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5198
     
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5199
     linux:
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5200
     UserPreferences current osFileExplorerCommand:'nautilus %1'
18922
aee337248062 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18920
diff changeset
  5201
     UserPreferences current osFileExplorerCommand:'dolphin %1'
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5202
    "
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5203
! !
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  5204
18871
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5205
!UserPreferences methodsFor:'accessing-prefs-files and directories'!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5206
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5207
changeFileName
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5208
    "were to keep changes"
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5209
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5210
    ^ self 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5211
        at: #'changeFileName' 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5212
        ifAbsent: [nil] 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5213
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5214
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5215
changeFileName:aFilename
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5216
    "were to keep changes"
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5217
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5218
    self
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5219
	at: #'changeFileName'
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5220
	put: aFilename.
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5221
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5222
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5223
usersModuleName
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5224
    "this will be taken as the user's module in the workspace and as a default for new projects"
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5225
    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5226
    ^ self at:#usersModuleName ifAbsent:[OperatingSystem getLoginName ]
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5227
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5228
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5229
usersModuleName:aString
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5230
    self at:#usersModuleName put:aString
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5231
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5232
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5233
workspaceDirectory
20607
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5234
    "this is the folder where snapshot images, the change file and any stc-compiled
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5235
     object files are stored.
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5236
     The idea is to keep that stuff together, so we can move it as a bunch.
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5237
     These used to be in the bin-folder of st/x, but that would not work with readonly/shared
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5238
     st/x installations."
aaf92896a6b8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20243
diff changeset
  5239
     
18871
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5240
    ^ self at:#workspaceDirectory ifAbsent:[self class defaultWorkspaceDirectory]
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5241
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5242
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5243
workspaceDirectory:aDirectoryOrNilForDefault
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5244
    |d|
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5245
    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5246
    (d := aDirectoryOrNilForDefault) notNil ifTrue:[
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5247
        d := d asFilename
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5248
    ].    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5249
    self at:#workspaceDirectory put:d
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5250
! !
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  5251
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5252
!UserPreferences methodsFor:'accessing-prefs-localization'!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5253
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5254
language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5255
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5256
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5257
    "/ however, for multi-user operation, this must be in a preference-setting.
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5258
    "/ For now, forward to Smalltalk, while all references to "Smalltalk-language"
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5259
    "/ and "Smalltalk-languageTerritory" are replaced with "UserPreferences current"-messages
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5260
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5261
    ^ self at:#language ifAbsent:[Smalltalk language].
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5262
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5263
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5264
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5265
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5266
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5267
    "Created: / 20-09-2006 / 23:55:01 / cg"
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5268
    "Modified (comment): / 20-06-2017 / 09:03:04 / cg"
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5269
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5270
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5271
language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5272
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5273
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5274
    "/ however, for multi-user operation, this must be in a preference-setting.
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5275
    "/ For now, forward to Smalltalk, while all references to "Smalltalk-language"
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5276
    "/ and "Smalltalk-languageTerritory" are replaced with "UserPreferences current"-messages
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5277
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5278
    self at:#language put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5279
    Smalltalk language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5280
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5281
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5282
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5283
     UserPreferences current language:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5284
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5285
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5286
    "Created: / 20-09-2006 / 23:55:01 / cg"
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5287
    "Modified (comment): / 20-06-2017 / 09:03:09 / cg"
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5288
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5289
21776
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5290
language:aLanguageSymbol territory:aTerritorySymbol
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5291
    "/ intermediate migration code;
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5292
    "/ for now, Smalltalk uses a global language and territory setting;
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5293
    "/ however, for multi-user operation, this must be in a preference-setting.
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5294
    "/ For now, forward to Smalltalk, while all references to "Smalltalk-language"
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5295
    "/ and "Smalltalk-languageTerritory" are replaced with "UserPreferences current"-messages
21776
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5296
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5297
    self at:#language put:aLanguageSymbol.
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5298
    self at:#languageTerritory put:aTerritorySymbol.
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5299
    Smalltalk language:aLanguageSymbol territory:aTerritorySymbol
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5300
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5301
    "
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5302
     UserPreferences current language
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5303
     UserPreferences current language:#en territory:#us
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5304
     UserPreferences current language:#de territory:#de
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5305
    "
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5306
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5307
    "Created: / 30-05-2017 / 16:02:06 / stefan"
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5308
    "Modified (comment): / 20-06-2017 / 09:03:16 / cg"
21776
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5309
!
44d6b4483aa3 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21643
diff changeset
  5310
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5311
languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5312
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5313
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5314
    "/ however, for multi-user operation, this must be in a preference-setting.
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5315
    "/ For now, forward to Smalltalk, while all references to "Smalltalk-language"
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5316
    "/ and "Smalltalk-languageTerritory" are replaced with "UserPreferences current"-messages
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5317
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5318
    ^ self at:#languageTerritory ifAbsent:[Smalltalk languageTerritory]
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5319
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5320
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5321
     UserPreferences current languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5322
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5323
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5324
    "Created: / 20-09-2006 / 23:55:01 / cg"
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5325
    "Modified (comment): / 20-06-2017 / 09:02:59 / cg"
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5326
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5327
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5328
languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5329
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5330
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5331
    "/ however, for multi-user operation, this must be in a preference-setting.
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5332
    "/ For now, forward to Smalltalk, while all references to "Smalltalk-language"
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5333
    "/ and "Smalltalk-languageTerritory" are replaced with "UserPreferences current"-messages
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5334
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5335
    self at:#languageTerritory put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5336
    Smalltalk languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5337
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5338
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5339
     UserPreferences current languageTerritory
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5340
     UserPreferences current languageTerritory:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5341
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5342
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5343
    "Created: / 20-09-2006 / 23:55:01 / cg"
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  5344
    "Modified (comment): / 20-06-2017 / 09:03:23 / cg"
18496
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5345
!
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5346
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5347
unitForFileSize
18497
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  5348
    "may return either 1000 or 1024"
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  5349
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  5350
    ^ self at:#unitForFileSize ifAbsent:[1000]
18496
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5351
!
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5352
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5353
unitStringsForFileSize
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5354
    self unitForFileSize == 1024 ifTrue:[
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5355
        ^ #('Byte' 'KiB' 'MiB' 'GiB' 'TiB' 'PiB' 'EiB' 'ZiB' 'YiB')
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5356
    ] ifFalse:[
22359
48d18e1c201d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22339
diff changeset
  5357
        ^ #('Byte' 'kB'  'MB'  'GB'  'TB'  'PB'  'EB'  'ZB'  'YB')
18496
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  5358
    ].
22359
48d18e1c201d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22339
diff changeset
  5359
48d18e1c201d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 22339
diff changeset
  5360
    "Modified (format): / 17-11-2017 / 10:31:42 / cg"
18823
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5361
!
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5362
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5363
useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5364
    "if true, the operating system's language is used (i.e. LANG environment variable),
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5365
     when the system comes up. If false, the setting here is used.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5366
     The default is true."
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5367
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5368
    ^ self at:#useSystemLanguage ifAbsent:[true].
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5369
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5370
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5371
     UserPreferences current useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5372
     UserPreferences current useSystemLanguage:false
18824
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
  5373
     UserPreferences current useSystemLanguage:true
18823
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5374
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5375
!
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5376
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5377
useSystemLanguage:aBoolean
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5378
    "if true, the operating system's language is used (i.e. LANG environment variable),
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5379
     when the system comes up. If false, the setting here is used.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5380
     The default is true."
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5381
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5382
    self at:#useSystemLanguage put:aBoolean.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5383
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5384
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5385
     UserPreferences current useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5386
     UserPreferences current useSystemLanguage:false
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  5387
    "
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5388
! !
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  5389
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5390
!UserPreferences methodsFor:'accessing-prefs-startup'!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5391
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5392
autoloadedPackages
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5393
    "list of package names, which are automatically loaded upon startup"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5394
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5395
    ^ self at:#autoloadedPackages ifAbsent:[#()]
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5396
!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5397
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5398
autoloadedPackages:aCollectionOfPackageNames
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5399
    "list of package names, which are automatically loaded upon startup"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5400
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5401
    self at:#autoloadedPackages put:aCollectionOfPackageNames
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5402
! !
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  5403
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5404
!UserPreferences methodsFor:'accessing-prefs-times'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5405
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5406
timeToAutoExpandItemsWhenDraggingOver
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5407
    "in a hierarchical tree view"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5408
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5409
    ^ 700  "/ millis
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5410
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5411
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5412
twoDigitDateHandler
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5413
    "return a block which converts a two-digit date.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5414
     Possible algorithms:
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5415
	- identity: treat as year 00..99
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5416
	- add 1900: treat as 1900..1999
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5417
	- 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
  5418
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5419
     TODO: make this configurable, keep in dictionary and add to settings.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5420
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5421
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5422
    ^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5423
    "/ ^ [:x | 1900+x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5424
    "/ ^ [:x | x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5425
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5426
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5427
!UserPreferences methodsFor:'accessing-prefs-tools'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5428
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5429
allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5430
    "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
  5431
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5432
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5433
    ^ self at:#allowSendMailFromDebugger ifAbsent:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5434
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5435
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5436
     UserPreferences current allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5437
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5438
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5439
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5440
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5441
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5442
allowSendMailFromDebugger:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5443
    "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
  5444
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5445
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5446
    ^ self at:#allowSendMailFromDebugger put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5447
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5448
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5449
     UserPreferences current allowSendMailFromDebugger:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5450
     UserPreferences current allowSendMailFromDebugger:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5451
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5452
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5453
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5454
autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5455
    "return the flag which controls automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5456
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5457
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  5458
    ^ self at:#autoDefineWorkspaceVariables ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5459
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5460
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5461
     UserPreferences current autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5462
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5463
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5464
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5465
autoDefineWorkspaceVariables:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5466
    "turn on/off automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5467
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5468
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5469
    ^ self at:#autoDefineWorkspaceVariables put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5470
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5471
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5472
     UserPreferences current autoDefineWorkspaceVariables:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5473
     UserPreferences current autoDefineWorkspaceVariables:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5474
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5475
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5476
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5477
autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5478
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5479
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5480
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5481
    ^ self at:#autoRaiseDebugger ifAbsent:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5482
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5483
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5484
     UserPreferences current autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5485
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5486
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5487
    "Created: / 15-05-2007 / 13:29:10 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5488
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5489
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5490
autoRaiseDebugger:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5491
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5492
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5493
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5494
    ^ self at:#autoRaiseDebugger put:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5495
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5496
    "
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5497
     UserPreferences current autoRaiseDebugger
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5498
     UserPreferences current autoRaiseDebugger:false
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5499
     UserPreferences current autoRaiseDebugger:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5500
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5501
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5502
    "Created: / 15-05-2007 / 13:29:31 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5503
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5504
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5505
autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5506
    "if non-nil, an application window will raise automatically,
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5507
     when it gets the focus (via the window manager) after that
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5508
     number of milliseconds. If nil, autoRaise is disabled.
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5509
     Especially useful with focusFollowsMouse under X11"
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5510
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5511
    ^ self at:#autoRaiseOnFocusInDelay ifAbsent:nil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5512
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5513
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5514
     UserPreferences current autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5515
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5516
!
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5517
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5518
autoRaiseOnFocusInDelay:anIntegerOrNil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5519
    "if non-nil, an application window will raise automatically,
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5520
     when it gets the focus (via the window manager) after that
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5521
     number of milliseconds. If nil, autoRaise is disabled.
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5522
     Especially useful with focusFollowsMouse under X11"
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5523
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5524
    ^ self at:#autoRaiseOnFocusInDelay put:anIntegerOrNil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5525
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5526
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5527
     UserPreferences current autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5528
     UserPreferences current autoRaiseOnFocusInDelay:nil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5529
     UserPreferences current autoRaiseOnFocusInDelay:750
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5530
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5531
!
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5532
15417
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5533
autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5534
    "if true, the transcript raises itself automatically when new messages appear.
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5535
     The default is false"
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5536
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5537
    ^ self at:#autoRaiseTranscript ifAbsent:false
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5538
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5539
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5540
     UserPreferences current autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5541
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5542
!
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5543
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5544
autoRaiseTranscript:aBoolean
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5545
    "if true, the transcript raises itself automatically when new messages appear.
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5546
     The default is false"
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5547
15427
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5548
    |transcript|
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5549
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5550
    self at:#autoRaiseTranscript put:aBoolean.
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5551
    (self == UserPreferences current) ifTrue:[
18641
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5552
        transcript := Transcript current.
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5553
        (transcript notNil and:[transcript isTextCollector]) ifTrue:[
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5554
            transcript autoRaise:aBoolean.
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5555
        ].
15427
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5556
    ].
15417
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5557
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5558
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5559
     UserPreferences current autoRaiseTranscript:true
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5560
     UserPreferences current autoRaiseTranscript:false
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5561
     UserPreferences current autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5562
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5563
!
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5564
19087
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5565
debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5566
    "if non nil, any entered debugger writes a backrace to that logfile.
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5567
     This is useful to record all session-problems"
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5568
     
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5569
    ^ self at:#debuggerLogFile ifAbsent:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5570
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5571
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5572
     UserPreferences current debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5573
     UserPreferences current debuggerLogFile:'debug.log'
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5574
     UserPreferences current debuggerLogFile:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5575
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5576
!
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5577
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5578
debuggerLogFile:aFilename
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5579
    "if non nil, any entered debugger writes a backrace to that logfile.
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5580
     This is useful to record all session-problems"
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  5581
19087
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5582
    ^ self at:#debuggerLogFile put:aFilename
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5583
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5584
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5585
     UserPreferences current debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5586
     UserPreferences current debuggerLogFile:'debug.log'
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5587
     UserPreferences current debuggerLogFile:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5588
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5589
!
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5590
11419
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5591
editToolbarVisibleInWorkspace
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5592
    "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
  5593
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5594
    ^ self at:#editToolbarVisibleInWorkspace ifAbsent:false
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5595
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5596
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5597
editToolbarVisibleInWorkspace:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5598
    "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
  5599
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5600
    ^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5601
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5602
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5603
functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5604
    "return the collection of function-key macros.
19953
af1909f1dbec #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19952
diff changeset
  5605
     That's a dictionary, which assigns code to F-keys"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5606
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5607
    ^ self at:#functionKeySequences ifAbsentPut:[Dictionary new]
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5608
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5609
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5610
     UserPreferences current functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5611
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5612
19953
af1909f1dbec #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19952
diff changeset
  5613
    "Modified: / 11-09-1998 / 00:09:59 / cg"
af1909f1dbec #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19952
diff changeset
  5614
    "Modified (comment): / 06-06-2016 / 10:43:30 / cg"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5615
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5616
14160
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5617
hideSupportCodeInDebugger
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5618
    ^ self at:#hideSupportCodeInDebugger ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5619
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5620
    "
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5621
     UserPreferences current hideSupportCodeInDebugger
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5622
    "
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5623
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5624
    "Created: / 10-06-2012 / 21:24:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5625
!
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5626
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5627
hideSupportCodeInDebugger:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5628
    ^ self at:#hideSupportCodeInDebugger put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5629
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5630
    "Created: / 10-06-2012 / 21:24:18 / cg"
14159
Claus Gittinger <cg@exept.de>
parents: 14140
diff changeset
  5631
!
Claus Gittinger <cg@exept.de>
parents: 14140
diff changeset
  5632
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5633
infoVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5634
    "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
  5635
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5636
    ^ self at:#infoVisibleInWorkspace ifAbsent:false
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5637
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5638
    "Created: / 14-07-2007 / 16:43:37 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5639
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5640
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5641
infoVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5642
    "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
  5643
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5644
    ^ self at:#infoVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5645
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5646
    "Created: / 14-07-2007 / 16:43:44 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5647
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5648
16377
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5649
sendMessagesAlsoToTranscript
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5650
    "return the flag which controls if info/error messages are to be shown
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5651
     on both Stderr AND the Transcript, or only on Stderr"
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5652
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5653
    ^ self at:#sendMessagesAlsoToTranscript ifAbsent:true
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5654
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5655
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5656
     UserPreferences current sendMessagesAlsoToTranscript
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5657
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5658
!
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5659
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5660
sendMessagesAlsoToTranscript:aBooleanOrNil
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5661
    "set/clear the flag which controls if info/error messages are to be shown
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5662
     on both Stderr AND the Transcript, or only on Stderr"
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5663
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5664
    ^ self at:#sendMessagesAlsoToTranscript put:aBooleanOrNil
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5665
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5666
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5667
     UserPreferences current sendMessagesAlsoToTranscript:false.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5668
     'hello' infoPrintCR.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5669
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5670
     UserPreferences current sendMessagesAlsoToTranscript:true.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5671
     'hello' infoPrintCR.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5672
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5673
!
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5674
19783
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5675
sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5676
    "return the flag which controls if info/error messages are to be shown
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5677
     on Stderr (if true is returned, they are only shown on the Transcript)"
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5678
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5679
    ^ self at:#sendMessagesOnlyToTranscript ifAbsent:false
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5680
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5681
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5682
     UserPreferences current sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5683
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5684
!
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5685
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5686
sendMessagesOnlyToTranscript:aBoolean
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5687
    "set the flag which controls if info/error messages are to be shown
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5688
     on Stderr (if true is returned, they are only shown on the Transcript)"
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5689
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5690
    self at:#sendMessagesOnlyToTranscript put:aBoolean
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5691
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5692
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5693
     UserPreferences current sendMessagesOnlyToTranscript:true.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5694
     'hello' errorPrintCR.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5695
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5696
     UserPreferences current sendMessagesOnlyToTranscript:false.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5697
     'hello' errorPrintCR.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5698
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5699
     UserPreferences current sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5700
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5701
!
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5702
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5703
showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5704
    "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
  5705
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  5706
    ^ self at:#showClockInLauncher ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5707
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5708
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5709
     UserPreferences current showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5710
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5711
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5712
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5713
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5714
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5715
showClockInLauncher:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5716
    "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
  5717
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5718
    ^ self at:#showClockInLauncher put:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5719
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5720
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5721
     UserPreferences current showClockInLauncher:false.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5722
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5723
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5724
     UserPreferences current showClockInLauncher:true.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5725
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5726
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5727
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5728
    "Modified: / 11.9.1998 / 00:09:59 / cg"
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5729
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5730
14140
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5731
showTypeIndicatorInInspector
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5732
    ^ self at:#showTypeIndicatorInInspector ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5733
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5734
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5735
     UserPreferences current showTypeIndicatorInInspector
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5736
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5737
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5738
    "Created: / 16-05-2012 / 19:09:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5739
!
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5740
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5741
showTypeIndicatorInInspector:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5742
    ^ self at:#showTypeIndicatorInInspector put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5743
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5744
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5745
     UserPreferences current showTypeIndicatorInInspector:false.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5746
     NewLauncher inspect.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5747
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5748
     UserPreferences current showTypeIndicatorInInspector:true.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5749
     NewLauncher inspect.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5750
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5751
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5752
    "Created: / 16-05-2012 / 19:10:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5753
!
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5754
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5755
terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5756
    "if true, a shell or unix command accepts utf8 encoded input and character input
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5757
     should be encoded as such by the terminal emulator."
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5758
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5759
    ^ self
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5760
        at:#terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5761
        ifAbsent:[ OperatingSystem isOSXlike
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5762
                   "/ or ???
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5763
                 ]
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5764
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5765
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5766
     UserPreferences current terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5767
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5768
!
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5769
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5770
terminalInputIsUTF8:aBoolean
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5771
    "if true, a shell or unix command accepts utf8 encoded input and character input
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5772
     should be encoded as such by the terminal emulator.
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5773
     This specifies a default setting for terminal views; individual instances can be
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5774
     changed be calling a corresponding setup method on it."
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5775
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5776
    ^ self
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5777
        at:#terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5778
        put:aBoolean
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5779
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5780
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5781
     UserPreferences current terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5782
     UserPreferences current terminalInputIsUTF8:true
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5783
     UserPreferences current terminalInputIsUTF8:false
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5784
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5785
!
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5786
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5787
terminalOutputIsUTF8
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5788
    "if true, the shell's output is utf8 encoded and should be decoded by
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5789
     the terminal emulator."
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5790
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5791
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5792
	at:#terminalOutputIsUTF8
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5793
	ifAbsent:[ OperatingSystem isOSXlike
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5794
		   "/ or ???
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5795
		 ]
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5796
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5797
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5798
     UserPreferences current terminalOutputIsUTF8
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5799
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5800
!
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5801
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5802
terminalOutputIsUTF8:aBoolean
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5803
    "if true, the shell's output is utf8 encoded and should be decoded by
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5804
     the terminal emulator.
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5805
     This specifies a default setting for terminal views; individual instances can be
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5806
     changed be calling a corresponding setup method on it."
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5807
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5808
    ^ self
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5809
        at:#terminalOutputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5810
        put:aBoolean
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5811
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5812
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5813
     UserPreferences current terminalOutputIsUTF8
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5814
     UserPreferences current terminalOutputIsUTF8:true
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5815
     UserPreferences current terminalOutputIsUTF8:false
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5816
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5817
!
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5818
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5819
toolbarVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5820
    "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
  5821
10665
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5822
    ^ self at:#toolbarVisibleInWorkspace ifAbsent:true
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5823
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5824
    "Modified: / 18-07-2007 / 08:55:44 / cg"
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5825
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5826
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5827
toolbarVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5828
    "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
  5829
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5830
    ^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5831
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5832
    "Created: / 14-07-2007 / 16:42:09 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5833
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5834
19700
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5835
useJavaCompletionEngineSimple
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5836
    "/ switch to false, when the JavaCompletionEngine is
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5837
    "/ finished.
20243
44d5a7ba8756 #DOCUMENTATION by mawalch
mawalch
parents: 20119
diff changeset
  5838
19700
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5839
    ^ true
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5840
!
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5841
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5842
useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5843
    ^ self at:#useNewLayoutInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5844
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5845
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5846
     UserPreferences current useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5847
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5848
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5849
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5850
useNewLayoutInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5851
    ^ self at:#useNewLayoutInDebugger put:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5852
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5853
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5854
useRefactoringSupport
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5855
    "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
  5856
     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
  5857
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5858
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  5859
    ^ self at:#useRefactoringSupport ifAbsent:true
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5860
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5861
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5862
useRefactoringSupport:aBooleanOrNil
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5863
    "enable/disable use of refactoring package in browser.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5864
     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
  5865
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5866
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5867
    ^ self at:#useRefactoringSupport put:aBooleanOrNil
7625
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5868
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5869
    "
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5870
     UserPreferences current useRefactoringSupport:false
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5871
     UserPreferences current useRefactoringSupport:true
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5872
    "
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5873
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5874
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5875
verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5876
    ^ self at:#verboseBacktraceInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5877
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5878
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5879
     UserPreferences current verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5880
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5881
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5882
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5883
verboseBacktraceInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5884
    ^ self at:#verboseBacktraceInDebugger put:aBoolean
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5885
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5886
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5887
!UserPreferences methodsFor:'accessing-prefs-tools-building'!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5888
15917
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5889
autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5890
    ^ self at:#autoUnloadAutoloadedClassesInProjectDefinition ifAbsent:false
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5891
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5892
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5893
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5894
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5895
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5896
    "Created: / 28-01-2014 / 21:42:59 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5897
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5898
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5899
autoUnloadAutoloadedClassesInProjectDefinition:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5900
    ^ self at:#autoUnloadAutoloadedClassesInProjectDefinition put:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5901
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5902
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5903
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5904
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition:false
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5905
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5906
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5907
    "Created: / 28-01-2014 / 21:43:18 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5908
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5909
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5910
buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5911
    ^ self at:#buildDirectory ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5912
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5913
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5914
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5915
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5916
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5917
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5918
buildDirectory:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5919
    ^ self at:#buildDirectory put:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5920
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5921
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5922
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5923
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5924
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5925
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5926
localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5927
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5928
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5929
    ^ self at:#localBuild ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5930
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5931
    "Created: / 20-09-2006 / 23:55:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5932
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5933
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5934
localBuild:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5935
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5936
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5937
    ^ self at:#localBuild put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5938
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5939
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5940
     UserPreferences current localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5941
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5942
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5943
    "Created: / 20-09-2006 / 23:55:26 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5944
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5945
15917
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5946
suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5947
    ^ self at:#suppressProjectDefinitionWarnings ifAbsent:true
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5948
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5949
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5950
     UserPreferences current suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5951
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5952
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5953
    "Created: / 28-01-2014 / 21:41:01 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5954
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5955
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5956
suppressProjectDefinitionWarnings:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5957
    ^ self at:#suppressProjectDefinitionWarnings put:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5958
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5959
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5960
     UserPreferences current suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5961
     UserPreferences current suppressProjectDefinitionWarnings:true
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5962
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5963
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5964
    "Created: / 28-01-2014 / 21:41:12 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5965
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5966
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5967
usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5968
    ^ self at:#usedCompilerForBuild ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5969
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5970
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5971
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5972
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5973
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5974
    "Created: / 22-01-2012 / 10:52:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5975
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5976
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5977
usedCompilerForBuild:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5978
    ^ self at:#usedCompilerForBuild put:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5979
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5980
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5981
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5982
     UserPreferences current usedCompilerForBuild:'bcc'
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5983
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5984
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5985
    "Created: / 22-01-2012 / 10:52:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5986
! !
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5987
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
  5988
!UserPreferences methodsFor:'accessing-scm'!
13596
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5989
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5990
showBadRevisionStringDialogs
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5991
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5992
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5993
    ^ self at: #'showBadRevisionStringDialogs' ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5994
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5995
    "Created: / 19-08-2011 / 12:51:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5996
!
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5997
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5998
showBadRevisionStringDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5999
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6000
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6001
    ^ self at: #'showBadRevisionStringDialogs' put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6002
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6003
    "Created: / 19-08-2011 / 12:51:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6004
! !
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  6005
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  6006
13943
26472baf6c58 category of:20 methods
Claus Gittinger <cg@exept.de>
parents: 13942
diff changeset
  6007
!UserPreferences methodsFor:'default settings-syntax colors'!
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6008
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6009
listOfPredefinedSyntaxColoringSchemes
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6010
    "return a list of pre-defined syntax highlightning styles
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6011
     (as shown in the Launchers 'source and debugger settings' dialog."
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6012
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6013
    ^ #(
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6014
	    (#resetSyntaxColors                                         'default [ST/X style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6015
	    (#resetSyntaxColorsWithSideEffectHighlighting               'default with side effect highlighting [new ST/X style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6016
	    (#resetSyntaxColorsToVCStyle                                'green comments; blue controlFlow, red constants [VISUAL-C style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6017
	    (#resetSyntaxColorsBlueControlFlowSelectors                 'blue controlFlow')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6018
	    (#resetSyntaxColorsGreenComments                            'green comments')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6019
	    (#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors    'green comments; blue controlFlow')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6020
	    (#resetSyntaxColorsBlueSelectorsGreenComments               'blue selectors; green comments [DOLPHIN style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6021
	    (#resetSyntaxColorsBlueSelectorsGreyComments                'blue selectors; grey comments')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6022
	    (#resetSyntaxColorsToSqueakStyle1                           'blue selectors; green comments [SQUEAK style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6023
	    (#resetSyntaxColorsToSqueakStyle2                           'blue selectors; green comments; brown self [new SQUEAK style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6024
	    (#resetSyntaxColorsAllBlackExceptBadIDs                     'no colors, but highlight errors')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6025
	    (#resetSyntaxColorsToVAgeStyle                              'blue globals; green comments [V''Age style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6026
	    (#resetSyntaxColorsToVW7Style                               'light blue comments [VW7 style]')
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6027
      )
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6028
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6029
    "Modified: / 17-03-2012 / 10:40:18 / cg"
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6030
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6031
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6032
resetSyntaxColors
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6033
    "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
  6034
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6035
    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
  6036
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6037
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6038
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6039
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6040
resetSyntaxColorsAllBlackExceptBadIDs
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6041
    "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
  6042
     except for bad identifiers, which are underwaved."
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6043
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6044
    self resetSyntaxColors.
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6045
    self at:#badIdentifierEmphasis  put:(Array with:#underwave with:(#underlineColor->Color red)).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6046
    self at:#errorColor             put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6047
    self at:#commentColor           put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6048
    self at:#constantColor          put:Color black.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6049
    self at:#methodSelectorEmphasis put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6050
    self at:#selectorEmphasis       put:#normal.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6051
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6052
    "Modified: / 16-03-2012 / 10:35:02 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6053
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6054
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6055
resetSyntaxColorsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6056
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6057
     (with blue control flow selectors)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6058
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6059
    self resetSyntaxColors.
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6060
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6061
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6062
    "Created: / 08-09-2006 / 16:11:52 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6063
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6064
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6065
resetSyntaxColorsBlueSelectorsGreenComments
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6066
    "resets the colors in the CurrentPreferences to alternative default values
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6067
     (with blue selectors and green comments)"
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6068
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6069
    self resetSyntaxColors.
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6070
    self at:#commentColor           put:(Color green darkened).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6071
    self at:#commentEmphasis        put:#italic.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6072
    self at:#selectorColor          put:(Color blue).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6073
    self at:#selectorEmphasis       put:#normal.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  6074
    self at:#methodSelectorColor    put:(Color blue).
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6075
    self at:#methodSelectorEmphasis put:#bold.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6076
21845
ea439df44c7f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21781
diff changeset
  6077
    "Modified: / 20-06-2017 / 08:35:49 / cg"
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6078
!
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6079
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6080
resetSyntaxColorsBlueSelectorsGreyComments
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6081
    "resets the colors in the CurrentPreferences to alternative default values
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6082
     (with blue selectors and grey comments)"
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6083
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6084
    self resetSyntaxColorsBlueSelectorsGreenComments.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  6085
    self at:#commentColor    put:(Color gray).
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6086
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  6087
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6088
resetSyntaxColorsGreenComments
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6089
    "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
  6090
     (with green comments)"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6091
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6092
    self resetSyntaxColors.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6093
    self at:#commentColor put:(Color green darkened).
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6094
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6095
    "Modified: / 16-03-2012 / 10:34:50 / cg"
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6096
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6097
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6098
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6099
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6100
     (with green comments, blue control flow)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6101
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6102
    self resetSyntaxColors.
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6103
    self at:#commentColor put:(Color green darkened).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6104
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6105
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6106
    "Created: / 08-09-2006 / 16:10:38 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6107
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  6108
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6109
resetSyntaxColorsToSqueakStyle
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6110
    "resets the colors in the CurrentPreferences to alternative default values"
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6111
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6112
    self resetSyntaxColorsToSqueakStyle2
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6113
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6114
    "Modified (comment): / 17-03-2012 / 10:38:07 / cg"
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6115
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6116
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6117
resetSyntaxColorsToSqueakStyle1
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6118
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6119
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6120
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6121
    self resetSyntaxColors.
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6122
    self at:#commentColor             put:(Color green darkened).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6123
    self at:#commentEmphasis          put:#italic.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6124
    self at:#selectorColor            put:(Color blue:80).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6125
    self at:#selectorEmphasis         put:#normal.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6126
    self at:#methodSelectorColor      put:(Color black).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6127
    self at:#methodSelectorEmphasis   put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6128
    self at:#globalIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6129
    self at:#localIdentifierColor     put:(Color grey:40).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6130
    self at:#instVarIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  6131
    self at:#constantColor            put:(Color red:67).
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6132
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6133
    "Modified: / 16-03-2012 / 10:34:40 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6134
    "Modified (comment): / 17-03-2012 / 10:38:47 / cg"
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6135
!
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6136
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6137
resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6138
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6139
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6140
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6141
    self resetSyntaxColors.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6142
    self at:#commentColor             put:(Color green darkened).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6143
    self at:#commentEmphasis          put:#italic.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6144
    self at:#selectorColor            put:(Color blue:80).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6145
    self at:#selectorEmphasis         put:#normal.
12391
35ee0cb7fd56 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12348
diff changeset
  6146
    self at:#controlFlowSelectorEmphasis put:#bold.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6147
    self at:#methodSelectorColor      put:(Color black).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6148
    self at:#methodSelectorEmphasis   put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6149
    self at:#globalIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6150
    self at:#localIdentifierColor     put:(Color grey:40).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6151
    self at:#instVarIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6152
    self at:#constantColor            put:(Color red:67).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6153
    self at:#selfColor                put:(Color red:50 ).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6154
    self at:#selfEmphasis             put:#bold.
12282
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  6155
    self at:#localIdentifierColor     put:(Color grey:50 ).
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  6156
    self at:#localIdentifierEmphasis  put:#normal.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6157
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6158
    "Modified: / 16-03-2012 / 10:34:35 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6159
    "Modified (comment): / 17-03-2012 / 10:38:57 / cg"
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6160
!
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6161
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6162
resetSyntaxColorsToVAgeStyle
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6163
    "resets the colors in the CurrentPreferences to alternative default values
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6164
     (green comments, blue globals)"
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6165
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6166
    self resetSyntaxColors.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6167
    self at:#identifierColor          put:(Color rgbValue:16r00007F).
14064
c80388807776 changed: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14063
diff changeset
  6168
    self at:#argumentColor            put:(Color rgbValue:16r00007F).
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6169
    self at:#identifierEmphasis       put:#normal.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6170
    self at:#commentColor             put:(Color rgbValue:16r007F00).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6171
    self at:#selfColor                put:(Color rgbValue:16r7F007F).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6172
    self at:#constantColor            put:(Color rgbValue:16r7F0000).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6173
    self at:#selectorColor            put:(Color black).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6174
    self at:#selectorEmphasis         put:#bold.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6175
    self at:#globalIdentifierColor    put:(Color blue).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6176
    self at:#methodSelectorColor      put:(Color black).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6177
    self at:#methodSelectorEmphasis   put:#bold.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6178
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6179
    "Created: / 17-03-2012 / 10:37:42 / cg"
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6180
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  6181
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6182
resetSyntaxColorsToVCStyle
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6183
    "resets the colors in the CurrentPreferences to visual C default style
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6184
     (green comments, blue keywords, redish string constants)"
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6185
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6186
    self resetSyntaxColors.
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6187
    self at:#controlFlowSelectorColor put:(Color blue).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6188
    self at:#commentColor             put:(Color green darkened).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6189
    self at:#constantColor            put:(Color red:64 green:8 blue:8).
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6190
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6191
    "Modified: / 16-03-2012 / 10:34:30 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6192
    "Modified (comment): / 17-03-2012 / 10:39:11 / cg"
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6193
!
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  6194
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6195
resetSyntaxColorsToVW7Style
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6196
    "resets the colors in the CurrentPreferences to alternative default values
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6197
     (with light blue comments, green variables)"
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6198
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6199
    self resetSyntaxColors.
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6200
    self at:#commentColor             put:(Color blue lightened).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6201
    self at:#selectorColor            put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6202
    self at:#selectorEmphasis         put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6203
    self at:#methodSelectorColor      put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6204
    self at:#methodSelectorEmphasis   put:#bold.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6205
    self at:#identifierEmphasis       put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  6206
    self at:#identifierColor          put:(Color green darkened).
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6207
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6208
    "Modified: / 16-03-2012 / 10:34:26 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6209
    "Modified (comment): / 17-03-2012 / 10:39:18 / cg"
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6210
!
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6211
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6212
resetSyntaxColorsWithSideEffectHighlighting
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6213
    "resets the colors in the CurrentPreferences to their default values
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  6214
     plus side effect highlighting (assignments to instvars and globals are marked)"
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6215
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  6216
    self resetSyntaxColors.
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6217
    self at:#sideEffectAssignmentBackgroundColor put:(Color rgbValue:16rFFDBDB).
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6218
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  6219
    "Created: / 13-02-2012 / 12:12:56 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6220
! !
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  6221
7266
f2b64d3b43cf method category rename
Claus Gittinger <cg@exept.de>
parents: 7246
diff changeset
  6222
!UserPreferences methodsFor:'default values'!
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6223
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6224
defaultValue
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6225
    "the defaultValue for non-existing keys"
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6226
16652
ddeba03a6b51 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16651
diff changeset
  6227
    ^ nil
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6228
!
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6229
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6230
errorKeyNotFound:aKey
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6231
    "for any non-existing key, false is returned"
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6232
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  6233
    ^ self defaultValue
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6234
! !
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  6235
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6236
!UserPreferences methodsFor:'misc'!
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6237
20872
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6238
doesNotUnderstand:aMessage
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6239
    |k def numArgs|
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6240
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6241
    k := aMessage selector.
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6242
    (numArgs := aMessage numArgs) == 0 ifTrue:[
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6243
        (self includesKey:k) ifTrue:[
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6244
            ^ self at:k
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6245
        ].
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6246
        ((def := self class default) includesKey:k) ifTrue:[
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6247
            ^ def at:k
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6248
        ].
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6249
        ^ self defaultValue
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6250
    ].
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6251
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6252
    "/ this is needed, if a setting is loaded (via the settings.stx) at a time
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6253
    "/ when the corresponding package which uses that setting is not yet loaded;
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6254
    "/ for example: libsvn settings, with no libsvn being present.
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6255
    "/ if obsolete keys accumulate over time, we might need a settings cleanup GUI to
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6256
    "/ care for that.
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6257
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6258
    (numArgs == 1 and:[k endsWith:$:]) ifTrue:[
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6259
        k := k copyButLast asSymbol.
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6260
        ^ self at:k put:(aMessage arg1)
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6261
    ].
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6262
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6263
    numArgs == 1 ifTrue:[
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6264
        Logger info:'obsolete settings key ignored: %1' with:aMessage selector.
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6265
        ^ nil
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6266
    ].
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6267
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6268
    ^ super doesNotUnderstand:aMessage
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6269
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6270
    "Modified (comment): / 19-08-2011 / 14:01:56 / cg"
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6271
!
7e6390bf67a5 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 20865
diff changeset
  6272
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6273
flyByHelpSettingChanged
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6274
    FlyByHelp notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6275
	(self at:#flyByHelpActive ifAbsent:true) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6276
	    FlyByHelp start.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6277
	] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6278
	    FlyByHelp stop.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  6279
	].
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6280
    ].
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6281
! !
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  6282
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6283
!UserPreferences methodsFor:'obsolete'!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6284
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6285
useNewSettinsApplication
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  6286
    <resource: #obsolete>
8545
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  6287
    "obsolete - will be removed in next release.
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  6288
     (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
  6289
      saved user preference files)"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6290
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  6291
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  6292
    ^ self useNewSettingsApplication
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6293
!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6294
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6295
useNewSettinsApplication:aBoolean
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  6296
    <resource: #obsolete>
7030
52b794e6abee *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7029
diff changeset
  6297
    "obsolete - will be removed in next release"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6298
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  6299
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  6300
    self useNewSettingsApplication:aBoolean.
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6301
! !
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  6302
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6303
!UserPreferences methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6304
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6305
saveIn:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6306
    self class saveSettings:self in:fileName
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  6307
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  6308
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  6309
     UserPreferences current saveIn:'test.settings'
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  6310
    "
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6311
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  6312
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6313
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6314
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  6315
version
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  6316
    ^ '$Header$'
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  6317
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  6318
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  6319
version_CVS
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  6320
    ^ '$Header$'
12096
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  6321
!
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  6322
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  6323
version_SVN
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  6324
    ^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1  $'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6325
! !
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
  6326