UserPreferences.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 17 May 2016 10:05:14 +0100
branchjv
changeset 19863 513bd7237fe7
parent 19812 0866264d6eed
parent 19852 9c6ec9384612
child 19945 9c7cd0ca7991
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1998 by eXept Software AG
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
     3
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
5516
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    12
"{ Package: 'stx:libbasic' }"
00c8b663a92e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5258
diff changeset
    13
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
    14
"{ NameSpace: Smalltalk }"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
    15
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
IdentityDictionary subclass:#UserPreferences
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
    17
	instanceVariableNames:'modified'
9742
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    18
	classVariableNames:'CurrentPreferences DefaultPreferences'
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    19
	poolDictionaries:''
58f5e1d235a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9492
diff changeset
    20
	category:'System-Support'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 1998 by eXept Software AG
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
    28
	      All Rights Reserved
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
documentation
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
"
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    42
    A Dictionary for user preference values.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    43
    For non-existing keys, either a defaultValue (false),
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    44
    or the value from a defaultDictionary is returned.
3353
0f0288822acd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
    45
3359
a474d509302f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3358
diff changeset
    46
    This will eventually keep track of ALL user preferences.
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    47
    For now, not all preferences are found here -
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
    48
    (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
    49
    - but this will change over time.
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
    50
10887
dc01356c015a comments
Claus Gittinger <cg@exept.de>
parents: 10880
diff changeset
    51
    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
    52
18690
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    53
    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
    54
    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
    55
    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
    56
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    57
    Usage:
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    58
        UserPreferences current at:#foo
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    59
    or
f0a013daec58 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18689
diff changeset
    60
        UserPreferences current at:#foo put:something
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
"
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    64
!UserPreferences class methodsFor:'initialization'!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    65
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
    66
initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    67
    DefaultPreferences := self new.
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    68
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:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
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
    ].
9b59aa4f7bd4 dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents: 10177
diff changeset
    72
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
    73
    #(
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    74
	#useNewChangesBrowser           false
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    75
	#useNewInspector                false
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    76
	#showClockInLauncher            true
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    77
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    78
	#autoFormatting                 false
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    79
	#syntaxColoring                 true
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    80
	#fullSelectorCheck              false
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    81
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    82
	#defaultSyntaxColor             (Color black)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    83
	#defaultSyntaxEmphasis          normal
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    84
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    85
	#errorColor                     (Color red)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    86
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    87
	"/ #commentColor                   (Color 12.5 12.5 100)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    88
	#commentColor                   (Color 0 50 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    89
	#commentEmphasis                normal
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    90
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    91
	#methodSelectorEmphasis         bold
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    92
	#selectorEmphasis               bold
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    93
	#unimplementedSelectorColor     (Color red)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    94
	#unimplementedSelectorEmphasis  normal
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    95
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    96
	"/ I prefer red-underwave over red identifier ...
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    97
	"/      #badIdentifierColor                 (Color red)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    98
	#instVarIdentifierColor         (Color 33 0 33)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
    99
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   100
	"/ I prefer redish background
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   101
	"/      #sideEffectAssignmentColor          (Color 75 0 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   102
	"/ #sideEffectAssignmentBackgroundColor    (Color 100 86 86)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   103
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   104
	#jsKeywordEmphasis              bold
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   105
	"/ #jsKeywordColor                 (Color black)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   106
	#jsKeywordColor                 (Color 33 33 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   107
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   108
	#controlFlowSelectorColor       (Color 0 0 100)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   109
	#debugSelectorColor             (Color 80 0 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   110
	#errorRaisingSelectorColor      (Color 80 0 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   111
	"/ #constantColor                  (Color 25 0 0)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   112
	#constantColor                  (Color 64 8 8)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   113
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   114
	#globalIdentifierColor          (Color 67 0 67)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   115
	#unknownIdentifierColor         (Color 67 0 67)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   116
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   117
	#returnColor                    (Color 0 0 100)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   118
	#returnEmphasis                 bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   119
     ) pairWiseDo:[:k :v |
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   120
	DefaultPreferences at:k put:(v decodeAsLiteralArray).
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   121
    ].
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   122
9913
b798d50affb3 focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents: 9834
diff changeset
   123
    "/ I prefer red-underwave over red identifier ...
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   124
    DefaultPreferences at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)).
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   125
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   126
    "
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   127
     self initializeDefaultPreferences
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   128
    "
4335
b301d2c92490 underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents: 4331
diff changeset
   129
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
   130
    "Modified: / 16-03-2012 / 10:35:42 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   131
! !
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
   132
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!UserPreferences class methodsFor:'accessing'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
current
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    CurrentPreferences isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   137
	CurrentPreferences := self new.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   138
	CurrentPreferences flyByHelpSettingChanged.
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
    ].
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
    ^ CurrentPreferences.
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   142
    "
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   143
     CurrentPreferences := nil
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
   144
    "
17414
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   145
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   146
    "Modified: / 05-02-2015 / 07:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   147
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   148
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   149
default
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   150
    DefaultPreferences isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   151
	self initializeDefaultPreferences
4580
654e30c513ec init defaults lazy
Claus Gittinger <cg@exept.de>
parents: 4396
diff changeset
   152
    ].
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   153
    ^ DefaultPreferences.
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   154
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   155
    "
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   156
     DefaultPreferences := nil.
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
   157
    "
4318
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   158
!
39f9a91bc44e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4317
diff changeset
   159
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   160
reset
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   161
    "resets the CurrentPreferences to its default values"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   162
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   163
    CurrentPreferences := nil
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   164
!
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   165
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   166
syntaxColorKeys
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   167
    "returns the keys of syntax color items"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   168
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   169
    ^ self syntaxColorNamesAndKeys collectAll:[:each | each from:2]
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   170
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   171
    "
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   172
     self syntaxColorKeys
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   173
    "
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   174
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   175
"/    ^#(
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   176
"/        argumentIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   177
"/          argumentIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   178
"/        booleanConstantColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   179
"/          booleanConstantEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   180
"/        bracketColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   181
"/          bracketEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   182
"/        classVariableIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   183
"/          classVariableIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   184
"/        constantColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   185
"/          constantEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   186
"/        controlFlowSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   187
"/          controlFlowSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   188
"/        commentColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   189
"/          commentEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   190
"/        defaultSyntaxColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   191
"/          defaultSyntaxEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   192
"/        errorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   193
"/        globalIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   194
"/          globalIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   195
"/        globalClassIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   196
"/          globalClassIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   197
"/        hereColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   198
"/          hereEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   199
"/        identifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   200
"/          identifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   201
"/        instVarIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   202
"/          instVarIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   203
"/        localIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   204
"/          localIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   205
"/        methodSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   206
"/          methodSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   207
"/        poolVariableIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   208
"/          poolVariableIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   209
"/        returnColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   210
"/          returnEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   211
"/        selectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   212
"/          selectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   213
"/        selfColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   214
"/          selfEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   215
"/        stringColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   216
"/          stringEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   217
"/        superColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   218
"/          superEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   219
"/        symbolColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   220
"/          symbolEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   221
"/        thisContextColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   222
"/          thisContextEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   223
"/        unknownIdentifierColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   224
"/          unknownIdentifierEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   225
"/        unimplementedSelectorColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   226
"/          unimplementedSelectorEmphasis
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   227
"/        sideEffectAssignmentBackgroundColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   228
"/          sideEffectAssignmentColor
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   229
"/        colorForInstrumentedFullyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   230
"/            emphasisForInstrumentedFullyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   231
"/        colorForInstrumentedPartiallyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   232
"/            emphasisForInstrumentedPartiallyCoveredCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   233
"/        colorForInstrumentedNeverCalledCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   234
"/            emphasisForInstrumentedNeverCalledCode
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   235
"/    )
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   236
14007
1ee2f49e87df changed: #syntaxColorKeys
Claus Gittinger <cg@exept.de>
parents: 14006
diff changeset
   237
    "Modified: / 14-02-2012 / 10:17:46 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   238
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   239
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
   240
syntaxColorNames
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   241
    "returns the syntax colors for the settings in the launcher"
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   242
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   243
    ^ self syntaxColorNamesAndKeys collect:#first.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   244
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   245
"/"/ warning, the strings below are presented to the user
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   246
"/"/ as the syntax-color boxes comboList - however, they are
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   247
"/"/ also used (without separators) as key into myself.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   248
"/"/ Therefore, do not change the strings below.
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   249
"/"/ I know - this is bad coding ....
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
"/'Argument Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   253
"/'Boolean Constant Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   254
"/'Bracket Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   255
"/'Class Variable Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   256
"/'Collection Enumeration Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   257
"/'Constant Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   258
"/'Control Flow Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   259
"/'Comment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   260
"/'Debug Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   261
"/'Error Raising Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   262
"/'Global Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   263
"/'Global Class Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   264
"/'Here Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   265
"/'Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   266
"/'InstVar Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   267
"/'Local Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   268
"/'Method Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   269
"/'Pool Variable Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   270
"/'Return Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   271
"/'Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   272
"/'Self Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   273
"/'Side Effect Assignment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   274
"/'Side Effect Assignment Background Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   275
"/'String Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   276
"/'Super Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   277
"/'Symbol Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   278
"/'This Context Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   279
"/'Unknown Identifier Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   280
"/'Unimplemented Selector Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   281
"/'Side Effect Assignment Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   282
"/'Coverage: Reached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   283
"/'Coverage: Partially Reached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   284
"/'Coverage: Unreached Color'
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   285
"/)
3364
626f42817289 small interface for the settings in the launcher
tz
parents: 3362
diff changeset
   286
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
   287
    "Modified: / 14-02-2012 / 15:51:38 / cg"
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   288
!
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   289
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   290
syntaxColorNamesAndKeys
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   291
    "returns the names and keys of syntax color items"
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   292
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   293
    ^#(
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   294
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   295
	  'Argument Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   296
	  argumentIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   297
	  argumentIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   298
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   299
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   300
	  'Boolean Constant Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   301
	  booleanConstantColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   302
	  booleanConstantEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   303
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   304
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   305
	  'Bracket Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   306
	  bracketColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   307
	  bracketEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   308
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   309
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   310
	  'Class Variable Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   311
	  classVariableIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   312
	  classVariableIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   313
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   314
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   315
	  'Constant Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   316
	  constantColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   317
	  constantEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   318
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   319
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   320
	  'Control Flow Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   321
	  controlFlowSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   322
	  controlFlowSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   323
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   324
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   325
	  'Comment Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   326
	  commentColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   327
	  commentEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   328
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   329
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   330
	  'Collection Enumeration Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   331
	  collectionEnumerationSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   332
	  collectionEnumerationSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   333
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   334
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   335
	  'Debug Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   336
	  debugSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   337
	  debugSelectorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   338
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   339
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   340
	  'Default Syntax Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   341
	  defaultSyntaxColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   342
	  defaultSyntaxEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   343
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   344
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   345
	  'Error Raising Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   346
	  errorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   347
	  errorEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   348
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   349
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   350
	  'Global Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   351
	  globalIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   352
	  globalIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   353
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   354
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   355
	  'Global Class Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   356
	  globalClassIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   357
	  globalClassIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   358
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   359
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   360
	  'Here Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   361
	  hereColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   362
	  hereEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   363
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   364
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   365
	  'Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   366
	  identifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   367
	  identifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   368
	)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   369
	(
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   370
	  'InstVar Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   371
	  instVarIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   372
	  instVarIdentifierEmphasis
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   373
	)
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
	  'Local Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   376
	  localIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   377
	  localIdentifierEmphasis
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
	  'Method Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   381
	  methodSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   382
	  methodSelectorEmphasis
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
	  'Pool Variable Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   386
	  poolVariableIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   387
	  poolVariableIdentifierEmphasis
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
	  'Return Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   391
	  returnColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   392
	  returnEmphasis
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
	  'Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   396
	  selectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   397
	  selectorEmphasis
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
	  'Self Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   401
	  selfColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   402
	  selfEmphasis
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
	  'String Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   406
	  stringColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   407
	  stringEmphasis
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
	  'Super Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   411
	  superColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   412
	  superEmphasis
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
	  'Symbol Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   416
	  symbolColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   417
	  symbolEmphasis
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
	  'This Context Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   421
	  thisContextColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   422
	  thisContextEmphasis
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
	  'Unknown Identifier Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   426
	  unknownIdentifierColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   427
	  unknownIdentifierEmphasis
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
	  'Unimplemented Selector Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   431
	  unimplementedSelectorColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   432
	  unimplementedSelectorEmphasis
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
	  'Side Effect Assignment Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   436
	  sideEffectAssignmentColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   437
	  sideEffectAssignmentColorEmphasis
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
	  'Side Effect Assignment Background Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   441
	  sideEffectAssignmentBackgroundColor
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   442
	  sideEffectAssignmentBackgroundColorEmphasis
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
	  'Coverage: Reached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   446
	  colorForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   447
	  emphasisForInstrumentedFullyCoveredCode
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
	  'Coverage: Partially Reached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   451
	  colorForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   452
	  emphasisForInstrumentedPartiallyCoveredCode
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
	  'Coverage: Unreached Color'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   456
	  colorForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   457
	  emphasisForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   458
	)
17359
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   459
    )
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   460
61d90dff9c88 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17358
diff changeset
   461
    "Modified: / 14-02-2012 / 10:17:46 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   464
!UserPreferences class methodsFor:'accessing - defaults'!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   465
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   466
defaultUserSettingsFile
16651
0954be8fb1d2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16641
diff changeset
   467
    ^ (Filename usersPrivateSmalltalkDirectory) / 'settings.stx'
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   468
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   469
    "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
   470
!
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   471
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   472
defaultWorkspaceDirectory
9685268274b6 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18826
diff changeset
   473
    ^ (Filename usersPrivateSmalltalkDirectory) / 'workspace'
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   474
! !
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
   475
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   476
!UserPreferences class methodsFor:'accessing defaultPrefs'!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   477
11006
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   478
defaultSettingsFilename
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   479
    ^ 'settings.stx'
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   480
!
fc11f0af9902 changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents: 11005
diff changeset
   481
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   482
fileBrowserClass
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   483
    "the class to be used for file browsing (used to be the simple FileBrowser, but is now the FileBrowserV2)"
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   484
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   485
    ^ self current fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   486
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   487
    "
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   488
     UserPreferences fileBrowserClass
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   489
    "
12949
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   490
1780725fdc63 comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents: 12947
diff changeset
   491
    "Modified: / 17-07-2010 / 14:50:34 / cg"
6763
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   492
!
06c247fe72a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6762
diff changeset
   493
6019
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   494
systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   495
    ^ self current systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   496
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   497
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   498
     UserPreferences systemBrowserClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   499
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   500
!
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   501
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   502
versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   503
    ^ self current versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   504
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   505
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   506
     UserPreferences versionDiffViewerClass
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   507
    "
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   508
! !
770f994a520d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5808
diff changeset
   509
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   510
!UserPreferences class methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   511
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   512
saveSettings:userPrefs in:fileNameOrString
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   513
    "save settings to a settings-file."
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   514
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   515
    "a temporary kludge for old classVariable-based settings
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   516
     - all of those MUST go into the user-preferences dictionary eventually"
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   517
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   518
    |screen fileName dir|
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   519
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   520
    fileName := fileNameOrString asFilename.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   521
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   522
    screen := Screen current.
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   523
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   524
    (dir := fileName directory) exists ifFalse:[
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   525
        dir recursiveMakeDirectory.
17417
b64ee00eabdd class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 17415
diff changeset
   526
    ].
17425
5b7e4af242a9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17417
diff changeset
   527
    fileName writingFileDo:[:s|
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   528
        s nextPutLine:'"/ ST/X saved settings';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   529
          nextPutLine:'"/ DO NOT MODIFY MANUALLY';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   530
          nextPutLine:'"/ (modifications would be lost with next save-settings)';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   531
          nextPutLine:'"/';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   532
          nextPutLine:'"/ this file was automatically generated by the';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   533
          nextPutLine:'"/ ''save settings'' function of the SettingsDialog';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   534
          nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   535
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   536
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   537
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   538
        s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   539
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   540
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   541
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   542
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   543
        s nextPutLine:'"/ Display settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   544
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   545
        s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   546
        s nextPutLine:'Display notNil ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   547
        s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   548
          screen fixColors notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   549
            s nextPutLine:'  Image flushDeviceImages.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   550
            s nextPutLine:'  Color colorAllocationFailSignal catch:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   551
            s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   552
            s nextPutLine:'  ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   553
          ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   554
            s nextPutLine:'  Display releaseFixColors.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   555
          ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   556
          s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   557
          s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   558
          s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   559
          s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   560
          s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   561
          s nextPutLine:'  View defaultStyle:' , View defaultStyle storeString , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   562
        s nextPutLine:' ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   563
        s nextPutLine:'].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   564
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   565
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   566
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   567
        s nextPutLine:'"/ Parser/Compiler settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   568
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   569
        s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   570
          nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   571
          nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   572
          nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   573
          nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   574
          nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   575
          nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   576
          nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   577
          nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   578
          nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   579
          nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   580
          nextPutLine:'ParserFlags lineNumberInfo: ' , (ParserFlags lineNumberInfo storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   581
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   582
          nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   583
          nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   584
          nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   585
          nextPutLine:'  ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   586
          nextPutLine:'  ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.';
19310
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   587
          nextPutLine:'  ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   588
          nextPutLine:'  ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.';
19493
dc84900e9561 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19472
diff changeset
   589
          nextPutLine:'  ExternalAddress pointerSize = ' , (ExternalAddress pointerSize storeString) , ' ifTrue:[';
19310
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   590
          nextPutLine:'    ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   591
          nextPutLine:'    ',(ParserFlags stcModulePath ? 'modules') storeString , ' asFilename exists ifTrue:[';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   592
          nextPutLine:'      ParserFlags stcModulePath: ' , (ParserFlags stcModulePath ? 'modules') storeString , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   593
          nextPutLine:'    ].';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   594
          nextPutLine:'    ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   595
          nextPutLine:'    ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   596
          nextPutLine:'    ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   597
          nextPutLine:'    ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   598
          nextPutLine:'    ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   599
          nextPutLine:'    ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.';
5b2ebad22f2f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19255
diff changeset
   600
          nextPutLine:'    ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.';
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   601
          nextPutLine:'  ].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   602
          nextPutLine:'].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   603
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   604
          nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   605
          nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   606
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   607
        HistoryManager notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   608
            HistoryManager isActive ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   609
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   610
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   611
            ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   612
                s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   613
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   614
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   615
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   616
        s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   617
        s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
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 cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   620
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   621
        s nextPutLine:'"/ Info & Debug Messages:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   622
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   623
        s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   624
          nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   625
          nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   626
          nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
14307
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   627
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   628
    "/    FlyByHelp isActive ifTrue:[
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   629
    "/        s nextPutLine:'FlyByHelp start.'
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   630
    "/    ].
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   631
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   632
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   633
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   634
        s nextPutLine:'"/ Edit settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   635
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   636
        "/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   637
        "/ s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   638
        s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   639
        (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   640
            s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   641
        ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   642
            s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   643
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   644
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 nextPutLine:'"/ User preference values:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   647
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   648
        userPrefs keysAndValuesDo:[:k :v |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   649
            |putSelector|
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   650
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   651
            putSelector := (k , ':') asSymbolIfInterned.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   652
            (UserPreferences includesSelector:putSelector) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   653
                s nextPutAll:'UserPreferences current ';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   654
                  nextPutAll:putSelector.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   655
            ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   656
                s nextPutAll:'UserPreferences current at:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   657
                k storeOn:s.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   658
                s nextPutAll:' put:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   659
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   660
            v storeOn:s.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   661
            s nextPut:$.; cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   662
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   663
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   664
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   665
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   666
        s nextPutLine:'"/ GC settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   667
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   668
        s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   669
          nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   670
          nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   671
          nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   672
          nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   673
          nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   674
          nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   675
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   676
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   677
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   678
        s nextPutLine:'"/ Misc settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   679
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   680
        s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   681
          nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   682
          nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   683
          nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   684
          nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   685
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   686
          "/ claus - I dont think its a good idea to save those ...
14307
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   687
    "/      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   688
    "/      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
67d0d208989d changed: #saveSettings:in:
Stefan Vogel <sv@exept.de>
parents: 14267
diff changeset
   689
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   690
          nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   691
          nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   692
          nextPutLine:'Display notNil ifTrue:[';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   693
          nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   694
          nextPutLine:'].';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   695
          nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   696
          nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   697
        (NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   698
            s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   699
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   700
        Processor isTimeSlicing ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   701
            s nextPutLine:'Processor startTimeSlicing.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   702
            s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   703
        ] ifFalse:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   704
            s nextPutLine:'Processor stopTimeSlicing.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   705
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   706
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   707
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   708
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   709
        s nextPutLine:'"/ Printer settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   710
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   711
        Printer notNil ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   712
            s nextPutLine:'Printer := ' , (Printer name) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   713
            Printer supportsPrintingToCommand ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   714
                s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   715
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   716
            Printer supportsPageSizes ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   717
                s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   718
                s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   719
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   720
            Printer supportsMargins ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   721
                s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   722
                s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   723
                s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   724
                s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   725
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   726
            Printer supportsPostscript ifTrue:[
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   727
                s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   728
            ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   729
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   730
        s cr.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   731
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   732
        s nextPutLine:'"/ Font settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   733
        s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   734
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   735
        s nextPutLine:'Display notNil ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   736
        s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   737
        {
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   738
            SimpleView . Label . CheckBox . CheckLabel . Button . Toggle .
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   739
            SelectionInListView . MenuView . MenuPanel . NoteBookView . PullDownMenu .
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   740
            TextView . EditTextView . CodeView
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   741
        } do:[:cls |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   742
            s nextPutLine:'  ',cls name,' defaultFont: ' , (cls defaultFont storeString) , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   743
        ].
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   744
        s nextPutLine:' ].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   745
        s nextPutLine:'].'.
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:'"/ SourceCodeManager settings:'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   750
        s nextPutLine:'"/ (repositories are networked nowadays, so the settings are host independent)'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   751
        s nextPutLine:'"/'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   752
        s nextPutLine:'Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   753
        s nextPutLine:'AbstractSourceCodeManager notNil ifTrue:[AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '].'.
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   754
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   755
        AbstractSourceCodeManager availableManagers do:[:eachManager |
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   756
            eachManager savePreferencesOn:s
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   757
        ].
18824
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
   758
        
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
   759
        userPrefs useSystemLanguage ifFalse:[
18825
818e7cc51e31 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18824
diff changeset
   760
            s nextPutAll:('Smalltalk language:',UserPreferences current language storeString).
18826
e5a65a9bb86f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18825
diff changeset
   761
            s nextPutLine:(' territory:',UserPreferences current languageTerritory storeString,'.').
18824
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
   762
        ].    
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
   763
        s syncData.
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   764
        userPrefs beUnmodified.
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   765
    ].
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   766
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   767
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   768
     Transcript topView application saveSettings
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   769
    "
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   770
9492
89bfc46b3b48 make command
fm
parents: 9491
diff changeset
   771
    "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
   772
    "Modified: / 26-09-2012 / 13:33:47 / cg"
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   773
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
   774
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   775
!UserPreferences methodsFor:'accessing'!
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
   776
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   777
at:key
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   778
    ^ super at:key asSymbol
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   779
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   780
    "Created: / 15-01-2012 / 14:27:29 / cg"
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   781
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   782
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   783
at:key ifAbsent:exceptionValue
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   784
    ^ super
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   785
	at:key asSymbol
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   786
	ifAbsent:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   787
	    "/ Look to DefaultPreferences first...
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   788
	    (DefaultPreferences notNil and:[self ~~ DefaultPreferences]) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   789
		DefaultPreferences at:key ifAbsent:exceptionValue
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   790
	    ] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   791
		exceptionValue value
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   792
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   793
	].
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   794
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   795
    "Created: / 15-01-2012 / 14:27:21 / cg"
17414
d2b54cba3e88 Changed preference lookup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17398
diff changeset
   796
    "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
   797
!
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   798
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   799
at:key put:value
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   800
    |classNameToCheck classToCheck|
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   801
13119
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   802
"/    key isSymbol ifFalse:[
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   803
"/        self halt.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   804
"/        self at:key asSymbol put:value.
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   805
"/        ^ self
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   806
"/    ].
82da961e9fb2 changed: #at:put:
Claus Gittinger <cg@exept.de>
parents: 13103
diff changeset
   807
6059
e2cbd67e3d07 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6019
diff changeset
   808
    value == true ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   809
	key == #useNewVersionDiffBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   810
	    classNameToCheck := #'VersionDiffBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   811
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   812
	key == #useNewChangesBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   813
	    classNameToCheck := #'NewChangesBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   814
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   815
	key == #useNewFileBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   816
	    classNameToCheck := #'FileBrowserV2'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   817
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   818
	key == #useNewSystemBrowser ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   819
	    classNameToCheck := #'Tools::NewSystemBrowser'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   820
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   821
	key == #useNewInspector ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   822
	    classNameToCheck := #'NewInspector::NewInspectorView'.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   823
	].
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   824
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   825
5791
8e96850a568d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5790
diff changeset
   826
    classNameToCheck notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   827
	classToCheck := Smalltalk at:classNameToCheck.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   828
	classToCheck isNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   829
	    ('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   830
	] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   831
	    Autoload autoloadFailedSignal handle:[:ex |
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   832
		'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   833
	    ] do:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   834
		classToCheck autoload.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   835
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   836
	]
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   837
    ].
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
   838
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   839
    ^ super at:key asSymbol put:value
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   840
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
   841
    "Modified: / 15-01-2012 / 14:26:53 / cg"
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   842
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   843
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   844
beModified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   845
    "this is not needed for settings applications, which notice any modifications
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   846
     themself. Howvever, if someone else modifies the settings (programmatically),
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   847
     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
   848
     
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   849
    modified := true
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   850
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   851
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   852
beUnmodified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   853
    "done when saved"
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   854
    
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   855
    modified := false
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   856
!
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   857
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   858
isModified
19634
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   859
    "this is set, if someone modifies the settings programmatically,
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   860
     so that the user can be warned at session end"
6b8ab3b097e4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19633
diff changeset
   861
19633
ad50603adc56 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19632
diff changeset
   862
    ^ modified ? false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   863
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
   864
19700
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
   865
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
   866
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   867
!UserPreferences methodsFor:'accessing-locale'!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   868
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   869
dateInputFormat
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   870
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   871
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   872
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   873
	at:#dateInputFormat
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   874
	ifAbsentPut:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   875
	    (self language == #en and:[ self languageTerritory ~= #en])
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   876
		ifTrue:[ '%m %d %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   877
		ifFalse:[ '%d %m %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   878
	]
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   879
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   880
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   881
dateInputFormat:aFormatString
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   882
    "return a format used when tools read a date from the user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   883
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
   884
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   885
	at:#dateInputFormat
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   886
	ifAbsentPut:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   887
	    (self language == #en and:[ self languageTerritory ~= #en])
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   888
		ifTrue:[ '%m %d %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   889
		ifFalse:[ '%d %m %y' ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   890
	]
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   891
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   892
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   893
     UserPreferences current dateInputFormat:'%d %m %y'  -- european
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   894
     UserPreferences current dateInputFormat:'%m %d %y'  -- us
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   895
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   896
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   897
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   898
decimalPointCharacter
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   899
    "toDo: migrate from ClassVar in Number;
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   900
     use this for new applications"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   901
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   902
    ^ $.
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   903
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   904
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   905
thousandsSeparatorCharacter
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   906
    "toDo: migrate from ClassVar elsewhere;
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   907
     use this for new applications"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   908
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   909
    ^ $'
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   910
! !
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
   911
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   912
!UserPreferences methodsFor:'accessing-misc'!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   913
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   914
selectorNamespacesEnabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   915
    "Return true, if selector namespaces support is enabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   916
     for this system. Note, that this method may return true
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   917
     even if selector namespaces are not supported by this system.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   918
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   919
     This is rather user setting. To ask whether the selector namespaces
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   920
     support should be used, use:
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   921
18928
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   922
        UserPreferences current selectorNamespacesSupportedAndEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   923
    "
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   924
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   925
    ^self at:#selectorNamespacesEnabled ifAbsent:false.
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   926
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   927
    "
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   928
        UserPreferences current selectorNamespacesEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   929
        UserPreferences current selectorNamespacesSupportedAndEnabled
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   930
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   931
        UserPreferences current selectorNamespacesEnabled: true.
a10897820618 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 18922
diff changeset
   932
        UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   933
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   934
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   935
    "Created: / 19-07-2012 / 15:26:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   936
!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   937
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   938
selectorNamespacesEnabled: aBoolean
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   939
    "Enables/disables selector namespaces support for this system.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   940
     Please note that even if selector namespaces are enabled here,
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   941
     they may not be supported by the system/VM.
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   942
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   943
     This is rather user setting. To ask whether the selector namespaces
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   944
     are supported use
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   945
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   946
	ConfigurableFeatures includesFeature:#SelectorNamespaces
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   947
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   948
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   949
    self at:#selectorNamespacesEnabled put: aBoolean
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   950
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   951
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   952
	UserPreferences current selectorNamespacesEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   953
	UserPreferences current selectorNamespacesSupportedAndEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   954
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   955
	UserPreferences current selectorNamespacesEnabled: true.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   956
	UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   957
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   958
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   959
    "Created: / 19-07-2012 / 15:27:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   960
!
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   961
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   962
selectorNamespacesSupportedAndEnabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   963
    "Return true, if selector namespaces are both enabled
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   964
     and supported by this system/VM, false otherwise
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   965
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   966
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   967
    ^ (ConfigurableFeatures includesFeature:#SelectorNamespaces)
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   968
	and:[self selectorNamespacesEnabled]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   969
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   970
    "
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   971
	UserPreferences current selectorNamespacesEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   972
	UserPreferences current selectorNamespacesSupportedAndEnabled
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   973
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   974
	UserPreferences current selectorNamespacesEnabled: true.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
   975
	UserPreferences current selectorNamespacesEnabled: false.
14267
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   976
    "
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   977
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   978
    "Created: / 19-07-2012 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   979
! !
Claus Gittinger <cg@exept.de>
parents: 14258
diff changeset
   980
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   981
!UserPreferences methodsFor:'accessing-misc-communication'!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
   982
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   983
dotNetBridgeRunsInIDE
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   984
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   985
     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
   986
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   987
    ^ self at:#dotNetBridgeRunsInIDE ifAbsent:false
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   988
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   989
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   990
dotNetBridgeRunsInIDE:aBoolean
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   991
    "a debugging flag: if true, the dotNetBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
   992
     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
   993
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   994
    ^ self at:#dotNetBridgeRunsInIDE put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   995
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   996
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   997
dotNetBridgeVerbose
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
   998
    ^ self at:#dotNetBridgeVerbose ifAbsent:false
11027
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
   999
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1000
    "
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1001
     UserPreferences current dotNetBridgeVerbose
b7639c2fdeb5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11024
diff changeset
  1002
    "
11023
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1003
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1004
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1005
dotNetBridgeVerbose:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1006
    ^ self at:#dotNetBridgeVerbose put:aBoolean
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1007
!
3a4668a789f9 dotNetBridge settings
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
  1008
11930
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1009
javaBridgeRunsInIDE
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1010
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1011
     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
  1012
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1013
    ^ self at:#javaBridgeRunsInIDE ifAbsent:false
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1014
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1015
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1016
javaBridgeRunsInIDE:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1017
    "a debugging flag: if true, the javaBridge is assumed to be
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1018
     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
  1019
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1020
    ^ self at:#javaBridgeRunsInIDE put:aBoolean
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1021
!
dafd3ec98be5 preps for javaBridge
Claus Gittinger <cg@exept.de>
parents: 11929
diff changeset
  1022
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1023
logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1024
    ^ self at:#logHTTPRequests ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1025
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1026
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1027
logHTTPRequests:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1028
    ^ self at:#logHTTPRequests put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1029
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1030
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1031
     UserPreferences current logHTTPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1032
     UserPreferences current logHTTPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1033
     UserPreferences current logHTTPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1034
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1035
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1036
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1037
logSOAPRequests
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
  1038
    ^ (self soapLoggingLevel ? 0) > 0
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1039
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1040
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1041
logSOAPRequests:aBoolean
12793
b01055f1932b changed:
Claus Gittinger <cg@exept.de>
parents: 12792
diff changeset
  1042
    self soapLoggingLevel:(aBoolean ifTrue:3 ifFalse:0)
12792
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1043
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1044
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1045
     UserPreferences current logSOAPRequests
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1046
     UserPreferences current logSOAPRequests:true
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1047
     UserPreferences current logSOAPRequests:false
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1048
    "
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1049
!
Claus Gittinger <cg@exept.de>
parents: 12774
diff changeset
  1050
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1051
smallteamViaXMPPEnabled
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1052
    ^ self at:#smallteamViaXMPPEnabled ifAbsent:false
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1053
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1054
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1055
smallteamViaXMPPEnabled:aBoolean
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1056
    self at:#smallteamViaXMPPEnabled put:aBoolean
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1057
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1058
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1059
smallteamXMPPPassword
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1060
    ^ self at:#smallteamXMPPPassword ifAbsent:[ '' ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1061
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1062
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1063
smallteamXMPPPassword:aPasswordString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1064
    self at:#smallteamXMPPPassword put:aPasswordString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1065
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1066
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1067
smallteamXMPPServer
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1068
    ^ self at:#smallteamXMPPServer ifAbsent:[ 'exept.de' ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1069
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1070
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1071
smallteamXMPPServer:aHostname
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1072
    self at:#smallteamXMPPServer put:aHostname
19391
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1073
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1074
    "
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1075
     UserPreferences current smallteamXMPPUser:'exept.de'.
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1076
    "
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1077
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1078
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1079
smallteamXMPPUser
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1080
    ^ self at:#smallteamXMPPUser ifAbsent:[ OperatingSystem getLoginName ]
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1081
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1082
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1083
smallteamXMPPUser:aUsernameString
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1084
    self at:#smallteamXMPPUser put:aUsernameString
19391
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1085
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1086
    "
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1087
     UserPreferences current smallteamXMPPUser:'cg'.
d183062072aa #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19386
diff changeset
  1088
    "
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1089
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  1090
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1091
smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1092
    ^ self at:#smtpServerName ifAbsent:nil
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1093
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1094
    "Created: / 20-09-2007 / 15:59:20 / cg"
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1095
!
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1096
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1097
smtpServerName:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1098
    ^ self at:#smtpServerName put:aHostnameString
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1099
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1100
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1101
     UserPreferences current smtpServerName
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1102
     UserPreferences current smtpServerName:'mailhost'
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1103
    "
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1104
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1105
    "Created: / 20-09-2007 / 15:59:58 / cg"
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1106
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1107
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1108
soapErrorDebugging
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1109
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1110
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1111
    ^ self at:#soapErrorDebugging ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1112
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1113
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1114
soapErrorDebugging:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1115
    "open a debugger on error, or report it as a soap-error"
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1116
    ^ self at:#soapErrorDebugging put:aBoolean
12774
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1117
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1118
    "
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1119
     UserPreferences current soapErrorDebugging:true
3d5e2c85faef comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents: 12619
diff changeset
  1120
    "
12563
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1121
!
Claus Gittinger <cg@exept.de>
parents: 12562
diff changeset
  1122
12562
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1123
soapLoggingLevel
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1124
    ^ self at:#soapLoggingLevel ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1125
!
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1126
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1127
soapLoggingLevel:anIntegerBetween0_and_3
Claus Gittinger <cg@exept.de>
parents: 12522
diff changeset
  1128
    ^ self at:#soapLoggingLevel put:anIntegerBetween0_and_3
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1129
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1130
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1131
socksProxyHost
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1132
    ^ self at:#socksProxyHost ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1133
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1134
    "Created: / 27-12-2011 / 14:40:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1135
!
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1136
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1137
socksProxyHost:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1138
    ^ self at:#socksProxyHost put:aString
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1139
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1140
    "Created: / 27-12-2011 / 14:42:15 / cg"
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1141
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1142
13884
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1143
socksProxyPort
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1144
    ^ self at:#socksProxyPort ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1145
Claus Gittinger <cg@exept.de>
parents: 13722
diff changeset
  1146
    "Created: / 27-12-2011 / 14:40:32 / cg"
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1147
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1148
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1149
socksProxyPort:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1150
    ^ self at:#socksProxyPort put:aNumber
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1151
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  1152
    "Created: / 27-12-2011 / 14:42:29 / cg"
10723
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1153
! !
6fb861a1e7fd smtpServer
Claus Gittinger <cg@exept.de>
parents: 10665
diff changeset
  1154
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1155
!UserPreferences methodsFor:'accessing-pref''d tools'!
5790
83f92b49caae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5784
diff changeset
  1156
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1157
changeSetBrowserClass
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1158
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1159
    | class className |
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1160
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1161
    className := self at: #changeSetBrowserClassName ifAbsent:[nil].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1162
    className notNil ifTrue:[
19576
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1163
        class := Smalltalk at: className asSymbol.
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1164
        class notNil ifTrue:[ ^ class ].
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1165
    ].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1166
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1167
    "Original code"
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1168
    ^ ChangeSetBrowser.
19576
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1169
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1170
"/    self useNewChangeSetBrowser ifTrue:[
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1171
"/        ^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1172
"/    ].
e84a1ba22872 #DOCUMENTATION by stefan
Stefan Vogel <sv@exept.de>
parents: 19575
diff changeset
  1173
"/    ^ ChangeSetBrowser ? Tools::ChangeSetBrowser2
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1174
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1175
    "
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1176
     self current changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1177
    "
13477
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1178
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1179
    "Created: / 01-07-2011 / 16:33:13 / cg"
13523
03ec11a75c9d changed: #changeSetBrowserClass
sr
parents: 13522
diff changeset
  1180
    "Modified: / 25-07-2011 / 12:21:42 / sr"
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1181
    "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
  1182
!
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1183
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1184
changeSetBrowserClass: aClass
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1185
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1186
    self at: #changeSetBrowserClassName put: aClass name.
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1187
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1188
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1189
	UserPreferences current changeSetBrowserClass
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1190
	UserPreferences current changeSetBrowserClass: Tools::ChangeSetBrowser2.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1191
	UserPreferences current changeSetBrowserClass: ChangeSetBrowser.
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1192
    "
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1193
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1194
    "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
  1195
!
2cf9f960c33e added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents: 13470
diff changeset
  1196
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1197
changesBrowserClass
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1198
    "the browser to be used for the changeFile"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1199
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1200
    | class className |
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1201
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1202
    className := self at: #changesBrowserClassName ifAbsent:[nil].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1203
    className notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1204
	class := Smalltalk at: className asSymbol.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1205
	class notNil ifTrue:[ ^ class ].
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1206
    ].
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1207
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1208
    "/ Old code
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1209
    self useNewChangesBrowser ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1210
	^ (NewChangesBrowser ? ChangesBrowser)
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1211
    ].
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1212
    ^ ChangesBrowser
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1213
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1214
    "Created: / 17-10-1998 / 14:37:46 / cg"
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1215
    "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
  1216
!
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1217
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1218
changesBrowserClass: aClass
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1219
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1220
    self at: #changesBrowserClassName put: aClass name.
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1221
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1222
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1223
	UserPreferences current changesBrowserClass
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1224
	UserPreferences current changesBrowserClass: Tools::ChangeSetBrowser2.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1225
	UserPreferences current changesBrowserClass: ChangeSetBrowser.
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1226
    "
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1227
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  1228
    "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
  1229
!
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1230
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1231
externalDiffCommandTemplate
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1232
    "the external command to use for diff"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1233
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  1234
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1235
	at:#externalDiffCommandTemplate
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1236
	ifAbsent:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1237
	    OperatingSystem isMSDOSlike ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1238
		'diff %1 %2'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1239
	    ] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1240
		'diff -b %1 %2'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1241
	    ]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1242
	]
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1243
14736
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1244
    "
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1245
     UserPreferences current externalDiffCommandTemplate
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1246
    "
6f662581a5de class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14735
diff changeset
  1247
14735
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1248
    "Modified: / 13-10-1998 / 15:53:05 / cg"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1249
    "Created: / 26-07-2012 / 15:06:31 / cg"
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1250
!
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1251
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1252
externalDiffCommandTemplate:aString
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1253
    "the external command to use for diff.
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1254
     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
  1255
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1256
    self at:#externalDiffCommandTemplate put:aString
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1257
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1258
    "
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1259
     UserPreferences current externalDiffCommandTemplate
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1260
    "
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1261
!
928c076e96b9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14734
diff changeset
  1262
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1263
inspectorClassSetting
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1264
    self useNewInspector ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1265
	^ (NewInspector::NewInspectorView ? InspectorView)
6177
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1266
    ].
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1267
    ^ InspectorView
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1268
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1269
    "Modified: / 12.11.2001 / 15:47:35 / cg"
ffdc0e8dc4c0 inspector
Claus Gittinger <cg@exept.de>
parents: 6171
diff changeset
  1270
    "Created: / 12.11.2001 / 15:49:00 / cg"
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1271
!
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1272
11005
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1273
showTipOfTheDayAtStartup
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1274
    ^ self at:#showTipOfTheDayAtStartup ifAbsent:false
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1275
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1276
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1277
showTipOfTheDayAtStartup:aBoolean
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1278
    self at:#showTipOfTheDayAtStartup put:aBoolean.
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1279
!
72032eb19a6b tip of the day
Claus Gittinger <cg@exept.de>
parents: 10992
diff changeset
  1280
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1281
systemBrowserClass
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1282
    self useNewSystemBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1283
	^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser)
5535
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1284
    ].
361c7dd4c2bb category change
Claus Gittinger <cg@exept.de>
parents: 5516
diff changeset
  1285
    ^ SystemBrowser
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1286
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1287
13502
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1288
testRunnerClass
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1289
    self useTestRunner2 ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1290
	^ Tools::TestRunner2 ? TestRunner
13502
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1291
    ].
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1292
    ^ TestRunner
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1293
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1294
    "Created: / 06-07-2011 / 13:55:03 / cg"
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1295
!
600830578bae added: #testRunnerClass
Claus Gittinger <cg@exept.de>
parents: 13501
diff changeset
  1296
13486
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1297
useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1298
    "using brand new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1299
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1300
    ^ self at:#useInspector2 ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1301
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1302
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1303
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1304
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1305
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1306
    "Modified: / 17-10-1998 / 14:45:12 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1307
    "Created: / 03-07-2011 / 22:35:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1308
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1309
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1310
useInspector2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1311
    "using very new or old inspector"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1312
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1313
    self at:#useInspector2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1314
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1315
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1316
     UserPreferences current useInspector2
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1317
    "
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1318
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1319
    "Created: / 03-07-2011 / 22:36:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1320
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
  1321
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1322
useNativeFileDialog
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1323
    ^ self nativeFileDialogs
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1324
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1325
    "Modified: / 24-08-2010 / 17:02:10 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1326
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1327
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1328
useNativeFileDialog:aBoolean
13047
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1329
    self nativeFileDialogs:aBoolean
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1330
a81c5a240b3a added:10 methods
sr
parents: 12949
diff changeset
  1331
    "Modified: / 24-08-2010 / 17:02:13 / sr"
10924
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1332
!
aab0b298ebf9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10887
diff changeset
  1333
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1334
useNewChangeSetBrowser
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1335
    "using old or jan's changeSetBrowser for package diffs"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1336
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1337
    ^ self at:#useNewChangeSetBrowser ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1338
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1339
    "Modified: / 13-10-1998 / 15:53:05 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1340
    "Created: / 26-07-2012 / 15:06:31 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1341
!
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1342
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1343
useNewChangeSetBrowser:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1344
    "using old or jan's changeSetBrowser for package diffs"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1345
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1346
    ^ self at:#useNewChangeSetBrowser put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1347
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1348
    "Created: / 26-07-2012 / 15:06:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1349
!
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1350
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1351
useNewChangesBrowser
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1352
    "using new or old change browser for the changes file"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1353
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1354
    ^ self at:#useNewChangesBrowser ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1355
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1356
    "Modified: / 13-10-1998 / 15:53:05 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1357
    "Modified (comment): / 26-07-2012 / 15:04:37 / cg"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1358
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1359
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1360
useNewChangesBrowser:aBoolean
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1361
    "using new or old changeBrowser for the changes file"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1362
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1363
    self at:#useNewChangesBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1364
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1365
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1366
     UserPreferences current useNewChangesBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1367
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1368
14252
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1369
    "Modified: / 13-10-1998 / 15:53:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 14160
diff changeset
  1370
    "Modified (comment): / 26-07-2012 / 15:04:39 / cg"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1371
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1372
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1373
useNewFileBrowser
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1374
    "using new or old version diff viewer"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1375
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1376
    ^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded])
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1377
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1378
    "Modified: / 13.10.1998 / 15:53:05 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1379
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1380
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1381
useNewFileBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1382
    "using new or old file browser"
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1383
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1384
    self at:#useNewFileBrowser put:aBoolean
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1385
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1386
    "
6769
8cd2d038bfc6 *** empty log message ***
penk
parents: 6767
diff changeset
  1387
     UserPreferences current useNewFileBrowser
6717
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1388
    "
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1389
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1390
    "Modified: / 13.10.1998 / 15:53:21 / cg"
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1391
!
680a8f3f8c4d add new fileBrowser in tool settings
penk
parents: 6666
diff changeset
  1392
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1393
useNewFileDialog
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1394
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1395
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1396
    ^ self at:#useNewFileDialog ifAbsent:true
13973
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1397
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1398
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1399
     UserPreferences current useNewFileDialog:false
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1400
     UserPreferences current useNewFileDialog:true
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1401
    "
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1402
c5f0893cbb11 comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents: 13967
diff changeset
  1403
    "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
  1404
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1405
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1406
useNewFileDialog:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1407
    "using new or old file dialog"
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1408
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1409
    self at:#useNewFileDialog put:aBoolean
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1410
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1411
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1412
     UserPreferences current useNewFileDialog:true
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1413
    "
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1414
!
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1415
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1416
useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1417
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1418
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1419
    ^ self at:#useNewInspector ifAbsent:false
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1420
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1421
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1422
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1423
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1424
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1425
    "Modified: / 17.10.1998 / 14:45:12 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1426
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1427
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1428
useNewInspector:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1429
    "using new or old inspector"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1430
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1431
    self at:#useNewInspector put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1432
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1433
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1434
     UserPreferences current useNewInspector
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1435
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1436
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1437
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1438
useNewSettingsApplication
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1439
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1440
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1441
    ^ self at:#useNewSettingsApplication ifAbsent:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1442
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1443
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1444
useNewSettingsApplication:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1445
    "using one application for the settings"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1446
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1447
    self at:#useNewSettingsApplication put:aBoolean
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1448
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1449
    "
6935
7cc9b6a59299 change accessor 'type in error'
penk
parents: 6928
diff changeset
  1450
     UserPreferences current useNewSettingsApplication:true
6838
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1451
    "
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1452
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1453
    "Modified: / 13.10.1998 / 15:53:21 / cg"
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1454
!
26d49b3a22c9 add preferences for use new settings
penk
parents: 6832
diff changeset
  1455
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1456
useNewSystemBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1457
    "using new or old system browser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1458
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1459
    |newSystemBrowserClass useIt|
8000
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
  1460
44413c7ef9c8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7993
diff changeset
  1461
    newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser).
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1462
    useIt := self at:#useNewSystemBrowser ifAbsent:nil.
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1463
    useIt isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1464
	useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]).
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1465
	useIt ifTrue:[
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1466
	    self at:#useNewSystemBrowser put:true.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1467
	].
8593
ad78295d4605 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8551
diff changeset
  1468
    ].
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1469
    ^ useIt
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1470
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1471
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1472
useNewSystemBrowser:aBoolean
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1473
    "using new or old systemBrowser"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1474
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1475
    self at:#useNewSystemBrowser put:aBoolean
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1476
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1477
    "
5541
057aef033483 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5536
diff changeset
  1478
     UserPreferences current useNewSystemBrowser:true
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1479
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1480
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1481
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1482
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1483
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1484
useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1485
    "using new or old version diff viewer"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1486
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1487
    ^ self at:#useNewVersionDiffBrowser ifAbsent:true
5536
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
    "Modified: / 13.10.1998 / 15:53:05 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1490
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1491
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1492
useNewVersionDiffBrowser:aBoolean
6765
446b64493274 use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents: 6763
diff changeset
  1493
    "using new or old versionDiffBrowser"
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1494
5784
c6458c4f3c49 oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents: 5712
diff changeset
  1495
    self at:#useNewVersionDiffBrowser put:aBoolean
5536
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
    "
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1498
     UserPreferences current useNewVersionDiffBrowser
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1499
    "
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
    "Modified: / 13.10.1998 / 15:53:21 / cg"
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1502
!
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1503
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1504
useProcessMonitorV2
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1505
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1506
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1507
    ^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil)
6959
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1508
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1509
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1510
useProcessMonitorV2:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1511
    "using ProcessMonitorV2 application for display Processes"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1512
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1513
    self at:#useProcessMonitorV2 put:aBoolean
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1514
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1515
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1516
     UserPreferences current useProcessMonitorV2:true
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1517
    "
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1518
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1519
    "Modified: / 13.10.1998 / 15:53:21 / cg"
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1520
!
e766340a8f5b add useProcessMonitorV2
penk
parents: 6951
diff changeset
  1521
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1522
useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1523
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1524
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1525
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1526
    ^ self at:#useSmalltalkDocumentViewer ifAbsent:true
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1527
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1528
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1529
     UserPreferences current useSmalltalkDocumentViewer
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1530
     UserPreferences current useSmalltalkDocumentViewer:false
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1531
    "
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1532
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1533
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1534
useSmalltalkDocumentViewer:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1535
    "using the smalltalk-DocumentViewer (as opposed to the native systems Browser)
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1536
     to display documentation"
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1537
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1538
    ^ self at:#useSmalltalkDocumentViewer put:aBoolean
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1539
!
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1540
13501
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1541
useTestRunner2
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1542
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1543
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1544
    ^ self at:#useTestRunner2 ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1545
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1546
    "Created: / 06-07-2011 / 13:41:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1547
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1548
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1549
useTestRunner2:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1550
    "using new or old test runner"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1551
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1552
    self at:#useTestRunner2 put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1553
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1554
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1555
     UserPreferences current useTestRunner2:true
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1556
    "
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1557
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1558
    "Created: / 06-07-2011 / 13:41:40 / cg"
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1559
!
Claus Gittinger <cg@exept.de>
parents: 13486
diff changeset
  1560
16542
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1561
useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1562
    "switch between xtermView (xembed) and vt100 (st/x emulation)
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1563
     if possible on that architecture."
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1564
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1565
    ^ self at:#useXTermViewIfAvailable ifAbsent:false
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1566
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1567
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1568
     UserPreferences current useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1569
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1570
!
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1571
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1572
useXTermViewIfAvailable:aBoolean
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1573
    "switch between xtermView (xembed) and vt100 (st/x emulation)
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1574
     if possible on that architecture."
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1575
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1576
    self at:#useXTermViewIfAvailable put:aBoolean
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1577
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1578
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1579
     UserPreferences current useXTermViewIfAvailable
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1580
    "
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1581
!
9c8eb61c5f36 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16484
diff changeset
  1582
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1583
versionDiffViewerClass
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1584
    self useNewVersionDiffBrowser ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  1585
	^ (VersionDiffBrowser ? DiffTextView)
5536
683a52b52f50 tool access
Claus Gittinger <cg@exept.de>
parents: 5535
diff changeset
  1586
    ].
10992
f03d40b016f4 use new DiffCodeView
Claus Gittinger <cg@exept.de>
parents: 10924
diff changeset
  1587
    ^ DiffCodeView
3883
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1588
! !
8e0771f4a196 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3875
diff changeset
  1589
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  1590
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  1591
!UserPreferences methodsFor:'accessing-prefs-UI'!
3358
f1b2b7b83d3e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3357
diff changeset
  1592
11390
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1593
allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1594
    "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
  1595
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1596
    ^ self at:#allowMouseWheelZoom ifAbsent:[ true ]
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1597
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1598
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1599
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1600
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1601
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1602
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1603
allowMouseWheelZoom:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1604
    "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
  1605
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1606
    ^ self at:#allowMouseWheelZoom put:aBooleanOrNil
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1607
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1608
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1609
     UserPreferences current allowMouseWheelZoom:true
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1610
     UserPreferences current allowMouseWheelZoom:false
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1611
     UserPreferences current allowMouseWheelZoom
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1612
    "
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1613
!
f0f1b0711272 allowMouseWheelZoom
Claus Gittinger <cg@exept.de>
parents: 11214
diff changeset
  1614
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1615
avoidConfirmationsForExperiencedUsers
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1616
    "some confirmers ara annoying, if you are an experienced st/x user"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1617
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1618
    ^ self at:#avoidConfirmationsForExperiencedUsers ifAbsent:[ false ]
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1619
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1620
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1621
     UserPreferences current avoidConfirmationsForExperiencedUsers
14698
5eeda6b08571 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14543
diff changeset
  1622
     UserPreferences current avoidConfirmationsForExperiencedUsers:true
14342
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1623
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1624
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1625
    "Created: / 05-09-2012 / 11:26:55 / cg"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1626
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1627
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1628
avoidConfirmationsForExperiencedUsers:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1629
    "some confirmers ara annoying, if you are an experienced st/x user.
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1630
     Set/clear the flag which controls this"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1631
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1632
    ^ self at:#avoidConfirmationsForExperiencedUsers put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1633
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1634
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1635
     UserPreferences current avoidConfirmationsForExperiencedUsers:true
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1636
    "
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1637
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1638
    "Created: / 05-09-2012 / 11:27:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1639
!
Claus Gittinger <cg@exept.de>
parents: 14307
diff changeset
  1640
11929
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1641
avoidSlowDrawingOperationsUnderWindows
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1642
    ^ OperatingSystem isMSWINDOWSlike
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1643
!
9128526725d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
  1644
5071
ps
parents: 4684
diff changeset
  1645
beepEnabled
ps
parents: 4684
diff changeset
  1646
    "return the flag which controls the beeper"
ps
parents: 4684
diff changeset
  1647
ps
parents: 4684
diff changeset
  1648
    ^ self at:#beepEnabled ifAbsentPut:true
ps
parents: 4684
diff changeset
  1649
ps
parents: 4684
diff changeset
  1650
    "
ps
parents: 4684
diff changeset
  1651
     UserPreferences current beepEnabled
ps
parents: 4684
diff changeset
  1652
    "
ps
parents: 4684
diff changeset
  1653
ps
parents: 4684
diff changeset
  1654
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1655
    "Created: / 3.12.1999 / 17:09:49 / ps"
ps
parents: 4684
diff changeset
  1656
!
ps
parents: 4684
diff changeset
  1657
ps
parents: 4684
diff changeset
  1658
beepEnabled:aBoolean
ps
parents: 4684
diff changeset
  1659
    "set/clear the flag which controls the beeper"
ps
parents: 4684
diff changeset
  1660
ps
parents: 4684
diff changeset
  1661
    ^ self at:#beepEnabled put:aBoolean
ps
parents: 4684
diff changeset
  1662
ps
parents: 4684
diff changeset
  1663
    "
ps
parents: 4684
diff changeset
  1664
     UserPreferences current beepEnabled:false
ps
parents: 4684
diff changeset
  1665
    "
ps
parents: 4684
diff changeset
  1666
ps
parents: 4684
diff changeset
  1667
    "Modified: / 11.9.1998 / 00:09:59 / cg"
ps
parents: 4684
diff changeset
  1668
    "Created: / 3.12.1999 / 17:10:27 / ps"
ps
parents: 4684
diff changeset
  1669
!
ps
parents: 4684
diff changeset
  1670
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1671
beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1672
    "return the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1673
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1674
    ^ self at:#beepForErrorDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1675
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1676
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1677
     UserPreferences current beepForErrorDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1678
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1679
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1680
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1681
beepForErrorDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1682
    "set/clear the flag which controls beeping for error dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1683
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1684
    ^ self at:#beepForErrorDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1685
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1686
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1687
     UserPreferences current beepForErrorDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1688
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1689
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1690
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1691
beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1692
    "return the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1693
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1694
    ^ self at:#beepForInfoDialog ifAbsent:false
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1695
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1696
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1697
     UserPreferences current beepForInfoDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1698
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1699
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1700
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1701
beepForInfoDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1702
    "set/clear the flag which controls beeping for info dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1703
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1704
    ^ self at:#beepForInfoDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1705
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1706
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1707
     UserPreferences current beepForInfoDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1708
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1709
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1710
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1711
beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1712
    "return the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1713
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  1714
    ^ self at:#beepForWarningDialog ifAbsent:true
8676
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1715
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1716
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1717
     UserPreferences current beepForWarningDialog
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1718
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1719
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1720
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1721
beepForWarningDialog:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1722
    "set/clear the flag which controls beeping for warning dialogs"
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1723
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1724
    ^ self at:#beepForWarningDialog put:aBoolean
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1725
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1726
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1727
     UserPreferences current beepForWarningDialog:true
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1728
    "
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1729
!
7466762d325e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8619
diff changeset
  1730
11691
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1731
beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1732
    "return the flag which controls the beeper"
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1733
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1734
    ^ self at:#beepInEditor ifAbsentPut:true
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1735
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1736
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1737
     UserPreferences current beepInEditor
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1738
    "
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1739
!
ca6390f483cf changed #beepInEditor
Claus Gittinger <cg@exept.de>
parents: 11672
diff changeset
  1740
14734
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1741
button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1742
    "if true, an ALT-left click is translated to a right click
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1743
     Useful with 1-button mice"
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1744
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1745
    ^ self at:#button2WithAltKey ifAbsent:[ false ]
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1746
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1747
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1748
     UserPreferences current button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1749
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1750
!
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1751
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1752
button2WithAltKey: aBoolean
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1753
    "if true, an ALT-left click is translated to a right click
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1754
     Useful with 1-button mice"
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1755
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1756
    ^ self at:#button2WithAltKey put: aBoolean
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1757
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1758
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1759
     UserPreferences current button2WithAltKey
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1760
     UserPreferences current button2WithAltKey:true
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1761
     UserPreferences current button2WithAltKey:false
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1762
    "
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1763
!
f297241056ce class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14733
diff changeset
  1764
12209
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1765
closePopUpMenuChainOnEscape
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1766
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1767
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1768
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1769
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1770
    ^ self at:#closePopUpMenuChainOnEscape ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1771
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1772
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1773
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1774
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1775
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1776
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1777
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1778
closePopUpMenuChainOnEscape:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1779
    "if true, the whole chain of popUpMenus is closed when escape is pressed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1780
     if false (the default), only the last popup-view is closed.
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1781
     The first corresponds to X-behavior, the later is how windows does it - sigh."
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1782
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1783
    ^ self at:#closePopUpMenuChainOnEscape put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1784
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1785
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1786
     UserPreferences current closePopUpMenuChainOnEscape:true
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1787
     UserPreferences current closePopUpMenuChainOnEscape:false
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1788
    "
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1789
!
Claus Gittinger <cg@exept.de>
parents: 12206
diff changeset
  1790
13151
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1791
delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1792
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1793
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1794
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1795
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1796
    ^ self at:#delayedMenuShowAndHide ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1797
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1798
    "Created: / 29-11-2010 / 19:47:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1799
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1800
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1801
delayedMenuShowAndHide:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1802
    "the Windows behavior of showing submenus of a menu slightly delayed,
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1803
     to allow for short-time leaving of the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1804
     (bug #D1480943)"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1805
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1806
    ^ self at:#delayedMenuShowAndHide put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1807
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1808
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1809
     UserPreferences current delayedMenuShowAndHide
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1810
    "
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1811
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1812
    "Created: / 29-11-2010 / 19:47:36 / cg"
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1813
!
Claus Gittinger <cg@exept.de>
parents: 13145
diff changeset
  1814
13503
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1815
eclipseStyleMenus
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1816
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1817
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1818
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1819
    ^ self at:#eclipseStyleMenus ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1820
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1821
    "Created: / 08-07-2011 / 13:22:45 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1822
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1823
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1824
eclipseStyleMenus:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1825
    "if true, return menus organized like in eclipse;
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1826
     if false (the default) return them as usual"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1827
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1828
    ^ self at:#eclipseStyleMenus put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1829
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1830
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1831
     UserPreferences current eclipseStyleMenus:true
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1832
    "
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1833
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1834
    "Created: / 08-07-2011 / 13:22:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1835
!
Claus Gittinger <cg@exept.de>
parents: 13502
diff changeset
  1836
15817
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1837
enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1838
    "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
  1839
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1840
    ^ self at:#enableVMWareDrawingBugWorkaround ifAbsent:[ false ]
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1841
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1842
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1843
     UserPreferences current enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1844
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1845
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1846
    "Created: / 19-11-2013 / 09:53:20 / cg"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1847
!
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1848
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1849
enableVMWareDrawingBugWorkaround:aBoolean
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1850
    "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
  1851
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1852
    self at:#enableVMWareDrawingBugWorkaround put:aBoolean.
19582
fed14e56c228 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19576
diff changeset
  1853
    (Screen notNil and:[Screen current notNil and:[Screen current platformName == #X11]]) ifTrue:[
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  1854
        Screen current maxOperationsUntilFlush:(aBoolean ifTrue:[1] ifFalse:[nil])
15817
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1855
    ].
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1856
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1857
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1858
     UserPreferences current enableVMWareDrawingBugWorkaround
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1859
     UserPreferences current enableVMWareDrawingBugWorkaround:true
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1860
     UserPreferences current enableVMWareDrawingBugWorkaround:false
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1861
    "
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1862
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1863
    "Created: / 19-11-2013 / 09:53:45 / cg"
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1864
!
319ae2f183c4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15767
diff changeset
  1865
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1866
expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1867
    "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
  1868
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1869
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1870
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1871
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1872
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1873
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1874
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1875
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1876
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1877
expandSelectionOnMouseMoveWithButtonPressed:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1878
    "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
  1879
     more lines. Default is not FALSE !!"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1881
    ^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1882
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1883
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1884
     UserPreferences current expandSelectionOnMouseMoveWithButtonPressed
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1885
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1886
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  1887
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1888
flyByHelpActive
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1889
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1890
    ^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1891
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1892
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1893
flyByHelpActive:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1894
    aBoolean ~~ self flyByHelpActive ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  1895
	self at:#flyByHelpActive put:aBoolean.
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1896
    ].
17104
39fff879b31b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16859
diff changeset
  1897
    self flyByHelpSettingChanged.
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1898
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  1899
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1900
focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1901
    "return the flag which controls if the keyboard focus should
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1902
     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
  1903
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1904
     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
  1905
13391
0a6201dcb4b4 changed: #focusFollowsMouse
Stefan Vogel <sv@exept.de>
parents: 13373
diff changeset
  1906
    ^ self at:#focusFollowsMouse ifAbsent:[ false ]
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1907
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1908
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1909
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1910
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1911
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1912
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1913
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1914
focusFollowsMouse:aBooleanOrNil
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1915
    "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
  1916
     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
  1917
     This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews).
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1918
     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
  1919
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1920
    ^ self at:#focusFollowsMouse put:aBooleanOrNil
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1921
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1922
    "
4121
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1923
     UserPreferences current focusFollowsMouse:true
4fbe619d6047 comments
Claus Gittinger <cg@exept.de>
parents: 4076
diff changeset
  1924
     UserPreferences current focusFollowsMouse:false
4075
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1925
     UserPreferences current focusFollowsMouse
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1926
    "
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1927
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1928
    "Modified: / 11.9.1998 / 00:09:59 / cg"
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1929
!
816898d4922c added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
  1930
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1931
fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1932
    "experimental"
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1933
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1934
    ^ self at:#fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1935
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1936
    "
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1937
     UserPreferences current fontPreferences
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1938
     UserPreferences current fontPreferences:nil
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1939
    "
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1940
!
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1941
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1942
fontPreferences:aDictionary
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1943
    "experimental"
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1944
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1945
    self at:#fontPreferences put:aDictionary.
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1946
    aDictionary isNil ifTrue:[^ self].
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1947
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1948
    self fontPreferencesChanged.
19630
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  1949
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  1950
    "
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  1951
     UserPreferences current fontPreferences
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  1952
     UserPreferences current fontPreferences:nil
6588977b5589 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19582
diff changeset
  1953
    "
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1954
!
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1955
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1956
fontPreferencesChanged
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1957
    "tells view classes about changed font preferences"
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1958
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1959
    |dict fn getFont|
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1960
    
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1961
    dict := self at:#fontPreferences.
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1962
    dict isNil ifTrue:[^ self].
19631
3eda8aa7e7fe #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 19630
diff changeset
  1963
    
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1964
    getFont := 
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1965
        [:key|
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1966
            |s fn|
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1967
            
18818
2e6061696ce1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18813
diff changeset
  1968
            s := dict at:key ifAbsent:nil.
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1969
            s notNil ifTrue:[
18813
b213982a4cb8 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  1970
                fn := Object readFrom:s.
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1971
                self useXftFontsOnly ifTrue:[
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1972
                    fn := XftFontDescription for:fn
19787
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1973
		    "/ cg: don't allocate on the display, because it takes
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1974
		    "/ dam long sometimes when Xft fonts are used.
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1975
		    "/ startup feels better, if we do it lazy.
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1976
                ] ifFalse:[    
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1977
                    Display notNil ifTrue:[fn := fn onDevice:Display].
08c4eaf6cfb3 lazy Xft font allocation makes startup faster
Claus Gittinger <cg@exept.de>
parents: 19783
diff changeset
  1978
		]
18812
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1979
            ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1980
            fn
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1981
        ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1982
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1983
    fn := getFont value:#Other.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1984
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1985
        SimpleView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1986
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1987
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1988
    fn := getFont value:#Label.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1989
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1990
        Label defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1991
        CheckBox defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1992
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1993
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1994
    fn := getFont value:#Button.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1995
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1996
        Button defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1997
        Toggle defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1998
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  1999
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2000
    fn := getFont value:#Text.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2001
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2002
        TextView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2003
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2004
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2005
    fn := getFont value:#InputField.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2006
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2007
        EditField withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2008
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2009
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2010
    fn := getFont value:#List.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2011
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2012
        SelectionInListView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2013
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2014
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2015
    fn := getFont value:#Tooltip.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2016
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2017
        ActiveHelpView withAllSubclasses do:[:cls | cls defaultFont:fn].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2018
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2019
    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2020
    fn := getFont value:#Menu.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2021
    fn notNil ifTrue:[    
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2022
        ListView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2023
        MenuView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2024
        MenuPanel defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2025
        NoteBookView defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2026
        PullDownMenu defaultFont:fn.
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2027
    ].
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2028
!
9294dd824dda #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18808
diff changeset
  2029
13103
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2030
forceWindowsIntoMonitorBounds
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2031
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2032
     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
  2033
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2034
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2035
    ^ self at:#forceWindowsIntoMonitorBounds ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2036
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2037
    "Created: / 22-10-2010 / 10:59:10 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2038
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2039
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2040
forceWindowsIntoMonitorBounds:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2041
    "if true, windows are forced to be placed into a monitor's bounds completely;
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2042
     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
  2043
     not window movement."
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2044
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2045
    ^ self at:#forceWindowsIntoMonitorBounds put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2046
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2047
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2048
     UserPreferences current forceWindowsIntoMonitorBounds:false
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2049
     UserPreferences current forceWindowsIntoMonitorBounds:true
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2050
    "
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2051
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2052
    "Modified: / 22-10-2010 / 11:13:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2053
!
Claus Gittinger <cg@exept.de>
parents: 13048
diff changeset
  2054
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2055
menuPanelTakesFocusOnClick
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2056
    "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
  2057
     cursor and tab keys."
afc7517c76cc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14736
diff changeset
  2058
15713
2ab7ecc832d9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15703
diff changeset
  2059
    "/ read comment in menuPanel - for now, it should be on,
2ab7ecc832d9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15703
diff changeset
  2060
    "/ otherwise you cannot control a menu with cursor keys or escape. sigh.
16570
88aa56dde8e7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16552
diff changeset
  2061
    ^ self at:#menuPanelTakesFocusOnClick ifAbsent:[ false ]
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2062
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2063
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2064
     UserPreferences current menuPanelTakesFocusOnClick
16641
2a3e378e9516 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16589
diff changeset
  2065
     UserPreferences current menuPanelTakesFocusOnClick:false
2a3e378e9516 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16589
diff changeset
  2066
     UserPreferences current menuPanelTakesFocusOnClick:true
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2067
    "
14742
afc7517c76cc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14736
diff changeset
  2068
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2069
    "Modified: / 11.9.1998 / 00:09:59 / cg"
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2070
!
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2071
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2072
menuPanelTakesFocusOnClick:aBooleanOrNil
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2073
    "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
  2074
     cursor and tab keys.
14543
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2075
     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
  2076
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2077
    ^ self at:#menuPanelTakesFocusOnClick put:aBooleanOrNil
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2078
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2079
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2080
     UserPreferences current menuPanelTakesFocusOnClick:true
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2081
     UserPreferences current menuPanelTakesFocusOnClick:false
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2082
     UserPreferences current menuPanelTakesFocusOnClick
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2083
    "
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2084
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2085
    "Modified: / 11.9.1998 / 00:09:59 / cg"
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2086
!
f66741e8d140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14459
diff changeset
  2087
8759
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2088
motionDistanceToStartDrag
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2089
    "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
  2090
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2091
    ^ "DragMotionDistance ?" 10
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2092
!
8e6b635057ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8758
diff changeset
  2093
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2094
mouseWheelDirectionReversed
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2095
    "if set, mouse wheel motions are upside-down.
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2096
     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
  2097
     so I added this option"
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2098
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2099
    ^ self at:#mouseWheelDirectionReversed ifAbsent:[ false ]
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2100
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2101
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2102
     UserPreferences current mouseWheelDirectionReversed
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2103
     UserPreferences current mouseWheelDirectionReversed:true
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2104
     UserPreferences current mouseWheelDirectionReversed:false
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2105
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2106
!
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2107
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2108
mouseWheelDirectionReversed:aBoolean
17458
892c4059acd4 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17457
diff changeset
  2109
    "if set, mouse wheel motions are upside-down.
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2110
     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
  2111
     so I added this option"
17457
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2112
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2113
    self at:#mouseWheelDirectionReversed put:aBoolean
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2114
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2115
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2116
     UserPreferences current mouseWheelDirectionReversed
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2117
     UserPreferences current mouseWheelDirectionReversed:true
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2118
     UserPreferences current mouseWheelDirectionReversed:false
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2119
    "
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2120
!
ca170782c081 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17425
diff changeset
  2121
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2122
mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2123
    "return the flag which controls if the mouseWheel focus should
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2124
     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
  2125
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2126
    self focusFollowsMouse ifTrue:[^ true].
16859
0fb09ef5abf0 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 16813
diff changeset
  2127
    ^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current isWindowsPlatform ]
11589
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2128
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2129
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2130
     UserPreferences current mouseWheelFocusFollowsMouse
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2131
    "
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2132
!
13741af10676 +mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2133
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2134
mouseWheelScale
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2135
    "if set, mouse wheel motions are scaled by this number"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2136
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2137
    ^ self at:#mouseWheelScale ifAbsent:[ 1 ]
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2138
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2139
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2140
     UserPreferences current mouseWheelScale
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2141
     UserPreferences current mouseWheelScale:0.5
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2142
     UserPreferences current mouseWheelScale:1
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2143
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2144
!
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2145
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2146
mouseWheelScale:aNumber
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2147
    "if set, mouse wheel motions are scaled by this number"
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2148
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2149
    self at:#mouseWheelScale put:aNumber.
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2150
    WindowSensor mouseWheelScale:aNumber.
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2151
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2152
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2153
     UserPreferences current mouseWheelScale
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2154
     UserPreferences current mouseWheelScale:0.25
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2155
     UserPreferences current mouseWheelScale:0.5
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2156
     UserPreferences current mouseWheelScale:1
18643
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2157
dffc9ea26ca9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18641
diff changeset
  2158
     WindowSensor mouseWheelScale
17316
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2159
    "
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2160
!
4e37db3ce151 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17232
diff changeset
  2161
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2162
nativeDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2163
    ^ self at:#nativeDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2164
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2165
    "Created: / 24-08-2010 / 17:01:47 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2166
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2167
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2168
nativeDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2169
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2170
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2171
    self at:#nativeDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2172
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2173
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2174
	currentScreen supportsNativeDialogs ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2175
	    currentScreen nativeDialogs:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2176
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2177
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2178
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2179
    "Modified: / 24-08-2010 / 18:06:43 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2180
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2181
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2182
nativeFileDialogs
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2183
    ^ self at:#nativeFileDialogs ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2184
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2185
    "Created: / 24-08-2010 / 17:01:59 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2186
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2187
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2188
nativeFileDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2189
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2190
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2191
    self at:#nativeFileDialogs put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2192
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2193
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2194
	currentScreen supportsNativeFileDialogs ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2195
	    currentScreen nativeFileDialogs:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2196
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2197
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2198
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2199
    "Modified: / 24-08-2010 / 18:06:27 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2200
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2201
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2202
nativeWidgets
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2203
    ^ self at:#nativeWidgets ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2204
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2205
    "Created: / 24-08-2010 / 16:58:44 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2206
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2207
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2208
nativeWidgets:aBoolean
16813
4d8bb499fc3b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16699
diff changeset
  2209
    "enable/disable native widgets on the current display"
4d8bb499fc3b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16699
diff changeset
  2210
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2211
    |currentScreen|
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2212
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2213
    self at:#nativeWidgets put:aBoolean.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2214
    currentScreen := Screen current.
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2215
    currentScreen notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2216
	currentScreen supportsNativeWidgets ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2217
	    currentScreen nativeWidgets:aBoolean
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2218
	].
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2219
    ].
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2220
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2221
    "Created: / 24-08-2010 / 16:58:14 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2222
    "Modified: / 24-08-2010 / 18:05:56 / sr"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2223
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  2224
16587
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2225
onlyShowTooltipsForActiveWindow
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2226
    "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
  2227
17180
f37997ce874f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17138
diff changeset
  2228
    ^ self at:#onlyShowTooltipsForActiveWindow ifAbsent:true
16587
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2229
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2230
    "
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2231
     UserPreferences current onlyShowTooltipsForActiveWindow
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2232
    "
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2233
!
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2234
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2235
onlyShowTooltipsForActiveWindow:aBooleanOrNil
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2236
    "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
  2237
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2238
    ^ self at:#onlyShowTooltipsForActiveWindow put:aBooleanOrNil
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2239
!
1810332fcba2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16586
diff changeset
  2240
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2241
opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2242
    "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
  2243
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2244
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  2245
    ^ self at:#opaqueTableColumnResizing ifAbsent:false
5808
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2246
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2247
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2248
     UserPreferences current opaqueTableColumnResizing
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2249
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2250
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2251
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2252
opaqueTableColumnResizing:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2253
    "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
  2254
     animated (opaque)"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2255
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2256
    ^ self at:#opaqueTableColumnResizing put:aBoolean
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2257
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2258
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2259
     UserPreferences current opaqueTableColumnResizing:true
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2260
    "
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2261
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2262
    "Modified: / 11.9.1998 / 00:09:59 / cg"
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2263
!
02b371f5f80a opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 5791
diff changeset
  2264
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2265
opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2266
    "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
  2267
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2268
18550
ecbf5bb59f22 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18497
diff changeset
  2269
    ^ self at:#opaqueVariablePanelResizing ifAbsent:true
4684
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2270
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2271
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2272
     UserPreferences current opaqueVariablePanelResizing
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2273
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2274
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2275
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2276
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2277
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2278
opaqueVariablePanelResizing:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2279
    "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
  2280
     animated (opaque)"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2281
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2282
    ^ self at:#opaqueVariablePanelResizing put:aBoolean
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2283
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2284
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2285
     UserPreferences current opaqueVariablePanelResizing:true
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2286
    "
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2287
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2288
    "Modified: / 11.9.1998 / 00:09:59 / cg"
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2289
!
45fe4b0a22b0 moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents: 4628
diff changeset
  2290
6525
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2291
searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2292
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2293
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2294
    ^ self at:#searchDialogIsModal ifAbsent:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2295
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2296
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2297
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2298
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2299
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2300
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2301
searchDialogIsModal:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2302
    "true if the search dialog (in textViews) shall be modal (the default)"
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2303
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2304
    ^ self at:#searchDialogIsModal put:aBooleanOrNil
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2305
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2306
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2307
     UserPreferences current searchDialogIsModal:true
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2308
     UserPreferences current searchDialogIsModal:false
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2309
     UserPreferences current searchDialogIsModal
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2310
    "
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2311
!
f62b8454b724 added #searchDialogIsModal.
Claus Gittinger <cg@exept.de>
parents: 6252
diff changeset
  2312
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2313
selectOnRightClick
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2314
    "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
  2315
11943
5edb32c7f9c2 selectOnRightClick - default
Claus Gittinger <cg@exept.de>
parents: 11931
diff changeset
  2316
    ^ self at:#selectOnRightClick ifAbsent:false
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2317
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2318
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2319
selectOnRightClick:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2320
    "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
  2321
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2322
    ^ self at:#selectOnRightClick put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2323
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2324
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2325
     UserPreferences current selectOnRightClick:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2326
     UserPreferences current selectOnRightClick:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2327
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2328
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2329
18808
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2330
shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2331
    "if true (the default), a shift-mouse-wheel does horizontal scrolling"
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2332
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2333
    ^ self at:#shiftMouseWheelScrollsHorizontally ifAbsent:[ true ]
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2334
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2335
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2336
     UserPreferences current shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2337
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2338
!
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2339
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2340
shiftMouseWheelScrollsHorizontally:aBoolean
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2341
    "if true (the default), a shift-mouse-wheel does horizontal scrolling"
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2342
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2343
    self at:#shiftMouseWheelScrollsHorizontally put:aBoolean
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2344
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2345
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2346
     UserPreferences current shiftMouseWheelScrollsHorizontally
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2347
    "
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2348
!
2bceb0681510 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18804
diff changeset
  2349
15588
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2350
shouldRememberLastExtent
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2351
    ^ self at:#shouldRememberLastExtent ifAbsent:true
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2352
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2353
    "Created: / 31-07-2013 / 18:11:17 / cg"
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2354
!
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2355
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2356
shouldRememberLastExtent:aBoolean
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2357
    ^ self at:#shouldRememberLastExtent put:aBoolean
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2358
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2359
    "
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2360
     UserPreferences current shouldRememberLastExtent.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2361
     UserPreferences current shouldRememberLastExtent:true.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2362
     UserPreferences current shouldRememberLastExtent:false.
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2363
    "
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2364
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2365
    "Created: / 31-07-2013 / 18:11:25 / cg"
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2366
!
4fbc618e5f2c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  2367
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2368
showDottedLinesInTree
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2369
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2370
	at:#showDottedLinesInTree
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2371
	ifAbsent:[ OperatingSystem isMSWINDOWSlike not
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2372
		   or:[  OperatingSystem isVistaLike not ] ]
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2373
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2374
    "Created: / 03-12-2010 / 11:31:46 / cg"
13304
19bb57822f90 changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents: 13161
diff changeset
  2375
    "Modified: / 09-02-2011 / 23:27:03 / cg"
13161
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2376
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2377
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2378
showDottedLinesInTree:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2379
    ^ self at:#showDottedLinesInTree put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2380
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2381
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2382
     UserPreferences current showDottedLinesInTree:true.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2383
     UserPreferences current showDottedLinesInTree:false.
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2384
    "
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2385
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2386
    "Created: / 03-12-2010 / 11:31:53 / cg"
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2387
!
Claus Gittinger <cg@exept.de>
parents: 13151
diff changeset
  2388
11931
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2389
showRightButtonMenuOnRelease
17232
e1f21dd5c764 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17180
diff changeset
  2390
    "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
  2391
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2392
    ^ self at:#showRightButtonMenuOnRelease ifAbsent:true
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2393
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2394
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2395
showRightButtonMenuOnRelease:aBoolean
17232
e1f21dd5c764 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17180
diff changeset
  2396
    "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
  2397
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2398
    ^ self at:#showRightButtonMenuOnRelease put:aBoolean
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2399
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2400
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2401
     UserPreferences current showRightButtonMenuOnRelease:true.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2402
     UserPreferences current showRightButtonMenuOnRelease:false.
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2403
    "
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2404
!
59251a906e85 preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents: 11930
diff changeset
  2405
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2406
startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2407
    "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
  2408
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2409
    ^ self at:#startTextDragWithControl ifAbsent:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2410
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2411
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2412
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2413
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2414
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2415
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2416
startTextDragWithControl:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2417
    "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
  2418
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2419
    ^ self at:#startTextDragWithControl put:aBooleanOrNil
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2420
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2421
    "
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2422
     UserPreferences current startTextDragWithControl:true
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2423
     UserPreferences current startTextDragWithControl:false
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2424
     UserPreferences current startTextDragWithControl
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2425
    "
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2426
!
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2427
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2428
toolTipAutoHideDelay
16466
11c565cfffc2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16385
diff changeset
  2429
    "return the time in seconds, tooltips are shown. 0 means: show forever"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2430
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2431
    ^ self at:#toolTipAutoHideDelay ifAbsentPut:[FlyByHelp showTime]
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2432
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2433
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2434
     UserPreferences current toolTipAutoHideDelay
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2435
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2436
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2437
    "Created: / 10-11-2010 / 12:08:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2438
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2439
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2440
toolTipAutoHideDelay:aTimeDuration
16466
11c565cfffc2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16385
diff changeset
  2441
    "set the time, tooltips are shown. 0 means: dont hide"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2442
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2443
    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
  2444
    FlyByHelp showTime: (aTimeDuration isInteger
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2445
			    ifTrue:[aTimeDuration]
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2446
			    ifFalse:[aTimeDuration asSeconds]).
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2447
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2448
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2449
     UserPreferences current toolTipAutoHideDelay:10 seconds
16466
11c565cfffc2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16385
diff changeset
  2450
     UserPreferences current toolTipAutoHideDelay:0
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2451
    "
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2452
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2453
    "Created: / 10-11-2010 / 12:09:33 / cg"
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  2454
    "Modified: / 07-03-2011 / 23:56:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13125
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2455
!
Claus Gittinger <cg@exept.de>
parents: 13124
diff changeset
  2456
15728
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2457
toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2458
    "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
  2459
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2460
    ^ self at:#toolTipShapeStyle ifAbsent:[ nil ]
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2461
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2462
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2463
     UserPreferences current toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2464
     UserPreferences current toolTipShapeStyle:#cartoon
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2465
     UserPreferences current toolTipShapeStyle:nil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2466
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2467
!
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2468
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2469
toolTipShapeStyle:aSymbolOrNil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2470
    "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
  2471
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2472
    self at:#toolTipShapeStyle put:aSymbolOrNil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2473
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2474
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2475
     UserPreferences current toolTipShapeStyle
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2476
     UserPreferences current toolTipShapeStyle:#cartoon
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2477
     UserPreferences current toolTipShapeStyle:nil
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2478
    "
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2479
!
68b68fafbd79 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15726
diff changeset
  2480
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2481
useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2482
    "return the flag which controls some color combinations
17593
9c4d879c9be0 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17569
diff changeset
  2483
     to compensate for color deficiencies, such as red-green blindness.
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2484
     For example, red-green is replaced by red-blue"
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2485
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2486
    ^ self at:#useColorsForColorBlindness ifAbsent:[ false ]
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2487
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2488
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2489
     UserPreferences current useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2490
     UserPreferences current useColorsForColorBlindness:true
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2491
     UserPreferences current useColorsForColorBlindness:false
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2492
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2493
!
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2494
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2495
useColorsForColorBlindness:aBoolean
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2496
    "change the flag which controls some color combinations
17593
9c4d879c9be0 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17569
diff changeset
  2497
     to compensate for color deficiencies, such as red-green blindness.
17541
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2498
     For example, red-green is replaced by red-blue"
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2499
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2500
    self at:#useColorsForColorBlindness put:aBoolean
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2501
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2502
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2503
     UserPreferences current useColorsForColorBlindness
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2504
     UserPreferences current useColorsForColorBlindness:true
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2505
     UserPreferences current useColorsForColorBlindness:false
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2506
    "
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2507
!
921bd42c0558 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  2508
17138
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2509
useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2510
    "experimental:
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2511
     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
  2512
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2513
    ^ self at:#useXFontsOnly ifAbsent:[ false ]
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2514
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2515
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2516
     UserPreferences current useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2517
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2518
!
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2519
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2520
useXFontsOnly:aBoolean
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2521
    "experimental:
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2522
     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
  2523
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2524
    self at:#useXFontsOnly put:aBoolean
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2525
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2526
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2527
     UserPreferences current useXFontsOnly
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2528
     UserPreferences current useXFontsOnly:true
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2529
     UserPreferences current useXFontsOnly:false
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2530
     UserPreferences current useXftFontsOnly:true
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2531
     UserPreferences current useXftFontsOnly:false
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2532
    "
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2533
!
e2ef970368f8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17104
diff changeset
  2534
16265
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2535
useXftFontsOnly
16266
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2536
    "experimental:
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2537
     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
  2538
     If changed, this should be done very early during startup, before any other fonts
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2539
     are already aquired (i.e. before any views are opened)"
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2540
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2541
    ^ self at:#useXftFontsOnly ifAbsent:[ false ]
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2542
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2543
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2544
     UserPreferences current useXftFontsOnly
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2545
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2546
!
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2547
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2548
useXftFontsOnly:aBooleanOrNil
16266
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2549
    "experimental:
d6dd2288fe0d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16265
diff changeset
  2550
     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
  2551
     If changed, this should be done very early during startup, before any other fonts
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2552
     are already aquired (i.e. before any views are opened)"
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2553
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2554
    ^ self at:#useXftFontsOnly put:aBooleanOrNil
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2555
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2556
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2557
     UserPreferences current useXftFontsOnly:true
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2558
     UserPreferences current useXftFontsOnly:false
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2559
     UserPreferences current useXftFontsOnly
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2560
    "
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2561
!
32842903fc11 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16165
diff changeset
  2562
12522
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2563
waitCursorVisibleTime
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2564
    "anser the time (in ms), how long a wait cursor should be visible at least"
0abaa650d83e added: #waitCursorVisibleTime
Stefan Vogel <sv@exept.de>
parents: 12501
diff changeset
  2565
13684
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2566
    ^ 100
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2567
a55755f5d41b changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents: 13652
diff changeset
  2568
    "Modified: / 12-09-2011 / 11:08:53 / cg"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2569
!
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2570
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2571
workAroundRenderingBugOnVista
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  2572
    "a temporary kludge for the vista-cleartype character redraw bug"
13122
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2573
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2574
    ^ OperatingSystem isMSWINDOWSlike
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2575
ddeb0c08d6c7 added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13119
diff changeset
  2576
    "Created: / 08-11-2010 / 14:47:52 / cg"
13124
ae7477260767 changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents: 13122
diff changeset
  2577
    "Modified: / 09-11-2010 / 13:02:43 / cg"
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2578
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2579
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2580
!UserPreferences methodsFor:'accessing-prefs-browser'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2581
19852
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2582
acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2583
    "the original order was accept-cancel-compare.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2584
     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
  2585
     was too high, so we changed the default.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2586
     If you want to go back, return #acceptCancelCompare here"
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2587
     
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2588
    ^ self at:#acceptCancelBarOrder ifAbsent:#acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2589
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2590
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2591
     UserPreferences current acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2592
     UserPreferences current acceptCancelBarOrder: #acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2593
     UserPreferences current acceptCancelBarOrder: #acceptCancelCompare
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2594
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2595
!
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2596
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2597
acceptCancelBarOrder:aSymbol
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2598
    "the original order was accept-cancel-compare.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2599
     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
  2600
     was too high, so we changed the default.
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2601
     If you want to go back, return #acceptCancelCompare here"
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2602
     
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2603
    self at:#acceptCancelBarOrder put:aSymbol
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2604
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2605
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2606
     UserPreferences current acceptCancelBarOrder
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2607
     UserPreferences current acceptCancelBarOrder: #acceptCompareCancel
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2608
     UserPreferences current acceptCancelBarOrder: #acceptCancelCompare
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2609
    "
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2610
!
9c6ec9384612 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19797
diff changeset
  2611
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2612
autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2613
    "return the flag which controls automatic formatting of code (in some browsers)
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2614
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2615
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  2616
    ^ self at:#autoFormatting ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2617
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2618
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2619
     UserPreferences current autoFormatting
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2620
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2621
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2622
    "Created: / 4.2.2000 / 20:08:08 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2623
    "Modified: / 5.2.2000 / 15:38:33 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2624
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2625
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2626
autoFormatting:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2627
    "turn on/off automatic formatting of code (in some browsers);
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2628
     Notice, the regular browser does not (yet) do automatic formating."
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2629
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2630
    ^ self at:#autoFormatting put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2631
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2632
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2633
     UserPreferences current autoFormatting:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2634
     UserPreferences current autoFormatting:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2635
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2636
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2637
    "Created: / 4.2.2000 / 20:08:26 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2638
    "Modified: / 5.2.2000 / 15:38:20 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2639
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2640
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2641
autoIndentInCodeView
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2642
    "return the flag which controls automatic cursor control in editors which
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2643
     show code(autoIndent)"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2644
16699
eafc8ff6f15a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16698
diff changeset
  2645
    ^ self at:#autoIndentInCodeView ifAbsent:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2646
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2647
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2648
     UserPreferences current autoIndentInCodeView
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2649
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2650
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2651
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2652
autoIndentInCodeView:aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2653
    "flag which controls automatic cursor control in editors which
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2654
     show code(autoIndent)"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2655
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2656
    ^ self at:#autoIndentInCodeView put:aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2657
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2658
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2659
     UserPreferences current autoIndentInCodeView:true
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2660
     UserPreferences current autoIndentInCodeView:false
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2661
    "
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2662
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  2663
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2664
enforceCodeStyle
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2665
    "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
  2666
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  2667
    ^ self at:#enforceCodeStyle ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2668
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2669
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2670
     UserPreferences current enforceCodeStyle
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2671
     UserPreferences current enforceCodeStyle:true
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2672
     UserPreferences current enforceCodeStyle:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2673
    "
10478
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2674
34a91987e7b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2675
    "Modified: / 27-03-2007 / 21:51:42 / cg"
6730
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2676
!
7bbf6fdeda01 textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents: 6717
diff changeset
  2677
12947
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2678
enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2679
    "return the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2680
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2681
    ^ self at:#enforceComment ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2682
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2683
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2684
     UserPreferences current enforceComment
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2685
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2686
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2687
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2688
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2689
    "Created: / 17-07-2010 / 14:16:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2690
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2691
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2692
enforceComment:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2693
    "set/clear the flag which controls enforcing a comment in accepted methods"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2694
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2695
    ^ self at:#enforceComment put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2696
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2697
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2698
     UserPreferences current enforceComment:true
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2699
     UserPreferences current enforceComment:false
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2700
    "
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2701
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2702
    "Created: / 17-07-2010 / 14:17:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2703
!
Claus Gittinger <cg@exept.de>
parents: 12930
diff changeset
  2704
14415
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2705
runLintChecksInBackground
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2706
    "controls the browser's lint-check behavior;
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2707
     background operation (Jan's pref) makes it difficult to stop and debug...)"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2708
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2709
    ^ self at:#runLintChecksInBackground ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2710
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2711
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2712
     UserPreferences current runLintChecksInBackground
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2713
     UserPreferences current runLintChecksInBackground:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2714
     UserPreferences current runLintChecksInBackground:false
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2715
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2716
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2717
    "Created: / 17-07-2010 / 14:16:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2718
!
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2719
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2720
runLintChecksInBackground:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2721
    "controls the browser's lint-check behavior;
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2722
     background operation (Jan's pref) makes it difficult to stop and debug...)"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2723
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2724
    ^ self at:#runLintChecksInBackground put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2725
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2726
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2727
     UserPreferences current runLintChecksInBackground:true
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2728
     UserPreferences current runLintChecksInBackground:false
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2729
    "
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2730
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2731
    "Created: / 17-07-2010 / 14:17:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2732
!
Claus Gittinger <cg@exept.de>
parents: 14358
diff changeset
  2733
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2734
showAcceptCancelBarInBrowser
19797
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  2735
    "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
  2736
     which can be turned on separately.
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  2737
     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
  2738
     
11214
ad61819068b9 changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents: 11213
diff changeset
  2739
    ^ self at:#showAcceptCancelBarInBrowser ifAbsent:true
9320
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2740
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2741
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2742
     UserPreferences current showAcceptCancelBarInBrowser
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2743
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2744
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2745
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2746
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2747
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2748
showAcceptCancelBarInBrowser:aBoolean
19797
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  2749
    "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
  2750
     which can be turned on separately.
fb12455698e1 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19787
diff changeset
  2751
     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
  2752
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2753
    ^ self at:#showAcceptCancelBarInBrowser put:aBoolean
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2754
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2755
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2756
     UserPreferences current showAcceptCancelBarInBrowser:true
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2757
     UserPreferences current showAcceptCancelBarInBrowser:false
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2758
    "
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2759
!
3915cefea352 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9302
diff changeset
  2760
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2761
syntaxColoring
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2762
    "return the flag which controls syntax coloring (in the browsers)"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2763
8233
354850231fe7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8232
diff changeset
  2764
    ^ self at:#syntaxColoring ifAbsent:true
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2765
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2766
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2767
     UserPreferences current syntaxColoring
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2768
    "
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2769
3827
d3dd75b5ced3 syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents: 3409
diff changeset
  2770
    "Modified: / 11.9.1998 / 00:09:59 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2771
!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2772
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2773
syntaxColoring:aBoolean
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2774
    "turn on/off syntaxColoring (in the browsers)."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2775
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2776
    ^ self at:#syntaxColoring put:aBoolean
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2777
3357
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  2778
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  2779
     UserPreferences current syntaxColoring:true
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  2780
     UserPreferences current syntaxColoring:false
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  2781
    "
bc42e06c8422 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3356
diff changeset
  2782
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2783
    "Created: / 31.3.1998 / 13:44:00 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2784
    "Modified: / 1.4.1998 / 13:23:03 / cg"
12189
fm
parents: 12175
diff changeset
  2785
!
fm
parents: 12175
diff changeset
  2786
fm
parents: 12175
diff changeset
  2787
useSearchBarInBrowser
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  2788
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  2789
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  2790
fm
parents: 12175
diff changeset
  2791
    "/ cg: disabled for now, until fixed.
fm
parents: 12175
diff changeset
  2792
    "/ does not initially select the searchString.
fm
parents: 12175
diff changeset
  2793
    "/ thereby interrupting the workflow...
fm
parents: 12175
diff changeset
  2794
fm
parents: 12175
diff changeset
  2795
    ^ self at:#useSearchBarInBrowser ifAbsent:false
fm
parents: 12175
diff changeset
  2796
fm
parents: 12175
diff changeset
  2797
    "
fm
parents: 12175
diff changeset
  2798
     UserPreferences current useSearchBarInBrowser
fm
parents: 12175
diff changeset
  2799
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  2800
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  2801
    "
fm
parents: 12175
diff changeset
  2802
!
fm
parents: 12175
diff changeset
  2803
fm
parents: 12175
diff changeset
  2804
useSearchBarInBrowser:aBoolean
12191
e7cc3e6975cc comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12189
diff changeset
  2805
    "true, if the search-entry fields are initially shown in the browser itself
12189
fm
parents: 12175
diff changeset
  2806
     (like in firefox). False if a dialog is to be opened."
fm
parents: 12175
diff changeset
  2807
fm
parents: 12175
diff changeset
  2808
    ^ self at:#useSearchBarInBrowser put:aBoolean
fm
parents: 12175
diff changeset
  2809
fm
parents: 12175
diff changeset
  2810
    "
fm
parents: 12175
diff changeset
  2811
     UserPreferences current useSearchBarInBrowser:true
fm
parents: 12175
diff changeset
  2812
     UserPreferences current useSearchBarInBrowser:false
fm
parents: 12175
diff changeset
  2813
    "
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2814
! !
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  2815
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2816
!UserPreferences methodsFor:'accessing-prefs-browser-colors'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2817
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2818
colorForInstrumentedFullyCoveredCode
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2819
    "the color for code in the browser which is instrumented
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2820
     and where all branches have been executed (also code, which has been executed)"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2821
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2822
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2823
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2824
    clr := self at:#colorForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2825
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2826
	clr := Color green slightlyDarkened "darkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2827
	"/ self at:#colorForInstrumentedFullyCoveredCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2828
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2829
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2830
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2831
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2832
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2833
	at:#emphasisForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2834
	put:(Color green slightlyDarkened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2835
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2836
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2837
    "Created: / 28-04-2010 / 13:58:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2838
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2839
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2840
colorForInstrumentedFullyCoveredCode:aColor
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  2841
    "the color for code in the browser which is instrumented
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2842
     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
  2843
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2844
    self at:#colorForInstrumentedFullyCoveredCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2845
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2846
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2847
     UserPreferences current colorForInstrumentedFullyCoveredCode:(Color green slightlyDarkened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2848
     UserPreferences current colorForInstrumentedFullyCoveredCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2849
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2850
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2851
    "Created: / 28-04-2010 / 13:58:52 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2852
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2853
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2854
colorForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2855
    "the color for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2856
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2857
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2858
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2859
    clr := self at:#colorForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2860
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2861
	clr := Color red "slightlyDarkened" "darkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2862
	"/ self at:#colorForInstrumentedNeverCalledCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2863
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2864
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2865
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2866
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2867
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2868
	at:#colorForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2869
	put:(Color red slightlyDarkened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2870
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2871
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2872
    "Created: / 28-04-2010 / 13:59:43 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2873
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2874
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2875
colorForInstrumentedNeverCalledCode:aColor
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2876
    "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
  2877
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2878
    self at:#colorForInstrumentedNeverCalledCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2879
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2880
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2881
     UserPreferences current colorForInstrumentedNeverCalledCode:(Color red slightlyDarkened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2882
     UserPreferences current colorForInstrumentedNeverCalledCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2883
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2884
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2885
    "Created: / 28-04-2010 / 13:59:43 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2886
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2887
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2888
colorForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2889
    "color for code in the browser which is instrumented and where some branches have been
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2890
     executed"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2891
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2892
    |clr|
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2893
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2894
    clr := self at:#colorForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2895
    clr isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2896
	clr := Color orange "slightlyDarkened".
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2897
	"/ self at:#colorForInstrumentedPartiallyCoveredCode put:clr.
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2898
    ].
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2899
    ^ clr
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2900
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2901
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2902
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2903
	at:#colorForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2904
	put:(Color orange slightlyLightened).
12905
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2905
    "
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2906
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2907
    "Created: / 28-04-2010 / 14:00:56 / cg"
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2908
!
Claus Gittinger <cg@exept.de>
parents: 12902
diff changeset
  2909
15915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2910
colorForInstrumentedPartiallyCoveredCode:aColor
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2911
    "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
  2912
     executed"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2913
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2914
    self at:#colorForInstrumentedPartiallyCoveredCode put:aColor.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2915
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2916
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2917
     UserPreferences current colorForInstrumentedPartiallyCoveredCode:(Color orange slightlyLightened).
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2918
     UserPreferences current colorForInstrumentedPartiallyCoveredCode:nil.
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2919
    "
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2920
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2921
    "Created: / 28-04-2010 / 14:00:56 / cg"
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2922
!
b8bc99b1b16f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15913
diff changeset
  2923
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2924
colorForPseudoProtocolsInMethodListInBrowser
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2925
    "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
  2926
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2927
    |bg|
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2928
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2929
    SelectionInListView notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2930
	bg := SelectionInListView defaultBackgroundColor.
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2931
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2932
    bg isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2933
	View notNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2934
	    bg := View defaultBackgroundColor.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2935
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2936
	bg isNil ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2937
	    ^ Color gray
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2938
	].
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2939
    ].
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2940
16698
6cc3755c970a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16695
diff changeset
  2941
    (Color gray brightness - (bg brightness)) abs < 0.3 ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2942
	(bg brightness) > 0.7 ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2943
	    ^ Color gray:20.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2944
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  2945
	^ Color gray:80.
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2946
    ].
16698
6cc3755c970a class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16695
diff changeset
  2947
    ^ Color gray
13652
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2948
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2949
    "Created: / 07-09-2011 / 09:51:12 / cg"
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2950
!
af8438e37bd6 added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents: 13597
diff changeset
  2951
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2952
emphasisForChangedCode
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2953
    "the emphasis for changed code (in changeSet) in the browser"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2954
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2955
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2956
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2957
    emp := self at:#emphasisForChangedCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2958
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2959
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2960
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2961
	"/ emp := #color->Color blue darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2962
	self at:#emphasisForChangedCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2963
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2964
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2965
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2966
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2967
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil].
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  2968
     UserPreferences current emphasisForChangedCode.
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  2969
     UserPreferences current at:#emphasisForChangedCode put:nil.
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  2970
    "
9807
da320936bf87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9742
diff changeset
  2971
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2972
    "Modified: / 10-11-2006 / 17:27:23 / cg"
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2973
!
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2974
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2975
emphasisForChangedCodeInSmallTeam
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2976
    "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
  2977
     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
  2978
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2979
    |emp|
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2980
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2981
    emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2982
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2983
	emp := #color->Color yellow darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2984
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  2985
	self at:#emphasisForChangedCodeInSmallTeam put:emp.
10177
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2986
    ].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2987
    ^ emp
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2988
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2989
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2990
     self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil].
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2991
     UserPreferences current emphasisForChangedCodeInSmallTeam.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2992
     UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil.
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2993
    "
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2994
01b7ae1bb878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10165
diff changeset
  2995
    "Created: / 10-11-2006 / 16:31:00 / cg"
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2996
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  2997
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2998
emphasisForDifferentPackage
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  2999
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3000
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3001
    emp := self at:#emphasisForDifferentPackage ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3002
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3003
	emp := #color->Color green darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3004
	"/ emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3005
	self at:#emphasisForDifferentPackage put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3006
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3007
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3008
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3009
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3010
     self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3011
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3012
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3013
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3014
emphasisForInstrumentedFullyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3015
    "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
  3016
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3017
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3018
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3019
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3020
    emp := self at:#emphasisForInstrumentedFullyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3021
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3022
	emp := #color->Color green slightlyDarkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3023
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3024
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3025
	self at:#emphasisForInstrumentedFullyCoveredCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3026
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3027
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3028
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3029
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3030
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3031
	at:#emphasisForInstrumentedFullyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3032
	put:(Array with:#bold with:(#color->Color green slightlyDarkened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3033
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3034
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3035
    "Created: / 27-04-2010 / 13:01:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3036
    "Modified: / 27-04-2010 / 14:48:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3037
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3038
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3039
emphasisForInstrumentedNeverCalledCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3040
    "the emphasis for code in the browser which is instrumented but has never been called"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3041
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3042
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3043
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3044
    emp := self at:#emphasisForInstrumentedNeverCalledCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3045
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3046
	emp := #color->Color red slightlyDarkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3047
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3048
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3049
	self at:#emphasisForInstrumentedNeverCalledCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3050
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3051
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3052
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3053
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3054
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3055
	at:#emphasisForInstrumentedNeverCalledCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3056
	put:(Array with:#bold with:(#color->Color red slightlyDarkened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3057
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3058
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3059
    "Created: / 27-04-2010 / 12:59:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3060
    "Modified: / 27-04-2010 / 14:48:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3061
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3062
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3063
emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3064
    "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
  3065
     executed"
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3066
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3067
    |emp|
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3068
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3069
    emp := self at:#emphasisForInstrumentedPartiallyCoveredCode ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3070
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3071
	emp := #color->Color orange.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3072
	emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3073
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3074
	self at:#emphasisForInstrumentedPartiallyCoveredCode put:emp.
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3075
    ].
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3076
    ^ emp
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3077
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3078
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3079
     UserPreferences current
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3080
	at:#emphasisForInstrumentedPartiallyCoveredCode
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3081
	put:(Array with:#bold with:(#color->Color orange slightlyLightened)).
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3082
    "
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3083
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3084
    "Created: / 27-04-2010 / 13:01:20 / cg"
12902
a7d0611e313a comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents: 12901
diff changeset
  3085
    "Modified: / 27-04-2010 / 18:50:43 / cg"
12901
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3086
!
Claus Gittinger <cg@exept.de>
parents: 12793
diff changeset
  3087
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3088
emphasisForModifiedBuffer
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3089
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3090
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3091
    emp := self at:#emphasisForModifiedBuffer ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3092
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3093
	emp := #color->Color red darkened.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3094
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3095
	self at:#emphasisForModifiedBuffer put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3096
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3097
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3098
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3099
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3100
     self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3101
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3102
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3103
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3104
emphasisForNamespacedCode
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3105
    "the emphasis for changed code (in changeSet) in the browser"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3106
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3107
    |emp|
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3108
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3109
    emp := self at:#emphasisForNamespacedCode ifAbsent:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3110
    emp isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3111
	emp := #color->Color green darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3112
	"/ emp := Array with:#bold with:emp.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3113
	"/ emp := #color->Color blue darkened.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3114
	self at:#emphasisForNamespacedCode put:emp.
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3115
    ].
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3116
    ^ emp
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3117
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3118
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3119
     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
  3120
     UserPreferences current emphasisForNamespacedCode.
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3121
     UserPreferences current at:#emphasisForNamespacedCode put:nil.
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3122
    "
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3123
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3124
    "Created: / 01-07-2010 / 18:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3125
!
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  3126
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3127
emphasisForObsoleteCode
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3128
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3129
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3130
    emp := self at:#emphasisForObsoleteCode ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3131
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3132
	emp := #color->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3133
	emp := Array with:#bold with:emp.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3134
	self at:#emphasisForObsoleteCode put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3135
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3136
    ^ emp
9276
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3137
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3138
    "
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3139
     self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil].
120c3f8fc50b changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents: 9184
diff changeset
  3140
    "
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3141
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3142
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3143
emphasisForReadVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3144
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3145
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3146
    emp := self at:#emphasisForReadVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3147
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3148
	emp := #underline.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3149
	self at:#emphasisForReadVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3150
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3151
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3152
!
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3153
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3154
emphasisForWrittenVariable
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3155
    |emp|
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3156
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3157
    emp := self at:#emphasisForWrittenVariable ifAbsent:nil.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3158
    emp isNil ifTrue:[
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3159
	emp := Array with:#underline with:#underlineColor->Color red.
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3160
	self at:#emphasisForWrittenVariable put:emp.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3161
    ].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3162
    ^ emp
6832
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3163
! !
4169c2542062 add the FileBrowserV2 settings
penk
parents: 6818
diff changeset
  3164
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  3165
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'!
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3166
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3167
argumentIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3168
    "the color used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3169
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3170
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3171
    ^ self at:#argumentIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3172
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3173
    "Created: / 31.3.1998 / 15:08:20 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3174
    "Modified: / 1.4.1998 / 13:19:58 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3175
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3176
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3177
argumentIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3178
    "the emphasis used for argument identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3179
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3180
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3181
    ^ self at:#argumentIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3182
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3183
    "Created: / 31.3.1998 / 15:16:40 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3184
    "Modified: / 1.4.1998 / 13:19:55 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3185
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3186
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3187
badIdentifierColor
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3188
    "the color used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3189
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3190
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3191
    ^ self at:#badIdentifierColor ifAbsent:[self identifierColor]
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3192
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3193
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3194
badIdentifierEmphasis
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3195
    "the emphasis used for illegal identifiers;
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3196
     If syntaxColoring is turned on."
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3197
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3198
    ^ self at:#badIdentifierEmphasis ifAbsent:[UserPreferences default at:#badIdentifierEmphasis ifAbsent:#normal]
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3199
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3200
    "Modified: / 21-04-2011 / 12:34:50 / cg"
4326
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3201
!
9b1d4f1bf719 inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 4320
diff changeset
  3202
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3203
booleanConstantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3204
    "the color used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3205
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3206
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3207
    ^ self at:#booleanConstantColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3208
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3209
    "Created: / 31.3.1998 / 18:12:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3210
    "Modified: / 1.4.1998 / 13:20:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3211
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3212
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3213
booleanConstantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3214
    "the emphasis used for boolean constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3215
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3216
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3217
    ^ self at:#booleanConstantEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3218
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3219
    "Created: / 31.3.1998 / 18:12:46 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3220
    "Modified: / 1.4.1998 / 13:26:01 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3221
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3222
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3223
bracketColor
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3224
    "the color used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3225
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3226
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3227
    ^ self at:#bracketColor ifAbsent:[self defaultSyntaxColor]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3228
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3229
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3230
     self current at:#bracketColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3231
     self current at:#bracketEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3232
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3233
     self current bracketColor
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3234
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3235
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3236
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3237
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3238
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3239
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3240
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3241
bracketEmphasis
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3242
    "the emphasis used for brackets;
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3243
     If syntaxColoring is turned on."
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3244
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3245
    ^ self at:#bracketEmphasis ifAbsent:[self defaultSyntaxEmphasis]
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3246
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3247
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3248
     self current at:#bracketEmphasis  put:#bold
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3249
     self current bracketEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3250
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3251
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3252
    "Created: / 31.3.1998 / 19:11:38 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3253
    "Modified: / 1.4.1998 / 13:22:33 / cg"
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3254
!
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3255
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3256
classVariableIdentifierColor
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3257
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3258
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3259
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3260
    ^ self at:#classVariableIdentifierColor ifAbsent:[self globalIdentifierColor]
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3261
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3262
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3263
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3264
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3265
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3266
classVariableIdentifierEmphasis
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3267
    "the color used for classVar/classInstVar identifiers
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3268
     If syntaxColoring is turned on."
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3269
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3270
    ^ self at:#classVariableIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
4320
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3271
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3272
    "Modified: / 1.4.1998 / 13:20:47 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3273
    "Created: / 4.3.1999 / 12:50:31 / cg"
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3274
!
9d6e4f645e97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4319
diff changeset
  3275
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3276
collectionEnumerationSelectorColor
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3277
    "the color used for some selected collection enumeration
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3278
     selectors (such as collect:, select: etc.);
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3279
     If syntaxColoring is turned on.
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3280
     If left nil, the normal selector color is used."
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3281
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3282
    ^ self at:#collectionEnumerationSelectorColor ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3283
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3284
    "Created: / 14-02-2012 / 15:52:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3285
!
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3286
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3287
collectionEnumerationSelectorEmphasis
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3288
    "the color used for some selected collection enumeration
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3289
     selectors (such as collect:, select: etc.);
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3290
     If syntaxColoring is turned on.
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3291
     If left nil, the normal selector emphasis is used."
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3292
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3293
    ^ self at:#collectionEnumerationSelectorEmphasis ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3294
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3295
    "Created: / 14-02-2012 / 15:58:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3296
!
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3297
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3298
commentColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3299
    "the color used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3300
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3301
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3302
    ^ self at:#commentColor ifAbsent:[UserPreferences default at:#commentColor ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3303
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3304
    "Created: / 31-03-1998 / 15:10:23 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3305
    "Modified: / 21-04-2011 / 12:33:39 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3306
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3307
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3308
commentEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3309
    "the emphasis used for comments;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3310
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3311
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3312
    ^ self at:#commentEmphasis ifAbsent:[UserPreferences default at:#commentEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3313
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3314
    "Created: / 31-03-1998 / 15:09:59 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3315
    "Modified: / 21-04-2011 / 12:34:48 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3316
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3317
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3318
commentEmphasisAndColor
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3319
    ^ self emphasis:(self commentEmphasis) andColor:(self commentColor).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3320
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3321
    "Modified: / 17-02-2011 / 14:20:41 / cg"
5258
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3322
!
3490a1891a53 query added
Claus Gittinger <cg@exept.de>
parents: 5236
diff changeset
  3323
15925
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3324
commentFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3325
    "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
  3326
     If syntaxColoring is turned on."
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3327
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3328
    ^ self at:#commentFont ifAbsent:nil
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3329
!
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3330
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3331
commentFont:aFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3332
    "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
  3333
     If syntaxColoring is turned on."
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3334
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3335
    self at:#commentFont put:aFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3336
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3337
    "
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3338
     UserPreferences current commentFont:(XftFontDescription family: 'Comic Sans' size: 12)
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3339
     UserPreferences current commentFont
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3340
    "
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3341
!
80810829f468 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15917
diff changeset
  3342
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3343
constantColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3344
    "the color used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3345
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3346
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3347
    ^ 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
  3348
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3349
    "Created: / 31-03-1998 / 18:13:15 / cg"
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3350
    "Modified: / 21-04-2011 / 12:33:36 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3351
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3352
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3353
constantEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3354
    "the emphasis used for constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3355
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3356
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3357
    ^ self at:#constantEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3358
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3359
    "Created: / 31.3.1998 / 18:13:23 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3360
    "Modified: / 1.4.1998 / 13:25:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3361
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3362
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3363
controlFlowSelectorColor
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3364
    "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
  3365
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3366
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3367
    ^ self at:#controlFlowSelectorColor ifAbsent:nil
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3368
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3369
    "Created: / 08-09-2006 / 15:51:20 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3370
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3371
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3372
controlFlowSelectorEmphasis
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3373
    "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
  3374
     If syntaxColoring is turned on."
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3375
14012
Claus Gittinger <cg@exept.de>
parents: 14007
diff changeset
  3376
    ^ self at:#controlFlowSelectorEmphasis ifAbsent:nil
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3377
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3378
    "Created: / 08-09-2006 / 15:51:04 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3379
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  3380
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3381
debugSelectorColor
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3382
    "the color used for some selected debug
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3383
     selectors (such as halt etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3384
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3385
     If left nil, the normal selector color is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3386
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3387
    ^ self at:#debugSelectorColor ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3388
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3389
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3390
debugSelectorEmphasis
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3391
    "the color used for some selected debug
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3392
     selectors (such as halt etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3393
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3394
     If left nil, the normal selector emphasis is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3395
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3396
    ^ self at:#debugSelectorEmphasis ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3397
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3398
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3399
defaultSyntaxColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3400
    "the color used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3401
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3402
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3403
    ^ 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
  3404
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3405
    "Modified: / 21-04-2011 / 12:31:48 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3406
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3407
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3408
defaultSyntaxEmphasis
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3409
    "the emphasis used for anything else;
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3410
     If syntaxColoring is turned on."
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3411
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  3412
    ^ self
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3413
        at:#defaultSyntaxEmphasis
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3414
        ifAbsent:[UserPreferences default at:#defaultSyntaxEmphasis ifAbsent:#normal]
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3415
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3416
    "Modified: / 21-04-2011 / 12:34:46 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3417
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3418
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3419
doesNotUnderstand:aMessage
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3420
    |k def numArgs|
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3421
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3422
    k := aMessage selector.
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3423
    (numArgs := aMessage numArgs) == 0 ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3424
	(self includesKey:k) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3425
	    ^ self at:k
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3426
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3427
	((def := self class default) includesKey:k) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3428
	    ^ def at:k
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3429
	].
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3430
	^ self defaultValue
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3431
    ].
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3432
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3433
    "/ this is needed, if a setting is loaded (via the settings.stx) at a time
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3434
    "/ when the corresponding package which uses that setting is not yet loaded;
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3435
    "/ for example: libsvn settings, with no libsvn being present.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3436
    "/ if obsolete keys accumulate over time, we might need a settings cleanup GUI to
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3437
    "/ care for that.
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3438
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3439
    ((numArgs == 1) and:[ (k endsWith:$:)])
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3440
    ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3441
	k := (k copyButLast) asSymbol.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3442
	^ self at:k put:(aMessage arg1)
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3443
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  3444
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3445
    numArgs == 1 ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3446
	('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  3447
	^ nil
7272
a45033450ad8 *** empty log message ***
penk
parents: 7271
diff changeset
  3448
    ].
6252
23fcbd461e9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 6177
diff changeset
  3449
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3450
    ^ super doesNotUnderstand:aMessage
13597
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3451
1d17dd4b5fda changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents: 13596
diff changeset
  3452
    "Modified (comment): / 19-08-2011 / 14:01:56 / cg"
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3453
!
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3454
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3455
emphasis:e andColor:c
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3456
    ^ Text addEmphasis:e to:(#color->c).
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3457
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3458
    "Created: / 17-02-2011 / 14:20:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3459
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3460
8965
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3461
emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3462
    ^ self at:#emphasizeParenthesisLevel ifAbsent:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3463
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3464
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3465
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3466
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3467
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3468
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3469
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3470
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3471
emphasizeParenthesisLevel:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3472
    self at:#emphasizeParenthesisLevel put:aBoolean
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3473
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3474
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3475
     UserPreferences current emphasizeParenthesisLevel
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3476
     UserPreferences current emphasizeParenthesisLevel:true
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3477
     UserPreferences current emphasizeParenthesisLevel:false
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3478
    "
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3479
!
b3cebce55744 emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents: 8869
diff changeset
  3480
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3481
errorColor
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3482
    "the color used for illegal identifiers;
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3483
     If syntaxColoring is turned on."
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3484
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3485
    ^ 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
  3486
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3487
    "Modified: / 21-04-2011 / 12:33:33 / cg"
4341
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3488
!
eb862eba0a0b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4336
diff changeset
  3489
15545
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3490
errorRaisingSelectorColor
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3491
    "the color used for some selected error raising
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3492
     selectors (such as raise etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3493
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3494
     If left nil, the normal selector color is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3495
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3496
    ^ self at:#errorRaisingSelectorColor ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3497
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3498
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3499
errorRaisingSelectorEmphasis
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3500
    "the color used for some selected error raising
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3501
     selectors (such as raise etc.);
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3502
     If syntaxColoring is turned on.
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3503
     If left nil, the normal selector emphasis is used."
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3504
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3505
    ^ self at:#errorRaisingSelectorEmphasis ifAbsent:nil
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3506
!
afc9b6289701 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15427
diff changeset
  3507
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3508
fullSelectorCheck
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3509
    "with fullSelector check, selectors are searched immediately for
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3510
     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
  3511
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3512
    ^ self at:#fullSelectorCheck ifAbsent:[UserPreferences default at:#fullSelectorCheck]
4306
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3513
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3514
    "Created: / 31.3.1998 / 15:09:41 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3515
    "Modified: / 1.4.1998 / 13:25:06 / cg"
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3516
!
a4720d8dd3b7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4121
diff changeset
  3517
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3518
globalClassIdentifierColor
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3519
    "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
  3520
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3521
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3522
    ^ self at:#globalClassIdentifierColor ifAbsent:[self globalIdentifierColor]
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3523
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3524
    "Modified: / 1.4.1998 / 13:20:47 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3525
    "Created: / 4.3.1999 / 12:50:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3526
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3527
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3528
globalClassIdentifierEmphasis
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3529
    "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
  3530
     If syntaxColoring is turned on."
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3531
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3532
    ^ self at:#globalClassIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
4023
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3533
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3534
    "Modified: / 1.4.1998 / 13:25:31 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3535
    "Created: / 4.3.1999 / 12:51:00 / cg"
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3536
!
46805a0a73b3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
  3537
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3538
globalIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3539
    "the color used for global identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3540
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3541
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3542
    ^ self at:#globalIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3543
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3544
    "Created: / 31.3.1998 / 15:18:49 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3545
    "Modified: / 1.4.1998 / 13:20:47 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3546
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3547
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3548
globalIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3549
    "the emphasis used for global variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3550
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3551
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3552
    ^ self at:#globalIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3553
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3554
    "Created: / 31.3.1998 / 15:18:29 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3555
    "Modified: / 1.4.1998 / 13:25:31 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3556
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3557
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3558
hereColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3559
    "the color used for the here pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3560
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3561
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3562
    ^ self at:#hereColor ifAbsent:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3563
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3564
    "Created: / 31.3.1998 / 17:38:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3565
    "Modified: / 1.4.1998 / 13:20:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3566
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3567
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3568
hereEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3569
    "the emphasis used for the hre special variable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3570
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3571
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3572
    ^ self at:#hereEmphasis ifAbsent:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3573
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3574
    "Created: / 31.3.1998 / 17:35:13 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3575
    "Modified: / 1.4.1998 / 13:25:17 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3576
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3577
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3578
identifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3579
    "the color used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3580
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3581
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3582
    ^ self at:#identifierColor ifAbsent:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3583
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3584
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3585
     UserPreferences current at:#identifierColor put:Color green darkened darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3586
     UserPreferences current at:#identifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3587
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3588
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3589
    "Created: / 31.3.1998 / 17:35:55 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3590
    "Modified: / 2.4.1998 / 10:39:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3591
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3592
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3593
identifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3594
    "the emphasis used for other identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3595
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3596
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3597
    ^ self at:#identifierEmphasis ifAbsent:[self defaultSyntaxEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3598
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3599
    "Created: / 31.3.1998 / 15:09:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3600
    "Modified: / 1.4.1998 / 13:25:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3601
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3602
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3603
instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3604
    "the color used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3605
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3606
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3607
    ^ self at:#instVarIdentifierColor ifAbsent:[self identifierColor]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3608
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3609
    "
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3610
     UserPreferences current at:#instVarIdentifierColor put:Color green darkened.
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3611
     UserPreferences current at:#instVarIdentifierColor put:Color black.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  3612
     UserPreferences current instVarIdentifierColor
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3613
    "
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3614
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3615
    "Created: / 16.4.1998 / 18:31:29 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3616
    "Modified: / 16.4.1998 / 18:57:06 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3617
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3618
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3619
instVarIdentifierEmphasis
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3620
    "the emphais used for instance variable identifiers;
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3621
     If syntaxColoring is turned on."
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3622
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3623
    ^ self at:#instVarIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3624
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3625
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3378
92288628a6bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3377
diff changeset
  3626
    "Created: / 16.4.1998 / 18:40:05 / cg"
3377
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3627
!
9d7c8b2ef58e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3364
diff changeset
  3628
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3629
jsKeywordColor
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3630
    ^ self at:#jsKeywordColor ifAbsent:[self defaultSyntaxColor]
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3631
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3632
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3633
jsKeywordEmphasis
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3634
    ^ self at:#jsKeywordEmphasis ifAbsent:[self defaultSyntaxEmphasis]
8420
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3635
!
08756fae71a0 prefs for js
ca
parents: 8252
diff changeset
  3636
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3637
localIdentifierColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3638
    "the color used for local variable identifiers;
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
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3641
    ^ self at:#localIdentifierColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3642
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3643
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3644
     UserPreferences current at:#localIdentifierColor put:Color green darkened.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3645
     UserPreferences current at:#localIdentifierColor put:Color black.
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3646
    "
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3647
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3648
    "Created: / 31.3.1998 / 15:18:07 / cg"
3362
6855944431e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3361
diff changeset
  3649
    "Modified: / 2.4.1998 / 10:40:05 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3650
!
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
localIdentifierEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3653
    "the emphais used for local variable identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3654
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3655
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3656
    ^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3657
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3658
    "Created: / 31.3.1998 / 15:16:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3659
    "Modified: / 1.4.1998 / 13:24:42 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3660
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3661
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3662
methodSelectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3663
    "the color used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3664
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3665
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3666
    ^ self at:#methodSelectorColor ifAbsent:[self defaultSyntaxColor]
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
    "Created: / 31.3.1998 / 15:11:24 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3669
    "Modified: / 1.4.1998 / 13:24:26 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3670
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3671
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3672
methodSelectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3673
    "the emphasis used for a methods selector pattern;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3674
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3675
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3676
    ^ self at:#methodSelectorEmphasis ifAbsent:[UserPreferences default at:#methodSelectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3677
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3678
    "Created: / 31-03-1998 / 15:11:16 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3679
    "Modified: / 21-04-2011 / 12:34:42 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3680
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3681
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3682
numberConstantColor
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3683
    "the color used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3684
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3685
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3686
    ^ self at:#numberConstantColor ifAbsent:[ self constantColor ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3687
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3688
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3689
numberConstantEmphasis
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3690
    "the emphasis used for number constants;
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3691
     If syntaxColoring is turned on."
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3692
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3693
    ^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ]
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3694
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  3695
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3696
poolVariableIdentifierColor
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3697
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3698
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3699
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3700
    ^ self at:#poolVariableIdentifierColor ifAbsent:[self globalIdentifierColor]
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3701
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3702
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3703
poolVariableIdentifierEmphasis
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3704
    "the color used for pool variable identifiers
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3705
     If syntaxColoring is turned on."
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3706
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3707
    ^ self at:#poolVariableIdentifierEmphasis ifAbsent:[self globalIdentifierEmphasis]
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3708
!
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  3709
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3710
returnColor
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3711
    "the color used for the return expression;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3712
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3713
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3714
    ^ self at:#returnColor ifAbsent:[self defaultSyntaxColor]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3715
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3716
    "Modified: / 5.1.1980 / 00:43:52 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3717
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3718
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3719
returnEmphasis
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3720
    "the emphasis used for returns;
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3721
     If syntaxColoring is turned on."
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3722
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3723
    ^ self at:#returnEmphasis ifAbsent:[#bold "self defaultSyntaxEmphasis"]
4076
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3724
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3725
    "Created: / 5.1.1980 / 00:43:39 / cg"
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3726
!
96cb7146bc59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4075
diff changeset
  3727
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3728
selectorColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3729
    "the color used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3730
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3731
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3732
    ^ self at:#selectorColor ifAbsent:[self defaultSyntaxColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3733
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3734
    "Created: / 31.3.1998 / 15:19:19 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3735
    "Modified: / 1.4.1998 / 13:24:04 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3736
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3737
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3738
selectorEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3739
    "the emphasis used for message selectors;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3740
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3741
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3742
    ^ self at:#selectorEmphasis ifAbsent:[UserPreferences default at:#selectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3743
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3744
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3745
    "Modified: / 21-04-2011 / 12:34:39 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3746
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3747
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3748
selfColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3749
    "the color used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3750
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3751
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3752
    ^ self at:#selfColor ifAbsent:[self identifierColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3753
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3754
    "Created: / 31.3.1998 / 17:35:45 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3755
    "Modified: / 1.4.1998 / 13:21:07 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3756
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3757
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3758
selfEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3759
    "the emphasis used for the self pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3760
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3761
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3762
    ^ self at:#selfEmphasis ifAbsent:[self identifierEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3763
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3764
    "Created: / 31.3.1998 / 17:34:57 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3765
    "Modified: / 1.4.1998 / 13:21:51 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3766
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3767
14004
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3768
sideEffectAssignmentBackgroundColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3769
    "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
  3770
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3771
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3772
    ^ self at:#sideEffectAssignmentBackgroundColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3773
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3774
    "Created: / 13-02-2012 / 11:35:20 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3775
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3776
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3777
sideEffectAssignmentColor
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3778
    "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
  3779
     If nil is returned, the variable's color is used"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3780
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3781
    ^ self at:#sideEffectAssignmentColor ifAbsent:[ nil ]
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3782
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3783
    "Created: / 13-02-2012 / 11:35:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3784
!
Claus Gittinger <cg@exept.de>
parents: 13973
diff changeset
  3785
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3786
stringColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3787
    "the color used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3788
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3789
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3790
    ^ self at:#stringColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3791
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3792
    "Created: / 31.3.1998 / 15:19:50 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3793
    "Modified: / 1.4.1998 / 13:22:06 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3794
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3795
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3796
stringEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3797
    "the emphasis used for string constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3798
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3799
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3800
    ^ self at:#stringEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3801
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3802
    "Created: / 31.3.1998 / 15:19:09 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3803
    "Modified: / 1.4.1998 / 13:22:00 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3804
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3805
13308
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3806
stringEmphasisAndColor
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3807
    ^ self emphasis:(self stringEmphasis) andColor:(self stringColor).
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3808
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3809
    "Created: / 17-02-2011 / 14:29:10 / cg"
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3810
!
d49548a99889 added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents: 13307
diff changeset
  3811
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3812
superColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3813
    "the color used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3814
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3815
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3816
    ^ self at:#superColor ifAbsent:[self selfColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3817
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3818
    "Created: / 31.3.1998 / 17:37:56 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3819
    "Modified: / 1.4.1998 / 13:21:15 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3820
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3821
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3822
superEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3823
    "the emphasis used for the super pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3824
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3825
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3826
    ^ self at:#superEmphasis ifAbsent:[self selfEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3827
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3828
    "Created: / 31.3.1998 / 17:35:08 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3829
    "Modified: / 1.4.1998 / 13:21:41 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3830
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3831
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3832
symbolColor
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3833
    "the color used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3834
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3835
16589
89edf4b377f9 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16587
diff changeset
  3836
    ^ self at:#symbolColor ifAbsent:[self constantColor]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3837
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3838
    "Created: / 1.4.1998 / 12:57:35 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3839
    "Modified: / 1.4.1998 / 13:22:16 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3840
!
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3841
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3842
symbolEmphasis
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3843
    "the emphasis used for symbol constants;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3844
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3845
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3846
    ^ self at:#symbolEmphasis ifAbsent:[self constantEmphasis]
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3847
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3848
    "Created: / 1.4.1998 / 12:57:43 / cg"
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3849
    "Modified: / 1.4.1998 / 13:23:43 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3850
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3851
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3852
thisContextColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3853
    "the color used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3854
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3855
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3856
    ^ self at:#thisContextColor ifAbsent:[self identifierColor]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3857
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3858
    "Created: / 31.3.1998 / 17:37:49 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3859
    "Modified: / 1.4.1998 / 13:21:24 / cg"
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3860
!
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3861
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3862
thisContextEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3863
    "the emphasis used for the thisContext pseudoVariable;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3864
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3865
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3866
    ^ self at:#thisContextEmphasis ifAbsent:[self identifierEmphasis]
3352
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3867
ebf6c330ff71 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3351
diff changeset
  3868
    "Created: / 31.3.1998 / 17:35:27 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3869
    "Modified: / 1.4.1998 / 13:21:30 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3870
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3871
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3872
unimplementedSelectorColor
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3873
    "the color used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3874
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3875
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3876
    ^ self at:#unimplementedSelectorColor ifAbsent:[UserPreferences default at:#unimplementedSelectorColor ifAbsent:[Color black]]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3877
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3878
    "Modified: / 21-04-2011 / 12:33:29 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3879
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3880
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3881
unimplementedSelectorEmphasis
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3882
    "the emphasis used for bad message selectors;
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3883
     If syntaxColoring is turned on."
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3884
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3885
    ^ self at:#unimplementedSelectorEmphasis ifAbsent:[UserPreferences default at:#unimplementedSelectorEmphasis ifAbsent:#normal]
13346
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3886
9f020c62dbfe changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 13340
diff changeset
  3887
    "Created: / 31-03-1998 / 15:19:09 / cg"
13347
b3245e290ed0 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 13346
diff changeset
  3888
    "Modified: / 21-04-2011 / 12:34:36 / cg"
4316
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3889
!
c3934d0d1e3e added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents: 4306
diff changeset
  3890
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3891
unknownIdentifierColor
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3892
    "the color used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3893
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3894
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3895
    ^ self at:#unknownIdentifierColor ifAbsent:[self badIdentifierColor]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3896
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3897
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3898
     self current at:#unknownIdentifierColor  put:Color red.
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3899
     self current at:#unknownIdentifierEmphasis  put:#bold
4317
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3900
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3901
     self current unknownIdentifierColor
aba88adaf752 concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents: 4316
diff changeset
  3902
     self current unknownIdentifierEmphasis
3361
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3903
    "
daabd9bf9c3b checkin from browser
ca
parents: 3360
diff changeset
  3904
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3905
    "Created: / 31.3.1998 / 19:11:38 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3906
    "Modified: / 1.4.1998 / 13:22:33 / cg"
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3907
!
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3908
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3909
unknownIdentifierEmphasis
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3910
    "the emphasis used for unknown identifiers;
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3911
     If syntaxColoring is turned on."
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3912
19255
0796978111de #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19087
diff changeset
  3913
    ^ self at:#unknownIdentifierEmphasis ifAbsent:[self badIdentifierEmphasis]
3354
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3914
9336b571ee90 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3353
diff changeset
  3915
    "Created: / 31.3.1998 / 19:11:55 / cg"
3360
3ca08e2afd68 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3359
diff changeset
  3916
    "Modified: / 1.4.1998 / 13:22:45 / cg"
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3917
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3918
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3919
xmlAttributeColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3920
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3921
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3922
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3923
    ^ self at:#xmlAttributeColor ifAbsent:[ Color green darkened ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3924
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3925
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3926
     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
  3927
     self current xmlAttributeColor
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3928
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3929
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3930
    "Created: / 24-07-2011 / 21:30:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3931
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3932
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3933
xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3934
    "the emphasis used for xml-attributes;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3935
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3936
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3937
    ^ self at:#xmlAttributeEmphasis ifAbsent:[ #bold "#normal" ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3938
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3939
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3940
     self current at:#xmlAttributeEmphasis put:#normal
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3941
     self current at:#xmlAttributeEmphasis put:#bold
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3942
     self current xmlAttributeEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3943
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3944
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3945
    "Created: / 24-07-2011 / 21:30:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3946
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3947
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3948
xmlCDataColor
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3949
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3950
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3951
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3952
    ^ self at:#xmlCDataColor ifAbsent:[ Color blue ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3953
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3954
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3955
     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
  3956
     self current xmlCDataColor
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3957
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3958
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3959
    "Created: / 24-07-2011 / 21:31:30 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3960
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3961
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3962
xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3963
    "the emphasis used for xml-CData;
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3964
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3965
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3966
    ^ self at:#xmlCDataEmphasis ifAbsent:[ #normal ]
13522
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3967
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3968
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3969
     self current at:#xmlCDataEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3970
     self current xmlCDataEmphasis
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3971
    "
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3972
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3973
    "Created: / 24-07-2011 / 21:31:52 / cg"
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3974
!
Claus Gittinger <cg@exept.de>
parents: 13503
diff changeset
  3975
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3976
xmlTagColor
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3977
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3978
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3979
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3980
    ^ self at:#xmlTagColor ifAbsent:[ Color blue ]
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3981
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3982
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3983
     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
  3984
     self current xmlTagColor
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3985
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3986
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3987
    "Created: / 17-02-2011 / 14:18:28 / cg"
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3988
!
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3989
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3990
xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3991
    "the emphasis used for xml-tags;
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3992
     If syntaxColoring is turned on."
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3993
18804
f8c6e2e7ba78 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
  3994
    ^ self at:#xmlTagEmphasis ifAbsent:[ #bold ]
13307
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3995
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3996
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3997
     self current at:#xmlTagEmphasis put:#normal
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3998
     self current xmlTagEmphasis
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  3999
    "
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4000
Claus Gittinger <cg@exept.de>
parents: 13304
diff changeset
  4001
    "Created: / 17-02-2011 / 14:18:01 / cg"
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4002
! !
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4003
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4004
!UserPreferences methodsFor:'accessing-prefs-changes & history'!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4005
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4006
historyManagerAllowEditOfHistory:aBoolean
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4007
    "useful if you have 'beginner students', to prevent them from changing the history"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4008
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4009
    self 
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4010
        at: #'history-manager.allow-edit-of-history'
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4011
        put:aBoolean
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4012
! !
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4013
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4014
!UserPreferences methodsFor:'accessing-prefs-code'!
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4015
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4016
categoryForMenuActionsMethods
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4017
    ^ 'menu actions'.
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4018
!
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4019
15715
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4020
haltInObsoleteMethod
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4021
    "sometimes, these are annoying..."
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4022
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4023
    ^ self at:#haltInObsoleteMethod ifAbsent:true
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4024
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4025
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4026
     UserPreferences current haltInObsoleteMethod
15715
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4027
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4028
     UserPreferences current haltInObsoleteMethod:true
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4029
     UserPreferences current haltInObsoleteMethod:false
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4030
    "
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4031
!
88c954271347 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  4032
13722
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4033
ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4034
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4035
     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
  4036
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4037
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4038
    ^ self at:#ignorePublicPrivateCategories ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4039
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4040
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4041
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4042
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4043
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4044
    "Created: / 23-09-2011 / 19:49:37 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4045
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4046
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4047
ignorePublicPrivateCategories:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4048
    "used when loading dolphin code (which defines multiple categories per method);
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4049
     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
  4050
     Turn this on, to get reasonable categories when loading dolphin code"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4051
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4052
    self at:#ignorePublicPrivateCategories put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4053
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4054
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4055
     UserPreferences current ignorePublicPrivateCategories
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4056
    "
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4057
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4058
    "Created: / 23-09-2011 / 19:49:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4059
!
Claus Gittinger <cg@exept.de>
parents: 13684
diff changeset
  4060
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4061
keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4062
    "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
  4063
     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
  4064
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4065
19755
6f0e180f46a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19700
diff changeset
  4066
    "/ changed to always cache the sources.
6f0e180f46a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19700
diff changeset
  4067
    "/ 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
  4068
    ^ self at:#keepMethodSourceCode ifAbsent:true
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4069
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4070
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4071
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4072
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4073
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4074
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4075
keepMethodSourceCode:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4076
    "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
  4077
     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
  4078
     (will stay that high, even if switched off afterwards)"
12618
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4079
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4080
    ^ self at:#keepMethodSourceCode put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4081
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4082
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4083
     UserPreferences current keepMethodSourceCode
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4084
     UserPreferences current keepMethodSourceCode:true
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4085
    "
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4086
!
Claus Gittinger <cg@exept.de>
parents: 12563
diff changeset
  4087
12117
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4088
numberOfLinesForLongMethod
5ffce12a6b14 added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12104
diff changeset
  4089
    "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
  4090
12175
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4091
    ^ self at:#numberOfLinesForLongMethod ifAbsent:30
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4092
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4093
    "
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4094
     UserPreferences current numberOfLinesForLongMethod
d22d131dbfed changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents: 12167
diff changeset
  4095
    "
8232
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4096
! !
371649bcd96a generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents: 8005
diff changeset
  4097
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4098
!UserPreferences methodsFor:'accessing-prefs-code generator'!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4099
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4100
generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4101
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4102
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4103
    ^ self at:#generateComments ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4104
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4105
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4106
     UserPreferences current generateComments
12501
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4107
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4108
     UserPreferences current generateComments:true
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4109
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4110
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4111
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4112
generateComments:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4113
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4114
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4115
    self at:#generateComments put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4116
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4117
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4118
     UserPreferences current generateComments
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4119
     UserPreferences current generateComments:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4120
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4121
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4122
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4123
generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4124
    "return true; comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4125
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4126
    ^ self at:#generateCommentsForAspectMethods ifAbsent:true.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4127
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4128
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4129
     UserPreferences current generateCommentsForAspectMethods
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4130
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4131
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4132
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4133
generateCommentsForAspectMethods:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4134
    "true if comments shall be generated (by the codeGenerator tool)"
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4135
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4136
    self at:#generateCommentsForAspectMethods put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4137
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4138
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4139
     UserPreferences current generateCommentsForAspectMethods:false
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4140
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4141
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4142
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4143
generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4144
    "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
  4145
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4146
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4147
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4148
    ^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4149
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4150
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4151
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4152
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4153
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4154
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4155
generateCommentsForGetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4156
    "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
  4157
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4158
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4159
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4160
    self at:#generateCommentsForGetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4161
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4162
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4163
     UserPreferences current generateCommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4164
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4165
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4166
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4167
generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4168
    "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
  4169
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4170
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4171
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4172
    ^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false].
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4173
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4174
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4175
     UserPreferences current generateCommentsForSetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4176
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4177
!
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4178
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4179
generateCommentsForSetters:aBoolean
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4180
    "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
  4181
     The default is now false, as these look stupid in the browser and were only generated
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4182
     for the HTMLDocumentGenerator, which is not able  to generate these comments on the fly."
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4183
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4184
    self at:#generateCommentsForSetters put:aBoolean.
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4185
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4186
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4187
     UserPreferences current generateSommentsForGetters
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4188
    "
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4189
! !
0d9b7d311412 added:5 methods
Claus Gittinger <cg@exept.de>
parents: 12391
diff changeset
  4190
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4191
!UserPreferences methodsFor:'accessing-prefs-code view'!
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4192
15426
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4193
assignmentBackgroundColorForNavigationService
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4194
    ^ (Color rgbValue:16rFFDBDB)
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4195
!
8fb81aa4e9e2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
  4196
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4197
codeView2AutoPrettyPrint
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4198
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4199
    ^self at:#codeView2AutoPrettyPrint ifAbsent: false
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4200
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4201
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4202
     UserPreferences current codeView2AutoPrettyPrint
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4203
     UserPreferences current codeView2AutoPrettyPrint:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4204
     UserPreferences current codeView2AutoPrettyPrint:false"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4205
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4206
    "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
  4207
    "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
  4208
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4209
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4210
codeView2AutoPrettyPrint: aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4211
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4212
    ^self at:#codeView2AutoPrettyPrint put: aBoolean
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4213
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4214
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4215
     UserPreferences current codeView2AutoPrettyPrint
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4216
     UserPreferences current codeView2AutoPrettyPrint:true
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4217
     UserPreferences current codeView2AutoPrettyPrint:false"
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4218
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4219
    "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
  4220
    "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
  4221
!
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  4222
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4223
codeView2QuickSendersAndImplementorsOnControl
14733
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4224
    "if true, CTRL-click opens the quick senders/implementors menu;
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4225
     if false, you have to press ALT"
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4226
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4227
    ^self at:#codeView2QuickSendersAndImplementorsOnControl ifAbsent: false
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4228
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4229
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4230
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4231
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4232
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false"
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4233
!
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4234
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4235
codeView2QuickSendersAndImplementorsOnControl: aBoolean
14733
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4236
    "if true, CTRL-click opens the quick senders/implementors menu;
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4237
     if false, you have to press ALT"
d354dd094956 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14732
diff changeset
  4238
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4239
    ^self at:#codeView2QuickSendersAndImplementorsOnControl put: aBoolean
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4240
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4241
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4242
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4243
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true
14732
d52239daa817 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14698
diff changeset
  4244
     UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false"
14915
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4245
!
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4246
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4247
selectorBackgroundColorForNavigationService
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4248
    ^ (Color rgbValue:"16rADD9FF" 16rDBEEFF)
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4249
!
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4250
a6cc6e21f9cf class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14761
diff changeset
  4251
variableBackgroundColorForNavigationService
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4252
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4253
	at: #variableBackgroundColorForNavigationService
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4254
	ifAbsent: [
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4255
	    (Color rgbValue:16rFFFFA7)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4256
	    "/ (Color rgbValue:16rEFD7A7)
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4257
	]
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  4258
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  4259
    "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
  4260
! !
13547
f08daec3c459 changed: #historyManagerSignature
Claus Gittinger <cg@exept.de>
parents: 13523
diff changeset
  4261
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4262
!UserPreferences methodsFor:'accessing-prefs-defaultPackages'!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4263
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4264
addPreloadedPackage:packageName
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4265
    "add this to the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4266
     This will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4267
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4268
    (self at:#preloadedPackages ifAbsentPut:[Set new]) add:packageName.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4269
    Smalltalk loadPackage:packageName.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4270
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4271
    "
18557
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4272
     UserPreferences current preloadedPackages
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4273
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4274
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4275
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4276
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4277
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4278
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4279
preloadedPackages
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4280
    "the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4281
     These will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4282
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4283
    ^ self at:#preloadedPackages ifAbsent:[ #() ].
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4284
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4285
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4286
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4287
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4288
     UserPreferences current preloadedPackages
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4289
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4290
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4291
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4292
preloadedPackages:setOfPreloadedPackages
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4293
    "define the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4294
     This will be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4295
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4296
    |set|
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4297
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4298
    set := setOfPreloadedPackages asSet.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4299
    self at:#preloadedPackages put:set.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4300
    set do:[:each |
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4301
	Smalltalk loadPackage:each
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4302
    ].
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4303
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4304
    "
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4305
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4306
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4307
     UserPreferences current preloadedPackages
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4308
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4309
!
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4310
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4311
removePreloadedPackage:packageName
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4312
    "remove this from the set of preloaded packages.
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4313
     This will be no longer be automatically loaded whenever the system starts"
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4314
18557
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4315
    |preloaded|
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4316
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4317
    preloaded := self at:#preloadedPackages ifAbsent:[nil].
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4318
    preloaded notNil ifTrue:[
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4319
        preloaded remove:packageName ifAbsent:[]
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4320
    ].
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4321
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4322
    "
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4323
     UserPreferences current preloadedPackages
cee27e3e432e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18550
diff changeset
  4324
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4325
     UserPreferences current addPreloadedPackage:'stx:goodies/smallsense'
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4326
     UserPreferences current removePreloadedPackage:'stx:goodies/smallsense'
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4327
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4328
! !
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  4329
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4330
!UserPreferences methodsFor:'accessing-prefs-editor'!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4331
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4332
appendAbbreviationsToCompletionSuggestions
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4333
    "show abbreviations in completion"
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4334
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4335
    ^ self at:#appendAbbreviationsToCompletionSuggestions ifAbsent:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4336
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4337
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4338
     UserPreferences current appendAbbreviationsToCompletionSuggestions
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4339
     UserPreferences current appendAbbreviationsToCompletionSuggestions:true
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4340
     UserPreferences current appendAbbreviationsToCompletionSuggestions:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4341
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4342
!
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4343
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4344
appendAbbreviationsToCompletionSuggestions:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4345
    "show abbreviations in completion"
15913
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4346
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4347
    ^ self at:#appendAbbreviationsToCompletionSuggestions put:aBoolean
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4348
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4349
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4350
     UserPreferences current appendAbbreviationsToCompletionSuggestions
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4351
     UserPreferences current appendAbbreviationsToCompletionSuggestions:true
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4352
     UserPreferences current appendAbbreviationsToCompletionSuggestions:false
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4353
    "
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4354
!
9ed7da7df9b7 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15893
diff changeset
  4355
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4356
codeCompletionOnControlKey
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4357
    "show completion with CTRL-key - experimental"
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4358
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4359
    ^ self at:#codeCompletionOnControlKey ifAbsent:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4360
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4361
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4362
     UserPreferences current codeCompletionOnControlKey
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4363
     UserPreferences current codeCompletionOnControlKey:true
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4364
     UserPreferences current codeCompletionOnControlKey:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4365
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4366
!
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4367
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4368
codeCompletionOnControlKey:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4369
    "show completion with CTRL key - experimental"
15742
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4370
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4371
    ^ self at:#codeCompletionOnControlKey put:aBoolean
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4372
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4373
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4374
     UserPreferences current codeCompletionOnControlKey
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4375
     UserPreferences current codeCompletionOnControlKey:true
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4376
     UserPreferences current codeCompletionOnControlKey:false
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4377
    "
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4378
!
47bbc2ffe61e class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15728
diff changeset
  4379
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4380
codeCompletionOnTabKey
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4381
    "show completion with TAB-key - experimental"
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4382
15767
169f9c6acec2 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15748
diff changeset
  4383
    ^ self at:#codeCompletionOnTabKey ifAbsent:true
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4384
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4385
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4386
     UserPreferences current codeCompletionOnTabKey
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4387
     UserPreferences current codeCompletionOnTabKey:true
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4388
     UserPreferences current codeCompletionOnTabKey:false
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4389
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4390
!
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4391
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4392
codeCompletionOnTabKey:aBoolean
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4393
    "show completion with TAB-key - experimental"
15747
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4394
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4395
    self at:#codeCompletionOnTabKey put:aBoolean
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4396
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4397
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4398
     UserPreferences current codeCompletionOnTabKey
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4399
     UserPreferences current codeCompletionOnTabKey:true
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4400
     UserPreferences current codeCompletionOnTabKey:false
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4401
    "
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4402
!
bba1859a6cd8 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15742
diff changeset
  4403
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4404
codeCompletionViewKeyboardNavigationNeedsModifier
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4405
    "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
  4406
     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
  4407
     view if a shift- or control modifier is pressed.
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4408
     The default is false for backward compatibility"
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4409
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4410
    ^ self at:#codeCompletionViewKeyboardNavigationNeedsModifier ifAbsent:[false]
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4411
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4412
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4413
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4414
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4415
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4416
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4417
!
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4418
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4419
codeCompletionViewKeyboardNavigationNeedsModifier:aBoolean
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4420
    "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
  4421
     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
  4422
     view if a shift- or control modifier is pressed.
16584
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4423
     The default is false for backward compatibility"
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4424
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4425
    self at:#codeCompletionViewKeyboardNavigationNeedsModifier put:aBoolean
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4426
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4427
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4428
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4429
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4430
     UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4431
    "
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4432
!
6d43426bc7eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16570
diff changeset
  4433
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4434
deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4435
    "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
  4436
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4437
    ^ self at:#deleteSetsClipboardText ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4438
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4439
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4440
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4441
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4442
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4443
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4444
deleteSetsClipboardText:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4445
    "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
  4446
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4447
    ^ self at:#deleteSetsClipboardText put:aBooleanOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4448
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4449
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4450
     UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4451
     UserPreferences current deleteSetsClipboardText:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4452
     UserPreferences current deleteSetsClipboardText
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4453
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4454
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4455
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4456
enforcedDropModeForFiles
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4457
    "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
  4458
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4459
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4460
    ^ self at:#enforcedDropModeForFiles ifAbsent:nil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4461
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4462
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4463
     UserPreferences current enforcedDropModeForFiles
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4464
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4465
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4466
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4467
enforcedDropModeForFiles:aSymbolOrNil
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4468
    "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
  4469
     (default is nil, for ask)"
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4470
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4471
    ^ self at:#enforcedDropModeForFiles put:aSymbolOrNil
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4472
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4473
    "
12930
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4474
     UserPreferences current enforcedDropModeForFiles:#contents
bc3ca82d5a81 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 12905
diff changeset
  4475
     UserPreferences current enforcedDropModeForFiles:#name
11897
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4476
    "
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4477
!
e8003f2d538c Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents: 11694
diff changeset
  4478
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4479
extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4480
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4481
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4482
10310
89d972739353 extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents: 10240
diff changeset
  4483
    ^ self at:#extendedWordSelectMode ifAbsent:true
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4484
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4485
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4486
     UserPreferences current extendedWordSelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4487
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4488
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4489
    "Created: / 03-07-2006 / 16:49:58 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4490
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4491
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4492
extendedWordSelectMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4493
    "when double clicking, include underscore, dollar and at-character as word-characters ?
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4494
     (default is on)"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4495
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4496
    ^ self at:#extendedWordSelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4497
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4498
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4499
     UserPreferences current extendedWordSelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4500
     UserPreferences current extendedWordSelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4501
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4502
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4503
    "Created: / 03-07-2006 / 16:50:20 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4504
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4505
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4506
immediateCodeCompletion
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4507
    "show completion, as you type - experimental"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4508
19684
95ecd59eca16 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19634
diff changeset
  4509
    ^ self at:#immediateCodeCompletion ifAbsent:true "false"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4510
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4511
    "
15725
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4512
     UserPreferences current immediateCodeCompletion
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4513
     UserPreferences current immediateCodeCompletion:true
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4514
     UserPreferences current immediateCodeCompletion:false
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4515
    "
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4516
!
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4517
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4518
immediateCodeCompletion:aBoolean
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4519
    "show completion, as you type - experimental"
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4520
15726
a38e1e075388 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15725
diff changeset
  4521
    ^ self at:#immediateCodeCompletion put:aBoolean
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4522
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4523
    "
15725
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4524
     UserPreferences current immediateCodeCompletion
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4525
     UserPreferences current immediateCodeCompletion:true
a1ac75bd5b52 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15724
diff changeset
  4526
     UserPreferences current immediateCodeCompletion:false
15724
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4527
    "
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4528
!
d28434d361f3 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15715
diff changeset
  4529
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4530
numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4531
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4532
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4533
     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
  4534
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4535
    ^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4536
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4537
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4538
     UserPreferences current numberOfRememberedUndoOperationsInEditor
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4539
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4540
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4541
    "Modified: / 09-10-2006 / 11:01:35 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4542
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4543
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4544
numberOfRememberedUndoOperationsInEditor:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4545
    "the number of possible undo-operations.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4546
     Nil means: unlimited.
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4547
     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
  4548
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4549
    ^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4550
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4551
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4552
     UserPreferences current numberOfRememberedUndoOperationsInEditor:20
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4553
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4554
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4555
    "Created: / 09-10-2006 / 11:00:56 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4556
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4557
14052
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4558
selectAllWhenClickingBeyondEnd
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4559
    "select mode, when clicking after the end of text,
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4560
     as in st80 (or squeak), select all"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4561
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4562
    ^ self at:#selectAllWhenClickingBeyondEnd ifAbsent:false
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4563
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4564
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4565
     UserPreferences current selectAllWhenClickingBeyondEnd
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4566
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4567
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4568
    "Created: / 07-03-2012 / 14:00:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4569
!
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4570
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4571
selectAllWhenClickingBeyondEnd:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4572
    "select mode, when clicking after the end of text,
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4573
     as in st80 (or squeak), select all"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4574
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4575
    ^ self at:#selectAllWhenClickingBeyondEnd put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4576
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4577
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4578
     UserPreferences current selectAllWhenClickingBeyondEnd:true
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4579
     UserPreferences current selectAllWhenClickingBeyondEnd:false
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4580
    "
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4581
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4582
    "Created: / 07-03-2012 / 14:00:23 / cg"
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4583
!
Claus Gittinger <cg@exept.de>
parents: 14012
diff changeset
  4584
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4585
selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4586
    "Returns selection extension mode. Mode is either
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4587
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4588
    #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
  4589
		     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
  4590
		     That's how CG likes it.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4591
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4592
    #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
  4593
		     this is how most users expects it to behave.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4594
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4595
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4596
    For historical reasons, #traditional is the default..."
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4597
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4598
    ^ self at: #selectionExtensionMode ifAbsent:[ #traditional ]
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4599
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4600
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4601
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4602
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4603
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4604
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4605
    UserPreferences current selectionExtensionMode:#traditional
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4606
    UserPreferences current selectionExtensionMode:#standard
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4607
    UserPreferences current selectionExtensionMode:nil
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4608
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4609
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4610
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4611
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4612
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4613
    "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
  4614
!
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4615
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4616
selectionExtensionMode: aSymbol
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4617
    "Sets selection extension mode. Must be either:
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4618
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4619
    #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
  4620
		     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
  4621
		     That's how CG likes it.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4622
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4623
    #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
  4624
		     this is how most users expects it to behave.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4625
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4626
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4627
    For historical reasons, #traditional is the default..."
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4628
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4629
    aSymbol isNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4630
	self removeKey:#selectionExtensionMode.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4631
	^ self.
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4632
    ].
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4633
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4634
    (#(traditional standard) includes: aSymbol) ifFalse:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  4635
	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
  4636
    ].
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4637
    self at: #selectionExtensionMode put: aSymbol
16284
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4638
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4639
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4640
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4641
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4642
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4643
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4644
    UserPreferences current selectionExtensionMode:#traditional
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4645
    UserPreferences current selectionExtensionMode:#standard
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4646
    UserPreferences current selectionExtensionMode:nil
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4647
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4648
    UserPreferences current selectionExtensionMode
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4649
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4650
    "
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4651
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4652
    "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
  4653
!
6eb367d12be5 class: UserPreferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16278
diff changeset
  4654
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4655
st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4656
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4657
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4658
    ^ self at:#st80EditMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4659
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4660
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4661
     UserPreferences current st80EditMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4662
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4663
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4664
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4665
st80EditMode:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4666
    "editing as in st80 (do not allow cursor beyond endOfLine/endOftext)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4667
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4668
    ^ self at:#st80EditMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4669
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4670
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4671
     UserPreferences current st80EditMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4672
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4673
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4674
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4675
st80SelectMode
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  4676
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4677
     (select to corresponding lparen/double-quote) ?"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4678
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4679
    ^ self at:#st80SelectMode ifAbsent:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4680
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4681
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4682
     UserPreferences current st80SelectMode
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4683
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4684
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4685
    "Created: / 03-07-2006 / 16:25:19 / cg"
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4686
!
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4687
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4688
st80SelectMode:aBoolean
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  4689
    "select mode, when double clicking as in st80
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4690
     (select to corresponding lparen/double-quote)."
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4691
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4692
    ^ self at:#st80SelectMode put:aBoolean
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4693
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4694
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4695
     UserPreferences current st80SelectMode:true
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4696
     UserPreferences current st80SelectMode:false
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4697
    "
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4698
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4699
    "Created: / 03-07-2006 / 16:25:27 / cg"
10880
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4700
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4701
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4702
whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4703
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4704
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4705
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4706
    ^ self at:#whitespaceWordSelectMode ifAbsent:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4707
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4708
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4709
     UserPreferences current whitespaceWordSelectMode
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4710
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4711
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4712
    "Created: / 03-07-2006 / 16:49:58 / cg"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4713
!
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4714
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4715
whitespaceWordSelectMode:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4716
    "when double clicking, treat ANY non-whitespace as word-characters ?
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4717
     (default is off)"
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4718
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4719
    ^ self at:#whitespaceWordSelectMode put:aBoolean
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4720
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4721
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4722
     UserPreferences current whitespaceWordSelectMode:true
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4723
     UserPreferences current whitespaceWordSelectMode:false
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4724
    "
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4725
96f17c8c9d3a expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents: 10861
diff changeset
  4726
    "Created: / 03-07-2006 / 16:50:20 / cg"
10055
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4727
! !
48ecfd4958a2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10012
diff changeset
  4728
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4729
!UserPreferences methodsFor:'accessing-prefs-external tools'!
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4730
19386
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4731
defaultFileOpenCommandFor:suffix
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4732
    "for the fileBrowser - remember which command to use as-per suffix"
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4733
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4734
    ^ (self at:#defaultFileOpenCommands ifAbsentPut:[Dictionary new])
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4735
        at:suffix ifAbsent:nil
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4736
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4737
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4738
defaultFileOpenCommandFor:suffix put:openCmd
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4739
    "for the fileBrowser - remember which command to use as-per suffix"
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4740
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4741
    (self at:#defaultFileOpenCommands ifAbsentPut:[Dictionary new])
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4742
        at:suffix put:openCmd
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4743
!
0fc2c8343a5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 19310
diff changeset
  4744
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4745
osFileExplorerCommand
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4746
    "return an OS command template to open a finder/explorer or similar"
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4747
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4748
    ^ self at:#osFileExplorerCommand ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4749
!
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4750
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4751
osFileExplorerCommand:aString
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4752
    "define an OS command template to open a finder/explorer or similar"
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4753
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4754
    self at:#osFileExplorerCommand put:aString
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4755
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4756
    "
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4757
     UserPreferences current osFileExplorerCommand
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4758
     
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4759
     osx:
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4760
     UserPreferences current osFileExplorerCommand:'open %1'
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4761
     
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4762
     linux:
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4763
     UserPreferences current osFileExplorerCommand:'nautilus %1'
18922
aee337248062 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18920
diff changeset
  4764
     UserPreferences current osFileExplorerCommand:'dolphin %1'
18920
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4765
    "
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4766
! !
Claus Gittinger <cg@exept.de>
parents: 18871
diff changeset
  4767
18871
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4768
!UserPreferences methodsFor:'accessing-prefs-files and directories'!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4769
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4770
changeFileName
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4771
    "were to keep changes"
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4772
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4773
    ^ self 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4774
        at: #'changeFileName' 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4775
        ifAbsent: [nil] 
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4776
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4777
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4778
changeFileName:aFilename
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4779
    "were to keep changes"
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4780
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4781
    self
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4782
	at: #'changeFileName'
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4783
	put: aFilename.
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4784
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4785
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4786
usersModuleName
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4787
    "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
  4788
    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4789
    ^ self at:#usersModuleName ifAbsent:[OperatingSystem getLoginName ]
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4790
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4791
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4792
usersModuleName:aString
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4793
    self at:#usersModuleName put:aString
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4794
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4795
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4796
workspaceDirectory
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4797
    ^ self at:#workspaceDirectory ifAbsent:[self class defaultWorkspaceDirectory]
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4798
!
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4799
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4800
workspaceDirectory:aDirectoryOrNilForDefault
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4801
    |d|
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4802
    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4803
    (d := aDirectoryOrNilForDefault) notNil ifTrue:[
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4804
        d := d asFilename
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4805
    ].    
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4806
    self at:#workspaceDirectory put:d
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4807
! !
8ba61705c02e #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18867
diff changeset
  4808
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4809
!UserPreferences methodsFor:'accessing-prefs-localization'!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4810
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4811
language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4812
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4813
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4814
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4815
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4816
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4817
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4818
    ^ self at:#language ifAbsent:[Smalltalk language].
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4819
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4820
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4821
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4822
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4823
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4824
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4825
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4826
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4827
language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4828
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4829
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4830
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4831
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4832
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4833
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4834
    self at:#language put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4835
    Smalltalk language:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4836
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4837
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4838
     UserPreferences current language
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4839
     UserPreferences current language:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4840
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4841
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4842
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4843
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4844
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4845
languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4846
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4847
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4848
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4849
    "/ for now, forward to smalltalk, while all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4850
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4851
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4852
    ^ self at:#languageTerritory ifAbsent:[Smalltalk languageTerritory]
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4853
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4854
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4855
     UserPreferences current languageTerritory
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4856
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4857
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4858
    "Created: / 20-09-2006 / 23:55:01 / cg"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4859
!
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4860
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4861
languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4862
    "/ intermediate migration code;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4863
    "/ for now, Smalltalk uses a global language and territory setting;
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4864
    "/ however, for multi-user operation, this must be in a preference-setting.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4865
    "/ For now, forward to smalltalk, until all references to "Smalltalk-language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4866
    "/ are replaced with "UserPreferences current language"
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4867
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4868
    self at:#languageTerritory put:aLanguageSymbol.
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4869
    Smalltalk languageTerritory:aLanguageSymbol
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4870
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4871
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  4872
     UserPreferences current languageTerritory
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4873
     UserPreferences current languageTerritory:#en
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4874
    "
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4875
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4876
    "Created: / 20-09-2006 / 23:55:01 / cg"
18496
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4877
!
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4878
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4879
unitForFileSize
18497
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  4880
    "may return either 1000 or 1024"
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  4881
c3a299986ccc class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18496
diff changeset
  4882
    ^ self at:#unitForFileSize ifAbsent:[1000]
18496
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4883
!
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4884
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4885
unitStringsForFileSize
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4886
    self unitForFileSize == 1024 ifTrue:[
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4887
        ^ #('Byte' 'KiB' 'MiB' 'GiB' 'TiB' 'PiB' 'EiB' 'ZiB' 'YiB')
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4888
    ] ifFalse:[
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4889
        ^ #('Byte' 'KB' 'MB' 'GB' 'TB' 'PB' 'EB' 'ZB' 'YB')
59571300e735 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18489
diff changeset
  4890
    ].
18823
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4891
!
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4892
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4893
useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4894
    "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
  4895
     when the system comes up. If false, the setting here is used.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4896
     The default is true."
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4897
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4898
    ^ self at:#useSystemLanguage ifAbsent:[true].
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4899
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4900
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4901
     UserPreferences current useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4902
     UserPreferences current useSystemLanguage:false
18824
9511004e8aa9 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18823
diff changeset
  4903
     UserPreferences current useSystemLanguage:true
18823
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4904
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4905
!
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4906
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4907
useSystemLanguage:aBoolean
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4908
    "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
  4909
     when the system comes up. If false, the setting here is used.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4910
     The default is true."
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4911
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4912
    self at:#useSystemLanguage put:aBoolean.
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4913
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4914
    "
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4915
     UserPreferences current useSystemLanguage
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4916
     UserPreferences current useSystemLanguage:false
01a452c69668 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18818
diff changeset
  4917
    "
13373
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4918
! !
4aae1409ec97 changed:5 methods
Stefan Vogel <sv@exept.de>
parents: 13347
diff changeset
  4919
19472
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4920
!UserPreferences methodsFor:'accessing-prefs-startup'!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4921
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4922
autoloadedPackages
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4923
    "list of package names, which are automatically loaded upon startup"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4924
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4925
    ^ self at:#autoloadedPackages ifAbsent:[#()]
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4926
!
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4927
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4928
autoloadedPackages:aCollectionOfPackageNames
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4929
    "list of package names, which are automatically loaded upon startup"
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4930
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4931
    self at:#autoloadedPackages put:aCollectionOfPackageNames
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4932
! !
1c71c47b35d1 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19391
diff changeset
  4933
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4934
!UserPreferences methodsFor:'accessing-prefs-times'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4935
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4936
timeToAutoExpandItemsWhenDraggingOver
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4937
    "in a hierarchical tree view"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4938
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4939
    ^ 700  "/ millis
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4940
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4941
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4942
twoDigitDateHandler
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4943
    "return a block which converts a two-digit date.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4944
     Possible algorithms:
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  4945
	- identity: treat as year 00..99
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  4946
	- add 1900: treat as 1900..1999
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  4947
	- 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
  4948
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4949
     TODO: make this configurable, keep in dictionary and add to settings.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4950
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4951
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4952
    ^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4953
    "/ ^ [:x | 1900+x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4954
    "/ ^ [:x | x].
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4955
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4956
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4957
!UserPreferences methodsFor:'accessing-prefs-tools'!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4958
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4959
allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4960
    "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
  4961
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4962
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4963
    ^ self at:#allowSendMailFromDebugger ifAbsent:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4964
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4965
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4966
     UserPreferences current allowSendMailFromDebugger
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4967
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4968
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4969
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4970
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4971
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4972
allowSendMailFromDebugger:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4973
    "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
  4974
     mail account "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4975
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4976
    ^ self at:#allowSendMailFromDebugger put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4977
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4978
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4979
     UserPreferences current allowSendMailFromDebugger:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4980
     UserPreferences current allowSendMailFromDebugger:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4981
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4982
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4983
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4984
autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4985
    "return the flag which controls automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4986
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4987
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  4988
    ^ self at:#autoDefineWorkspaceVariables ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4989
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4990
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4991
     UserPreferences current autoDefineWorkspaceVariables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4992
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4993
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4994
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4995
autoDefineWorkspaceVariables:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4996
    "turn on/off automatic definition of unknown variables
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4997
     as workspace variables (in doIts)"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4998
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  4999
    ^ self at:#autoDefineWorkspaceVariables put:aBoolean
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5000
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5001
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5002
     UserPreferences current autoDefineWorkspaceVariables:true
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5003
     UserPreferences current autoDefineWorkspaceVariables:false
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5004
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5005
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5006
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5007
autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5008
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5009
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5010
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5011
    ^ self at:#autoRaiseDebugger ifAbsent:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5012
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5013
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5014
     UserPreferences current autoRaiseDebugger
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5015
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5016
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5017
    "Created: / 15-05-2007 / 13:29:10 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5018
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5019
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5020
autoRaiseDebugger:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5021
    "if true, the debugger raises itself automatically when entered.
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5022
     The default is true"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5023
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5024
    ^ self at:#autoRaiseDebugger put:aBoolean
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5025
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5026
    "
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5027
     UserPreferences current autoRaiseDebugger
10540
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5028
     UserPreferences current autoRaiseDebugger:false
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5029
     UserPreferences current autoRaiseDebugger:true
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5030
    "
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5031
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5032
    "Created: / 15-05-2007 / 13:29:31 / cg"
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5033
!
ccead52b3fd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10478
diff changeset
  5034
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5035
autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5036
    "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
  5037
     when it gets the focus (via the window manager) after that
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5038
     number of milliseconds. If nil, autoRaise is disabled.
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5039
     Especially useful with focusFollowsMouse under X11"
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5040
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5041
    ^ self at:#autoRaiseOnFocusInDelay ifAbsent:nil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5042
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5043
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5044
     UserPreferences current autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5045
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5046
!
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5047
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5048
autoRaiseOnFocusInDelay:anIntegerOrNil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5049
    "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
  5050
     when it gets the focus (via the window manager) after that
15130
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5051
     number of milliseconds. If nil, autoRaise is disabled.
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5052
     Especially useful with focusFollowsMouse under X11"
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5053
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5054
    ^ self at:#autoRaiseOnFocusInDelay put:anIntegerOrNil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5055
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5056
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5057
     UserPreferences current autoRaiseOnFocusInDelay
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5058
     UserPreferences current autoRaiseOnFocusInDelay:nil
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5059
     UserPreferences current autoRaiseOnFocusInDelay:750
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5060
    "
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5061
!
df8a9794fd74 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 14915
diff changeset
  5062
15417
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5063
autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5064
    "if true, the transcript raises itself automatically when new messages appear.
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5065
     The default is false"
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5066
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5067
    ^ self at:#autoRaiseTranscript ifAbsent:false
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5068
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5069
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5070
     UserPreferences current autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5071
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5072
!
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5073
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5074
autoRaiseTranscript:aBoolean
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5075
    "if true, the transcript raises itself automatically when new messages appear.
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5076
     The default is false"
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5077
15427
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5078
    |transcript|
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5079
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5080
    self at:#autoRaiseTranscript put:aBoolean.
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5081
    (self == UserPreferences current) ifTrue:[
18641
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5082
        transcript := Transcript current.
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5083
        (transcript notNil and:[transcript isTextCollector]) ifTrue:[
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5084
            transcript autoRaise:aBoolean.
95284fb28b6b class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18557
diff changeset
  5085
        ].
15427
56edc9d91140 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15426
diff changeset
  5086
    ].
15417
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5087
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5088
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5089
     UserPreferences current autoRaiseTranscript:true
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5090
     UserPreferences current autoRaiseTranscript:false
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5091
     UserPreferences current autoRaiseTranscript
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5092
    "
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5093
!
13b0cb902059 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15290
diff changeset
  5094
19087
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5095
debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5096
    "if non nil, any entered debugger writes a backrace to that logfile.
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5097
     This is useful to record all session-problems"
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5098
     
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5099
    ^ self at:#debuggerLogFile ifAbsent:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5100
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5101
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5102
     UserPreferences current debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5103
     UserPreferences current debuggerLogFile:'debug.log'
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5104
     UserPreferences current debuggerLogFile:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5105
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5106
!
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5107
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5108
debuggerLogFile:aFilename
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5109
    "if non nil, any entered debugger writes a backrace to that logfile.
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5110
     This is useful to record all session-problems"
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5111
     
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5112
    ^ self at:#debuggerLogFile put:aFilename
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5113
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5114
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5115
     UserPreferences current debuggerLogFile
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5116
     UserPreferences current debuggerLogFile:'debug.log'
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5117
     UserPreferences current debuggerLogFile:nil
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5118
    "
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5119
!
8dd2de981030 #FEATURE
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  5120
11419
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5121
editToolbarVisibleInWorkspace
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5122
    "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
  5123
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5124
    ^ self at:#editToolbarVisibleInWorkspace ifAbsent:false
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5125
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5126
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5127
editToolbarVisibleInWorkspace:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5128
    "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
  5129
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5130
    ^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5131
!
ee9207931cac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11390
diff changeset
  5132
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5133
functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5134
    "return the collection of function-key macros.
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5135
     Thats a dictionary, which assigns code to F-keys"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5136
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5137
    ^ self at:#functionKeySequences ifAbsentPut:[Dictionary new]
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5138
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5139
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5140
     UserPreferences current functionKeySequences
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5141
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5142
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5143
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5144
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5145
14160
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5146
hideSupportCodeInDebugger
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5147
    ^ self at:#hideSupportCodeInDebugger ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5148
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5149
    "
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5150
     UserPreferences current hideSupportCodeInDebugger
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5151
    "
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5152
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5153
    "Created: / 10-06-2012 / 21:24:09 / cg"
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5154
!
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5155
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5156
hideSupportCodeInDebugger:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5157
    ^ self at:#hideSupportCodeInDebugger put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5158
Claus Gittinger <cg@exept.de>
parents: 14159
diff changeset
  5159
    "Created: / 10-06-2012 / 21:24:18 / cg"
14159
Claus Gittinger <cg@exept.de>
parents: 14140
diff changeset
  5160
!
Claus Gittinger <cg@exept.de>
parents: 14140
diff changeset
  5161
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5162
infoVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5163
    "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
  5164
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5165
    ^ self at:#infoVisibleInWorkspace ifAbsent:false
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5166
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5167
    "Created: / 14-07-2007 / 16:43:37 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5168
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5169
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5170
infoVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5171
    "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
  5172
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5173
    ^ self at:#infoVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5174
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5175
    "Created: / 14-07-2007 / 16:43:44 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5176
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5177
16377
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5178
sendMessagesAlsoToTranscript
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5179
    "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
  5180
     on both Stderr AND the Transcript, or only on Stderr"
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5181
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5182
    ^ self at:#sendMessagesAlsoToTranscript ifAbsent:true
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5183
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5184
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5185
     UserPreferences current sendMessagesAlsoToTranscript
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5186
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5187
!
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5188
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5189
sendMessagesAlsoToTranscript:aBooleanOrNil
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5190
    "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
  5191
     on both Stderr AND the Transcript, or only on Stderr"
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5192
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5193
    ^ self at:#sendMessagesAlsoToTranscript put:aBooleanOrNil
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5194
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5195
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5196
     UserPreferences current sendMessagesAlsoToTranscript:false.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5197
     'hello' infoPrintCR.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5198
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5199
     UserPreferences current sendMessagesAlsoToTranscript:true.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5200
     'hello' infoPrintCR.
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5201
    "
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5202
!
b4401b17b2eb class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16330
diff changeset
  5203
19783
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5204
sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5205
    "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
  5206
     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
  5207
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5208
    ^ self at:#sendMessagesOnlyToTranscript ifAbsent:false
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5209
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5210
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5211
     UserPreferences current sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5212
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5213
!
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5214
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5215
sendMessagesOnlyToTranscript:aBoolean
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5216
    "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
  5217
     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
  5218
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5219
    self at:#sendMessagesOnlyToTranscript put:aBoolean
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5220
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5221
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5222
     UserPreferences current sendMessagesOnlyToTranscript:true.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5223
     'hello' errorPrintCR.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5224
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5225
     UserPreferences current sendMessagesOnlyToTranscript:false.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5226
     'hello' errorPrintCR.
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5227
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5228
     UserPreferences current sendMessagesOnlyToTranscript
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5229
    "
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5230
!
7bfb43d27fb9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19755
diff changeset
  5231
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5232
showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5233
    "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
  5234
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  5235
    ^ self at:#showClockInLauncher ifAbsent:false
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5236
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5237
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5238
     UserPreferences current showClockInLauncher
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5239
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5240
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5241
    "Modified: / 11.9.1998 / 00:09:59 / cg"
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5242
!
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5243
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5244
showClockInLauncher:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5245
    "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
  5246
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5247
    ^ self at:#showClockInLauncher put:aBooleanOrNil
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5248
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5249
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5250
     UserPreferences current showClockInLauncher:false.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5251
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5252
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5253
     UserPreferences current showClockInLauncher:true.
11143
3712ab6b344b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
  5254
     NewLauncher open.
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5255
    "
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5256
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5257
    "Modified: / 11.9.1998 / 00:09:59 / cg"
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5258
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5259
14140
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5260
showTypeIndicatorInInspector
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5261
    ^ self at:#showTypeIndicatorInInspector ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5262
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5263
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5264
     UserPreferences current showTypeIndicatorInInspector
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5265
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5266
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5267
    "Created: / 16-05-2012 / 19:09:50 / cg"
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5268
!
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5269
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5270
showTypeIndicatorInInspector:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5271
    ^ self at:#showTypeIndicatorInInspector put:aBooleanOrNil
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5272
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5273
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5274
     UserPreferences current showTypeIndicatorInInspector:false.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5275
     NewLauncher inspect.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5276
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5277
     UserPreferences current showTypeIndicatorInInspector:true.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5278
     NewLauncher inspect.
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5279
    "
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5280
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5281
    "Created: / 16-05-2012 / 19:10:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5282
!
Claus Gittinger <cg@exept.de>
parents: 14064
diff changeset
  5283
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5284
terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5285
    "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
  5286
     should be encoded as such by the terminal emulator."
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5287
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5288
    ^ self
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5289
        at:#terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5290
        ifAbsent:[ OperatingSystem isOSXlike
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5291
                   "/ or ???
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5292
                 ]
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5293
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5294
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5295
     UserPreferences current terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5296
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5297
!
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5298
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5299
terminalInputIsUTF8:aBoolean
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5300
    "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
  5301
     should be encoded as such by the terminal emulator.
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5302
     This specifies a default setting for terminal views; individual instances can be
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5303
     changed be calling a corresponding setup method on it."
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5304
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5305
    ^ self
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5306
        at:#terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5307
        put:aBoolean
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5308
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5309
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5310
     UserPreferences current terminalInputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5311
     UserPreferences current terminalInputIsUTF8:true
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5312
     UserPreferences current terminalInputIsUTF8:false
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5313
    "
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5314
!
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5315
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5316
terminalOutputIsUTF8
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5317
    "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
  5318
     the terminal emulator."
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5319
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5320
    ^ self
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5321
	at:#terminalOutputIsUTF8
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5322
	ifAbsent:[ OperatingSystem isOSXlike
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5323
		   "/ or ???
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5324
		 ]
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5325
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5326
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5327
     UserPreferences current terminalOutputIsUTF8
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5328
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5329
!
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5330
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5331
terminalOutputIsUTF8:aBoolean
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5332
    "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
  5333
     the terminal emulator.
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5334
     This specifies a default setting for terminal views; individual instances can be
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5335
     changed be calling a corresponding setup method on it."
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5336
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5337
    ^ self
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5338
        at:#terminalOutputIsUTF8
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5339
        put:aBoolean
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5340
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5341
    "
17415
50f3123cbbb7 Oops, fixed bug introduced in previous commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17414
diff changeset
  5342
     UserPreferences current terminalOutputIsUTF8
18689
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5343
     UserPreferences current terminalOutputIsUTF8:true
7d2f54384c6c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18643
diff changeset
  5344
     UserPreferences current terminalOutputIsUTF8:false
16552
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5345
    "
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5346
!
7f1225f85842 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16542
diff changeset
  5347
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5348
toolbarVisibleInWorkspace
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5349
    "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
  5350
10665
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5351
    ^ self at:#toolbarVisibleInWorkspace ifAbsent:true
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5352
fd0702c99a8b toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents: 10661
diff changeset
  5353
    "Modified: / 18-07-2007 / 08:55:44 / cg"
10661
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5354
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5355
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5356
toolbarVisibleInWorkspace:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5357
    "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
  5358
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5359
    ^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5360
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5361
    "Created: / 14-07-2007 / 16:42:09 / cg"
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5362
!
b7a36c50567c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10540
diff changeset
  5363
19700
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5364
useJavaCompletionEngineSimple
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5365
    "/ switch to false, when the JavaCompletionEngine is
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5366
    "/ finished.
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5367
    
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5368
    ^ true
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5369
!
3775538c52dc #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 19684
diff changeset
  5370
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5371
useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5372
    ^ self at:#useNewLayoutInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5373
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5374
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5375
     UserPreferences current useNewLayoutInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5376
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5377
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5378
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5379
useNewLayoutInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5380
    ^ self at:#useNewLayoutInDebugger put:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5381
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5382
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5383
useRefactoringSupport
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5384
    "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
  5385
     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
  5386
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5387
9302
f3dae8816824 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9286
diff changeset
  5388
    ^ self at:#useRefactoringSupport ifAbsent:true
7624
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5389
!
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5390
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5391
useRefactoringSupport:aBooleanOrNil
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5392
    "enable/disable use of refactoring package in browser.
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5393
     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
  5394
     There is usually no reason to disable these."
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5395
44f0109f5115 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7614
diff changeset
  5396
    ^ self at:#useRefactoringSupport put:aBooleanOrNil
7625
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5397
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5398
    "
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5399
     UserPreferences current useRefactoringSupport:false
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5400
     UserPreferences current useRefactoringSupport:true
b5a9bf06be59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7624
diff changeset
  5401
    "
11024
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5402
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5403
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5404
verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5405
    ^ self at:#verboseBacktraceInDebugger ifAbsent:true
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5406
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5407
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5408
     UserPreferences current verboseBacktraceInDebugger
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5409
    "
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5410
!
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5411
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5412
verboseBacktraceInDebugger:aBoolean
464465f8b891 new layout in debugger
Claus Gittinger <cg@exept.de>
parents: 11023
diff changeset
  5413
    ^ self at:#verboseBacktraceInDebugger put:aBoolean
7549
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5414
! !
442051ac6373 category changes
Claus Gittinger <cg@exept.de>
parents: 7523
diff changeset
  5415
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5416
!UserPreferences methodsFor:'accessing-prefs-tools-building'!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5417
15917
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5418
autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5419
    ^ self at:#autoUnloadAutoloadedClassesInProjectDefinition ifAbsent:false
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5420
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5421
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5422
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5423
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5424
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5425
    "Created: / 28-01-2014 / 21:42:59 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5426
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5427
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5428
autoUnloadAutoloadedClassesInProjectDefinition:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5429
    ^ self at:#autoUnloadAutoloadedClassesInProjectDefinition put:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5430
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5431
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5432
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5433
     UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition:false
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5434
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5435
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5436
    "Created: / 28-01-2014 / 21:43:18 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5437
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5438
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5439
buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5440
    ^ self at:#buildDirectory ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5441
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5442
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5443
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5444
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5445
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5446
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5447
buildDirectory:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5448
    ^ self at:#buildDirectory put:aFilenameStringOrNil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5449
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5450
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5451
     UserPreferences current buildDirectory
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5452
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5453
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5454
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5455
localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5456
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5457
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5458
    ^ self at:#localBuild ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5459
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5460
    "Created: / 20-09-2006 / 23:55:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5461
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5462
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5463
localBuild:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5464
    "deployment-build in  a local directory (as opposed to making via the repository)"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5465
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5466
    ^ self at:#localBuild put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5467
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5468
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5469
     UserPreferences current localBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5470
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5471
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5472
    "Created: / 20-09-2006 / 23:55:26 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5473
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5474
15917
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5475
suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5476
    ^ self at:#suppressProjectDefinitionWarnings ifAbsent:true
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5477
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5478
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5479
     UserPreferences current suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5480
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5481
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5482
    "Created: / 28-01-2014 / 21:41:01 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5483
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5484
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5485
suppressProjectDefinitionWarnings:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5486
    ^ self at:#suppressProjectDefinitionWarnings put:aBoolean
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5487
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5488
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5489
     UserPreferences current suppressProjectDefinitionWarnings
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5490
     UserPreferences current suppressProjectDefinitionWarnings:true
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5491
    "
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5492
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5493
    "Created: / 28-01-2014 / 21:41:12 / cg"
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5494
!
ac687dc34fbd class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15915
diff changeset
  5495
13967
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5496
usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5497
    ^ self at:#usedCompilerForBuild ifAbsent:nil
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5498
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5499
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5500
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5501
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5502
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5503
    "Created: / 22-01-2012 / 10:52:47 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5504
!
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5505
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5506
usedCompilerForBuild:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5507
    ^ self at:#usedCompilerForBuild put:aString
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5508
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5509
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5510
     UserPreferences current usedCompilerForBuild
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5511
     UserPreferences current usedCompilerForBuild:'bcc'
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5512
    "
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5513
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5514
    "Created: / 22-01-2012 / 10:52:59 / cg"
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5515
! !
Claus Gittinger <cg@exept.de>
parents: 13943
diff changeset
  5516
13941
0621bed84963 added:9 methods
Claus Gittinger <cg@exept.de>
parents: 13885
diff changeset
  5517
!UserPreferences methodsFor:'accessing-scm'!
13596
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5518
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5519
showBadRevisionStringDialogs
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5520
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5521
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5522
    ^ self at: #'showBadRevisionStringDialogs' ifAbsent:true
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5523
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5524
    "Created: / 19-08-2011 / 12:51:25 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5525
!
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5526
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5527
showBadRevisionStringDialogs:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5528
    "show a dialog when a bad revision string is encountered, or silently fix it"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5529
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5530
    ^ self at: #'showBadRevisionStringDialogs' put:aBoolean
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5531
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5532
    "Created: / 19-08-2011 / 12:51:58 / cg"
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5533
! !
Claus Gittinger <cg@exept.de>
parents: 13547
diff changeset
  5534
15960
fec5ba031704 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15925
diff changeset
  5535
13943
26472baf6c58 category of:20 methods
Claus Gittinger <cg@exept.de>
parents: 13942
diff changeset
  5536
!UserPreferences methodsFor:'default settings-syntax colors'!
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5537
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5538
listOfPredefinedSyntaxColoringSchemes
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5539
    "return a list of pre-defined syntax highlightning styles
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5540
     (as shown in the Launchers 'source and debugger settings' dialog."
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5541
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5542
    ^ #(
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5543
	    (#resetSyntaxColors                                         'default [ST/X style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5544
	    (#resetSyntaxColorsWithSideEffectHighlighting               'default with side effect highlighting [new ST/X style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5545
	    (#resetSyntaxColorsToVCStyle                                'green comments; blue controlFlow, red constants [VISUAL-C style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5546
	    (#resetSyntaxColorsBlueControlFlowSelectors                 'blue controlFlow')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5547
	    (#resetSyntaxColorsGreenComments                            'green comments')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5548
	    (#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors    'green comments; blue controlFlow')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5549
	    (#resetSyntaxColorsBlueSelectorsGreenComments               'blue selectors; green comments [DOLPHIN style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5550
	    (#resetSyntaxColorsBlueSelectorsGreyComments                'blue selectors; grey comments')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5551
	    (#resetSyntaxColorsToSqueakStyle1                           'blue selectors; green comments [SQUEAK style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5552
	    (#resetSyntaxColorsToSqueakStyle2                           'blue selectors; green comments; brown self [new SQUEAK style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5553
	    (#resetSyntaxColorsAllBlackExceptBadIDs                     'no colors, but highlight errors')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5554
	    (#resetSyntaxColorsToVAgeStyle                              'blue globals; green comments [V''Age style]')
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5555
	    (#resetSyntaxColorsToVW7Style                               'light blue comments [VW7 style]')
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5556
      )
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5557
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5558
    "Modified: / 17-03-2012 / 10:40:18 / cg"
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5559
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5560
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5561
resetSyntaxColors
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5562
    "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
  5563
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5564
    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
  5565
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5566
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5567
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5568
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5569
resetSyntaxColorsAllBlackExceptBadIDs
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5570
    "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
  5571
     except for bad identifiers, which are underwaved."
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5572
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5573
    self resetSyntaxColors.
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5574
    self at:#badIdentifierEmphasis  put:(Array with:#underwave with:(#underlineColor->Color red)).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5575
    self at:#errorColor             put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5576
    self at:#commentColor           put:Color black.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5577
    self at:#constantColor          put:Color black.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5578
    self at:#methodSelectorEmphasis put:#normal.
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5579
    self at:#selectorEmphasis       put:#normal.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5580
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5581
    "Modified: / 16-03-2012 / 10:35:02 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5582
!
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5583
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5584
resetSyntaxColorsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5585
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5586
     (with blue control flow selectors)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5587
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5588
    self resetSyntaxColors.
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5589
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5590
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5591
    "Created: / 08-09-2006 / 16:11:52 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5592
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5593
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5594
resetSyntaxColorsBlueSelectorsGreenComments
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5595
    "resets the colors in the CurrentPreferences to alternative default values
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5596
     (with blue selectors and green comments)"
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5597
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5598
    self resetSyntaxColors.
8551
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5599
    self at:#commentColor           put:(Color green darkened).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5600
    self at:#commentEmphasis        put:#italic.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5601
    self at:#selectorColor          put:(Color blue).
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5602
    self at:#selectorEmphasis       put:#normal.
de314b9f8fa3 sharedPools
ca
parents: 8545
diff changeset
  5603
    self at:#methodSelectorColor    put:(Color blue).
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5604
    self at:#methodSelectorEmphasis put:#bold.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5605
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5606
    "Modified: / 16-03-2012 / 10:34:55 / cg"
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5607
!
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5608
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5609
resetSyntaxColorsBlueSelectorsGreyComments
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5610
    "resets the colors in the CurrentPreferences to alternative default values
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5611
     (with blue selectors and grey comments)"
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5612
6171
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5613
    self resetSyntaxColorsBlueSelectorsGreenComments.
cf2befb8562e more coloring styles
Claus Gittinger <cg@exept.de>
parents: 6169
diff changeset
  5614
    self at:#commentColor    put:(Color gray).
6169
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5615
!
1176368a973a syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 6059
diff changeset
  5616
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5617
resetSyntaxColorsGreenComments
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5618
    "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
  5619
     (with green comments)"
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5620
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5621
    self resetSyntaxColors.
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5622
    self at:#commentColor put:(Color green darkened).
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5623
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5624
    "Modified: / 16-03-2012 / 10:34:50 / cg"
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5625
!
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5626
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5627
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5628
    "resets the colors in the CurrentPreferences to alternative default values
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5629
     (with green comments, blue control flow)"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5630
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5631
    self resetSyntaxColors.
9834
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5632
    self at:#commentColor put:(Color green darkened).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5633
    self at:#controlFlowSelectorColor put:(Color blue).
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5634
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5635
    "Created: / 08-09-2006 / 16:10:38 / cg"
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5636
!
0be637339fce control flow color&emphasis
Claus Gittinger <cg@exept.de>
parents: 9820
diff changeset
  5637
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5638
resetSyntaxColorsToSqueakStyle
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5639
    "resets the colors in the CurrentPreferences to alternative default values"
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5640
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5641
    self resetSyntaxColorsToSqueakStyle2
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5642
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5643
    "Modified (comment): / 17-03-2012 / 10:38:07 / cg"
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5644
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5645
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5646
resetSyntaxColorsToSqueakStyle1
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5647
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5648
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5649
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5650
    self resetSyntaxColors.
9144
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5651
    self at:#commentColor             put:(Color green darkened).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5652
    self at:#commentEmphasis          put:#italic.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5653
    self at:#selectorColor            put:(Color blue:80).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5654
    self at:#selectorEmphasis         put:#normal.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5655
    self at:#methodSelectorColor      put:(Color black).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5656
    self at:#methodSelectorEmphasis   put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5657
    self at:#globalIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5658
    self at:#localIdentifierColor     put:(Color grey:40).
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5659
    self at:#instVarIdentifierEmphasis put:#bold.
f2066ee39215 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9099
diff changeset
  5660
    self at:#constantColor            put:(Color red:67).
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5661
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5662
    "Modified: / 16-03-2012 / 10:34:40 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5663
    "Modified (comment): / 17-03-2012 / 10:38:47 / cg"
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5664
!
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5665
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5666
resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5667
    "resets the colors in the CurrentPreferences to alternative default values
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5668
     (with blue selectors and green comments)"
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5669
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5670
    self resetSyntaxColors.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5671
    self at:#commentColor             put:(Color green darkened).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5672
    self at:#commentEmphasis          put:#italic.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5673
    self at:#selectorColor            put:(Color blue:80).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5674
    self at:#selectorEmphasis         put:#normal.
12391
35ee0cb7fd56 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12348
diff changeset
  5675
    self at:#controlFlowSelectorEmphasis put:#bold.
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5676
    self at:#methodSelectorColor      put:(Color black).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5677
    self at:#methodSelectorEmphasis   put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5678
    self at:#globalIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5679
    self at:#localIdentifierColor     put:(Color grey:40).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5680
    self at:#instVarIdentifierEmphasis put:#bold.
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5681
    self at:#constantColor            put:(Color red:67).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5682
    self at:#selfColor                put:(Color red:50 ).
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5683
    self at:#selfEmphasis             put:#bold.
12282
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  5684
    self at:#localIdentifierColor     put:(Color grey:50 ).
03a6891e3ca5 changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents: 12281
diff changeset
  5685
    self at:#localIdentifierEmphasis  put:#normal.
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5686
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5687
    "Modified: / 16-03-2012 / 10:34:35 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5688
    "Modified (comment): / 17-03-2012 / 10:38:57 / cg"
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5689
!
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5690
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5691
resetSyntaxColorsToVAgeStyle
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5692
    "resets the colors in the CurrentPreferences to alternative default values
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5693
     (green comments, blue globals)"
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5694
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5695
    self resetSyntaxColors.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5696
    self at:#identifierColor          put:(Color rgbValue:16r00007F).
14064
c80388807776 changed: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14063
diff changeset
  5697
    self at:#argumentColor            put:(Color rgbValue:16r00007F).
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5698
    self at:#identifierEmphasis       put:#normal.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5699
    self at:#commentColor             put:(Color rgbValue:16r007F00).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5700
    self at:#selfColor                put:(Color rgbValue:16r7F007F).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5701
    self at:#constantColor            put:(Color rgbValue:16r7F0000).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5702
    self at:#selectorColor            put:(Color black).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5703
    self at:#selectorEmphasis         put:#bold.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5704
    self at:#globalIdentifierColor    put:(Color blue).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5705
    self at:#methodSelectorColor      put:(Color black).
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5706
    self at:#methodSelectorEmphasis   put:#bold.
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5707
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5708
    "Created: / 17-03-2012 / 10:37:42 / cg"
12281
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5709
!
Claus Gittinger <cg@exept.de>
parents: 12209
diff changeset
  5710
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5711
resetSyntaxColorsToVCStyle
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5712
    "resets the colors in the CurrentPreferences to visual C default style
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5713
     (green comments, blue keywords, redish string constants)"
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5714
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5715
    self resetSyntaxColors.
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5716
    self at:#controlFlowSelectorColor put:(Color blue).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5717
    self at:#commentColor             put:(Color green darkened).
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5718
    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
  5719
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5720
    "Modified: / 16-03-2012 / 10:34:30 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5721
    "Modified (comment): / 17-03-2012 / 10:39:11 / cg"
11672
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5722
!
202d14e5686d another syntax color
Claus Gittinger <cg@exept.de>
parents: 11598
diff changeset
  5723
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5724
resetSyntaxColorsToVW7Style
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5725
    "resets the colors in the CurrentPreferences to alternative default values
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5726
     (with light blue comments, green variables)"
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5727
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5728
    self resetSyntaxColors.
9184
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5729
    self at:#commentColor             put:(Color blue lightened).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5730
    self at:#selectorColor            put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5731
    self at:#selectorEmphasis         put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5732
    self at:#methodSelectorColor      put:(Color black).
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5733
    self at:#methodSelectorEmphasis   put:#bold.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5734
    self at:#identifierEmphasis       put:#normal.
d56887fab7ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9144
diff changeset
  5735
    self at:#identifierColor          put:(Color green darkened).
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5736
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5737
    "Modified: / 16-03-2012 / 10:34:26 / cg"
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5738
    "Modified (comment): / 17-03-2012 / 10:39:18 / cg"
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5739
!
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5740
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5741
resetSyntaxColorsWithSideEffectHighlighting
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5742
    "resets the colors in the CurrentPreferences to their default values
14063
3601e2191b9d added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents: 14062
diff changeset
  5743
     plus side effect highlighting (assignments to instvars and globals are marked)"
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5744
14062
2827c508307f changed:11 methods
Claus Gittinger <cg@exept.de>
parents: 14052
diff changeset
  5745
    self resetSyntaxColors.
14005
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5746
    self at:#sideEffectAssignmentBackgroundColor put:(Color rgbValue:16rFFDBDB).
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5747
7d4c58528d0e added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents: 14004
diff changeset
  5748
    "Created: / 13-02-2012 / 12:12:56 / cg"
4342
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5749
! !
f2bbfcd2f072 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  5750
7266
f2b64d3b43cf method category rename
Claus Gittinger <cg@exept.de>
parents: 7246
diff changeset
  5751
!UserPreferences methodsFor:'default values'!
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5752
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5753
defaultValue
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5754
    "the defaultValue for non-existing keys"
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5755
16652
ddeba03a6b51 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 16651
diff changeset
  5756
    ^ nil
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5757
!
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5758
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5759
errorKeyNotFound:aKey
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5760
    "for any non-existing key, false is returned"
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5761
4583
9f6051955f6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4582
diff changeset
  5762
    ^ self defaultValue
4582
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5763
! !
31cbce168a1d return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents: 4580
diff changeset
  5764
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5765
!UserPreferences methodsFor:'misc'!
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5766
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5767
flyByHelpSettingChanged
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5768
    FlyByHelp notNil ifTrue:[
18262
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5769
	(self at:#flyByHelpActive ifAbsent:true) ifTrue:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5770
	    FlyByHelp start.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5771
	] ifFalse:[
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5772
	    FlyByHelp stop.
572b30c5626f avoid another message send
Claus Gittinger <cg@exept.de>
parents: 17593
diff changeset
  5773
	].
10789
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5774
    ].
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5775
! !
d63299ba576b care for flyByHelp
Claus Gittinger <cg@exept.de>
parents: 10723
diff changeset
  5776
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5777
!UserPreferences methodsFor:'obsolete'!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5778
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5779
useNewSettinsApplication
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  5780
    <resource: #obsolete>
8545
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  5781
    "obsolete - will be removed in next release.
37d394b08f2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8433
diff changeset
  5782
     (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
  5783
      saved user preference files)"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5784
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  5785
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  5786
    ^ self useNewSettingsApplication
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5787
!
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5788
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5789
useNewSettinsApplication:aBoolean
11598
970f65d53e13 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 11589
diff changeset
  5790
    <resource: #obsolete>
7030
52b794e6abee *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7029
diff changeset
  5791
    "obsolete - will be removed in next release"
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5792
6941
1700d0c53837 make old to settings changed settins methods obsolete
penk
parents: 6937
diff changeset
  5793
    self obsoleteMethodWarning.
7029
a73bc40f9bdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
  5794
    self useNewSettingsApplication:aBoolean.
6937
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5795
! !
3054abf221c9 *** empty log message ***
penk
parents: 6936
diff changeset
  5796
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5797
!UserPreferences methodsFor:'saving'!
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5798
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5799
saveIn:fileName
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5800
    self class saveSettings:self in:fileName
17569
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  5801
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  5802
    "
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  5803
     UserPreferences current saveIn:'test.settings'
0959d704ad9b class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17541
diff changeset
  5804
    "
7028
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5805
! !
0911f2698be9 saveSettings here
Claus Gittinger <cg@exept.de>
parents: 7026
diff changeset
  5806
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5807
!UserPreferences class methodsFor:'documentation'!
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5808
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  5809
version
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  5810
    ^ '$Header$'
13885
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  5811
!
Claus Gittinger <cg@exept.de>
parents: 13884
diff changeset
  5812
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  5813
version_CVS
18489
710dbb73f2e8 class: UserPreferences
Stefan Vogel <sv@exept.de>
parents: 18419
diff changeset
  5814
    ^ '$Header$'
12096
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  5815
!
Claus Gittinger <cg@exept.de>
parents: 12027
diff changeset
  5816
13399
eb68067907e1 changed: #version_CVS
vrany
parents: 13391
diff changeset
  5817
version_SVN
15290
de9c34723d33 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 15158
diff changeset
  5818
    ^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1  $'
3347
67d788da4fc0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5819
! !
18419
0b0564c6352d class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 18262
diff changeset
  5820