AbstractLauncherApplication.st
author Claus Gittinger <cg@exept.de>
Thu, 18 Oct 2001 16:08:05 +0200
changeset 3325 81e06c615998
parent 3324 e9730d911afe
child 3326 d6713cc88cde
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     1
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     3
              All Rights Reserved
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     4
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     5
 This software is furnished under a license and may be used
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     6
 only in accordance with the terms of that license and with the
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     7
 inclusion of the above copyright notice. This software may not
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     8
 be provided or otherwise made available to, or used by, any
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
     9
 other person. No title to or ownership of the software is
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    10
 hereby transferred.
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    11
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    12
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    13
2689
602cbcd0feb3 Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents: 2621
diff changeset
    14
"{ Package: 'stx:libtool' }"
602cbcd0feb3 Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents: 2621
diff changeset
    15
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ToolApplicationModel subclass:#AbstractLauncherApplication
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    17
	instanceVariableNames:'transcript'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    18
	classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    19
	poolDictionaries:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    20
	category:'Interface-Smalltalk'
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
Object subclass:#LauncherDialogs
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    24
	instanceVariableNames:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    25
	classVariableNames:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    26
	poolDictionaries:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    27
	privateIn:AbstractLauncherApplication
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    30
!AbstractLauncherApplication class methodsFor:'documentation'!
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    31
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    32
copyright
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    33
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    34
 COPYRIGHT (c) 1997 by eXept Software AG
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    35
              All Rights Reserved
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    36
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    37
 This software is furnished under a license and may be used
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    38
 only in accordance with the terms of that license and with the
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    39
 inclusion of the above copyright notice. This software may not
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    40
 be provided or otherwise made available to, or used by, any
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    41
 other person. No title to or ownership of the software is
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    42
 hereby transferred.
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    43
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    44
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    45
!
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    46
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    47
documentation
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    48
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    49
    This is an abstract class, providing mechanisms and common functionality
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    50
    for launcher-type applications. Subclasses may implement their GUI either
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    51
    with or without the UIPainter framework, and still use the common functions
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    52
    provided here.
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    53
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    54
    [author:]
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    55
        Claus Gittinger, eXept Software AG
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    56
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    57
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    58
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    59
! !
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!AbstractLauncherApplication class methodsFor:'accessing'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    63
closeAllLaunchers
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    64
    "close all opened launchers"
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    65
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    66
    self openLaunchers copy do:[:eachLauncher |
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    67
        eachLauncher closeRequest
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    68
    ].
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    69
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    70
    "
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    71
     self closeAllLaunchers.
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    72
     NewLauncher open
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    73
    "
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    74
!
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    75
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
current
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    "return the launcher running on the current screen.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
     (for access via addMenu/ removeMenu)"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    |currentScreen|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    OpenLaunchers size > 0 ifTrue:[
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    83
        currentScreen := Screen current.
2762
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
    84
        ^ OpenLaunchers detect:[:eachLauncher | eachLauncher graphicsDevice == currentScreen] ifNone:nil
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
    ^ nil.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    "
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    89
     NewLauncher current
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    "Modified: / 9.9.1996 / 22:41:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "Modified: / 13.10.1998 / 16:09:50 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
openLaunchers
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    "return all opened launchers"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
3079
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
    99
    OpenLaunchers isNil ifTrue:[
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   100
        OpenLaunchers := IdentitySet new
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   101
    ].
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   102
    ^ OpenLaunchers
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
!AbstractLauncherApplication class methodsFor:'defaults'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
notifyingEmergencyHandler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "return a block (used as an emergency handler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
     for exceptions), which does errorNotification before going
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
     into the debugger."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    "Remember the handlerBlock, to be able to determine if the current
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
     handler is the notifying one."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    NotifyingEmergencyHandler isNil ifTrue:[
2316
6a46309a5e43 NotifyingEmergencyHandler moved to NoHandlerError
Stefan Vogel <sv@exept.de>
parents: 2314
diff changeset
   116
        NotifyingEmergencyHandler := NoHandlerError notifyingEmergencyHandler
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    ^ NotifyingEmergencyHandler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "Created: 7.1.1997 / 22:18:19 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    "Modified: 15.1.1997 / 21:15:38 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   124
!AbstractLauncherApplication class methodsFor:'queries'!
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   125
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   126
isVisualStartable
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
   127
    "return true, if this application can be started via #open.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
   128
     (to allow start of a change browser via double-click in the browser)"
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   129
2762
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   130
    "/ assume all my subclasses can
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   131
    ^ self ~~ AbstractLauncherApplication
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   132
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   133
    "
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   134
     AbstractLauncherApplication isVisualStartable
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   135
     NewLauncher isVisualStartable
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   136
    "
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   137
! !
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   138
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
!AbstractLauncherApplication methodsFor:'private'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   141
findApplicationClass:classOrClassName nameSpace:aNameSpace
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   142
    "find some application, given the classes name.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   143
     Look for it in Smalltalk and the given nameSpace"
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   144
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   145
    |cls|
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   146
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   147
    classOrClassName isBehavior ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   148
        cls := classOrClassName.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   149
    ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   150
        cls := Smalltalk at:classOrClassName asSymbol.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   151
        cls isNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   152
            "/ look if its in the nameSpace
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   153
            aNameSpace notNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   154
                cls := aNameSpace at:classOrClassName asSymbol
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   155
            ]
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   156
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   157
        cls isNil ifTrue:[
3037
0d452d54bf04 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3035
diff changeset
   158
            self warn:(resources string:'Sorry, the ''%1''-class is not available.' with:classOrClassName).
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   159
            ^ nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   160
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   161
    ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   162
    ^ cls
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   163
!
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   164
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   165
findWindow:title
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   166
    "a helper for find & destroy and find & raise operations;
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   167
     let user choose a view and return it; return nil on cancel"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   168
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   169
    ^ self findWindow:title windowGroupFilter:nil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   170
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   171
!
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   172
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   173
findWindow:title windowGroupFilter:windowGroupFilterOrNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   174
    "a helper for find & destroy and find & raise operations;
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   175
     let user choose a view and return it; return nil on cancel"
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   176
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   177
    |knownTopViews nameList box|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   178
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   179
    knownTopViews := IdentitySet new.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   180
    Screen allScreens do:[:aScreen |
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   181
        aScreen knownViews do:[:aView |
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   182
            |top showIt wg|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   183
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   184
            aView notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   185
                top := aView topView.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   186
                (top isKindOf:DebugView) ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   187
                    "/ although modal, show it.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   188
                    showIt := top realized
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   189
                ] ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   190
                    wg := top windowGroup.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   191
                    showIt := (wg notNil and:[wg isModal not]).
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   192
                    showIt ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   193
                        windowGroupFilterOrNil notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   194
                            showIt := windowGroupFilterOrNil includes:wg
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   195
                        ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   196
                    ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   197
                ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   198
                showIt ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   199
                    knownTopViews add:top
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   200
                ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   201
            ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   202
        ]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   203
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   204
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   205
    knownTopViews := knownTopViews asOrderedCollection.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   206
    knownTopViews sort:[:v1 :v2 | |l1 l2|
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   207
                                l1 := v1 label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   208
                                l2 := v2 label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   209
                                l1 < l2
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   210
                       ].
2041
52cd1ca19280 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
   211
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   212
    nameList := knownTopViews collect:[:v | 
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   213
                                        |isDead wg p l|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   214
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   215
                                        l := v label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   216
                                        v device == Display ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   217
                                            l := l , ' [' , (v device displayName ? '?') , ']'
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   218
                                        ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   219
                                        ((wg := v windowGroup) notNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   220
                                        and:[(p := wg process) notNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   221
                                        and:[p state ~~ #dead]]) ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   222
                                            l  
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   223
                                        ] ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   224
                                            l , ' (dead ?)'
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   225
                                        ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   226
                                      ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   227
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   228
    box := ListSelectionBox new.
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   229
    box selectionChangeCallback:[:selectionIndex |   |v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   230
                                    v := knownTopViews at:box selectionIndex.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   231
                                    v raise. box raise 
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   232
                                ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   233
    box noEnterField.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   234
    box list:nameList.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   235
    box label:(resources string:'view selection').
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   236
    box title:(resources string:title) withCRs.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   237
    box action:[:selection |
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   238
        |v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   239
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   240
        v := knownTopViews at:box selectionIndex.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   241
        box destroy.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   242
        ^ v
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   243
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   244
    box extent:400@300.
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   245
    box open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   246
    ^ nil
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   247
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   248
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   249
openApplication: classOrClassName
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   250
     "open an application, given by the classe name."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   251
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   252
    self openApplication:classOrClassName nameSpace:nil
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   253
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   254
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   255
openApplication:classOrClassName nameSpace:aNameSpace
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   256
    "open some application, given the classes name.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   257
     Look for it in Smalltalk and the given nameSpace"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   258
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   259
    self openApplication:classOrClassName nameSpace:aNameSpace with:#open
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   260
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   261
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   262
openApplication:classOrClassName nameSpace:aNameSpace with:aSelector
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   263
    "open some application, given the classes name.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   264
     Look for it in Smalltalk and the given nameSpace"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   265
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   266
    |cls|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   267
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   268
    cls := self findApplicationClass:classOrClassName nameSpace:aNameSpace.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   269
    cls isNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   270
        ^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   271
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   272
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   273
    Autoload autoloadFailedSignal handle:[:ex |
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   274
        self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:cls name)
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   275
    ] do:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   276
        self withWaitCursorDo:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   277
            cls perform:aSelector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   278
        ]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   279
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   280
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   281
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   282
pickAView
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   283
    "let user pick a view and return it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   284
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   285
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   286
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   287
    (Delay forSeconds:1) wait.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   288
    v := Screen current viewFromUser.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   289
    v isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   290
	self warn:'Sorry, this is not a smalltalk view'.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   291
	^ nil
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   292
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   293
    ^ v
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   294
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   295
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   296
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   297
saveScreenImage:anImage defaultName:defaultName
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   298
    "save an image into a file 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   299
     - ask user for filename using a fileSelectionBox."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   300
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   301
    |fileName|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   302
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   303
    fileName := Dialog
3003
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   304
                    requestFileName:(resources string:'save image in:') 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   305
                    default:(defaultName , '.tiff')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   306
                    ok:(resources string:'save')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   307
                    abort:(resources string:'cancel')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   308
                    pattern:'*.tiff'
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   309
                    fromDirectory:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   310
                    whenBoxCreatedEvaluate:[:box | 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   311
                                                |editButton|
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   312
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   313
                                                editButton := Button label:(resources string:'edit').
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   314
                                                (DialogBox styleSheet at:'dialogBox.okAtLeft' default:false) ifFalse:[
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   315
                                                    box addButton:editButton before:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   316
                                                ] ifTrue:[
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   317
                                                    box addButton:editButton after:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   318
                                                ].
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   319
                                                editButton 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   320
                                                    action:[ 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   321
                                                        box hide; destroy.
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   322
                                                        ImageEditor openOnImage:anImage.
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   323
                                                    ].
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   324
                                           ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   325
    fileName notNil ifTrue:[
3003
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   326
        anImage saveOn:fileName
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   327
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   328
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   329
    "Modified: / 21.2.1996 / 13:09:28 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   330
    "Created: / 29.1.1998 / 23:20:36 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   331
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   332
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
showDocumentation:aRelativeDocFilePath
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
    "open an HTML browser on some document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
     although that one is not yet finished,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
     its better than nothing ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
    HTMLDocumentView notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   341
	self withWaitCursorDo:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   342
	    "
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   343
	     temporary kludge;
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   344
	     not all machines can autoload binaries;
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   345
	     however, on my SGI (which can) we want it
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   346
	     to load automatically.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   347
	    "
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   348
	    HTMLDocumentView isLoaded ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   349
		ErrorSignal catch:[HTMLDocumentView autoload]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   350
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   351
	    HTMLDocumentView isLoaded ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   352
		HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   353
		^ self
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   354
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   355
	]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
    self warn:'Sorry, the ST/X HTML reader is not
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
included in this release.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
Please use Mosaic, netscape, chimera or any
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
other HTML viewer to see the documentation.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
The documentation is found in the ''doc/online'' directory.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
    "Modified: / 25.2.1998 / 21:24:20 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   369
!AbstractLauncherApplication methodsFor:'private - settings callBacks'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   370
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   371
changeViewStyleTo:newStyle
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   372
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   373
    newStyle notNil ifTrue:[
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   374
        self withWaitCursorDo:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   375
            (transcript ? Transcript) showCR:'change style to ' , newStyle , ' ...'.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   376
            View defaultStyle:newStyle asSymbol.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   377
        ].
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   378
        self reopenLauncher.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   379
        DebugView newDebugger.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   380
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   381
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   382
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   383
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   384
fontBoxForEncoding:encodingMatch
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   385
    "open a fontBox, showing fonts which match some encoding
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   386
     (used when changing to japanese ...)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   387
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   388
    ^ LauncherDialogs fontBoxForEncoding:encodingMatch for:self.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   389
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   390
"/    |box y b
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   391
"/     labelDef buttonDef listDef menuDef textDef
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   392
"/     models labels allOfThem filter|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   393
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   394
"/    encodingMatch notNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   395
"/        filter := [:f | f encoding notNil 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   396
"/                        and:[encodingMatch match:f encoding]].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   397
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   398
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   399
"/    models := OrderedCollection new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   400
"/    labels := OrderedCollection new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   401
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   402
"/    models add:(allOfThem := nil asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   403
"/    models add:(labelDef := Label defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   404
"/    models add:(buttonDef := Button defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   405
"/    models add:(listDef := SelectionInListView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   406
"/    models add:(menuDef := MenuView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   407
"/    models add:(textDef := TextView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   408
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   409
"/    box := Dialog new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   410
"/    box label:(resources string:'Font settings').
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   411
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   412
"/    models
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   413
"/    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   414
"/    do:[:model :title |
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   415
"/        |y2 lbl f i|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   416
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   417
"/        f := model value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   418
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   419
"/        (box addTextLabel:title) adjust:#left.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   420
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   421
"/        y := box yPosition.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   422
"/        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   423
"/        b relativeExtent:nil; extent:(b preferredExtent).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   424
"/        y2 := box yPosition.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   425
"/        box yPosition:y.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   426
"/        i := box leftIndent.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   427
"/        box leftIndent:(b widthIncludingBorder + View viewSpacing).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   428
"/        (lbl := box addTextLabel:'')
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   429
"/            adjust:#left;
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   430
"/            font:(model value);
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   431
"/            labelChannel:(BlockValue 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   432
"/                            with:[:v | |f|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   433
"/                                f := v value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   434
"/                                f isNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   435
"/                                    ''
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   436
"/                                ] ifFalse:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   437
"/                                    f userFriendlyName
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   438
"/                                ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   439
"/                            ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   440
"/                            argument:model).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   441
"/        labels add:lbl.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   442
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   443
"/        box leftIndent:i.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   444
"/        box yPosition:(box yPosition max:y2).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   445
"/        box addVerticalSpace.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   446
"/        box addHorizontalLine.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   447
"/        box addVerticalSpace.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   448
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   449
"/        b action:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   450
"/            |f|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   451
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   452
"/            f := FontPanel 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   453
"/                fontFromUserInitial:(model value) 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   454
"/                              title:(resources string:'font for %1' with:title)
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   455
"/                             filter:filter.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   456
"/            f notNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   457
"/                model == allOfThem ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   458
"/                    models do:[:m | m value:f].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   459
"/                    labels do:[:l | l font:f]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   460
"/                ] ifFalse:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   461
"/                    model value:f.  
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   462
"/                    lbl font:f.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   463
"/                ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   464
"/            ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   465
"/        ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   466
"/        model == allOfThem ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   467
"/            box addVerticalSpace
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   468
"/        ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   469
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   470
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   471
"/    box addAbortButton; addOkButton.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   472
"/    (box addButton:(Button label:(resources string:'defaults')) before:nil)
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   473
"/        action:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   474
"/            "/ fetch defaults
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   475
"/            View readStyleSheetAndUpdateAllStyleCaches.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   476
"/            labelDef value: Label defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   477
"/            buttonDef value: Button defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   478
"/            listDef value: SelectionInListView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   479
"/            menuDef value: MenuView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   480
"/            textDef value: TextView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   481
"/        ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   482
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   483
"/    box open.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   484
"/    box accepted ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   485
"/        Label defaultFont:labelDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   486
"/        Button defaultFont:buttonDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   487
"/        Toggle defaultFont:buttonDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   488
"/        SelectionInListView defaultFont:listDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   489
"/        MenuView defaultFont:menuDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   490
"/        PullDownMenu defaultFont:menuDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   491
"/        TextView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   492
"/        EditTextView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   493
"/        CodeView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   494
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   495
"/    box destroy.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   496
"/    ^ box accepted
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   497
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   498
    "Modified: / 15.9.1998 / 22:04:56 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   499
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   500
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   501
reopenLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   502
    "reopen a new launcher.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   503
     for now (since style & language settings currently do
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   504
     not affect living views ...)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   505
     WARNING: bad design: Message known in LauncherDialogs"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   506
2034
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   507
    |oldOrigin contents builder newLauncher|
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   508
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   509
    oldOrigin := self window origin.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   510
    transcript notNil ifTrue:[contents := transcript endEntry; list].
2034
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   511
    builder := self class openAt:oldOrigin.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   512
    builder window waitUntilVisible.
2034
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   513
    builder window origin:oldOrigin.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   514
    newLauncher := builder application.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   515
    transcript notNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   516
        newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   517
    ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   518
    ^ newLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   519
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   520
    "Modified: / 4.8.1998 / 17:08:33 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   521
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   522
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   523
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   524
!AbstractLauncherApplication methodsFor:'queries'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   525
3120
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   526
hasPDALauncher
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   527
    ^ PDALauncher notNil
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   528
!
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   529
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   530
processName
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   531
    "for monitors only - my name"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   532
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   533
    ^ 'ST/X Launcher'
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   534
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   535
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   536
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   537
transcript
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   538
    "my transcript"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   539
3079
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   540
    transcript isNil ifTrue:[
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   541
        ^ Transcript current
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   542
    ].
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   543
    ^ transcript 
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   544
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   545
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   546
!AbstractLauncherApplication methodsFor:'startup / release'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   547
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   548
addTopViewsToCurrentProject
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   549
    "ignored here - the launcher is always global (i.e. not project private)."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   550
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   551
    ^ self
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   552
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   553
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   554
2314
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   555
closeDownViews
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   556
    OpenLaunchers remove:self ifAbsent:nil.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   557
    super closeDownViews
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   558
!
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   559
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   560
postBuildWith:aBuilder
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   561
    super postBuildWith:aBuilder.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   562
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   563
    OpenLaunchers isNil ifTrue:[
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   564
        OpenLaunchers := IdentitySet new.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   565
    ].
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   566
    OpenLaunchers add:self
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   567
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   568
!
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   569
2040
06dd0e21aae0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2038
diff changeset
   570
requestForWindowClose
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   571
    "close request from windowing system (window close);
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   572
     confirm and ask if closing of launcher only or
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   573
     a smalltalk-exit is wanted"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   574
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   575
    |answer|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   576
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   577
    answer := Dialog 
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   578
                confirmWithCancel:(resources string:'Close %1 only or exit Smalltalk (close all)?' with:self class name)
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   579
                labels:(resources array:#('Cancel' 'Close' 'Exit'))
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   580
                default:3.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   581
    answer isNil ifTrue:[
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   582
        "/ cancel
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   583
        ^ false
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   584
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   585
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   586
    answer == false ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   587
        ^ true
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   588
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   589
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   590
    self exit
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   591
2160
028c1d5740e5 exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents: 2149
diff changeset
   592
    "Modified: / 20.5.1999 / 17:24:47 / cg"
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   593
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   594
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   595
saveAndTerminateRequest
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   596
    "some windowManagers can send this, to shutDown an application
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   597
     but let it save its state before, for later restart. 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   598
     Although I have not yet encountered such a windowManager,
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   599
     we are already prepared for this ;-)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   600
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   601
    self snapshot.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   602
    super saveAndTerminateRequest
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   603
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   604
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   605
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
!AbstractLauncherApplication methodsFor:'user actions - about'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
openLicenseConditions
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
    "open an HTML browser on the 'LICENCE' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   612
	|lang doc|
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   613
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   614
	Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   615
	    doc := 'english/LICENCE_DEMO_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   616
	] ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   617
	    ((lang := Smalltalk language) = 'de'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   618
	    or:[lang = 'german']) ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   619
		doc := 'german/LICENCE_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   620
	    ] ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   621
		doc := 'english/LICENCE_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   622
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   623
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   624
	doc := resources at:'LICENCEFILE' default:doc.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   625
	self showDocumentation:('../' , doc)
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    ]
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    "Created: / 5.2.1998 / 21:43:19 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    "Modified: / 23.4.1998 / 11:45:53 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   632
!AbstractLauncherApplication methodsFor:'user actions - classes'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   633
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   634
browseAllBreakAndTracePoints
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   635
    "open a browser showing all breakPointed/traced methods
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   636
     (but, to get rid of them, there is also a menu itme to remove them all)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   637
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   638
    UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   639
        browseMethods:(WrappedMethod allInstances)
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   640
        title:'all breakPointed/traced methods'
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   641
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   642
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   643
browseImplementors
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   644
    "open an implementors- browser after asking for a selector"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   645
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   646
    |enterBox selector|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   647
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   648
    enterBox := EnterBox 
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   649
                    title:(resources at:'Browse implementors of:') withCRs
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   650
                    okText:(resources at:'browse')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   651
                    action:[:acceptedString | selector := acceptedString].
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   652
    enterBox open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   653
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   654
    selector notNil ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   655
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   656
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   657
                browseImplementorsOf:selector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   658
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   659
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   660
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   661
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   662
browseResources
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   663
    "open a resource- browser after asking for a resource string"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   664
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   665
    |box resourceHolder valueHolder component rsrc value t anyString|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   666
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   667
    anyString := resources string:'* any *'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   668
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   669
    resourceHolder := ValueHolder newString.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   670
    valueHolder := '*' asValue.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   671
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   672
    box := DialogBox new.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   673
    box label:(resources at:'Resource search:').
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   674
    component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   675
    component adjust:#left.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   676
    box addVerticalSpace:10.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   677
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   678
    component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   679
    component adjust:#left.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   680
    component :=  box addComboBoxOn:resourceHolder tabable:true.
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
   681
    component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' '-' 'obsolete' 'needsFix')).
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   682
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   683
    component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   684
    component adjust:#left.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   685
    box addInputFieldOn:valueHolder tabable:true.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   686
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   687
    box addVerticalSpace:10.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   688
    box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
   689
    box addAbortAndOkButtons.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   690
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   691
    box open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   692
    box destroy.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   693
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   694
    box accepted ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   695
        rsrc := resourceHolder value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   696
        value := valueHolder value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   697
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   698
        (rsrc size == 0 or:[rsrc = '*' or:[rsrc = anyString]]) ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   699
            t := 'methods with any resource'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   700
            rsrc := nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   701
        ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   702
            t := 'methods with #' , rsrc , '-resource'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   703
            rsrc := rsrc withoutSeparators asSymbol
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   704
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   705
        (value size == 0 or:[value = '*']) ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   706
            t := t , ' and any value'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   707
            value := nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   708
        ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   709
            t := t , ' and value ' , value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   710
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   711
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   712
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   713
                browseForResource:rsrc
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   714
                containing:value
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   715
                in:(Smalltalk allClasses)
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   716
                title:t
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   717
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   718
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   719
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   720
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   721
browseSenders
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   722
    "open a senders- browser after asking for a selector"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   723
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   724
    |enterBox selector|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   725
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   726
    enterBox := EnterBox 
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   727
                    title:(resources at:'Browse senders of:') withCRs
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   728
                    okText:(resources at:'browse')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   729
                    action:[:acceptedString | selector := acceptedString].
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   730
    enterBox open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   731
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   732
    selector notNil ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   733
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   734
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   735
                browseAllCallsOn:selector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   736
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   737
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   738
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   739
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   740
browseUndeclared
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   741
    "open a browser on methods refering to undeclared variables"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   742
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   743
    self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   744
        UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   745
            browseReferendsOf:(Smalltalk underclaredPrefix , '*')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   746
            title:(resources string:'references to undeclared variables')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   747
            warnIfNone:true
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   748
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   749
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   750
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   751
removeAllBreakAndTracePoints
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   752
    "remove all break- and trace points"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   753
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   754
    self withCursor:Cursor execute do:[ MessageTracer cleanup]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   755
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   756
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   757
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   758
startClassBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   759
    "open a classBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   760
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   761
    UserPreferences systemBrowserClass askThenBrowseClass
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   762
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   763
3100
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   764
startClassBrowserOnChangedClasses
2854
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   765
    "open a classBrowser on the changeSet"
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   766
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   767
    NewSystemBrowser isNil ifTrue:[
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   768
        ^ self warn:'This needs the NewSystemBrowser to be loaded.'
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   769
    ].
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   770
    NewSystemBrowser openOnClassesInChangeSet
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   771
!
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   772
3100
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   773
startClassBrowserOnChangedMethods
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   774
    "open a classBrowser on the changeSet"
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   775
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   776
    NewSystemBrowser isNil ifTrue:[
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   777
        ^ self warn:'This needs the NewSystemBrowser to be loaded.'
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   778
    ].
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   779
    NewSystemBrowser openOnMethodsInChangeSet
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   780
!
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   781
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   782
startClassBrowserOnChanges
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   783
    "open a classBrowser on the changeSet"
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   784
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   785
    ^ self startClassBrowserOnChangedClasses
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   786
!
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   787
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   788
startClassHierarchyBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   789
    "open a classHierarchyBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   790
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   791
    UserPreferences systemBrowserClass askThenBrowseClassHierarchy
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   792
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   793
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   794
startFullClassBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   795
    "open a fullClass systemBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   796
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   797
    UserPreferences systemBrowserClass askThenBrowseFullClassProtocol
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   798
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   799
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   800
!AbstractLauncherApplication methodsFor:'user actions - demos'!
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   801
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   802
startPDALauncher
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   803
    self startRemoteLauncherWithSetup:[:newDisplay | newDisplay bePDA].
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   804
!
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   805
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   806
startRemoteLauncher
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   807
    self startRemoteLauncherWithSetup:[:newDisplay | ].
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   808
!
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   809
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   810
startRemoteLauncherWithSetup:aSetupBlock
2754
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   811
    |host remoteDisplay remoteDisplayClass|
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   812
2620
fe33eeb9d2ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2609
diff changeset
   813
    host := Dialog 
fe33eeb9d2ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2609
diff changeset
   814
                request:(resources string:'Remote Launcher on which display:')
3215
5782487c2f48 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3180
diff changeset
   815
                initialAnswer:'{hostName}:0'
5782487c2f48 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3180
diff changeset
   816
                initialSelection:(1 to:10).
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   817
    host size > 0 ifTrue:[
2359
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   818
        (host includes:$:) ifFalse:[
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   819
            host := (host , ':0')
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   820
        ].
2754
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   821
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   822
        remoteDisplayClass := XWorkstation.
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   823
2755
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   824
"/        "/ Q: should we allow GL graphics on the remote display
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   825
"/        "/ (Problem: the GL library is not threadsafe, when multiple-display connections
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   826
"/        "/ are open - leading to mixing output between views ...)
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   827
"/
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   828
"/        "/ only simulated GL can be done remote (i.e. not on SGI)
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   829
"/        (Screen current supportsGLDrawing 
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   830
"/        and:[Screen current isTrueGL not])
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   831
"/        ifTrue:[
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   832
"/            remoteDisplayClass := GLXWorkstation.
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   833
"/        ].
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   834
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   835
        remoteDisplay := remoteDisplayClass newDispatchingFor:host.
2359
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   836
        remoteDisplay isNil ifTrue:[
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   837
            self warn:'Could not connect to display: ''' , host , '''.'.
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   838
            ^ self
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   839
        ].
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   840
        aSetupBlock value:remoteDisplay.
2755
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   841
        Screen currentScreenQuerySignal 
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   842
            answer:remoteDisplay
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   843
            do:[
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   844
                self class open.
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   845
            ]
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   846
    ].
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   847
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   848
    "Created: / 10.9.1998 / 11:48:42 / cg"
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   849
! !
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   850
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
!AbstractLauncherApplication methodsFor:'user actions - file'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
objectModuleDialog
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
    "opens a moduleInfo dialog"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
    ^ LauncherDialogs objectModuleDialogFor:self
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
    "Modified: / 31.7.1998 / 17:33:24 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   861
packageDialog
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   862
    "opens a package dialog"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   863
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   864
    ^ LauncherDialogs packageDialogFor:self
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   865
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   866
    "Modified: / 31.7.1998 / 17:33:24 / cg"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   867
!
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   868
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
saveImageAs: aFileName
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
    "save image in aFilename"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
    aFileName notNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   873
        self withCursor:Cursor write do:[
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   874
            (ObjectMemory snapShotOn:aFileName) ifFalse:[
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   875
                self warn:('Failed to save snapshot image (disk full or not writable)').
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   876
            ]
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   877
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
!AbstractLauncherApplication methodsFor:'user actions - help'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
showBookPrintDocument
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
    "open an HTML browser on the 'book'-printing document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
    self showDocumentation:'BOOK.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
startClassDocumentation
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
    "open an HTML browser on the 'classDoc/TOP' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
    self showDocumentation:'classDoc/TOP.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
startDocumentationIndex
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
    "open an HTML browser on the 'index' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
    self showDocumentation:'index.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
startDocumentationTool
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
    "open an HTML browser on the 'TOP' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
    self showDocumentation:'TOP.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
startWhatsNewDocumentation
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
    "open an HTML browser on the 'whatsNew.html' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
    self showDocumentation:'whatsNew.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
2296
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   914
!
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   915
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   916
startWhatsNewSTX
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   917
    "open an HTML browser on the 'relNotes.html' document"
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   918
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   919
    self showDocumentation:'newFeatures.html'
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   920
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
!AbstractLauncherApplication methodsFor:'user actions - settings'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   925
communicationsSettings
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   926
    "open a dialog on misc other settings"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   927
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   928
    self settingsDialog:#communicationsSettingsFor:
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   929
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   930
    "Modified: / 31.7.1998 / 22:46:56 / cg"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   931
!
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   932
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
compilerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
    "open a dialog on compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
    self settingsDialog:#compilerSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
displaySettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
    "open a dialog on display related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    self settingsDialog:#displaySettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    "Modified: / 31.7.1998 / 22:45:38 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
editSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
    "open a dialog on edit settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
    self settingsDialog:#editSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    "Modified: / 31.7.1998 / 22:46:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
    "Created: / 6.1.1999 / 14:14:48 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
fontSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
    "open a dialog on font related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
    self settingsDialog:#fontSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
    "Modified: / 31.7.1998 / 22:45:44 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
javaSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
    "open a dialog on java-subsystem related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
    self settingsDialog:#javaSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
    "Modified: / 31.7.1998 / 22:46:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
keyboardSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    "open a dialog on keyboard related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    self settingsDialog:#keyboardSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
    "Modified: / 31.7.1998 / 22:45:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
languageSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
    "open a dialog on language related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
    self settingsDialog:#languageSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
    "Modified: / 31.7.1998 / 22:46:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
loadSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
    "restore settings from a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
     which can be saved/restored with a single store/read."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
    |fileName|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
    fileName := Dialog 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   997
	requestFileName:(resources string:'load settings from:') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   998
	default:'settings.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   999
	ok:(resources string:'load') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1000
	abort:(resources string:'cancel') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1001
	pattern:'*.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1002
	fromDirectory:nil.
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  1003
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  1004
    (fileName size == 0) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1005
	"/ canceled
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1006
	^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1010
	Smalltalk fileIn:fileName.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1011
	self reOpen
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
memorySettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
    "open a dialog on objectMemory related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
    self settingsDialog:#memorySettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
    "Modified: / 31.7.1998 / 22:46:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
messageSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
    "open a dialog on infoMessage related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
    self settingsDialog:#messageSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
    "Modified: / 31.7.1998 / 22:46:45 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
miscSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
    self settingsDialog:#miscSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1038
    "Modified: / 31.7.1998 / 22:46:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1039
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
2993
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1041
mouseSettings
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1042
    "open a dialog on display related settings"
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1043
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1044
    self settingsDialog:#mouseSettingsFor:
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1045
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1046
    "Modified: / 31.7.1998 / 22:45:38 / cg"
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1047
!
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1048
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
printerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
    "open a dialog on printer related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
    self settingsDialog:#printerSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
    "Modified: / 31.7.1998 / 22:47:05 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
saveSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
    "save settings to a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
    self settingsDialog:#saveSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
    "Modified: / 31.7.1998 / 22:48:38 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
settingsDialog:symbol 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
    "open a dialog on viewStyle related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1068
    |handler|
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1069
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1070
    RegisteredMenuHandlers notNil ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1071
        handler := RegisteredMenuHandlers at:symbol ifAbsent:nil.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1072
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1073
    handler isNil ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1074
        handler := LauncherDialogs
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1075
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1076
    handler perform:symbol with:self.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
    "Modified: / 31.7.1998 / 22:47:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
sourceAndDebuggerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
    self settingsDialog:#sourceAndDebuggerSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1086
    "Modified: / 31.7.1998 / 22:47:21 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
toolSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
    "open a dialog on tool settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
    self settingsDialog:#toolSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
    "Modified: / 31.7.1998 / 22:46:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
    "Created: / 13.10.1998 / 15:50:53 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1097
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
viewStyleSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1099
    "open a dialog on viewStyle related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1101
    self settingsDialog:#viewStyleSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
    "Modified: / 31.7.1998 / 22:47:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1106
!AbstractLauncherApplication methodsFor:'user actions - system'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1107
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1108
compressingGarbageCollect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1109
    "perform a compressing garbageCollect"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1110
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1111
    self withWaitCursorDo:[ObjectMemory verboseGarbageCollect]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1112
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1113
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1114
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1115
garbageCollect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1116
    "perform a non-compressing garbageCollect"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1117
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1118
    self withWaitCursorDo:[ObjectMemory reclaimSymbols]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1119
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1120
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1121
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1122
startStopEventTrace
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1123
    "start/stop event tracing for a particular view"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1124
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1125
    |v wg|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1126
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1127
    v := Screen current viewFromUser.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1128
    v notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1129
	v := v topView.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1130
	wg := v windowGroup.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1131
	wg notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1132
	    "/
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1133
	    "/ toggle eventTrace in its windowGroup
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1134
	    "/
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1135
	    wg traceEvents:(wg preEventHook isNil)
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1136
	]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1137
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1138
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1139
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1140
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1141
!AbstractLauncherApplication methodsFor:'user actions - tools'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1142
2210
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1143
inspectGlobalVariables
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1144
    "inspect globals"
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1145
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1146
    Smalltalk inspect
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1147
!
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1148
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1149
inspectWorkspaceVariables
2210
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1150
    "inspect workspace variables"
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1151
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1152
    Workspace workspaceVariables inspect
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1153
!
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1154
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1155
newProject 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1156
    "creates a new project & opens a projectView for it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1157
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1158
    Project notNil ifTrue: [(ProjectView for: Project new) open]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1159
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1160
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1161
openTerminal
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1162
    self openApplication:#VT100TerminalView 
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1163
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1164
    "Created: / 27.7.1998 / 12:48:30 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1165
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1166
3158
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1167
openWorkspace
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1168
    WorkspaceApplication notNil ifTrue:[
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1169
        ^ WorkspaceApplication open
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1170
    ].
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1171
    ^ self openApplication:Workspace
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1172
!
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1173
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1174
removeAllWorkspaceVariables
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1175
    "remove workspace variables"
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1176
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1177
    Workspace removeAllWorkspaceVariables
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1178
!
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1179
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1180
selectProject
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1181
    "asks for and switch to another project"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1182
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1183
    |list box|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1184
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1185
    Project notNil ifTrue:[
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1186
        list := Project allInstances.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1187
        box := ListSelectionBox new.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1188
        box list:(list collect:[:p | p name]).
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1189
        box title:(resources string:'select a project').
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1190
        box action:[:selection |
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1191
            |project|
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1192
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1193
            project := list detect:[:p | p name = selection] ifNone:[nil].
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1194
            project isNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1195
                transcript notNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1196
                    transcript showCR:'no such project.'
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1197
                ]
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1198
            ] ifFalse:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1199
                project showViews.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1200
                Project current:project
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1201
            ]
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1202
        ].
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
  1203
        box open.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1204
        box destroy
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1205
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1206
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1207
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1208
startChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1209
    "open a changebrowser - either new or old GUI, depending on userPrefs"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1210
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1211
    self openApplication:(UserPreferences current changesBrowserClass)
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1212
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1213
    "Modified: / 17.10.1998 / 14:38:18 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1214
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1215
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1216
startNewChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1217
    "opens the new changeBrowser"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1218
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1219
    self openApplication:#NewChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1220
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1221
    "Created: / 6.6.1998 / 19:47:26 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1222
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1223
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1224
startNewLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1225
    "opens the new launcher"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1226
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1227
    NewLauncher isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1228
	^ self warn:'The NewLauncher is not available in this release.'
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1229
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1230
    NewLauncher openAt:(self window origin)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1231
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1232
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1233
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1234
startOldChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1235
    "opens the old changeBrowser"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1236
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1237
    self openApplication:#ChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1238
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1239
    "Created: / 6.6.1998 / 19:47:26 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1240
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1241
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1242
startOldLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1243
    "opens the old launcher"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1244
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1245
    Launcher isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1246
	^ self warn:'The (Old)Launcher is not available in this release.'
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1247
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1248
    Launcher openAt:(self window origin)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1249
2883
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1250
!
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1251
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1252
startSUnitTestRunner
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1253
    "open the SUnit test runner"
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1254
3037
0d452d54bf04 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3035
diff changeset
  1255
    self openApplication:#TestRunner
2883
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1256
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1257
    "Modified: / 17.10.1998 / 14:38:18 / cg"
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1258
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1259
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1260
!AbstractLauncherApplication methodsFor:'user actions - windows'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1261
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1262
askForAnotherDisplay
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1263
    "ask for some other display"
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1264
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1265
    |host anotherDisplay|
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1266
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  1267
    host := Dialog request:'Display:' initialAnswer:(Screen default displayName).
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1268
    host size == 0 ifTrue:[^ nil].
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1269
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1270
    anotherDisplay := XWorkstation newDispatchingFor:host.
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1271
    anotherDisplay isNil ifTrue:[
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1272
        self warn:'Could not connect to remote display'.
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1273
        ^ nil
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1274
    ].
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1275
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1276
    ^ anotherDisplay
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1277
!
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1278
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1279
deIconifyAllWindows
2144
48df3bc4d44c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2111
diff changeset
  1280
    |setOfViews currentScreen|
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1281
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1282
    setOfViews := Project current views asIdentitySet.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1283
    setOfViews addAll:(Project defaultProject views).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1284
2144
48df3bc4d44c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2111
diff changeset
  1285
    currentScreen := Screen current.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1286
    setOfViews do:[:aTopView |
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1287
	aTopView device == currentScreen ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1288
	    aTopView expand
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1289
	].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1290
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1291
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1292
    "
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1293
     Transcript topView application deIconifyAllWindows
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1294
    "
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1295
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1296
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1297
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1298
findAndDestroyWindow
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1299
    "find a window (by name) and destroy it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1300
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1301
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1302
    v := self findWindow:'select view to close:'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1303
    v notNil ifTrue:[v destroy]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1304
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1305
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1306
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1307
findAndMigrateWindow
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1308
    "find a window (by name) and migrate it to some other display"
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1309
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1310
    |possibleGroups v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1311
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1312
    possibleGroups := WindowGroup allInstances select:[:eachGroup |
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
  1313
                                        eachGroup graphicsDevice == Screen current
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1314
                                        and:[eachGroup isModal not
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1315
                                        and:[eachGroup topViews size > 0]]].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1316
    possibleGroups size == 0 ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1317
        self information:'No windows found which could be migrated to some other display.'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1318
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1319
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1320
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1321
    v := self findWindow:'Select view to migrate:' windowGroupFilter:possibleGroups.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1322
    v notNil ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1323
        self migrateWindow:v topView
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1324
    ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1325
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1326
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1327
findAndMigrateWindowBack
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1328
    "find a window (by name) and migrate it back to this display"
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1329
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1330
    |possibleGroups v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1331
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1332
    possibleGroups := WindowGroup allInstances select:[:eachGroup |
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
  1333
                                        eachGroup graphicsDevice ~~ Screen current
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1334
                                        and:[eachGroup isModal not
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1335
                                        and:[eachGroup topViews size > 0]]].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1336
    possibleGroups size == 0 ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1337
        self information:'No windows are open on any other display.'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1338
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1339
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1340
        
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1341
    v := self findWindow:'Select view to migrate back:' windowGroupFilter:possibleGroups.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1342
    v notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1343
        v windowGroup migrateTo:(Screen current)
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1344
    ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1345
!
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1346
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1347
findAndRaiseWindow
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1348
    "find a window (by name) and raise it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1349
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1350
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1351
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1352
    v := self findWindow:'select view to raise deiconified:'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1353
    v notNil ifTrue:[v raiseDeiconified]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1354
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1355
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1356
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1357
fullScreenHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1358
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1359
     save the contents of the whole screen."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1360
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1361
    Processor 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1362
	addTimedBlock:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1363
			self 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1364
			    saveScreenImage:(Image fromScreen) 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1365
			    defaultName:'screen'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1366
		      ] 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1367
	afterSeconds:1
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1368
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1369
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1370
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1371
iconifyAllWindows
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1372
    |setOfViews currentScreen|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1373
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1374
    setOfViews := Project current views asIdentitySet.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1375
    setOfViews addAll:(Project defaultProject views).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1376
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1377
    currentScreen := Screen current.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1378
    setOfViews do:[:aTopView |
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1379
	aTopView device == currentScreen ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1380
	    aTopView collapse
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1381
	]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1382
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1383
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1384
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1385
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1386
migrateAllWindows
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1387
    "migrate all views to some other display"
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1388
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1389
    |anotherDisplay toMigrate|
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1390
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1391
    anotherDisplay := self askForAnotherDisplay.
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1392
    anotherDisplay isNil ifTrue:[
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1393
        ^ self
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1394
    ].
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1395
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1396
    toMigrate := WindowGroup allInstances 
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1397
        select:[:each | each device == Screen current
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1398
                        and:[each topViews size > 0
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1399
                        and:[each isModal not]]
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1400
               ].
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1401
    toMigrate do:[:eachGroup |
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1402
        eachGroup migrateTo:anotherDisplay
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1403
    ]
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1404
!
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1405
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1406
migrateWindow:aWindow
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1407
    "migrate a view to some other display"
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1408
2778
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1409
    aWindow windowGroup isModal ifTrue:[
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1410
        self warn:'Sorry - I cannot migrate a modalBox; please migrate the owning View.'.
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1411
        ^ self
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1412
    ].
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1413
    self migrateWindow:aWindow withBackOption:(self confirm:'Show ''Return Back'' Button on the other display ?')
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1414
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1415
!
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1416
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1417
migrateWindow:aWindow withBackOption:withBackOption
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1418
    "migrate a view to some other display"
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1419
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1420
    |anotherDisplay wg here b|
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1421
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1422
    aWindow isTopView ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1423
        self information:'Cannto migrate this view'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1424
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1425
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1426
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1427
    anotherDisplay := self askForAnotherDisplay.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1428
    anotherDisplay isNil ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1429
        ^ self
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1430
    ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1431
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1432
    wg := aWindow windowGroup.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1433
    wg migrateTo:anotherDisplay.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1434
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1435
    withBackOption ifTrue:[
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1436
        here := Screen current.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1437
        b := Button onDevice:anotherDisplay.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1438
        b label:'Return window back to ' , here displayName.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1439
        b action:[ wg migrateTo:here. b destroy. ].
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1440
        b origin:0@0.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1441
        b open.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1442
    ].
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1443
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1444
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1445
screenHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1446
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1447
     let user specify a rectangular area on the screen
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1448
     and save its contents."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1449
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1450
    |area|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1451
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1452
    Processor 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1453
	addTimedBlock:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1454
			[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1455
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1456
			area := Rectangle fromUser.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1457
			(area width > 0 and:[area height > 0]) ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1458
			    self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1459
			]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1460
		      ] 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1461
	afterSeconds:1
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1462
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1463
    "Modified: / 18.8.1998 / 15:00:42 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1464
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1465
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1466
startWindowTreeView
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1467
    "open a windowTree (on a picked topView)"
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1468
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1469
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1470
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1471
    WindowTreeView isNil ifTrue:[
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1472
        ^ self warn:'The WindowTreeView is not available in this release.'
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1473
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1474
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1475
    v := self pickAView.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1476
    v notNil ifTrue:[
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1477
        WindowTreeView openOn:v topView
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1478
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1479
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1480
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1481
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1482
startWindowTreeViewForAll
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1483
    "open a windowTree on all views in the system"
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1484
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1485
    |v|
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1486
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1487
    WindowTreeView isNil ifTrue:[
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1488
        ^ self warn:'The WindowTreeView is not available in this release.'
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1489
    ].
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1490
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1491
    WindowTreeView openOnAll
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1492
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1493
!
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1494
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1495
viewDestroy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1496
    "let user pick a view and destroy it.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1497
     Even allow destroying non-smalltalk views
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1498
     (also for views which I forgot due to some error)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1499
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1500
    |device v id i c|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1501
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1502
    (Delay forSeconds:1) wait.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1503
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1504
    device := Screen current.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1505
    i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1506
    i isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1507
	c := Cursor crossHair
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1508
    ] ifFalse:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1509
	c := Cursor fromImage:i
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1510
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1511
    id := device viewIdFromPoint:(device pointFromUserShowing:c).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1512
    (v := device viewFromId:id) notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1513
	v topView destroy.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1514
	^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1515
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1516
    id = device rootView id ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1517
	^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1518
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1519
    (Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1520
    ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1521
	device destroyView:nil withId:id
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1522
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1523
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1524
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1525
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1526
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1527
viewHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1528
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1529
     let user specify a view and save its contents."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1530
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1531
    Processor 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1532
	addTimedBlock:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1533
			|v|
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1534
			(v := Screen current viewFromUser) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1535
			    self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1536
			]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1537
		      ] 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1538
	afterSeconds:1
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1539
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1540
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1541
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1542
viewInspect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1543
    "let user pick a view and inspect it. Only smalltalk views are allowed"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1544
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1545
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1546
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1547
    (v := self pickAView) notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1548
	v inspect
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1549
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1550
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1551
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1552
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1553
viewMigrate
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1554
    "let user pick a view and migrate it to some other display"
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1555
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1556
    |v|
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1557
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1558
    (v := self pickAView) notNil ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1559
        self migrateWindow:v topView
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1560
    ]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1561
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1562
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1563
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1564
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1565
communicationsSettingsFor:requestor
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1566
    "open a dialog on communications settings"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1567
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1568
    |box check in resources y acceptChannel
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1569
     hasRDoitServer rDoitServerPort
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1570
     rDoitsEnabled rDoitLogging rDoitErrorLogging rDoitErrorDebugging 
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1571
     org_rDoitsEnabled org_rDoitLogging org_rDoitErrorLogging org_rDoitErrorDebugging org_rDoitServerPort
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1572
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1573
     hasWindowMigrationServer windowMigrationAuthenticate windowMigrationPassword
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1574
     windowMigrationEnabled  
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1575
     org_windowMigrationEnabled org_windowMigrationAuthenticate org_windowMigrationPassword
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1576
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1577
     hasHTTPServer httpServerRunning httpServerFileRoot httpServerHomeURL
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1578
     httpServerPort httpServerLogFile hasSwiki swikiEnabled swikiRoot
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1579
     allowEmbedded
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1580
     org_httpServerRunning org_httpServerFileRoot org_httpServerHomeURL
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1581
     org_httpServerPort org_swikiRoot org_swikiEnabled org_httpServerLogFile
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1582
     org_allowEmbedded
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1583
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1584
     osiACSEPresent osiROSEPresent osiCMISEPresent
2199
a5d89d6fc80b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2198
diff changeset
  1585
     osiACSEErrorLogging osiACSEConnectionLogging osiACSEDataLogging
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1586
     osiROSEErrorLogging osiROSEResponseLogging osiROSEInvokationLogging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1587
     osiCMISEErrorLogging osiCMISEMessageLogging
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1588
    |
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1589
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1590
    acceptChannel := false asValue.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1591
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1592
    resources := requestor class classResources.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1593
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1594
    "/ 
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1595
    "/ extract relevant windowMigration settings ...
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1596
    "/
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1597
    windowMigrationEnabled := windowMigrationAuthenticate := false.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1598
    (hasWindowMigrationServer := WindowMigrationServer notNil) ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1599
        WindowMigrationServer isLoaded ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1600
            windowMigrationEnabled := WindowMigrationServer serverRunning.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1601
        ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1602
        windowMigrationPassword := WindowMigrationServer password.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1603
        windowMigrationAuthenticate := windowMigrationPassword notNil.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1604
    ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1605
    org_windowMigrationEnabled := windowMigrationEnabled.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1606
    windowMigrationEnabled := windowMigrationEnabled asValue.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1607
    org_windowMigrationAuthenticate := windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1608
    windowMigrationAuthenticate := windowMigrationAuthenticate asValue.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1609
    org_windowMigrationPassword := windowMigrationPassword.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1610
    windowMigrationPassword := windowMigrationPassword asValue.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1611
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1612
    "/ 
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1613
    "/ extract relevant rdoit settings ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1614
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1615
    rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1616
    (hasRDoitServer := RDoItServer notNil) ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1617
        RDoItServer isLoaded ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1618
            rDoitsEnabled := RDoItServer serverRunning.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1619
            rDoitLogging := RDoItServer isLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1620
            rDoitErrorLogging := RDoItServer isErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1621
            rDoitErrorDebugging := RDoItServer isErrorCatching not.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1622
            rDoitServerPort := RDoItServer defaultPortNumber.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1623
        ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1624
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1625
    org_rDoitsEnabled := rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1626
    org_rDoitLogging := rDoitLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1627
    org_rDoitErrorLogging := rDoitErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1628
    org_rDoitErrorDebugging := rDoitErrorDebugging.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1629
    org_rDoitServerPort := rDoitServerPort.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1630
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1631
    rDoitServerPort := rDoitServerPort asValue.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1632
    rDoitsEnabled := rDoitsEnabled asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1633
    rDoitLogging := rDoitLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1634
    rDoitErrorLogging := rDoitErrorLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1635
    rDoitErrorDebugging := rDoitErrorDebugging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1636
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1637
    "/
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1638
    "/ extract http-server settings
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1639
    "/
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1640
    hasHTTPServer := httpServerRunning := false.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1641
    (hasHTTPServer := HTTPServer notNil) ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1642
        HTTPServer isLoaded ifTrue:[
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1643
            httpServerRunning := HTTPServer isRunning.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1644
            httpServerFileRoot := HTTPServer fileRoot.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1645
            httpServerHomeURL := HTTPServer homeURL.
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1646
            httpServerPort := HTTPServer defaultPort.
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1647
            httpServerLogFile := HTTPServer defaultLogFile.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1648
        ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1649
    ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1650
    org_httpServerRunning := httpServerRunning.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1651
    httpServerRunning := httpServerRunning asValue.
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1652
    org_httpServerFileRoot := httpServerFileRoot.
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1653
    httpServerFileRoot := httpServerFileRoot asValue.
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1654
    org_httpServerHomeURL := httpServerHomeURL.
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1655
    httpServerHomeURL := httpServerHomeURL asValue.
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1656
    org_httpServerPort := httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1657
    httpServerPort := httpServerPort asValue.
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1658
    org_httpServerLogFile := httpServerLogFile.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1659
    httpServerLogFile := httpServerLogFile asValue.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1660
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1661
    httpServerRunning 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  1662
        onChangeEvaluate:[
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1663
            httpServerFileRoot value:(HTTPServer fileRoot).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1664
            httpServerHomeURL value:(HTTPServer homeURL).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1665
            httpServerPort value:(HTTPServer defaultPort).
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1666
            httpServerLogFile value:(HTTPServer defaultLogFile)
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1667
        ].
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1668
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1669
    hasSwiki := false.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1670
    swikiEnabled := false.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1671
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1672
    (hasSwiki := PWS::SwikiAction notNil) ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1673
        PWS::SwikiAction isLoaded ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1674
            (HTTPServer notNil and:[HTTPServer isLoaded]) ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1675
                swikiEnabled := HTTPServer hasActionLinkFor:'myswiki'.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1676
                swikiRoot := PWS::SwikiAction serverDirectory.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1677
            ]
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1678
        ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1679
    ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1680
    org_swikiRoot := swikiRoot.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1681
    org_swikiEnabled := swikiEnabled.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1682
    swikiRoot := swikiRoot asValue.
2289
f11b1b928d2c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2288
diff changeset
  1683
    swikiEnabled := swikiEnabled asValue.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1684
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1685
    swikiEnabled
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  1686
        onChangeEvaluate:[
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1687
            swikiRoot value:(PWS::SwikiAction serverDirectory).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1688
        ].
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1689
2561
6f19bef93a30 avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents: 2560
diff changeset
  1690
    allowEmbedded := HTTPServer isLoaded and:[HTTPServer enableEmbeddedSmalltalk].
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1691
    org_allowEmbedded := allowEmbedded.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1692
    allowEmbedded := allowEmbedded asValue.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1693
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1694
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1695
    "/ osi settings ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1696
    "/
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1697
    osiACSEPresent := OSI::ACSE notNil and:[OSI::ACSE isLoaded].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1698
    osiROSEPresent := OSI::ROSE notNil and:[OSI::ROSE isLoaded].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1699
    osiCMISEPresent := OSI::CMISE notNil and:[OSI::CMISE isLoaded].
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1700
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1701
    osiACSEPresent ifTrue:[
2204
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1702
        osiACSEErrorLogging := OSI::ACSE errorLogging asValue.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1703
        osiACSEConnectionLogging := OSI::ACSE connectionLogging asValue.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1704
        osiACSEDataLogging :=  OSI::ACSE dataLogging asValue.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1705
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1706
    osiROSEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1707
        osiROSEErrorLogging := OSI::ROSE errorLogging asValue.
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  1708
        osiROSEInvokationLogging := OSI::ROSE invocationLogging asValue.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1709
        osiROSEResponseLogging :=  OSI::ROSE responseLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1710
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1711
    osiCMISEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1712
        osiCMISEErrorLogging := OSI::CMISE errorLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1713
        osiCMISEMessageLogging := OSI::CMISE messageLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1714
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1715
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1716
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1717
    "/ create a box on those values ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1718
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1719
    box := DialogBox new.
2809
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1720
    box label:(resources string:'Communication settings').
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1721
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1722
    box addTextLabel:(resources string:'Window migration').
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1723
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1724
    check := box addCheckBox:(resources string:'Window migration enabled') on:windowMigrationEnabled.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1725
    hasWindowMigrationServer ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1726
        check disable
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1727
    ].
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1728
    check := box addCheckBox:(resources string:'Password check') on:windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1729
    check enableChannel:windowMigrationEnabled.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1730
    hasWindowMigrationServer ifFalse:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1731
        check disable
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1732
    ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1733
    box leftIndent:20.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1734
    in := box 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1735
            addLabelledInputField:(resources string:'Password:')
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1736
            adjust:#right
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1737
            on:nil 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1738
            tabable:true
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1739
            separateAtX:0.3.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1740
    in passwordCharacter:$*.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1741
    in model:windowMigrationPassword.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1742
    in acceptChannel:acceptChannel.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1743
    in enableChannel:windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1744
    box leftIndent:0.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1745
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1746
    box addHorizontalLine.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1747
2279
5ce7d23ec7ca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2278
diff changeset
  1748
    box addTextLabel:'RDoIt Server'.
5ce7d23ec7ca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2278
diff changeset
  1749
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1750
    check := box addCheckBox:(resources string:'Remote doits enabled') on:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1751
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1752
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1753
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1754
    box leftIndent:20.
3237
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1755
    rDoitsEnabled onChangeEvaluate:[ rDoitsEnabled value ifTrue:[
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1756
                                        rDoitServerPort value isNil ifTrue:[
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1757
                                            rDoitServerPort value:(RDoItServer defaultPortNumber).
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1758
                                        ]
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1759
                                     ]   
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1760
                                   ].
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1761
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1762
    in := box 
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1763
            addLabelledInputField:(resources string:'Port:')
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1764
            adjust:#right
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1765
            on:nil 
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1766
            tabable:true
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1767
            separateAtX:0.3.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1768
    in converter:(PrintConverter new initForNumber).
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1769
    in model:rDoitServerPort.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1770
    in acceptChannel:acceptChannel.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1771
    in enableChannel:rDoitsEnabled.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1772
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1773
    y := box yPosition.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1774
    check := box addCheckBox:(resources string:'Log errors') on:rDoitErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1775
    check width:0.4.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1776
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1777
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1778
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1779
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1780
    box yPosition:y.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1781
    check := box addCheckBox:(resources string:'Log requests') on:rDoitLogging.
2281
8c3aea30c82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2280
diff changeset
  1782
    check left:0.4; width:0.4.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1783
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1784
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1785
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1786
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1787
    check := box addCheckBox:(resources string:'Debug errors') on:rDoitErrorDebugging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1788
    check width:0.4.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1789
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1790
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1791
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1792
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1793
    box leftIndent:0.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1794
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1795
    box addHorizontalLine.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1796
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1797
    box addTextLabel:'HTTP Server'.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1798
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1799
    check := box addCheckBox:(resources string:'Serving HTTP Requests') on:httpServerRunning.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1800
    hasHTTPServer ifFalse:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1801
        check disable
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1802
    ].
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1803
    box leftIndent:20.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1804
    in := box 
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1805
            addLabelledInputField:(resources string:'Port:')
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1806
            adjust:#right
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1807
            on:nil 
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1808
            tabable:true
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1809
            separateAtX:0.3.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1810
    in converter:(PrintConverter new initForNumber).
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1811
    in model:httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1812
    in acceptChannel:acceptChannel.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1813
    in enableChannel:httpServerRunning.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1814
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1815
    in := box 
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1816
            addLabelledInputField:(resources string:'Log File:')
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1817
            adjust:#right
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1818
            on:httpServerLogFile 
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1819
            tabable:true
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1820
            separateAtX:0.3.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1821
    in acceptChannel:acceptChannel.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1822
    in enableChannel:httpServerRunning.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1823
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1824
    in := box 
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1825
            addLabelledInputField:(resources string:'File Root:')
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1826
            adjust:#right
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1827
            on:httpServerFileRoot 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1828
            tabable:true
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1829
            separateAtX:0.3.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1830
    in acceptChannel:acceptChannel.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1831
    in enableChannel:httpServerRunning.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1832
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1833
    in := box 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1834
            addLabelledInputField:(resources string:'Home URL:')
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1835
            adjust:#right
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1836
            on:httpServerHomeURL 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1837
            tabable:true
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1838
            separateAtX:0.3.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1839
    in acceptChannel:acceptChannel.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1840
    in enableChannel:httpServerRunning.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1841
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1842
    check := box addCheckBox:(resources string:'Swiki enabled') on:swikiEnabled.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1843
    hasHTTPServer ifFalse:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1844
        check disable
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1845
    ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1846
    check enableChannel:httpServerRunning.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1847
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1848
"/    box leftIndent:40.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1849
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1850
    in := box 
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1851
            addLabelledInputField:(resources string:'SwikiRoot:')
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1852
            adjust:#right
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1853
            on:swikiRoot 
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1854
            tabable:true
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1855
            separateAtX:0.3.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1856
    in acceptChannel:acceptChannel.
2307
6aa722a14c1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1857
    in enableChannel:(BlockValue forLogical:httpServerRunning and:swikiEnabled).
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1858
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1859
    check := box addCheckBox:(resources string:'Allow embedded ST applications') on:allowEmbedded.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1860
    hasHTTPServer ifFalse:[
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1861
        check disable
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1862
    ].
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1863
    check enableChannel:httpServerRunning.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1864
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1865
    box leftIndent:0.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1866
    box addHorizontalLine.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1867
2809
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1868
    box addTextLabel:(resources string:'OSI Protocols (addOn package)').
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1869
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1870
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1871
    check := box addCheckBox:(resources string:'Log %1 Errors' with:'ACSE') on:osiACSEErrorLogging.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1872
    check width:0.33.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1873
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1874
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1875
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1876
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1877
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1878
    check := box addCheckBox:(resources string:'Connections') on:osiACSEConnectionLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1879
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1880
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1881
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1882
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1883
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1884
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1885
    check := box addCheckBox:(resources string:'Data Xfer') on:osiACSEDataLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1886
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1887
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1888
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1889
    check left:0.66; width:0.34.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1890
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1891
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1892
    box addVerticalSpace.
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1893
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1894
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1895
    check := box addCheckBox:(resources string:'Log %1 Errors' with:'ROSE') on:osiROSEErrorLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1896
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1897
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1898
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1899
    check width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1900
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1901
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1902
    check := box addCheckBox:(resources string:'Invoactions') on:osiROSEInvokationLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1903
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1904
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1905
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1906
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1907
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1908
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1909
    check := box addCheckBox:(resources string:'Responses') on:osiROSEResponseLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1910
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1911
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1912
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1913
    check left:0.66; width:0.34.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1914
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1915
    box addVerticalSpace.
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1916
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1917
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1918
    check := box addCheckBox:(resources string:'Log %1 Errors' with:'CMISE') on:osiCMISEErrorLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1919
    osiCMISEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1920
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1921
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1922
    check width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1923
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1924
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1925
    check := box addCheckBox:(resources string:'Messages') on:osiCMISEMessageLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1926
    osiCMISEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1927
        check disable
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1928
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1929
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1930
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1931
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  1932
    box addHorizontalLine.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1933
    box 
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1934
        addHelpButtonFor:'Launcher/communicationsSettings.html';
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1935
        addAbortAndOkButtons.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1936
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1937
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1938
    "/ show the box ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1939
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1940
    box open.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1941
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1942
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1943
    "/ update system settings
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1944
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1945
    box accepted ifTrue:[
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1946
        acceptChannel value:false; value:true.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1947
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1948
        hasWindowMigrationServer ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1949
            windowMigrationEnabled := windowMigrationEnabled value.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1950
            windowMigrationAuthenticate := windowMigrationAuthenticate value.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1951
            windowMigrationPassword := windowMigrationPassword value.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1952
            (windowMigrationEnabled ~~ org_windowMigrationEnabled
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1953
            or:[windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1954
            or:[windowMigrationPassword ~~ org_windowMigrationPassword]])  ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1955
                windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1956
                    windowMigrationAuthenticate ifFalse:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1957
                        WindowMigrationServer password:nil    
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1958
                    ] ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1959
                        WindowMigrationServer password:windowMigrationPassword    
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1960
                    ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1961
                ].
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1962
                windowMigrationEnabled ~~ WindowMigrationServer serverRunning ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1963
                    windowMigrationEnabled ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1964
                        WindowMigrationServer stop
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1965
                    ] ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1966
                        WindowMigrationServer start.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1967
                        "/ must wait a bit; give it a chance to
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1968
                        "/ really start (before checking)
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1969
                        Delay waitForSeconds:0.5.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1970
                        WindowMigrationServer serverRunning ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1971
                            self warn:'WindowMigrationServer startup failed (see stderr).'
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1972
                        ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1973
                    ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1974
                ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1975
            ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1976
        ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1977
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1978
        hasRDoitServer ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1979
            (rDoitLogging value ~~ org_rDoitLogging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1980
            or:[rDoitErrorDebugging value ~~ org_rDoitErrorDebugging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1981
            or:[rDoitErrorLogging value ~~ org_rDoitErrorLogging
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1982
            or:[rDoitsEnabled value ~~ org_rDoitsEnabled
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1983
            or:[rDoitServerPort value ~~ org_rDoitServerPort]]]]) ifTrue:[
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1984
                RDoItServer autoload.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1985
                RDoItServer defaultPortNumber:rDoitServerPort value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1986
                RDoItServer logging:(rDoitLogging value).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1987
                RDoItServer errorLogging:(rDoitErrorLogging value).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1988
                RDoItServer errorCatching:(rDoitErrorDebugging value not).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1989
                rDoitsEnabled := rDoitsEnabled value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1990
                rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1991
                    rDoitsEnabled ifFalse:[
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1992
                        RDoItServer stop
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1993
                    ] ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1994
                        RDoItServer start.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1995
                        "/ must wait a bit; give it a chance to
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1996
                        "/ really start (before checking)
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1997
                        Delay waitForSeconds:0.5.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1998
                        RDoItServer serverRunning ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1999
                            self warn:'RDoit startup failed (see stderr).'
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2000
                        ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2001
                    ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2002
                ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2003
            ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2004
        ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2005
2561
6f19bef93a30 avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents: 2560
diff changeset
  2006
        (hasHTTPServer and:[HTTPServer isLoaded]) ifTrue:[
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2007
            httpServerPort := httpServerPort value.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2008
            org_httpServerPort ~= httpServerPort ifTrue:[
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2009
                HTTPServer defaultPort:httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2010
            ].
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2011
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2012
            httpServerFileRoot := httpServerFileRoot value.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2013
            httpServerFileRoot size == 0 ifTrue:[
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2014
                httpServerFileRoot := nil
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2015
            ].
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2016
            org_httpServerFileRoot ~= httpServerFileRoot ifTrue:[
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2017
                HTTPServer fileRoot:httpServerFileRoot.
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2018
            ].
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2019
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2020
            httpServerLogFile := httpServerLogFile value.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2021
            httpServerLogFile size == 0 ifTrue:[
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2022
                httpServerLogFile := nil
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2023
            ].
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2024
            org_httpServerLogFile ~= httpServerLogFile ifTrue:[
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2025
                HTTPServer defaultLogFile:httpServerLogFile.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2026
            ].
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2027
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2028
            httpServerHomeURL := httpServerHomeURL value.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2029
            httpServerHomeURL size == 0 ifTrue:[
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2030
                httpServerHomeURL := nil
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2031
            ].
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2032
            org_httpServerHomeURL ~= httpServerHomeURL ifTrue:[
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2033
                HTTPServer homeURL:httpServerHomeURL.
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2034
            ].
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2035
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2036
            httpServerRunning value ~~ org_httpServerRunning ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2037
                httpServerRunning value ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2038
                    HTTPServer startServer
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2039
                ] ifFalse:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2040
                    HTTPServer stopServer
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2041
                ]
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2042
            ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2043
        ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2044
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2045
        hasSwiki ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2046
            swikiRoot := swikiRoot value.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2047
            swikiRoot size == 0 ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2048
                swikiRoot := nil
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2049
            ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2050
            org_swikiRoot ~= swikiRoot ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2051
                PWS::ServerAction serverDirectory:swikiRoot.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2052
            ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2053
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2054
            swikiEnabled value ~~ org_swikiEnabled ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2055
                swikiEnabled value ifTrue:[
2311
1545462965c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2310
diff changeset
  2056
                    HTTPServer setupMySwiki
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2057
                ] ifFalse:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2058
                    HTTPServer removeActionLinkFor:'myswiki'
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2059
                ]
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2060
            ].
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2061
            allowEmbedded value ~~ org_allowEmbedded ifTrue:[
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2062
                HTTPServer enableEmbeddedSmalltalk:allowEmbedded value
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2063
            ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2064
        ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2065
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2066
        osiACSEPresent ifTrue:[
2204
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2067
            OSI::ACSE errorLogging:osiACSEErrorLogging value.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2068
            OSI::ACSE connectionLogging:osiACSEConnectionLogging value.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2069
            OSI::ACSE dataLogging:osiACSEDataLogging value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2070
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2071
        osiROSEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2072
            OSI::ROSE errorLogging:osiROSEErrorLogging value.
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  2073
            OSI::ROSE invocationLogging:osiROSEInvokationLogging value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2074
            OSI::ROSE responseLogging:osiROSEResponseLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2075
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2076
        osiCMISEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2077
            OSI::CMISE errorLogging:osiCMISEErrorLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2078
            OSI::CMISE messageLogging:osiCMISEMessageLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2079
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2080
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2081
    box destroy
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2082
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  2083
    "Modified: / 28.6.1999 / 15:44:35 / stefan"
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2084
    "Modified: / 20.1.2000 / 19:14:18 / cg"
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2085
!
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2086
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2087
compilerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2088
    "open a dialog on compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2089
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2090
    |box warnings warnSTX warnUnderscore warnDollar warnOldStyle warnUnusedVars
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2091
     allowDollar allowUnderscore allowSqueakExtensions allowQualifiedNames
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2092
     immutableArrays
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2093
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2094
     warnCompatibility warnCompatibilityBox warnDollarBox warnUnusedVarsBox
2018
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  2095
     stcCompilation compilationList stcCompilationOptions 
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  2096
     historyLines fullHistoryUpdate 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2097
     catchMethodRedefs catchClassRedefs keepSourceOptions keepSource  
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2098
     constantFoldingOptions constantFolding justInTimeCompilation 
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  2099
     warnEnabler check component oldIndent supportsJustInTimeCompilation y
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2100
     y2 fullDebugSupport yMax
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2101
     compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2102
     resources stcSetupButt|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2103
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2104
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2105
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2106
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2107
    loadBinaries := Smalltalk loadBinaries asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2108
    compileLazy := Autoload compileLazy asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2109
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2110
    warnings := Compiler warnings asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2111
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2112
    warnSTX := Compiler warnSTXSpecials asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2113
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2114
    warnDollar := Compiler warnDollarInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2115
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2116
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2117
    warnCompatibility := Compiler warnPossibleIncompatibilities asValue.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2118
    warnUnusedVars := Compiler warnUnusedVars asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2119
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2120
    allowDollar := Compiler allowDollarInIdentifier asValue.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2121
    allowSqueakExtensions := Compiler allowSqueakExtensions asValue.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2122
    allowQualifiedNames := Compiler allowQualifiedNames asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2123
    immutableArrays := Compiler arraysAreImmutable asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2124
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2125
    constantFoldingOptions := #( nil #level1 #level2 #full ).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2126
    constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2127
    constantFolding selectionIndex:3.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2128
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2129
    thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2130
    thisIsADemoVersion ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2131
        stcCompilationOptions := #( never).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2132
        strings := #('never').
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2133
        idx := 1.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2134
    ] ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2135
        stcCompilationOptions := #( always default never).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2136
        strings := #('always' 'primitive code only' 'never').
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2137
        idx := 2.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2138
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2139
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2140
    stcCompilation := SelectionInList new list:(resources array:strings).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2141
    stcCompilation selectionIndex:idx.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2142
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2143
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2144
    ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2145
        justInTimeCompilation := ObjectMemory justInTimeCompilation.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2146
        fullDebugSupport := ObjectMemory fullSingleStepSupport.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2147
    ] ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2148
        justInTimeCompilation := false.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2149
        fullDebugSupport := (Compiler lineNumberInfo == #full) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2150
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2151
    justInTimeCompilation := justInTimeCompilation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2152
    fullDebugSupport := fullDebugSupport asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2153
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2154
    catchMethodRedefs := Class catchMethodRedefinitions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2155
    catchClassRedefs := Class catchClassRedefinitions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2156
    historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2157
    historyLines ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2158
        fullHistoryUpdate := false asValue   
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2159
    ] ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2160
        fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2161
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2162
    historyLines := historyLines asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2163
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2164
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2165
    keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2166
    keepSource selectionIndex:1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2167
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2168
    warnEnabler := [
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2169
              warnings value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2170
                warnSTXBox enable. 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2171
                warnOldStyleBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2172
                warnCommonMistakesBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2173
                warnCompatibilityBox enable.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2174
                warnUnusedVarsBox enable.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2175
                allowUnderscore value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2176
                    warnUnderscoreBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2177
                ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2178
                    warnUnderscoreBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2179
                ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2180
                allowDollar value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2181
                    warnDollarBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2182
                ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2183
                    warnDollarBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2184
                ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2185
              ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2186
                warnSTXBox disable. 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2187
                warnUnderscoreBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2188
                warnDollarBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2189
                warnOldStyleBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2190
                warnCommonMistakesBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2191
                warnCompatibilityBox disable.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2192
                warnUnusedVarsBox disable.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2193
              ]].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2194
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2195
    warnings onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2196
    allowUnderscore onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2197
    allowDollar onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2198
"/    allowSqueakExtensions onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2199
"/    allowQualifiedNames onChangeEvaluate:warnEnabler.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2200
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2201
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2202
    box label:(resources string:'Compiler settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2203
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2204
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2205
    check := box addCheckBox:(resources string:'catch method redefinitions') on:catchMethodRedefs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2206
    check width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2207
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2208
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2209
    check := box addCheckBox:(resources string:'catch class redefinitions') on:catchClassRedefs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2210
    check left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2211
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2212
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2213
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2214
    check width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2215
    HistoryManager isNil ifTrue:[check disable].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2216
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2217
    check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2218
    check left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2219
    HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2220
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2221
    box addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2222
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2223
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2224
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2225
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2226
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2227
    check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2228
    canLoadBinaries ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2229
        loadBinaries value:false.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2230
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2231
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2232
    supportsJustInTimeCompilation ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2233
        component := box 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2234
                        addCheckBox:(resources string:'just in time compilation to machine code') 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2235
                        on:justInTimeCompilation.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2236
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2237
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2238
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2239
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2240
    ObjectFileLoader notNil ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2241
        compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2242
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2243
        thisIsADemoVersion ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2244
            stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2245
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2246
            stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2247
                       action:[|manager|
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2248
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2249
                               self stcCompilerSettingsFor:requestor.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2250
                              ]).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2251
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2252
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2253
        box addHorizontalLine.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2254
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2255
        "/ if there is no compiler around,
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2256
        "/ change to compile nothing, and disable the checkBoxes
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2257
        Compiler canCreateMachineCode ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2258
            stcCompilation selectionIndex:(3 min:stcCompilationOptions size).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2259
            compilationList disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2260
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2261
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2262
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2263
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2264
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2265
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2266
    component width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2267
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2268
    component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2269
    component width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2270
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2271
    component := box addCheckBox:(resources string:'allow squeak syntax extensions') on:allowSqueakExtensions.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2272
    component width:0.4.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2273
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2274
    component := box addCheckBox:(resources string:'allow vw3 qualifiedNames') on:allowQualifiedNames.
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2275
    component width:0.4.
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2276
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2277
    y2 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2278
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2279
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2280
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2281
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2282
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2283
    component superView left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2284
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2285
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2286
    component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2287
    component left:0.5; width:0.4.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2288
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2289
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2290
    component left:0.5; width:0.4.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2291
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2292
    box yPosition:(box yPosition max:y2).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2293
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2294
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2295
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2296
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2297
    box addCheckBox:(resources string:'warnings') on:warnings.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2298
"/    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2299
    oldIndent := box leftIndent.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2300
    box leftIndent:30.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2301
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2302
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2303
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2304
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2305
    warnSTXBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2306
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2307
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2308
    warnUnderscoreBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2309
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2310
    warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2311
    warnDollarBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2312
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2313
    warnUnusedVarsBox := box addCheckBox:(resources string:'unused method vars') on:warnUnusedVars.
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2314
    warnUnusedVarsBox width:0.4.
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2315
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2316
    yMax := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2317
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2318
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2319
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2320
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2321
    warnOldStyleBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2322
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2323
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2324
    warnCommonMistakesBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2325
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2326
    warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2327
    warnCompatibilityBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2328
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2329
    box leftIndent:oldIndent.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2330
    box yPosition:(yMax max: box yPosition).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2331
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  2332
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2333
    box 
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2334
        addHelpButtonFor:'Launcher/compilerSettings.html';
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2335
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2336
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2337
    warnEnabler value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2338
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2339
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2340
    box accepted ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2341
        HistoryManager notNil ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2342
            HistoryManager fullHistoryUpdate:fullHistoryUpdate value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2343
            historyLines value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2344
                HistoryManager activate
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2345
            ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2346
                HistoryManager deactivate
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2347
            ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2348
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2349
        Class catchMethodRedefinitions:catchMethodRedefs value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2350
        Class catchClassRedefinitions:catchClassRedefs value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2351
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2352
        Compiler warnings:warnings value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2353
        Compiler warnSTXSpecials:warnSTX value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2354
        Compiler warnOldStyleAssignment:warnOldStyle value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2355
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2356
        Compiler warnDollarInIdentifier:warnDollar value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2357
        Compiler warnCommonMistakes:warnCommonMistakes value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2358
        Compiler warnPossibleIncompatibilities:warnCompatibility value.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2359
        Compiler warnUnusedVars:warnUnusedVars value.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2360
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2361
        Compiler allowDollarInIdentifier:allowDollar value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2362
        Compiler allowSqueakExtensions:allowSqueakExtensions value.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2363
        Compiler allowQualifiedNames:allowQualifiedNames value.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2364
        Compiler arraysAreImmutable:immutableArrays value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2365
        fullDebugSupport value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2366
            Compiler lineNumberInfo:#full.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2367
        ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2368
            Compiler lineNumberInfo:true
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2369
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2370
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2371
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2372
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2373
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2374
        supportsJustInTimeCompilation ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2375
            justInTimeCompilation := justInTimeCompilation value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2376
            justInTimeCompilation ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2377
                Method allInstancesDo:[:m | m checked:false].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2378
            ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2379
            ObjectMemory justInTimeCompilation:justInTimeCompilation.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2380
            ObjectMemory fullSingleStepSupport:fullDebugSupport value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2381
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2382
        Autoload compileLazy:compileLazy value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2383
        Smalltalk loadBinaries:loadBinaries value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2384
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2385
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2386
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2387
    "Modified: / 10.9.1995 / 19:19:18 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2388
    "Modified: / 9.9.1996 / 22:42:47 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2389
    "Modified: / 5.11.1998 / 14:25:59 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2390
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2391
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2392
displaySettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2393
    "open a dialog on display related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2394
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2395
    |box listOfSizes sizeInfos
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2396
     sizes sizeNames sizeList sizeX sizeY deepIcons
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2397
     isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2398
     y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  2399
     |
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2400
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2401
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2402
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2403
    listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2404
    listOfSizes == #default ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2405
        "/ nothing in resource file; offer at least some.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2406
        sizeInfos := #(
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2407
                           ( '11.3'' (235mm x 175mm) LCD'   (235 175)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2408
                           ( '17''   (325mm x 245mm)'       (325 245)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2409
                           ( '19''   (340mm x 270mm)'       (340 270)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2410
                           ( '20''   (350mm x 280mm)'       (350 280)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2411
                           ( '21''   (365mm x 285mm)'       (365 285)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2412
                       ).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2413
    ] ifFalse:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2414
        sizeInfos := resources array:listOfSizes.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2415
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2416
    sizeNames := sizeInfos collect:[:entry | entry at:1].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2417
    sizes := sizeInfos collect:[:entry | entry at:2].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2418
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2419
    screen := Screen current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2420
    visual := screen visualType.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2421
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2422
    isColorMonitor := screen hasColors asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2423
    deepIcons := screen supportsDeepIcons asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2424
    useFixPalette := screen fixColors notNil asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2425
    useFixGrayPalette := screen fixGrayColors notNil asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2426
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2427
    sizeList := SelectionInList with:sizeNames.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2428
    sizeX := screen widthInMillimeter asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2429
    sizeY := screen heightInMillimeter asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2430
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2431
    clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2432
    clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2433
    clipEncodingList := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2434
    clipEncodingList list:clipEncodings.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2435
    clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2436
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2437
    ditherList := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2438
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2439
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2440
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2441
        ditherSyms := #(threshold ordered floydSteinberg).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2442
    ] ifFalse:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2443
        visual ~~ #TrueColor ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2444
            ditherStyles := #('nearest color' 'error diffusion').
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2445
            ditherSyms := #(ordered floydSteinberg).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2446
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2447
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2448
    ditherSyms notNil ifTrue:[    
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2449
        ditherList list:ditherStyles.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2450
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2451
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2452
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2453
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2454
    box label:(resources string:'Display screen settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2455
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2456
    (box addTextLabel:(resources string:'Actual visible screen area:'))
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2457
        adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2458
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2459
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2460
        label:'monitor size'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2461
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2462
    idx := sizes findFirst:[:entry |
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2463
                                ((entry at:1) = sizeX value)
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2464
                                and:[((entry at:2) = sizeY value)]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2465
                           ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2466
    idx ~~ 0 ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2467
        sizeList selectionIndex:idx
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2468
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2469
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2470
    sizeList onChangeEvaluate:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2471
                                        |idx|
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2472
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2473
                                        idx := sizeList selectionIndex.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2474
                                        sizeX value:((sizes at:idx) at:1).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2475
                                        sizeY value:((sizes at:idx) at:2).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2476
                                    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2477
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2478
    y := box yPosition.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2479
    component := box addTextLabel:(resources string:'Screen size:').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2480
    component width:0.3; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2481
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2482
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2483
    component := box addInputFieldOn:nil tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2484
    component width:0.25; left:0.3; 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2485
              immediateAccept:false; acceptOnLeave:false; 
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2486
              cursorMovementWhenUpdating:#beginOfLine;
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2487
              converter:(PrintConverter new initForInteger);
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2488
              model:sizeX.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2489
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2490
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2491
    component := box addTextLabel:(' x ').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2492
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2493
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2494
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2495
    component := box addInputFieldOn:nil tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2496
    component width:0.25; left:0.65; 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2497
              immediateAccept:false; acceptOnLeave:false; 
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2498
              cursorMovementWhenUpdating:#beginOfLine;
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2499
              converter:(PrintConverter new initForInteger);
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2500
              model:sizeY.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2501
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2502
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2503
    component := box addTextLabel:('(mm)').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2504
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2505
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2506
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2507
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2508
    (box addTextLabel:(resources string:'Screen: depth: %1 visual: %2  (%3)'
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2509
                                 with:screen depth printString
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2510
                                 with:screen visualType
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2511
                                 with:screen serverVendor))
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2512
        adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2513
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2514
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2515
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2516
    box addCheckBox:(resources string:'Color monitor') on:isColorMonitor.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2517
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2518
    visual == #PseudoColor ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2519
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2520
        component := box addCheckBox:(resources string:'Use fix color palette %1' with:'(4x8x4)') on:useFixPalette.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2521
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2522
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2523
        component := box addCheckBox:(resources string:'Use fix gray color palette %1' with:'(32)') on:useFixGrayPalette.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2524
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2525
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2526
    ditherSyms notNil ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2527
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2528
        component := box addPopUpList:(resources string:'Amage display:') on:ditherList.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2529
        component defaultLabel:'image display'.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2530
        component superView horizontalLayout:#leftSpace.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2531
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2532
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2533
    box addVerticalSpace.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2534
    box addCheckBox:(resources string:'Allow colored/grayscale icons') on:deepIcons.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2535
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2536
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2537
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2538
    component := box addPopUpList:(resources string:'ClipBoard encoding:') on:clipEncodingList.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2539
    component superView horizontalLayout:#leftSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2540
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  2541
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2542
    box 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2543
        addHelpButtonFor:'Launcher/screenSettings.html';
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2544
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2545
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2546
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2547
    box accepted ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2548
        Image flushDeviceImages.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2549
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2550
        screen visualType == #PseudoColor ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2551
            useFixPalette value ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2552
                Color colorAllocationFailSignal handle:[:ex |
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  2553
                    requestor warn:'Could not allocate colors.'.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2554
                ] do:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2555
                    Color getColorsRed:4 green:8 blue:4 on:screen
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2556
                ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2557
            ] ifFalse:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2558
                screen releaseFixColors
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2559
            ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2560
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2561
            useFixGrayPalette value ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2562
                Color colorAllocationFailSignal handle:[:ex |
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  2563
                    requestor warn:'Could not allocate colors.'.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2564
                ] do:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2565
                    Color getGrayColors:32 on:screen
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2566
                ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2567
            ] ifFalse:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2568
                screen releaseFixGrayColors
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2569
            ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2570
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2571
        screen hasColors:isColorMonitor value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2572
        screen widthInMillimeter:sizeX value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2573
        screen heightInMillimeter:sizeY value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2574
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2575
        screen supportsDeepIcons:deepIcons value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2576
        ditherSyms notNil ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2577
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2578
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2579
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2580
        requestor withWaitCursorDo:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2581
            View defaultStyle:(View defaultStyle).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2582
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2583
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2584
        screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2585
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2586
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2587
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2588
    "Modified: / 9.9.1996 / 22:43:04 / stefan"
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  2589
    "Modified: / 20.5.1999 / 18:35:21 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2590
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2591
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2592
editSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2593
    "open a dialog on edit settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2594
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2595
    |box st80EditingMode st80DoubleClickSelectMode resources tabsIs4 prevTabsIs4|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2596
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2597
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2598
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2599
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2600
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2601
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2602
    st80EditingMode := EditTextView st80Mode asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2603
    st80DoubleClickSelectMode := TextView st80SelectMode asValue.
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2604
    prevTabsIs4 := (ListView userDefaultTabPositions = ListView tab4Positions).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2605
    tabsIs4 := prevTabsIs4 asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2606
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2607
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2608
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2609
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2610
    box label:(resources string:'Edit settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2611
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2612
    box addCheckBox:(resources string:'cursor has ST80 line end behavior') on:st80EditingMode.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2613
    box addCheckBox:(resources string:'double click select behavior as in ST80') on:st80DoubleClickSelectMode.
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2614
    box addCheckBox:(resources string:'tab stops in multiples of 4') on:tabsIs4.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2615
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2616
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2617
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2618
    box 
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2619
        addHelpButtonFor:'Launcher/editSettings.html';
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2620
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2621
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2622
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2623
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2624
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2625
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2626
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2627
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2628
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2629
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2630
    box accepted ifTrue:[
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2631
        EditTextView st80Mode:(st80EditingMode value).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2632
        TextView st80SelectMode:(st80DoubleClickSelectMode value).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2633
        tabsIs4 value ~~ prevTabsIs4 ifTrue:[
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2634
            ListView userDefaultTabPositions:(tabsIs4 value ifTrue:[ListView tab4Positions] ifFalse:[ListView tab8Positions]).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2635
            ListView allSubInstancesDo:[:eachKindOfListView |
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2636
                tabsIs4 value ifTrue:[eachKindOfListView setTab4] ifFalse:[eachKindOfListView setTab8]
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2637
            ].
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2638
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2639
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2640
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2641
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2642
    "Created: / 6.1.1999 / 14:12:09 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2643
    "Modified: / 6.1.1999 / 14:17:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2644
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2645
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2646
fontSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2647
    "open a dialog on font related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2648
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2649
    (self fontBoxForEncoding:nil for:requestor) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  2650
	requestor reopenLauncher.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2651
    ]
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2652
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2653
    "Created: 26.2.1996 / 22:52:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2654
    "Modified: 8.1.1997 / 14:52:49 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2655
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2656
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2657
javaSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2658
    "open a dialog on settings related to the java subsystem"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2659
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2660
    |box audio javaHome classPath oldJavaHome oldClassPath resources component
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2661
     extraFileSecurityChecks extraSocketSecurityChecks
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2662
     supportsJustInTimeCompilation 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2663
     javaJustInTimeCompilation javaNativeCodeOptimization
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2664
     showJavaByteCode exceptionDebug nullPointerExceptionDebug pathSep|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2665
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2666
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2667
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2668
    audio := JavaVM audioEnabled asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2669
    extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2670
    extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2671
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2672
        javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2673
        javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2674
    ] ifFalse:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2675
        javaJustInTimeCompilation := javaNativeCodeOptimization := false
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2676
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2677
    showJavaByteCode := JavaMethod forceByteCodeDisplay asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2678
    exceptionDebug := JavaVM exceptionDebug asValue.
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2679
    nullPointerExceptionDebug := JavaVM nullPointerExceptionDebug asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2680
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2681
    classPath := (Java classPath ? '').
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2682
    OperatingSystem isUNIXlike ifTrue:[
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2683
        pathSep := $;.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2684
    ] ifFalse:[
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2685
        pathSep := $:.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2686
    ].
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2687
    classPath := (classPath asStringWith:pathSep) asValue.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2688
    oldClassPath := classPath copy.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2689
    classPath := classPath asValue.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2690
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2691
    javaHome := (Java javaHome ? '').
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2692
    oldJavaHome := javaHome copy.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2693
    javaHome := javaHome asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2694
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2695
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2696
    box label:(resources string:'Java').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2697
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2698
    box addCheckBox:(resources string:'Audio Enabled') on:audio.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2699
    box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2700
    box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2701
    box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug.
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2702
    box addCheckBox:(resources string:'Debug Null Pointer Exceptions') on:nullPointerExceptionDebug.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2703
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2704
    supportsJustInTimeCompilation ifTrue:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2705
        box 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2706
            addCheckBox:(resources string:'java just in time compilation to machine code') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2707
            on:javaJustInTimeCompilation.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2708
        box 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2709
            addCheckBox:(resources string:'optimize native code') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2710
            on:javaNativeCodeOptimization.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2711
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2712
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2713
    box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2714
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2715
    component := box 
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2716
                    addLabelledInputField:(resources string:'classPath:')
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2717
                    adjust:#right
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2718
                    on:classPath 
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2719
                    tabable:true
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2720
                    separateAtX:0.3.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2721
    component acceptOnLeave:false.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2722
    component := box 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2723
                    addLabelledInputField:(resources string:'java home:')
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2724
                    adjust:#right
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2725
                    on:javaHome 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2726
                    tabable:true
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2727
                    separateAtX:0.3.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2728
    component acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2729
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2730
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2731
    box addComponent:(Button 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2732
                        label:(resources string:'Reinit VM now') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2733
                        action:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2734
                                box windowGroup withWaitCursorDo:[
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2735
"/                                    Java classPath size == 0 ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2736
"/                                        Java initialize.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2737
"/                                    ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2738
"/                                    Java classPath size == 0 ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2739
"/                                        self warn:'No JDK found'.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2740
"/                                    ] ifFalse:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2741
                                        JavaVM initializeVM
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2742
"/                                    ]
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2743
                                ]
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2744
                               ]).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2745
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2746
    box addComponent:(Button 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2747
                        label:(resources string:'Remove all Java classes now') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2748
                        action:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2749
                                box windowGroup withWaitCursorDo:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2750
                                    Java flushAllJavaResources
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2751
                                ]
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2752
                               ]).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2753
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2754
    "/ box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2755
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2756
"/    box addHelpButtonFor:'Launcher/javaSettings.html'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  2757
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2758
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2759
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2760
    box accepted ifTrue:[
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2761
        classPath value ~= oldClassPath ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2762
            OperatingSystem isUNIXlike ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2763
                classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$:)
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2764
            ] ifFalse:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2765
                classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$;)
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2766
            ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2767
            Java classPath:classPath
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2768
        ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2769
        Java javaHome:javaHome value.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2770
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2771
        JavaMethod forceByteCodeDisplay:showJavaByteCode value. 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2772
        JavaVM audioEnabled:audio value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2773
        JavaVM exceptionDebug:exceptionDebug value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2774
        JavaVM nullPointerExceptionDebug:nullPointerExceptionDebug value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2775
        JavaVM fileOpenConfirmation: extraFileSecurityChecks value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2776
        JavaVM socketConnectConfirmation: extraSocketSecurityChecks value.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2777
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2778
        javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2779
            ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2780
            javaJustInTimeCompilation value ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2781
                JavaMethod allSubInstancesDo:[:m | m checked:false].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2782
            ].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2783
        ].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2784
        javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2785
            ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2786
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2787
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2788
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2789
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2790
    "Created: / 18.7.1998 / 22:32:58 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2791
    "Modified: / 27.1.1999 / 20:16:03 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2792
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2793
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2794
keyboardSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2795
    "open a dialog on keyboard related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2796
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2797
    |mappings listOfRawKeys listOfFunctions
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2798
     box l
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2799
     list1 list2 listView1 listView2 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2800
     frame selectionForwarder macroForwarder macroTextView y resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2801
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2802
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2803
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2804
    mappings := Screen current keyboardMap.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2805
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2806
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2807
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2808
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2809
    selectionForwarder := Plug new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2810
    selectionForwarder respondTo:#showFunction
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2811
                  with:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2812
                        |raw|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2813
                        raw := list1 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2814
                        list2 retractInterestsFor:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2815
                        list2 selection:(mappings at:raw asSymbol) asString.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2816
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2817
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2818
    selectionForwarder respondTo:#showRawKey
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2819
                  with:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2820
                        |f raw|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2821
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2822
                        f := list2 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2823
                        list1 retractInterestsFor:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2824
                        raw := mappings keyAtValue:f asString.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2825
                        raw isNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2826
                            raw := mappings keyAtValue:f first.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2827
                            raw isNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2828
                                raw := mappings keyAtValue:f asSymbol.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2829
                            ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2830
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2831
                        list1 selection:raw.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2832
                        list1 onChangeSend:#showFunction to:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2833
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2834
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2835
    macroForwarder := [
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2836
                        |f macro indent|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2837
                        f := list2 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2838
                        (f startsWith:'Cmd') ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2839
                            f := f copyFrom:4
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2840
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2841
                        macro := UserPreferences current functionKeySequences 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2842
                                    at:(f asSymbol) ifAbsent:nil.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2843
                        macro notNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2844
                            macro := macro asStringCollection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2845
                            indent := macro
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2846
                                         inject:99999 into:[:min :element |
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2847
                                             |stripped|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2848
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2849
                                             stripped := element withoutLeadingSeparators.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2850
                                             stripped size == 0 ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2851
                                                 min
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2852
                                             ] ifFalse:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2853
                                                 min min:(element size - stripped size)
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2854
                                             ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2855
                                         ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2856
                            indent ~~ 0 ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2857
                                macro := macro collect:[:line | 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2858
                                             line size > indent ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2859
                                                line copyFrom:indent+1
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2860
                                             ] ifFalse:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2861
                                                line
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2862
                                             ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2863
                                        ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2864
                            ].                        
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2865
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2866
                        macroTextView contents:macro.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2867
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2868
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2869
    list1 := SelectionInList with:listOfRawKeys.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2870
    list1 onChangeSend:#showFunction to:selectionForwarder.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2871
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2872
    list2 := SelectionInList with:listOfFunctions.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2873
    list2 onChangeSend:#showRawKey to:selectionForwarder.
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2874
    list2 onChangeEvaluate:macroForwarder.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2875
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2876
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2877
    box label:(resources string:'Keyboard mappings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2878
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2879
    l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2880
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2881
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2882
    frame := View new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2883
    frame extent:300 @ 300.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2884
    frame borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2885
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2886
    listView1 := ScrollableView for:SelectionInListView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2887
    listView1 model:list1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2888
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2889
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2890
    listView2 := ScrollableView for:SelectionInListView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2891
    listView2 model:list2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2892
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2893
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2894
    frame topInset:box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2895
    box addComponent:frame withExtent:350@200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2896
    box makeTabable:listView1. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2897
    box makeTabable:listView2. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2898
    frame origin:0.0@0.0 corner:1.0@0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2899
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2900
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2901
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2902
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2903
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2904
    l origin:0.0@0.6 corner:1.0@0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2905
    l topInset:(View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2906
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2907
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2908
    macroTextView := HVScrollableView for:TextView miniScroller:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2909
    box addComponent:macroTextView tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2910
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2911
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2912
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2913
    box
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2914
        addHelpButtonFor:'Launcher/keyboardSetting.html';
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2915
        "addAbortButton;" 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2916
        addOkButtonLabelled:(resources string:'dismiss').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2917
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2918
    macroTextView topInset:(l preferredExtent y + 5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2919
    macroTextView bottomInset:(box preferredExtent y - y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2920
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2921
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2922
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2923
    box accepted ifTrue:[
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2924
        "no action yet ..."
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2925
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2926
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2927
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2928
    "Modified: / 9.9.1996 / 22:43:17 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2929
    "Modified: / 4.5.1998 / 12:40:02 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2930
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2931
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2932
languageSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2933
    "open a dialog on language related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2934
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2935
    |listOfLanguages translatedLanguages switch box languageList flags resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2936
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2937
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2938
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2939
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2940
     get list of supported languages from the launchers resources ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2941
    "
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2942
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2943
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2944
    listOfLanguages := listOfLanguages asOrderedCollection.
2149
9d9b06a23a70 care for languageTerritory
Claus Gittinger <cg@exept.de>
parents: 2144
diff changeset
  2945
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2946
    translatedLanguages := listOfLanguages collect:[:lang | |item|
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2947
                                        item := resources at:lang.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2948
                                        item isString ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2949
                                            item
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2950
                                        ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2951
                                            item at:1
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2952
                                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2953
                                ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2954
    flags := listOfLanguages collect:[:lang | |item|
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2955
                                        item := resources at:lang.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2956
                                        item isArray ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2957
                                            item at:2
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2958
                                        ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2959
                                            nil
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2960
                                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2961
                                ].
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2962
    flags := flags collect:[:nm | |img d| nm notNil ifTrue:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2963
                                            img := Image fromFile:nm.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2964
                                            img isNil ifTrue:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2965
                                                d := Smalltalk getPackageDirectoryForPackage:'stx:goodies'.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2966
                                                img := Image fromFile:(d construct:nm).
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2967
                                            ].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2968
                                        ] ifFalse:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2969
                                            nil
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2970
                                        ]
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2971
                           ].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2972
    listOfLanguages := listOfLanguages collect:[:nm | nm copyFrom:'LANG_' size + 1].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  2973
    languageList := translatedLanguages with:flags collect:[:lang :flag | LabelAndIcon icon:flag string:lang.].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2974
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2975
    box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2976
    box label:(resources string:'Language selection').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2977
    box list:languageList.
2149
9d9b06a23a70 care for languageTerritory
Claus Gittinger <cg@exept.de>
parents: 2144
diff changeset
  2978
    box initialText:(Language , '-' , LanguageTerritory).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2979
    box action:[:newLanguage |
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2980
        requestor withWaitCursorDo:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2981
            |fontPref idx language oldLanguage territory enc 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2982
             answer matchingFonts l screen|
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2983
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2984
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2985
            idx ~~ 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2986
                language := listOfLanguages at:idx
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2987
            ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2988
                language := newLanguage
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2989
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2990
            (language includes:$-) ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2991
                l := language asCollectionOfSubstringsSeparatedBy:$-.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2992
                language := l at:1.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2993
                territory := l at:2.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2994
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2995
            territory isNil ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2996
                territory := language copyTo:2
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2997
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2998
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2999
            "/ check if the new language needs a differently encoded font;
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3000
            "/ ask user to switch font and allow cancellation.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3001
            "/ Otherwise, you are left with unreadable menu & button items ...
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3002
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3003
            oldLanguage := Smalltalk language.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3004
            Smalltalk language:language asSymbol.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3005
            ResourcePack flushCachedResourcePacks.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3006
            "/ refetch resources ...
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3007
            resources := requestor class classResources.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3008
            fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3009
            Smalltalk language:oldLanguage.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3010
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3011
            switch := true.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3012
            enc := MenuView defaultFont encoding.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3013
            (fontPref match:enc) ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3014
                "/ look if there is one at all.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3015
                screen := Screen current.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3016
                matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3017
                matchingFonts size == 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3018
                    "/ flush and try again - just in case, the font path has changed.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3019
                    screen flushListOfAvailableFonts.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3020
                    matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3021
                ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3022
                matchingFonts size == 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3023
                    (Dialog 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3024
                        confirm:(resources 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3025
                                    string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)'
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3026
                                      with:fontPref) withCRs)
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3027
                    ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3028
                        switch := false
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3029
                    ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3030
                ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3031
                    answer := Dialog 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3032
                                confirmWithCancel:(resources 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3033
                                                        string:'menu font is not %1-encoded.\\Change it ?'
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3034
                                                        with:fontPref) withCRs
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3035
                                           labels:(resources
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3036
                                                        array:#('cancel' 'no' 'yes'))
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3037
                                           default:3.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3038
                    answer isNil ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3039
                        switch := false
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3040
                    ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3041
                        answer ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3042
                            switch := (requestor fontBoxForEncoding:fontPref)
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3043
                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3044
                    ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3045
                ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3046
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3047
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3048
            switch ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3049
                Transcript showCR:'change language to ' , newLanguage , ' ...'.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3050
                Smalltalk language:language asSymbol.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3051
                Smalltalk languageTerritory:territory asSymbol.
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  3052
                "/ ResourcePack flushCachedResourcePacks - already done by language-change
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3053
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3054
        ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3055
        switch ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3056
            requestor reopenLauncher.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3057
            DebugView newDebugger.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3058
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3059
    ].    
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3060
    box
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3061
        addHelpButtonFor:'Launcher/languageSetting.html'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3062
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3063
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3064
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3065
    "Modified: / 9.9.1996 / 22:43:27 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3066
    "Modified: / 4.8.1998 / 16:54:32 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3067
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3068
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3069
memorySettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3070
    "open a dialog on objectMemory related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3071
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3072
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3073
     compressLimit
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3074
     oldIncr component fields codeLimit codeTrigger stackLimit resources
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3075
     fastMoreLimit maxOldSpace models info acceptChannel|
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3076
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3077
    acceptChannel := false asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3078
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3079
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3080
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3081
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3082
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3083
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3084
    igcLimit := ObjectMemory incrementalGCLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3085
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3086
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3087
    newSpaceSize := ObjectMemory newSpaceSize asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3088
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3089
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3090
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3091
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3092
    stackLimit := Process defaultMaximumStackSize asValue.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3093
    fastMoreLimit := (ObjectMemory fastMoreOldSpaceLimit:-1) asValue.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3094
    maxOldSpace := ObjectMemory maxOldSpace asValue.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3095
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3096
    models := OrderedCollection new.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3097
    info := OrderedCollection new.
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3098
    models add:newSpaceSize.    info add:#(number      'size of newSpace where objects are created'                    'size of newSpace:' ).
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3099
    models add:fastMoreLimit.   info add:#(number      'quickly allocate more memory (suppress GC) up to this limit'   'quick allocate limit:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3100
    models add:maxOldSpace.     info add:#(number      'never allocate more than this amount of memory'                'maximum memory limit:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3101
    models add:igcLimit.        info add:#(number      'start IGC whenever this amount has been allocated'             'incremental GC allocation trigger:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3102
    models add:igcFreeLimit.    info add:#(number      'start IGC whenever freespace drops below this'                 'incremental GC freespace trigger:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3103
    models add:igcFreeAmount.   info add:#(number      'try to keep this amount for peak requests'                     'incremental GC amount:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3104
    models add:oldIncr.         info add:#(number      'increase oldSpace in chunks of this size'                      'oldspace increment:').
2689
602cbcd0feb3 Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents: 2621
diff changeset
  3105
    models add:compressLimit.   info add:#(number      'use 2-pass compressing GC if > 0 and more memory is in use'    'oldspace compress limit:').
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3106
    models add:stackLimit.      info add:#(number      'trigger recursionInterrupt if more stack is used by a process' 'stack limit:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3107
    models add:codeLimit.       info add:#(numberOrNil 'flush dynamic compiled code to stay within this limit'         'dynamic code limit:').
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3108
    models add:codeTrigger.     info add:#(numberOrNil 'start incremental GC whenever this amount of code has been allocated' 'dynamic code GC trigger:').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3109
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3110
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3111
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3112
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3113
    fields := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3114
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3115
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3116
    box label:(resources string:'Memory manager settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3117
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3118
    (box addTextLabel:'Warning - invalid settings may result in failures or poor performance
2866
bdbdb168bc5c asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 2861
diff changeset
  3119
' , 'You have been warned' allBold , '.') adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3120
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3121
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3122
    models with:info do:[:m :i |
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3123
        |lbl descr conv|
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3124
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3125
        conv := i at:1.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3126
        lbl := i at:3.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3127
        descr := i at:2.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3128
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3129
        component := box 
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3130
                    addLabelledInputField:(resources string:lbl)
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3131
                    adjust:#right
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3132
                    on:nil "/ newSpaceSize 
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3133
                    tabable:true
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3134
                    separateAtX:0.7.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3135
        component acceptOnLeave:false.
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3136
"/        component converter:(PrintConverter new perform:conv).
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3137
        component model:((TypeConverter on:m) perform:conv).
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3138
        component acceptChannel:acceptChannel.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3139
        fields add:component.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3140
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3141
        (box addTextLabel:descr) adjust:#left.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3142
        box addHorizontalLine.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3143
    ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3144
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3145
    ObjectMemory supportsJustInTimeCompilation ifFalse:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3146
        (fields at:9) disable.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3147
        (fields at:10) disable.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3148
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3149
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  3150
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3151
    box
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3152
        addHelpButtonFor:'Launcher/memorySettings.html'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3153
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3154
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3155
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3156
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3157
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3158
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3159
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3160
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3161
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3162
    box accepted ifTrue:[
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3163
        acceptChannel value:true.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3164
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3165
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3166
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3167
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3168
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3169
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3170
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3171
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3172
            ObjectMemory incrementalGCLimit:igcLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3173
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3174
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3175
            ObjectMemory newSpaceSize:newSpaceSize value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3176
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3177
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3178
            ObjectMemory oldSpaceIncrement:oldIncr value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3179
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3180
        stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3181
            Process defaultMaximumStackSize:stackLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3182
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3183
        fastMoreLimit value ~~ (ObjectMemory fastMoreOldSpaceLimit:-1) ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3184
            ObjectMemory fastMoreOldSpaceLimit:fastMoreLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3185
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3186
        maxOldSpace value ~~ ObjectMemory maxOldSpace ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3187
            ObjectMemory maxOldSpace:maxOldSpace value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3188
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3189
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3190
        ObjectMemory dynamicCodeLimit:codeLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3191
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3192
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3193
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3194
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3195
    "Modified: 27.2.1997 / 16:50:12 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3196
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3197
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3198
messageSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3199
    "open a dialog on infoMessage related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3200
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3201
    |box vmInfo vmErrors displayErrors classInfos resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3202
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3203
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3204
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3205
    vmInfo := ObjectMemory infoPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3206
    vmErrors := ObjectMemory debugPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3207
    classInfos := Object infoPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3208
    displayErrors := DeviceWorkstation errorPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3209
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3210
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3211
    box label:(resources string:'Messages').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3212
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3213
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3214
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3215
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3216
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3217
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3218
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3219
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3220
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3221
    box addHelpButtonFor:'Launcher/messageSettings.html'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  3222
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3223
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3224
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3225
    box accepted ifTrue:[
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3226
        ObjectMemory infoPrinting:vmInfo value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3227
        ObjectMemory debugPrinting:vmErrors value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3228
        Object infoPrinting:classInfos value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3229
        DeviceWorkstation errorPrinting:displayErrors value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3230
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3231
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3232
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3233
    "Modified: 27.1.1997 / 17:46:01 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3234
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3235
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3236
miscSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3237
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3238
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3239
    |box pos pos2 check butt shadows takeFocus focusFollowsMouse returnFocus  
2069
b4412338a603 avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents: 2064
diff changeset
  3240
     hostNameInLabel showAccelerators 
b4412338a603 avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents: 2064
diff changeset
  3241
     preemptive dynamicPrios hostNameInLabelHolder resources y
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3242
     activateOnClick opaqueVariablePanelResize opaqueTableColumnResize currentUserPrefs
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3243
     beepEnabled newWindowLabelFormat|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3244
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3245
    resources := requestor class classResources.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3246
    currentUserPrefs := UserPreferences current.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3247
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3248
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3249
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3250
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3251
    shadows := PopUpView shadows asValue.
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3252
    beepEnabled := currentUserPrefs beepEnabled asValue.
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3253
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3254
    hostNameInLabel := StandardSystemView includeHostNameInLabel.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3255
    hostNameInLabelHolder := hostNameInLabel asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3256
    returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3257
    takeFocus := StandardSystemView takeFocusWhenMapped asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3258
    focusFollowsMouse := (currentUserPrefs focusFollowsMouse ? true) asValue.
2160
028c1d5740e5 exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents: 2149
diff changeset
  3259
    activateOnClick := (Display activateOnClick:nil) asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3260
    opaqueVariablePanelResize := currentUserPrefs opaqueVariablePanelResizing asValue.
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3261
    opaqueTableColumnResize := currentUserPrefs opaqueTableColumnResizing asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3262
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3263
    showAccelerators := MenuView showAcceleratorKeys asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3264
    preemptive := Processor isTimeSlicing asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3265
    dynamicPrios := Processor supportDynamicPriorities asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3266
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3267
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3268
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3269
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3270
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3271
    box label:(resources string:'Other settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3272
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3273
    box addCheckBox:(resources string:'Shadows under popup views') on:shadows.
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3274
    box addCheckBox:(resources string:'Beeper enabled') on:beepEnabled.
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3275
    box addCheckBox:(resources string:'Boxes return focus to previously active view') on:returnFocus.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3276
    box addCheckBox:(resources string:'Views catch focus when mapped') on:takeFocus.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3277
    pos := box yPosition.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3278
    check := box addCheckBox:(resources string:'Hostname in window labels') on:hostNameInLabelHolder.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3279
    check width:0.6.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3280
    pos2 := box yPosition.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3281
    box yPosition:pos.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3282
    butt := box addComponent:(Button label:(resources string:'Format...') 
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3283
               action:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3284
                       |newFormat|
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3285
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3286
                       newFormat := Dialog request:'WindowLabel Format\%1 is label; %2 is hostname:' withCRs initialAnswer:StandardSystemView windowLabelFormat.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3287
                       newFormat size > 0 ifTrue:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3288
                           newWindowLabelFormat := newFormat
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3289
                       ].
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3290
                      ]).
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3291
    box makeTabable:butt.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3292
    butt left:0.6; width:0.4.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3293
    box yPosition:(box yPosition max:pos2).
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3294
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3295
    box addCheckBox:(resources string:'Show accelerator keys in menus') on:showAccelerators.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3296
    box addCheckBox:(resources string:'Raise & activate windows on click') on:activateOnClick.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3297
    box addCheckBox:(resources string:'Focus follows mouse') on:focusFollowsMouse.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3298
    box addCheckBox:(resources string:'Opaque variable panel resizing') on:opaqueVariablePanelResize.
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3299
    box addCheckBox:(resources string:'Opaque table column resizing') on:opaqueTableColumnResize.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3300
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3301
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3302
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3303
    box addCheckBox:(resources string:'Preemptive scheduling') on:preemptive.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3304
    box leftIndent:20.
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3305
    check := box addCheckBox:(resources string:'Dynamic priorities') on:dynamicPrios.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3306
    check enableChannel:preemptive.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3307
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3308
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3309
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3310
    box 
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3311
        addHelpButtonFor:'Launcher/miscSettings.html';
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3312
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3313
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3314
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3315
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3316
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3317
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3318
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3319
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3320
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3321
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3322
    box accepted ifTrue:[
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3323
        PopUpView shadows:shadows value.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3324
        (hostNameInLabelHolder value ~= hostNameInLabel 
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3325
        or:[newWindowLabelFormat ~= StandardSystemView windowLabelFormat]) ifTrue:[ 
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3326
            StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3327
            newWindowLabelFormat notNil ifTrue:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3328
                StandardSystemView windowLabelFormat:newWindowLabelFormat
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3329
            ].
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3330
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3331
            Screen allScreens do:[:aDisplay |
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3332
                aDisplay allViewsDo:[:aView |
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3333
                    |l|
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3334
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3335
                    aView isTopView ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3336
                        l := aView label.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3337
                        l notNil ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3338
                            aView label:(l , ' '); label:l.  "/ force a change
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3339
                        ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3340
                    ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3341
                ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3342
            ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3343
        ].
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3344
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3345
        currentUserPrefs opaqueVariablePanelResizing:opaqueVariablePanelResize value.
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3346
        currentUserPrefs opaqueTableColumnResizing:opaqueTableColumnResize value.
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3347
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3348
        currentUserPrefs beepEnabled:beepEnabled value.
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3349
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3350
        StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3351
        StandardSystemView takeFocusWhenMapped:takeFocus value.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3352
        currentUserPrefs focusFollowsMouse:focusFollowsMouse value.
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3353
        Screen current activateOnClick:(activateOnClick value).
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3354
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3355
        MenuView showAcceleratorKeys:showAccelerators value.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3356
        Processor isTimeSlicing ~~ preemptive value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3357
            preemptive value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3358
                Processor startTimeSlicing
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3359
            ] ifFalse:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3360
                Processor stopTimeSlicing
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3361
            ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3362
        ].
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3363
        Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3364
            Processor supportDynamicPriorities:dynamicPrios value
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3365
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3366
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3367
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3368
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3369
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3370
    "Modified: / 20.5.1999 / 18:33:55 / cg"
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3371
    "Modified: / 3.12.1999 / 17:11:38 / ps"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3372
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3373
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3374
printerSettingsFor:requestor
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3375
    "open a dialog on printer related settings; returns true if accepted"
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3376
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3377
    |box accepted
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3378
     possiblePrinters possibleTypes printerType printCommand 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3379
     pageFormat landscape updater
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3380
     formatLabel formatComponent landscapeLabel landscapeComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3381
     topMargin leftMargin rightMargin bottomMargin unitList unit
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3382
     topMarginComponent leftMarginComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3383
     rightMarginComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3384
     bottomMarginComponent supportsColor supportsColorComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3385
     y y1 commandListPop component commandList row resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3386
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3387
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3388
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3389
    possiblePrinters := PrinterStream withAllSubclasses asArray.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3390
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3391
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3392
    printerType := SelectionInList new list:(resources array:possibleTypes).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3393
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3394
    printCommand := Printer printCommand asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3395
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3396
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3397
    pageFormat selection:(Printer pageFormat).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3398
    landscape := Printer landscape asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3399
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3400
    topMargin := Printer topMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3401
    leftMargin := Printer leftMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3402
    rightMargin := Printer rightMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3403
    bottomMargin := Printer bottomMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3404
    supportsColor := Printer supportsColor asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3405
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3406
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3407
    box label:(resources string:'Printer settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3408
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3409
"/ either use a popUpList ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3410
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3411
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3412
"/ or a comboList;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3413
"/ which one looks better ?
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3414
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3415
    component := box addTextLabel:(resources string:'printer type:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3416
    component width:0.25; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3417
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3418
    component := box addComboListOn:printerType tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3419
    component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3420
    component width:0.75; left:0.25.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3421
"/ end of question
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3422
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3423
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3424
    component := box addTextLabel:(resources string:'print command:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3425
    component width:0.25; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3426
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3427
    commandListPop := box addComboBoxOn:printCommand tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3428
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3429
    commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3430
    "/ some common print commands ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3431
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3432
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3433
    commandList isNil ifTrue:[
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3434
        commandList := PrinterStream defaultCommands.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3435
        commandList isNil ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3436
            commandList := #('lpr' 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3437
                             'lp' 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3438
                            ).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3439
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3440
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3441
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3442
    commandListPop list:commandList.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3443
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3444
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3445
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3446
    row := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3447
    row add:(formatLabel := Label label:(resources string:'page format:')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3448
    formatLabel borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3449
    row add:(formatComponent := PopUpList on:pageFormat).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3450
    formatComponent label:'unknown'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3451
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3452
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3453
    landscapeLabel borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3454
    row add:(landscapeComponent := CheckToggle on:landscape).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3455
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3456
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3457
    box
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3458
        addRow:(1 to:2)
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3459
        fromX:0
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3460
        toX:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3461
        collect:[:idx | row at:idx]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3462
        tabable:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3463
        horizontalLayout:#leftSpace
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3464
        verticalLayout:#center.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3465
    y1 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3466
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3467
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3468
    box
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3469
        addRow:(3 to:4)
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3470
        fromX:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3471
        toX:1.0
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3472
        collect:[:idx | row at:idx]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3473
        tabable:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3474
        horizontalLayout:#leftSpace
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3475
        verticalLayout:#center.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3476
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3477
    box yPosition:(box yPosition max:y1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3478
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3479
    box makeTabable:(formatComponent).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3480
    box makeTabable:(landscapeComponent).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3481
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3482
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3483
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3484
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3485
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3486
    topMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3487
        addLabelledInputField:(resources string:'top margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3488
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3489
        on:nil "/ topMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3490
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3491
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3492
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3493
    topMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3494
    topMarginComponent model:topMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3495
    y1 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3496
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3497
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3498
    unitList := SelectionInList with:#('inch' 'mm').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3499
    unitList selectionIndex:1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3500
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3501
    component := box addComponent:(PopUpList on:unitList).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3502
    component
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3503
        left:0.6;
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3504
        width:0.3.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3505
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3506
    box yPosition:y1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3507
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3508
    leftMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3509
        addLabelledInputField:(resources string:'left margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3510
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3511
        on:nil "/ leftMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3512
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3513
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3514
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3515
    leftMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3516
    leftMarginComponent model:leftMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3517
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3518
    rightMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3519
        addLabelledInputField:(resources string:'right margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3520
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3521
        on:nil "/ rightMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3522
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3523
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3524
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3525
    rightMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3526
    rightMarginComponent model:rightMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3527
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3528
    bottomMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3529
        addLabelledInputField:(resources string:'bottom margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3530
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3531
        on:nil "/ bottomMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3532
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3533
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3534
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3535
    bottomMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3536
    bottomMarginComponent model:bottomMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3537
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3538
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3539
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3540
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3541
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3542
    updater := [ |p fg hasPageSize hasMargins|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3543
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3544
                       printerType selectionIndex ~~ 0 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3545
                           p := possiblePrinters at:(printerType selectionIndex).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3546
                           hasPageSize := p supportsPageSizes. 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3547
                           hasMargins := p supportsMargins. 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3548
                       ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3549
                           hasPageSize := false.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3550
                           hasMargins := false.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3551
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3552
                       hasPageSize ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3553
                          fg := Button new foregroundColor.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3554
                          formatComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3555
                          landscapeComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3556
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3557
                          formatComponent label:p pageFormat.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3558
                          pageFormat value:(p pageFormat).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3559
                          landscape value:(p landscape).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3560
                       ] ifFalse:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3561
                          fg := Button new disabledForegroundColor.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3562
                          formatComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3563
                          landscapeComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3564
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3565
                          formatComponent label:'unknown'.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3566
                          landscape value:nil.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3567
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3568
                       hasMargins ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3569
                          unitList selectionIndex == 2 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3570
                              unit := #mm
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3571
                          ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3572
                              unit := #inch
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3573
                          ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3574
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3575
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3576
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3577
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3578
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3579
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3580
                          topMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3581
                          leftMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3582
                          rightMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3583
                          bottomMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3584
                       ] ifFalse:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3585
                          topMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3586
                          leftMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3587
                          rightMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3588
                          bottomMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3589
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3590
                       formatLabel foregroundColor:fg.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3591
                       landscapeLabel foregroundColor:fg.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3592
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3593
                       p notNil ifTrue:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3594
                           commandList := p defaultCommands.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3595
                           commandList notNil ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3596
                                commandListPop list:commandList 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3597
                           ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3598
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3599
                           printCommand value:(p printCommand).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3600
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3601
                       p supportsPostscript ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3602
                           supportsColorComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3603
                           supportsColor value:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3604
                       ] ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3605
                           supportsColorComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3606
                           supportsColor value:(Printer supportsColor).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3607
                       ]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3608
                     ].
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  3609
    unitList onChangeEvaluate:updater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  3610
    printerType onChangeEvaluate:updater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3611
    updater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3612
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3613
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3614
    box addVerticalSpace;
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3615
        addHelpButtonFor:'Launcher/printerSettings.html';
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3616
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3617
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3618
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3619
    (accepted := box accepted) ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3620
        Printer := possiblePrinters at:(printerType selectionIndex).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3621
        Printer printCommand:printCommand value.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3622
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3623
        Printer supportsPageSizes ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3624
            Printer pageFormat:(pageFormat selection).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3625
            Printer landscape:(landscape value).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3626
        ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3627
        Printer supportsMargins ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3628
            unitList selectionIndex == 2 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3629
                unit := #mm
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3630
            ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3631
                unit := #inch
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3632
            ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3633
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3634
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3635
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3636
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3637
        ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3638
        Printer supportsPostscript ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3639
            Printer supportsColor:supportsColor value.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3640
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3641
    ].
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3642
    box destroy.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3643
    ^ accepted
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3644
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3645
    "Modified: 9.9.1996 / 22:43:51 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3646
    "Modified: 28.2.1997 / 14:00:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3647
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3648
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3649
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3650
restoreSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3651
    "restore settings from a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3652
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3653
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3654
     which can be saved/restored with a single store/read.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3655
     Will move entries over to UserPreferences over time;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3656
     new items should always go there."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3657
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3658
    |fileName resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3659
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3660
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3661
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3662
    fileName := Dialog 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3663
	requestFileName:(resources string:'restore settings from:') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3664
	default:'settings.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3665
	ok:(resources string:'restore') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3666
	abort:(resources string:'cancel') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3667
	pattern:'*.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3668
	fromDirectory:nil.
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3669
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3670
    (fileName size == 0) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3671
	"/ canceled
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3672
	^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3673
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3674
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3675
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3676
	Smalltalk fileIn:fileName.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3677
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3678
	self reopenLauncher.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3679
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3680
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3681
    "Modified: / 21.7.1998 / 11:37:54 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3682
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3683
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3684
saveSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3685
    "save settings to a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3686
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3687
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3688
     which can be saved/restored with a single store/read.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3689
     Will move entries over to UserPreferences over time;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3690
     new items should always go there."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3691
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3692
    |fileName resources|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3693
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3694
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3695
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3696
    fileName := Dialog 
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3697
        requestFileName:(resources string:'save settings in:') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3698
        default:'settings.stx'
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3699
        ok:(resources string:'save') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3700
        abort:(resources string:'cancel') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3701
        pattern:'*.stx'
2715
a7bcbf85f2ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2703
diff changeset
  3702
        fromDirectory:'.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3703
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3704
    self saveSettingsFor:requestor in:fileName.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3705
!
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3706
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3707
saveSettingsFor:requestor in:fileName
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3708
    "save settings to a settings-file."
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3709
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3710
    "a temporary kludge - we need a central systemSettings object for this,
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3711
     which can be saved/restored with a single store/read.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3712
     Will move entries over to UserPreferences over time;
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3713
     new items should always go there."
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3714
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3715
    |s screen currentUserPrefs|
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3716
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3717
    (fileName size == 0) ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3718
        "/ canceled
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3719
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3720
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3721
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3722
    s := fileName asFilename writeStream.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3723
    s isNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  3724
        requestor warn:'cannot write the ''' , fileName , ''' file'.
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3725
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3726
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3727
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3728
    currentUserPrefs := UserPreferences current.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3729
    screen := Screen current.
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3730
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3731
    s nextPutLine:'"/ ST/X saved settings';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3732
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3733
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3734
      nextPutLine:'"/';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3735
      nextPutLine:'"/ this file was automatically generated by the';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3736
      nextPutLine:'"/ ''save settings'' function of the Launcher';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3737
      nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3738
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3739
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3740
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3741
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3742
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3743
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3744
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3745
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3746
    s nextPutLine:'"/ Display settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3747
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3748
    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3749
    s nextPutLine:'Display notNil ifTrue:['.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3750
    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3751
      screen fixColors notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3752
        s nextPutLine:'  Image flushDeviceImages.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3753
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3754
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3755
        s nextPutLine:'  ].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3756
      ] ifFalse:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3757
        s nextPutLine:'  Display releaseFixColors.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3758
      ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3759
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3760
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3761
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3762
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3763
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3764
      s nextPutLine:'  View defaultStyle:' , View defaultStyle storeString , '.'.
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3765
    s nextPutLine:' ].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3766
    s nextPutLine:'].'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3767
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3768
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3769
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3770
    s nextPutLine:'"/ Compiler settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3771
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3772
    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3773
      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3774
      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3775
      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3776
      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3777
      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3778
      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3779
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3780
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3781
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3782
      nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3783
      nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3784
      nextPutLine:'  Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3785
      nextPutLine:'  Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3786
      nextPutLine:'  Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3787
      nextPutLine:'  ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:[';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3788
      nextPutLine:'    Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3789
      nextPutLine:'  ].';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3790
      nextPutLine:'  Compiler stcPath: ' , (Compiler stcPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3791
      nextPutLine:'  Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3792
      nextPutLine:'  Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3793
      nextPutLine:'  ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3794
      nextPutLine:'  ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3795
      nextPutLine:'  ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3796
      nextPutLine:'  ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3797
      nextPutLine:'].';
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3798
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3799
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3800
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3801
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3802
    HistoryManager notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3803
        HistoryManager isActive ifTrue:[
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3804
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3805
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3806
        ] ifFalse:[
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3807
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3808
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3809
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3810
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3811
    ObjectFileLoader notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3812
        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3813
        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3814
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3815
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3816
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3817
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3818
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3819
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3820
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3821
    s nextPutLine:'"/ Info & Debug Messages:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3822
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3823
    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3824
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3825
      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3826
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3827
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3828
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3829
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3830
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3831
    s nextPutLine:'"/ Edit settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3832
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3833
    s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3834
    s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3835
    s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'.
3032
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3836
    (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3837
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3838
    ] ifFalse:[
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3839
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3840
    ].
2719
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3841
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3842
    s nextPutLine:'"/'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3843
    s nextPutLine:'"/ User preference values:'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3844
    s nextPutLine:'"/'.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3845
    currentUserPrefs keysAndValuesDo:[:k :v |
2719
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3846
        (UserPreferences implements:(k , ':') asSymbol) ifTrue:[
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3847
            s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3848
        ] ifFalse:[
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3849
            s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3850
        ]
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3851
    ].
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3852
    (RBFormatter notNil and:[RBFormatter isLoaded]) ifTrue:[
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3853
        s nextPutLine:'RBFormatter notNil ifTrue:[ '.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3854
        s nextPutLine:'  RBFormatter tabIndent: ' , (RBFormatter tabIndent storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3855
        s nextPutLine:'  RBFormatter spaceAfterReturnToken: ' , (RBFormatter spaceAfterReturnToken storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3856
        s nextPutLine:'  RBFormatter spaceAfterKeywordSelector: ' , (RBFormatter spaceAfterKeywordSelector storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3857
        s nextPutLine:'  RBFormatter spaceAroundTemporaries: ' , (RBFormatter spaceAroundTemporaries storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3858
        s nextPutLine:'  RBFormatter emptyLineAfterTemporaries: ' , (RBFormatter emptyLineAfterTemporaries storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3859
        s nextPutLine:'  RBFormatter cStyleBlocks: ' , (RBFormatter cStyleBlocks storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3860
        s nextPutLine:'  RBFormatter blockArgumentsOnNewLine: ' , (RBFormatter blockArgumentsOnNewLine storeString) , '.'.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  3861
        s nextPutLine:'  RBFormatter maxLengthForSingleLineBlocks: ' , (RBFormatter maxLengthForSingleLineBlocks storeString) , '.'.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3862
        s nextPutLine:'].'.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3863
    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3864
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3865
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3866
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3867
    s nextPutLine:'"/ Misc settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3868
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3869
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3870
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3871
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3872
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3873
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3874
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3875
      "/ claus - I dont think its a good idea to save those ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3876
      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3877
      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3878
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3879
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3880
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3881
      nextPutLine:'Display notNil ifTrue:[';
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3882
      nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.';
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3883
      nextPutLine:'].';
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3884
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3885
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
2017
a4d6c76cdef5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2016
diff changeset
  3886
    (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3887
        s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3888
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3889
    Processor isTimeSlicing ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3890
        s nextPutLine:'Processor startTimeSlicing.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3891
        s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3892
    ] ifFalse:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3893
        s nextPutLine:'Processor stopTimeSlicing.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3894
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3895
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3896
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3897
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3898
    s nextPutLine:'"/ Printer settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3899
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3900
    s nextPutLine:'Printer := ' , (Printer name) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3901
      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3902
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3903
    Printer supportsPageSizes ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3904
        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3905
        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3906
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3907
    Printer supportsMargins ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3908
        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3909
        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3910
        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3911
        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3912
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3913
    Printer supportsPostscript ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3914
        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3915
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3916
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3917
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3918
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3919
    s nextPutLine:'"/ Font settings:'.
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3920
    s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3921
    s nextPutLine:'"/'.
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3922
    s nextPutLine:'Display notNil ifTrue:['.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3923
    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
2269
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3924
    s nextPutLine:'  View defaultFont: ' , (View defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3925
    s nextPutLine:'  Label defaultFont: ' , (Label defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3926
    s nextPutLine:'  Button defaultFont: ' , (Button defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3927
    s nextPutLine:'  Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3928
    s nextPutLine:'  SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3929
    s nextPutLine:'  MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3930
    s nextPutLine:'  PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3931
    s nextPutLine:'  TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3932
    s nextPutLine:'  EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3933
    s nextPutLine:'  CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  3934
    s nextPutLine:' ].'.
2269
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  3935
    s nextPutLine:'].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3936
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3937
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3938
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3939
    s nextPutLine:'"/ Language setting:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3940
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3941
    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3942
    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3943
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3944
    s cr.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3945
    s nextPutLine:'"/'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3946
    s nextPutLine:'"/ SourceCodeManager settings:'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3947
    s nextPutLine:'"/ (only restored, if image is restarted on the same host)'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3948
    s nextPutLine:'"/'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3949
    s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3950
    s nextPutLine:'  Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  3951
    (Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[
2788
126bf75fecf4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
  3952
    s nextPutLine:'  Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  3953
    s nextPutLine:'  AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  3954
    s nextPutLine:'  CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  3955
    s nextPutLine:'  CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'.
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  3956
    ].
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3957
    s nextPutLine:'].'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  3958
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3959
    s close.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3960
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3961
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3962
     Transcript topView application saveSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3963
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3964
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  3965
    "Modified: / 6.1.1999 / 14:24:16 / cg"
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  3966
!
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3967
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3968
sourceAndDebuggerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3969
    "open a dialog on source&debugger other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3970
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3971
    |box check butt setupButt logDoits updChanges changeFileName
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3972
     useManager hasManager cvsIsSetup
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3973
     repository repositoryHolder localSourceFirst 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3974
     sourceCacheDir cacheEntry
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3975
     component localCheck oldIndent nm fn manager
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3976
     showErrorNotifier showVerboseStack
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3977
     syntaxColoring fullSelectorCheck autoFormat
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  3978
     resources pos currentUserPrefs|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3979
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3980
    currentUserPrefs := UserPreferences current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3981
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3982
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3983
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3984
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3985
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3986
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3987
    logDoits := Smalltalk logDoits asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3988
    updChanges := Class updatingChanges asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3989
    changeFileName := ObjectMemory nameForChanges asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3990
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3991
    (AbstractSourceCodeManager notNil 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3992
    and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  3993
        AbstractSourceCodeManager autoload.    
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3994
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3995
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3996
    hasManager := AbstractSourceCodeManager notNil
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  3997
                  and:[AbstractSourceCodeManager isLoaded].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3998
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3999
    repositoryHolder := '' asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4000
    hasManager ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4001
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4002
        localSourceFirst := Class tryLocalSourceFirst asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4003
        manager notNil ifTrue:[
2861
1f6dafaaeb90 remember unaccessable repository modules and disable access.
Claus Gittinger <cg@exept.de>
parents: 2854
diff changeset
  4004
            manager forgetDisabledModules.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4005
            repository := manager repositoryName.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4006
            repository notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4007
                repositoryHolder := repository asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4008
            ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4009
                repositoryHolder := '' asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4010
            ].
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4011
        ].
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4012
        cvsIsSetup := true.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4013
    ] ifFalse:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4014
        useManager := false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4015
        localSourceFirst := false.
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4016
        cvsIsSetup := false.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4017
    ].
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4018
    cvsIsSetup := cvsIsSetup asValue.
2037
7f824ca6e61b removed ref to (old) Launcher class
Claus Gittinger <cg@exept.de>
parents: 2034
diff changeset
  4019
    showErrorNotifier := (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4020
    showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4021
    syntaxColoring := currentUserPrefs syntaxColoring asValue.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4022
    fullSelectorCheck := currentUserPrefs fullSelectorCheck asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4023
    autoFormat := currentUserPrefs autoFormatting asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4024
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4025
    sourceCacheDir := nil asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4026
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4027
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4028
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4029
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4030
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4031
    box label:(resources string:'Source & Debugger settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4032
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4033
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4034
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4035
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4036
    component := box 
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4037
                    addLabelledInputField:(resources string:'change file name:')
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4038
                    adjust:#right
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4039
                    on:changeFileName 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4040
                    tabable:true
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4041
                    separateAtX:0.4.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4042
    component immediateAccept:true; acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4043
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4044
"/    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4045
"/    component := box addTextLabel:(resources string:'change file name:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4046
"/    component width:0.5; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4047
"/    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4048
"/    component := box addInputFieldOn:changeFileName tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4049
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4050
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4051
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4052
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4053
    hasManager ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4054
        pos := box yPosition.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4055
        check := box addCheckBox:(resources string:'sourcecode management') on:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4056
        check enableChannel:cvsIsSetup.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4057
        box makeTabable:check.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4058
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4059
        CVSSourceCodeManager notNil ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4060
            check width:0.6.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4061
            box yPosition:pos.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4062
            setupButt := box addComponent:(Button label:(resources string:'setup...') 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4063
                       action:[|manager|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4064
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4065
                               self cvsConfigurationDialogFor:requestor.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4066
                               manager := (Smalltalk at:#SourceCodeManager).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4067
                               cvsIsSetup value:manager notNil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4068
                               manager notNil ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4069
                                    repositoryHolder value: manager repositoryName.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4070
                                    sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4071
                               ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4072
                              ]).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4073
            setupButt enableChannel:useManager.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4074
            box makeTabable:setupButt.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4075
            setupButt left:0.6; width:0.4.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4076
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4077
        oldIndent := box leftIndent.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4078
        box leftIndent:30.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4079
2905
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4080
        box addVerticalSpace:10.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4081
"/        component := box 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4082
"/                        addLabelledInputField:(resources string:'CVS repository:')
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4083
"/                        adjust:#right
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4084
"/                        on:repositoryHolder 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4085
"/                        tabable:true
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4086
"/                        separateAtX:0.5.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4087
"/        component immediateAccept:true; acceptOnLeave:false.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4088
"/        component enableChannel:useManager.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4089
"/        component readOnly:true. 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4090
"/
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4091
        cacheEntry := box 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4092
                        addLabelledInputField:(resources string:'source cache dir:')
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4093
                        adjust:#right
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4094
                        on:sourceCacheDir 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4095
                        tabable:true
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4096
                        separateAtX:0.5.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4097
        cacheEntry immediateAccept:true; acceptOnLeave:false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4098
        cacheEntry enableChannel:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4099
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4100
        pos := box yPosition.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4101
        butt := Button label:(resources string:'flush cache now').
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4102
        butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ] ].
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4103
        box addComponent:butt tabable:true.
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4104
        butt left:0.6; width:0.4; leftInset:0.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4105
        butt enableChannel:useManager.
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4106
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4107
        butt := Button label:(resources string:'condense cache now').
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4108
        butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ] ].
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4109
        box addComponent:butt tabable:true.
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4110
        butt left:0.6; width:0.4; leftInset:0.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4111
        butt enableChannel:useManager.
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4112
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4113
        localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4114
        localCheck enableChannel:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4115
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4116
        box leftIndent:oldIndent.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4117
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4118
        (AbstractSourceCodeManager isNil 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4119
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4120
            useManager value:false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4121
            "/ cacheEntry disable.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4122
            "/ localCheck enable.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4123
        ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4124
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4125
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4126
        box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4127
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4128
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4129
    pos := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4130
    check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4131
    check width:0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4132
    box yPosition:pos.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4133
    butt := box addComponent:(Button label:(resources string:'configure...') action:[self syntaxColorConfigurationDialogFor:requestor]).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4134
    box makeTabable:butt.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4135
    butt enableChannel:syntaxColoring.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4136
    butt left:0.6; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4137
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4138
    check := box addCheckBox:(resources string:'immediate selector check') on:fullSelectorCheck.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4139
    check enableChannel:syntaxColoring.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4140
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4141
    pos := box yPosition.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4142
    check := box addCheckBox:(resources string:'auto format') on:autoFormat.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4143
    check width:0.6.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4144
    box yPosition:pos.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4145
    butt := box addComponent:(Button label:(resources string:'configure...') action:[self formattingConfigurationDialogFor:requestor]).
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4146
    box makeTabable:butt.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4147
    butt left:0.6; width:0.4.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4148
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4149
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4150
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4151
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4152
    box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4153
    box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4154
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4155
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4156
    box 
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4157
        addHelpButtonFor:'Launcher/sourceSettings.html';
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4158
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4159
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4160
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4161
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4162
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4163
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4164
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4165
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4166
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4167
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4168
    box accepted ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4169
        Smalltalk logDoits:logDoits value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4170
        Class updateChanges:updChanges value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4171
        ObjectMemory nameForChanges:changeFileName value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4172
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4173
        (hasManager and:[useManager value]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4174
            manager isNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4175
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4176
                manager := Smalltalk at:#SourceCodeManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4177
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4178
            Class tryLocalSourceFirst:(localSourceFirst value).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4179
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4180
            manager notNil ifTrue:[
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4181
"/                localSourceFirst value ifFalse:[
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4182
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4183
                    nm := sourceCacheDir value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4184
                    nm size > 0 ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4185
                        (fn := nm asFilename) exists ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4186
                            (self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4187
                                fn makeDirectory; 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4188
                                   makeReadableForAll;
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4189
                                   makeWritableForAll;
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4190
                                   makeExecutableForAll.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4191
                            ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4192
                        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4193
                        (fn exists 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4194
                        and:[fn isDirectory
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4195
                        and:[fn isReadable
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4196
                        and:[fn isWritable]]]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4197
                            AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4198
                        ] ifFalse:[
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4199
                            self warn:'Invalid sourceCache directory.'
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4200
                        ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4201
                    ]
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4202
"/                ]
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4203
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4204
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4205
            repositoryHolder notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4206
                repositoryHolder value size > 0 ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4207
                    manager notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4208
                        manager initializeForRepository:repositoryHolder value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4209
                    ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4210
                ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4211
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4212
        ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4213
            Smalltalk at:#SourceCodeManager put:nil
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4214
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4215
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4216
        showErrorNotifier value ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4217
            Exception emergencyHandler:nil
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4218
        ] ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4219
            Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler)
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4220
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4221
        DebugView defaultVerboseBacktrace:(showVerboseStack value).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4222
        currentUserPrefs syntaxColoring:syntaxColoring value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4223
        currentUserPrefs at:#fullSelectorCheck put:fullSelectorCheck value.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4224
        currentUserPrefs autoFormatting:autoFormat value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4225
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4226
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4227
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4228
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4229
    "Created: / 17.1.1997 / 17:39:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4230
    "Modified: / 16.4.1998 / 17:18:47 / ca"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4231
    "Modified: / 13.10.1998 / 15:47:31 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4232
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4233
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4234
stcCompilerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4235
    "open an extra dialog on stc-compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4236
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4237
    |box      
2018
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  4238
     stcIncludes stcDefines stcOptions
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4239
     stcLibraries stcLibraryPath cc stc ccOptions   
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4240
     linkCommand linkArgs
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4241
     component t
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4242
     canLoadBinaries thisIsADemoVersion
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4243
     resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4244
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4245
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4246
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4247
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4248
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4249
    stcIncludes := Compiler stcCompilationIncludes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4250
    stcDefines := Compiler stcCompilationDefines asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4251
    stcOptions := Compiler stcCompilationOptions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4252
    ccOptions := Compiler ccCompilationOptions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4253
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4254
    cc := Compiler ccPath asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4255
    stc := Compiler stcPath asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4256
    linkCommand := ObjectFileLoader linkCommand asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4257
    linkArgs := ObjectFileLoader linkArgs asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4258
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4259
    ObjectFileLoader notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4260
	(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4261
	    stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4262
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4263
	(t := ObjectFileLoader libPath) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4264
	    stcLibraryPath := t asValue.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4265
	]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4266
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4267
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4268
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4269
    box label:(resources string:'STC Compilation settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4270
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4271
    thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4272
    ObjectFileLoader notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4273
	thisIsADemoVersion ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4274
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4275
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4276
			    addLabelledInputField:(resources string:'stc command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4277
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4278
			    on:stc 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4279
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4280
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4281
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4282
	    component preferredExtent:(100 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4283
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4284
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4285
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4286
			    addLabelledInputField:(resources string:'stc options:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4287
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4288
			    on:stcOptions 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4289
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4290
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4291
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4292
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4293
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4294
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4295
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4296
			    addLabelledInputField:(resources string:'cc command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4297
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4298
			    on:cc 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4299
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4300
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4301
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4302
	    component preferredExtent:(150 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4303
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4304
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4305
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4306
			    addLabelledInputField:(resources string:'cc options:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4307
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4308
			    on:ccOptions 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4309
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4310
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4311
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4312
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4313
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4314
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4315
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4316
			    addLabelledInputField:(resources string:'include directories:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4317
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4318
			    on:stcIncludes 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4319
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4320
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4321
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4322
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4323
	    canLoadBinaries ifFalse:[component disable].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4324
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4325
"/        box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4326
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4327
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4328
			    addLabelledInputField:(resources string:'defines:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4329
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4330
			    on:stcDefines 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4331
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4332
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4333
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4334
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4335
	    canLoadBinaries ifFalse:[component disable].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4336
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4337
"/        box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4338
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4339
"/        box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4340
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4341
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4342
			    addLabelledInputField:(resources string:'link command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4343
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4344
			    on:linkCommand 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4345
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4346
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4347
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4348
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4349
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4350
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4351
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4352
			    addLabelledInputField:(resources string:'link args:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4353
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4354
			    on:linkArgs 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4355
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4356
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4357
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4358
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4359
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4360
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4361
	    stcLibraries notNil ifTrue:[
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4362
"/            box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4363
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4364
		component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4365
				addLabelledInputField:(resources string:'C-libraries:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4366
				adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4367
				on:stcLibraries 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4368
				tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4369
				separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4370
		component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4371
		component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4372
		canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4373
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4374
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4375
	    stcLibraryPath notNil ifTrue:[
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4376
"/            box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4377
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4378
		component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4379
				addLabelledInputField:(resources string:'stc libPath:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4380
				adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4381
				on:stcLibraryPath 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4382
				tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4383
				separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4384
		component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4385
		component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4386
		canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4387
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4388
	].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4389
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4390
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4391
    box 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4392
	addHelpButtonFor:'Launcher/compilerSettings.html';
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4393
	addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4394
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4395
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4396
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4397
    box accepted ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4398
	thisIsADemoVersion  ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4399
	    Compiler stcCompilationIncludes:stcIncludes value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4400
	    Compiler stcCompilationDefines:stcDefines value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4401
	    Compiler stcCompilationOptions:stcOptions value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4402
	    Compiler ccCompilationOptions:ccOptions value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4403
	    Compiler ccPath:cc value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4404
	    stc value ~= Compiler stcPath ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4405
		Compiler stcPath:stc value
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4406
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4407
	    ObjectFileLoader linkCommand:linkCommand value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4408
	    ObjectFileLoader linkArgs:linkArgs value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4409
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4410
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4411
	ObjectFileLoader notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4412
	    stcLibraries notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4413
		ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4414
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4415
	    stcLibraryPath notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4416
		ObjectFileLoader libPath:(stcLibraryPath value).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4417
	    ]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4418
	].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4419
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4420
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4421
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4422
    "Modified: / 10.9.1995 / 19:19:18 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4423
    "Modified: / 9.9.1996 / 22:42:47 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4424
    "Created: / 2.10.1998 / 16:27:49 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4425
    "Modified: / 21.10.1998 / 19:15:10 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4426
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4427
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4428
toolSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4429
    "open a dialog on tool settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4430
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4431
    |box resources currentUserPrefs in acceptChannel
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4432
     useNewInspector useNewChangesBrowser useNewSystemBrowser useNewVersionDiffBrowser
2703
ea75f41902bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2696
diff changeset
  4433
     showClockInLauncher showClock launcher transcriptBufferSize useNew|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4434
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4435
    currentUserPrefs := UserPreferences current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4436
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4437
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4438
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4439
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4440
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4441
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4442
    useNewInspector := currentUserPrefs useNewInspector asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4443
    useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue.
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4444
    useNewSystemBrowser := currentUserPrefs useNewSystemBrowser asValue.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4445
    showClockInLauncher := currentUserPrefs showClockInLauncher asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  4446
    useNewVersionDiffBrowser := currentUserPrefs useNewVersionDiffBrowser asValue.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4447
    transcriptBufferSize := Transcript current lineLimit printString asValue.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4448
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4449
    acceptChannel := false asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4450
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4451
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4452
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4453
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4454
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4455
    box label:(resources string:'Tool settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4456
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4457
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4458
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4459
    box addCheckBox:(resources string:'Use the new Changes Browser') on:useNewChangesBrowser.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4460
    box addHorizontalLine.
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4461
    box addCheckBox:(resources string:'Use the new System Browser') on:useNewSystemBrowser.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4462
    box addHorizontalLine.
2239
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4463
    box addCheckBox:(resources string:'Use the new VersionDiff Browser') on:useNewVersionDiffBrowser.
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4464
    box addHorizontalLine.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4465
    box addCheckBox:(resources string:'Use Hierarchical Inspector') on:useNewInspector.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4466
    box addHorizontalLine.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4467
    box addCheckBox:(resources string:'Show Clock in Launcher') on:showClockInLauncher.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4468
    box addHorizontalLine.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4469
    in := box 
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4470
            addLabelledInputField:(resources string:'Transcript Buffer Size:')
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4471
            adjust:#right
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4472
            on:transcriptBufferSize 
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4473
            tabable:true
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4474
            separateAtX:0.6.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4475
    in acceptChannel:acceptChannel.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4476
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4477
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4478
    box 
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4479
        addHelpButtonFor:'Launcher/toolSettings.html';
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4480
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4481
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4482
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4483
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4484
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4485
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4486
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4487
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4488
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4489
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4490
    box accepted ifTrue:[
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4491
        acceptChannel value:false; value:true.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4492
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4493
        currentUserPrefs useNewInspector:useNewInspector value.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4494
        currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value.
2703
ea75f41902bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2696
diff changeset
  4495
        currentUserPrefs useNewSystemBrowser:(useNew := useNewSystemBrowser value).
2239
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4496
        currentUserPrefs useNewVersionDiffBrowser:useNewVersionDiffBrowser value.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4497
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4498
        showClock := showClockInLauncher value.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4499
        currentUserPrefs showClockInLauncher ~= showClock ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4500
            currentUserPrefs showClockInLauncher:showClock.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4501
            launcher := Transcript application.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4502
            (launcher isKindOf:ToolApplicationModel) ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4503
                showClock ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4504
                    launcher startClock
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4505
                ] ifFalse:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4506
                    launcher stopClock
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4507
                ]
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4508
            ]
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4509
        ].
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4510
2718
581fcba5c7fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2715
diff changeset
  4511
        Inspector := UserPreferences current inspectorClass.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4512
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4513
        transcriptBufferSize := Integer readFrom:transcriptBufferSize value onError:Transcript current lineLimit.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4514
        Transcript current lineLimit:transcriptBufferSize.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4515
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4516
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4517
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4518
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4519
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4520
    "Modified: / 16.4.1998 / 17:18:47 / ca"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4521
    "Created: / 13.10.1998 / 15:44:36 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4522
    "Modified: / 13.10.1998 / 16:03:43 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4523
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4524
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4525
viewStyleSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4526
    "open a dialog on viewStyle related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4527
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4528
    |resourceDir dir box 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4529
     list listView scrView infoLabel infoForwarder newStyle
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4530
     someRsrcFile didApply resources listUpdater showStandardStylesOnly standardStyles|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4531
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4532
    showStandardStylesOnly := true asValue.
2110
ed1910b1dd06 added decWindows to the standard styles
Claus Gittinger <cg@exept.de>
parents: 2097
diff changeset
  4533
    standardStyles := #(
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4534
                        'decWindows'
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4535
                        'iris' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4536
                        'motif' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4537
                        'mswindows95' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4538
                        'next' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4539
                        'normal'
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4540
                        'os2' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4541
                        'st80' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4542
                       ).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4543
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4544
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4545
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4546
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4547
     search resources directory for a list of .style files ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4548
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4549
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4550
    someRsrcFile isNil ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4551
        someRsrcFile := Smalltalk getResourceFileName:'normal.style' forPackage:'stx:libview'.
2528
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4552
        someRsrcFile isNil ifTrue:[
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4553
            someRsrcFile := Smalltalk getResourceFileName:'styles/normal.style' forPackage:'stx:libview'.
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4554
        ].
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4555
    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4556
    someRsrcFile notNil ifTrue:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4557
        resourceDir := someRsrcFile asFilename directoryName
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4558
    ] ifFalse:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4559
        resourceDir := Smalltalk getSystemFileName:'resources'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4560
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4561
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4562
    resourceDir isNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  4563
        requestor warn:'no styles found (missing ''resources'' directory)'.
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4564
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4565
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4566
    dir := resourceDir asFilename directoryContents.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4567
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4568
    list := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4569
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4570
    listUpdater := [
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4571
        |listOfStyles lastSelection|
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4572
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4573
        lastSelection := list selection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4574
        listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4575
        listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4576
        Filename isCaseSensitive ifFalse:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4577
            listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4578
        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4579
        listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4580
        showStandardStylesOnly value ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4581
            listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4582
        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4583
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4584
        listOfStyles sort.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4585
        list list:listOfStyles.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4586
        list selection:lastSelection.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4587
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4588
    listUpdater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4589
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4590
    showStandardStylesOnly onChangeEvaluate:listUpdater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4591
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4592
    infoForwarder := [
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4593
                        |nm sheet comment|
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4594
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4595
                        comment := ''.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4596
                        nm := list selection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4597
                        nm notNil ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4598
                            sheet := ViewStyle fromFile:(nm , '.style').
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4599
                            comment := (sheet at:#comment ifAbsent:'') withoutSeparators.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4600
                        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4601
                        comment := comment withCRs asStringCollection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4602
                        comment size == 1 ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4603
                            comment := comment first
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4604
                        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4605
                        infoLabel label:comment
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4606
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4607
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4608
    list onChangeEvaluate:infoForwarder.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4609
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4610
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4611
    box label:(resources string:'Style selection').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4612
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4613
    (box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4614
    listView := SelectionInListView on:list.
2798
e3e59ce1a7d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2793
diff changeset
  4615
    listView doubleClickAction:[:sel | box acceptChannel value:true. box hide].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4616
    box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4617
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4618
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4619
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4620
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4621
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4622
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  4623
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4624
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4625
"/    b := box addButton:(Button label:(resources string:'apply')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4626
"/    b action:[didApply := true. requestor changeViewStyleTo:(list selection)].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4627
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4628
    (standardStyles includes:View defaultStyle) ifFalse:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4629
        showStandardStylesOnly value:false
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4630
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4631
    list selection:(View defaultStyle).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4632
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4633
    box stickAtBottomWithVariableHeight:scrView.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4634
    box stickAtBottomWithFixHeight:infoLabel.
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4635
    didApply := false.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4636
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4637
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4638
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4639
    box accepted ifTrue:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4640
        ((newStyle := list selection) ~= View defaultStyle
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4641
        or:[didApply ~~ true]) ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4642
            requestor changeViewStyleTo:newStyle.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4643
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4644
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4645
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4646
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4647
     self viewStyleSettingsFor:nil
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4648
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4649
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4650
    "Modified: / 14.9.1998 / 20:33:59 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4651
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4652
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4653
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - file'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4654
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4655
objectModuleDialogFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4656
    "opens a moduleInfo dialog"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4657
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4658
    <resource: #programMenu >
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4659
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4660
    |allModules moduleNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4661
     allObjects methodObjects methodNames 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4662
     cObjects cObjectNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4663
     otherObjects otherObjectNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4664
     box l handles unloadButton unloadAndRemoveButton
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4665
     list1 list2 listView1 listView2
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4666
     y panel 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4667
     showBuiltIn showModules showMethods showCObjects showOthers
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4668
     moduleListUpdater check canDoIt menu
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4669
     resources middleLabel|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4670
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4671
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4672
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4673
    showBuiltIn := true asValue. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4674
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4675
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4676
    showModules := canDoIt asValue. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4677
    showMethods := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4678
    showCObjects := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4679
    showOthers := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4680
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4681
    list1 := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4682
    list2 := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4683
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4684
    moduleListUpdater := [
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4685
            |l|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4686
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4687
            list2 list:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4688
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4689
            l := Array new.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4690
            handles := Array new.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4691
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4692
            (showModules value or:[showBuiltIn value]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4693
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4694
                (showBuiltIn value and:[showModules value]) ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4695
                    allModules := allModules select:[:i |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4696
                        |wantToSee|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4697
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4698
                        wantToSee := i dynamic.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4699
                        showBuiltIn value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4700
                            wantToSee := wantToSee not
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4701
                        ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4702
                        wantToSee
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4703
                    ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4704
                ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4705
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4706
                "/ sorting by reverse id brings newest ones to the top (a side effect)
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4707
                allModules sort:[:a :b | (a id) > (b id)].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4708
                moduleNames := allModules collect:[:entry | entry name].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4709
                l := l , moduleNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4710
                handles := handles , allModules.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4711
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4712
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4713
            showMethods value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4714
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4715
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4716
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4717
                                                                'compiled method - removed' " , ' (in ' , mH pathName , ')' "
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4718
                                                            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4719
                                                                'compiled method ' , mH method whoString  " , ' (in ' , mH pathName , ')' "
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4720
                                                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4721
                                                     ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4722
                l := l , methodNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4723
                handles := handles , methodObjects.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4724
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4725
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4726
            showCObjects value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4727
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4728
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4729
                cObjectNames := cObjects collect:[:entry | entry pathName].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4730
                l := l , cObjectNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4731
                handles := handles , cObjects.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4732
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4733
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4734
            showOthers value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4735
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4736
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4737
                                                         or:[h isMethodHandle
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4738
                                                         or:[h isClassLibHandle]]) not]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4739
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4740
                l := l , otherObjectNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4741
                handles := handles , otherObjects.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4742
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4743
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4744
            showBuiltIn value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4745
                l := #('VM') , l.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4746
                handles := #(VM) , handles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4747
                allModules := #(VM) , allModules.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4748
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4749
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4750
            list1 list:l.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4751
            unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4752
            unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4753
        ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4754
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4755
    showBuiltIn onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4756
    showModules onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4757
    showMethods onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4758
    showCObjects onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4759
    showOthers onChangeEvaluate:moduleListUpdater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4760
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4761
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4762
    box label:(resources string:'ST/X & Module Version information').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4763
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4764
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4765
    listView1 model:list1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4766
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4767
    listView1 action:[:sel |
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4768
        |info classNames tabs module|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4769
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4770
        listView1 middleButtonMenu:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4771
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4772
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4773
            |nm fileName addr entry1 entry2 entry3 method l|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4774
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4775
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4776
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4777
            (showModules value or:[showBuiltIn value]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4778
                info := allModules at:sel ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4779
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4780
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4781
                "/ selected a method, cObject or unknown
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4782
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4783
                module := handles at:sel.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4784
                fileName := module pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4785
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4786
                module isMethodHandle ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4787
                    middleLabel label:'contains method:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4788
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4789
                    (method := module method) isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4790
                        nm := '** removed **'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4791
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4792
                        menu := PopUpMenu
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4793
                                    labels:#('inspect' 'browse')
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4794
                                    selectors:#(inspect browse).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4795
                        menu actionAt:#inspect put:[ method inspect ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4796
                        menu actionAt:#browse put:[ |who|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4797
                                                    who := method who.
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
  4798
                                                    UserPreferences systemBrowserClass
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4799
                                                        openInClass:(who methodClass) 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4800
                                                        selector:(who methodSelector) 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4801
                                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4802
                        listView1 middleButtonMenu:menu.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4803
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4804
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4805
                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4806
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4807
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4808
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4809
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4810
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4811
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4812
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4813
                    entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4814
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4815
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4816
                ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4817
                    (module isFunctionObjectHandle 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4818
                    and:[module functions notEmpty]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4819
                        middleLabel label:'contains function:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4820
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4821
                        menu := PopUpMenu
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4822
                                    labels:#('inspect')
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4823
                                    selectors:#(inspect).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4824
                        menu actionAt:#inspect put:[ module functions inspect  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4825
                        listView1 middleButtonMenu:menu.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4826
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4827
                        list2 list:((module functions select:[:f | f notNil])
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4828
                                        collect:[:f | |entry|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4829
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4830
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4831
                                                        entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4832
                                                        entry
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4833
                                                ]).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4834
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4835
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4836
                    ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4837
                ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4838
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4839
                unloadButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4840
                unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4841
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4842
                info == #VM ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4843
                    "/ dummy entry for VM;
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4844
                    "/ show file versions in lower view.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4845
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4846
                    middleLabel label:'contains modules:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4847
                    l := (ObjectMemory getVMIdentificationStrings).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4848
                    l := l select:[:entry | entry includesString:'$Header'].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4849
                    l := l select:[:entry | entry includesString:',v'].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4850
                    l := l collect:[:entry |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4851
                        |i1 i2 file revision date listEntry|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4852
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4853
                        listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4854
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4855
                        i1 := entry indexOfSubCollection:'librun'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4856
                        i1 ~~ 0 ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4857
                            i2 := entry indexOfSubCollection:',v' startingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4858
                            i2 ~~ 0 ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4859
                                file := entry copyFrom:i1+7 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4860
                                listEntry colAt:1 put:file.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4861
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4862
                                i1 := i2+3.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4863
                                i2 := entry indexOfSeparatorStartingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4864
                                revision := entry copyFrom:i1 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4865
                                listEntry colAt:2 put:revision.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4866
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4867
                                i1 := i2+1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4868
                                i2 := entry indexOfSeparatorStartingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4869
                                date := entry copyFrom:i1 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4870
                                listEntry colAt:3 put:date.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4871
                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4872
                        ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4873
                        listEntry.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4874
                        "/ entry
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4875
                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4876
                    list2 list:l.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4877
                
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4878
                    unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4879
                    unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4880
                ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4881
                    "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4882
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4883
                    "/ fill bottom list with class-info
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4884
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4885
                    middleLabel label:'contains classes:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4886
                    classNames := info classNames asSortedCollection.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4887
                    classNames := classNames select:[:cName |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4888
                                    |cls|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4889
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4890
                                    cls := Smalltalk classNamed:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4891
                                    cls isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4892
                                        true "a removed class"
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4893
                                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4894
                                        cls isPrivate not
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4895
                                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4896
                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4897
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4898
                    classNames := classNames collect:[:cName |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4899
                                    |cls entry rev listEntry|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4900
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4901
                                    listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4902
                                    listEntry colAt:1 put:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4903
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4904
                                    cls := Smalltalk classNamed:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4905
                                    cls isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4906
                                        listEntry colAt:2 put:'(class removed)'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4907
                                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4908
                                        rev := cls binaryRevision.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4909
                                        rev notNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4910
                                            cls isLoaded ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4911
                                                entry := '(stub for: ' , rev.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4912
                                            ] ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4913
                                                entry :='(bin: ' , rev.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4914
                                            ].    
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4915
                                            cls revision ~= rev ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4916
                                                entry := entry , ' / src: ' , (cls revision printString)
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4917
                                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4918
                                            listEntry colAt:2 put:entry , ')'
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4919
                                        ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4920
                                           cls revision notNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4921
                                                listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4922
                                           ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4923
                                        ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4924
                                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4925
                                    listEntry
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4926
                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4927
                    list2 list:classNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4928
                    info dynamic ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4929
                        unloadButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4930
                        unloadAndRemoveButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4931
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4932
                        unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4933
                        unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4934
                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4935
                ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4936
            ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4937
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4938
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4939
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4940
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4941
    panel := HorizontalPanelView new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4942
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4943
    panel add:(l := Label label:'show:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4944
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4945
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4946
    box makeTabable:check.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4947
    panel add:(check := CheckBox label:'classLibs' model:showModules).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4948
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4949
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4950
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4951
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4952
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4953
    panel add:(check := CheckBox label:'methods' model:showMethods).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4954
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4955
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4956
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4957
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4958
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4959
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4960
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4961
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4962
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4963
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4964
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4965
    panel add:(check := CheckBox label:'others' model:showOthers).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4966
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4967
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4968
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4969
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4970
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4971
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4972
    panel horizontalLayout:#fitSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4973
    "/ panel horizontalLayout:#leftSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4974
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4975
    box addComponent:panel tabable:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4976
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4977
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4978
    box addComponent:listView1 tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4979
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4980
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4981
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4982
    l := box addTextLabel:(resources string:'contains:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4983
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4984
    l origin:0.0@0.4 corner:1.0@0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4985
    l topInset:(View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4986
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4987
    middleLabel := l.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4988
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4989
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4990
    listView2 model:list2; printItems:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4991
    box addComponent:listView2 tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4992
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4993
    listView2 disable.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4994
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4995
    unloadButton := Button label:(resources string:'unload').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4996
    unloadButton action:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4997
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4998
            |info idx pathName|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4999
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5000
            idx := list1 selectionIndex.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5001
            info := allModules at:idx ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5002
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5003
            list1 selectionIndex:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5004
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5005
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5006
                "/ selected a method
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5007
                "/ idx := idx - allModules size.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5008
                pathName := (handles at:idx) pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5009
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5010
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5011
                "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5012
                pathName := info pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5013
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5014
            ObjectFileLoader unloadObjectFile:pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5015
            moduleListUpdater value.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5016
            unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5017
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5018
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5019
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5020
    unloadAndRemoveButton := Button label:(resources string:'remove classes & unload').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5021
    unloadAndRemoveButton action:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5022
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5023
            |info idx pathName|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5024
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5025
            idx := list1 selectionIndex.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5026
            info := allModules at:idx ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5027
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5028
            list1 selectionIndex:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5029
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5030
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5031
                "/ selected a method
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5032
                "/ idx := idx - allModules size.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5033
                pathName := (handles at:idx) pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5034
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5035
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5036
                "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5037
                pathName := info pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5038
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5039
            ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5040
            moduleListUpdater value.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5041
            unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5042
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5043
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5044
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5045
    moduleListUpdater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5046
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5047
    box addButton:unloadButton.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5048
    box addButton:unloadAndRemoveButton.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5049
    box addAbortButtonLabelled:(resources string:'dismiss').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5050
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5051
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5052
    listView2 topInset:(l preferredExtent y + 5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5053
    listView2 bottomInset:(box preferredExtent y - y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5054
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5055
    box width:(400 min:(box device width * 2 // 3)); 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5056
        height:(450 min:(box device height - 50)).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5057
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5058
"/  box sizeFixed:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5059
    box openWithExtent:(600 min:(box device width * 2 // 3))
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5060
                       @
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5061
                       (500 min:(box device height - 50)) .
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5062
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5063
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5064
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5065
    "Modified: / 17.9.1995 / 16:47:50 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5066
    "Created: / 31.7.1998 / 15:49:45 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5067
    "Modified: / 10.8.1998 / 11:33:22 / cg"
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5068
!
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5069
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5070
packageDialogFor:requestor
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5071
    "opens a package dialog"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5072
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5073
    |allPackages packageList packageUpdater
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5074
     box l listView tabs
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5075
     y menu resources selectedPackage|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5076
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5077
    resources := requestor class classResources.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5078
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5079
    box := Dialog new.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5080
    box label:(resources string:'Packages').
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5081
2493
e25c257bda20 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  5082
    allPackages := Set new.
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5083
    allPackages addAll:(Smalltalk knownPackages).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5084
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5085
    Project knownProjects do:[:package |
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5086
        allPackages add:(package name)    
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5087
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5088
    Project loadedProjects do:[:package |
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5089
        allPackages add:(package name)    
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5090
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5091
    allPackages := allPackages asOrderedCollection sort.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5092
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5093
    packageUpdater := [
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5094
        tabs := TabulatorSpecification unit:#inch positions:#(0 4).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5095
        packageList := allPackages collect:[:pName | |pkg entry|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5096
                            entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5097
                            pkg := Project projectWithId:pName asSymbol.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5098
                            (pkg notNil and:[pkg isLoaded]) ifTrue:[
2866
bdbdb168bc5c asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 2861
diff changeset
  5099
                                entry colAt:1 put:pName allBold.
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5100
                                entry colAt:2 put:'loaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5101
                            ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5102
                                entry colAt:1 put:pName.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5103
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5104
                                (Smalltalk allClasses
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5105
                                     contains:[:cls | cls package = pName and:[cls isLoaded not]])
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5106
                                ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5107
                                    (Smalltalk allClasses
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5108
                                         contains:[:cls | cls package = pName and:[cls isLoaded]])
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5109
                                    ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5110
                                        entry colAt:2 put:'loaded/autoloaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5111
                                    ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5112
                                        entry colAt:2 put:'autoloaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5113
                                    ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5114
                                ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5115
                            ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5116
                            entry
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5117
                       ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5118
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5119
    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5120
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5121
    listView := HVScrollableView for:SelectionInListView miniScrollerH:true.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5122
    listView list:packageList.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5123
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5124
    box addComponent:listView tabable:true.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5125
    listView origin:0.0@0.0 corner:1.0@1.0.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5126
    listView bottomInset:40.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5127
    listView action:[:selIndex | |pkg|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5128
                        selectedPackage := (allPackages at:selIndex) asSymbol.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5129
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5130
                        pkg := Project projectWithId:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5131
                        (pkg notNil and:[pkg isLoaded]) ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5132
                            menu disable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5133
"/                            menu enable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5134
                        ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5135
"/                            menu disable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5136
                            menu enable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5137
                        ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5138
                    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5139
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5140
    menu := PopUpMenu 
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5141
                itemList:#(
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5142
                    ('load...'    load  )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5143
"/                    ('-'          nil   )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5144
"/                    ('unload...'  unload)
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5145
                )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5146
                resources:resources.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5147
    listView middleButtonMenu:menu.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5148
    menu actionAt:#load   put:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5149
                                box withWaitCursorDo:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5150
                                    Smalltalk loadPackage:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5151
                                    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5152
                                ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5153
                              ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5154
"/    menu actionAt:#unload put:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5155
"/                                box withWaitCursorDo:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5156
"/                                    Smalltalk unloadPackage:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5157
"/                                    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5158
"/                                ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5159
"/                              ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5160
    menu disable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5161
"/    menu disable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5162
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5163
    box addAbortButtonLabelled:(resources string:'dismiss').
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5164
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5165
    box width:(400 min:(box device width * 2 // 3)); 
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5166
        height:(450 min:(box device height - 50)).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5167
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5168
    box openWithExtent:(600 min:(box device width * 2 // 3))
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5169
                       @
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5170
                       (500 min:(box device height - 50)) .
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5171
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5172
    box destroy.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5173
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5174
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5175
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - private'!
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5176
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5177
cvsConfigurationDialogFor:requestor
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5178
    |cvsRootHolder resources defaultsList bindings dialog 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5179
     listOfModules selectedPerModuleRoot rootsPerModule acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5180
     removeEnabled|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5181
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5182
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5183
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5184
    OperatingSystem isUNIXlike ifTrue:[
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5185
        defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS' ':pserver:user@host:/files/CVS').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5186
    ] ifFalse:[
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5187
        OperatingSystem isMSDOSlike ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5188
            defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS' ':pserver:user@host:/files/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5189
        ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5190
            defaultsList := #('host:/files/CVS' 'host:/CVS' ':pserver:user@host:/files/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5191
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5192
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5193
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5194
    cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5195
    cvsRootHolder := cvsRootHolder asValue.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5196
    rootsPerModule := Dictionary new declareAllFrom:(CVSSourceCodeManager repositoryNamesPerModule).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5197
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5198
    bindings := IdentityDictionary new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5199
    bindings at:#acceptChannel put:(acceptChannel := TriggerValue new).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5200
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5201
    bindings at:#cvsRootPrototypeList put:defaultsList.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5202
    bindings at:#cvsRootHolder put:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5203
    bindings at:#perModuleRootModule put:nil asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5204
    bindings at:#perModuleRoot put:nil asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5205
    bindings at:#removeEnabled put:(removeEnabled := false asValue).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5206
    bindings at:#listOfModules put:(listOfModules := rootsPerModule keys asList).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5207
    listOfModules sort.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5208
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5209
    bindings at:#selectedPerModuleRoot put:(selectedPerModuleRoot := nil asValue).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5210
    selectedPerModuleRoot 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5211
             onChangeEvaluate:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5212
                            |module cvsRoot|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5213
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5214
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5215
                            module := selectedPerModuleRoot value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5216
                            removeEnabled value:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5217
                            cvsRoot := rootsPerModule at:module ifAbsent:''.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5218
                            (bindings at:#perModuleRootModule) value:module.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5219
                            (bindings at:#perModuleRoot) value:cvsRoot.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5220
             ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5221
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5222
    bindings at:#help put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5223
                            requestor withWaitCursorDo:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5224
                                HTMLDocumentView openFullOnHelpFile:'Launcher/cvsSetup.html'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5225
                            ]
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5226
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5227
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5228
    bindings at:#addPerModuleRoot put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5229
                            |module cvsRoot|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5230
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5231
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5232
                            module := (bindings at:#perModuleRootModule) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5233
                            cvsRoot := (bindings at:#perModuleRoot) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5234
                            (listOfModules includes:module) ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5235
                                listOfModules add:module.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5236
                                listOfModules sort.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5237
                            ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5238
                            cvsRoot size > 0 ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5239
                                rootsPerModule at:module put:cvsRoot.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5240
                            ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5241
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5242
    bindings at:#removePerModuleRoot put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5243
                            |module|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5244
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5245
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5246
                            module := (bindings at:#perModuleRootModule) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5247
                            listOfModules remove:module ifAbsent:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5248
                            rootsPerModule removeKey:module ifAbsent:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5249
                            (bindings at:#perModuleRootModule) value:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5250
                            (bindings at:#perModuleRoot) value:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5251
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5252
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5253
    dialog := SimpleDialog new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5254
    dialog resources:resources.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5255
    (dialog openSpec:(self cvsSetupSpec) withBindings:bindings) ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5256
        ^ self
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5257
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5258
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5259
    acceptChannel value.    
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5260
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5261
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5262
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5263
    "/
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5264
    CVSSourceCodeManager initializeForRepository:cvsRootHolder value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5265
    CVSSourceCodeManager repositoryNamesPerModule:rootsPerModule.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5266
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5267
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5268
fontBoxForEncoding:encodingMatch for:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5269
    "open a fontBox, showing fonts which match some encoding
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5270
     (used when changing to japanese ...)"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5271
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5272
    |box y b
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5273
     labelDef buttonDef listDef menuDef textDef
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5274
     models labels allOfThem filter resources defaultButton|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5275
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5276
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5277
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5278
    encodingMatch notNil ifTrue:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5279
        filter := [:f | f encoding notNil 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5280
                        and:[encodingMatch match:f encoding]].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5281
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5282
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5283
    models := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5284
    labels := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5285
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5286
    models add:(allOfThem := nil asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5287
    models add:(labelDef := Label defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5288
    models add:(buttonDef := Button defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5289
    models add:(listDef := SelectionInListView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5290
    models add:(menuDef := MenuView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5291
    models add:(textDef := TextView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5292
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5293
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5294
    box label:(resources string:'Font settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5295
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5296
    models
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5297
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5298
    do:[:model :title |
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5299
        |y2 lbl f i|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5300
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5301
        f := model value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5302
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5303
        (box addTextLabel:title) adjust:#left.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5304
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5305
        y := box yPosition.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5306
        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5307
        b relativeExtent:nil; extent:(b preferredExtent).
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5308
        y2 := box yPosition.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5309
        box yPosition:y.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5310
        i := box leftIndent.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5311
        box leftIndent:(b widthIncludingBorder + View viewSpacing).
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5312
        (lbl := box addTextLabel:'')
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5313
            adjust:#left;
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5314
            font:(model value);
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5315
            labelChannel:(BlockValue 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5316
                            with:[:v | |f|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5317
                                f := v value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5318
                                f isNil ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5319
                                    ''
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5320
                                ] ifFalse:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5321
                                    f userFriendlyName
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5322
                                ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5323
                            ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5324
                            argument:model).
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5325
        labels add:lbl.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5326
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5327
        box leftIndent:i.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5328
        box yPosition:(box yPosition max:y2).
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5329
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5330
        box addVerticalSpace; addHorizontalLine; addVerticalSpace.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5331
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5332
        b action:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5333
            |f|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5334
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5335
            f := FontPanel 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5336
                fontFromUserInitial:(model value) 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5337
                              title:(resources string:'font for %1' with:title)
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5338
                             filter:filter.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5339
            f notNil ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5340
                model == allOfThem ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5341
                    models do:[:m | m value:f].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5342
                    labels do:[:l | l font:f]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5343
                ] ifFalse:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5344
                    model value:f.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5345
                    lbl font:f.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5346
                ].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5347
            ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5348
        ].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5349
        model == allOfThem ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5350
            box addVerticalSpace
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5351
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5352
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5353
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  5354
    box addAbortAndOkButtons.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5355
    defaultButton := Button label:(resources string:'defaults').
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5356
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5357
    (DialogBox styleSheet at:'dialogBox.okAtLeft') ifTrue:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5358
        box addButton:defaultButton after:nil.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5359
    ] ifFalse:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5360
        box addButton:defaultButton before:nil.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5361
    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5362
    defaultButton
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5363
        action:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5364
            "/ fetch defaults
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5365
            View readStyleSheetAndUpdateAllStyleCaches.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5366
            labelDef value: Label defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5367
            buttonDef value: Button defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5368
            listDef value: SelectionInListView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5369
            menuDef value: MenuView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5370
            textDef value: TextView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5371
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5372
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5373
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5374
    box accepted ifTrue:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5375
        Label defaultFont:labelDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5376
        Button defaultFont:buttonDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5377
        Toggle defaultFont:buttonDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5378
        TextView withAllSubclasses do:[:cls | cls defaultFont:textDef value].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5379
        SelectionInListView withAllSubclasses do:[:cls | cls defaultFont:listDef value].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5380
        MenuView defaultFont:menuDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5381
        PullDownMenu defaultFont:menuDef value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5382
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5383
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5384
    ^ box accepted
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5385
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5386
    "Created: / 27.2.1996 / 01:44:16 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5387
    "Modified: / 17.6.1996 / 13:38:48 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5388
    "Modified: / 15.9.1998 / 22:04:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5389
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5390
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5391
formattingConfigurationDialogFor:requestor
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5392
    |dialog frame exampleView y 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5393
     resources exampleText formattedText reformatAction
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5394
     reformatLocked
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5395
     oldUserPreferences
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5396
     b resetList components
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5397
     resetListBox currentUserPrefs 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5398
     tabIndent  
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5399
     spaceAroundTemporaries emptyLineAfterTemporaries 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5400
     spaceAfterReturnToken spaceAfterKeywordSelector cStyleBlocks
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5401
     blockArgumentsOnNewLine
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5402
     maxLengthForSingleLineBlocks resetValue bindings|
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5403
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5404
    RBFormatter isNil ifTrue:[
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5405
        ^ requestor warn:'Sorry, no RBFormatter class'.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5406
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5407
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5408
    RBFormatter isLoaded ifFalse:[
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5409
        requestor withWaitCursorDo:[
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5410
            RBFormatter autoload
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5411
        ]
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5412
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5413
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5414
    resources := requestor class classResources.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5415
    currentUserPrefs := UserPreferences current.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5416
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5417
    exampleText := 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5418
'methodSelector:methodArg
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5419
    "method comment:
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5420
     some stupid code to show the current settings"
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5421
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5422
    |index|
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5423
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5424
    "/ another comment ...
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5425
    self at:index.                      "/ a message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5426
    self at:index put:methodArg.        "/ a two arg message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5427
    self from:1 to:index put:methodArg. "/ a three arg message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5428
    methodArg ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5429
        Transcript showCR:''hello''.      "/ condition
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5430
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5431
    methodArg ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5432
        Transcript showCR:''hello''.      "/ condition
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5433
    ] ifFalse:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5434
        Transcript showCR:''world''.      
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5435
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5436
    [methodArg] whileTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5437
        Transcript showCR:''hello''.      "/ looping
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5438
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5439
    [self aVeryLongConditionBlock and:[self toMakeBlockLonger]] whileTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5440
        Transcript showCR:''hello''.      "/ long blocks
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5441
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5442
    methodArg do:[:element |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5443
        Transcript showCR:''hello''.      "/ looping
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5444
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5445
    1 to:methodArg size do:[:index |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5446
        Transcript showCR:''hello''.      "/ looping
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5447
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5448
    methodArg keysAndValuesDo:[:index |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5449
        Transcript showCR:''hello''.      "/ looping
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5450
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5451
    Object errorSignal handle:[:ex |      
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5452
        ex return                         
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5453
    ] do:[                                "/ exception handling
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5454
        self someAction                   "/ blocks
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5455
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5456
    ^ self.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5457
'.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5458
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5459
    formattedText := '' asValue.
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5460
    reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5461
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5462
    reformatAction := [ |tree
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5463
                         s_tabIndent s_spaceAroundTemporaries s_emptyLineAfterTemporaries
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5464
                         s_spaceAfterReturnToken s_spaceAfterKeywordSelector s_cStyleBlocks
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5465
                         s_maxLengthForSingleLineBlocks s_blockArgumentsOnNewLine|
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5466
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5467
                        reformatLocked ifFalse:[
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5468
                            "/
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5469
                            "/ temporary change the RBFormatters settings ...
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5470
                            "/
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5471
                            s_tabIndent := RBFormatter tabIndent.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5472
                            s_spaceAroundTemporaries := RBFormatter spaceAroundTemporaries.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5473
                            s_emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5474
                            s_spaceAfterReturnToken := RBFormatter spaceAfterReturnToken.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5475
                            s_spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5476
                            s_cStyleBlocks := RBFormatter cStyleBlocks.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5477
                            s_blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5478
                            s_maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5479
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5480
                            RBFormatter 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5481
                                tabIndent:tabIndent value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5482
                                spaceAroundTemporaries:spaceAroundTemporaries value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5483
                                emptyLineAfterTemporaries:emptyLineAfterTemporaries value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5484
                                spaceAfterReturnToken:spaceAfterReturnToken value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5485
                                spaceAfterKeywordSelector:spaceAfterKeywordSelector value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5486
                                cStyleBlocks:cStyleBlocks value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5487
                                blockArgumentsOnNewLine:blockArgumentsOnNewLine value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5488
                                maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5489
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5490
                            tree := RBParser 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5491
                                        parseMethod:exampleText
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5492
                                        onError: [:aString :position | nil].
3324
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5493
                            tree do:[:node |
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5494
                                node ~~ tree ifTrue:[
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5495
                                    node parent haltIfNil
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5496
                                ]
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5497
                            ].
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5498
                            formattedText value:tree printString.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5499
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5500
                            RBFormatter 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5501
                                tabIndent:s_tabIndent;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5502
                                spaceAroundTemporaries:s_spaceAroundTemporaries;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5503
                                emptyLineAfterTemporaries:s_emptyLineAfterTemporaries;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5504
                                spaceAfterReturnToken:s_spaceAfterReturnToken;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5505
                                spaceAfterKeywordSelector:s_spaceAfterKeywordSelector;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5506
                                cStyleBlocks:s_cStyleBlocks;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5507
                                blockArgumentsOnNewLine:s_blockArgumentsOnNewLine;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5508
                                maxLengthForSingleLineBlocks:s_maxLengthForSingleLineBlocks.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5509
                          ].
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5510
                      ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5511
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5512
    bindings := IdentityDictionary new.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5513
    bindings at:#formattedText put:formattedText.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5514
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5515
    oldUserPreferences := currentUserPrefs copy.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5516
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5517
    tabIndent := RBFormatter tabIndent asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5518
    tabIndent onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5519
    bindings at:#tabIndent put:tabIndent.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5520
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5521
    spaceAroundTemporaries := RBFormatter spaceAroundTemporaries asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5522
    spaceAroundTemporaries onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5523
    bindings at:#spaceAroundTemporaries put:spaceAroundTemporaries.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5524
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5525
    emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5526
    emptyLineAfterTemporaries onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5527
    bindings at:#emptyLineAfterTemporaries put:emptyLineAfterTemporaries.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5528
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5529
    spaceAfterReturnToken := RBFormatter spaceAfterReturnToken asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5530
    spaceAfterReturnToken onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5531
    bindings at:#spaceAfterReturnToken put:spaceAfterReturnToken.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5532
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5533
    spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5534
    spaceAfterKeywordSelector onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5535
    bindings at:#spaceAfterKeywordSelector put:spaceAfterKeywordSelector.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5536
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5537
    cStyleBlocks := RBFormatter cStyleBlocks asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5538
    cStyleBlocks onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5539
    bindings at:#cStyleBlocks put:cStyleBlocks.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5540
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5541
    blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine asValue.
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5542
    blockArgumentsOnNewLine onChangeEvaluate:reformatAction. 
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5543
    bindings at:#blockArgumentsOnNewLine put:blockArgumentsOnNewLine.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5544
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5545
    maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5546
    maxLengthForSingleLineBlocks onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5547
    bindings at:#maxLengthForSingleLineBlocks put:maxLengthForSingleLineBlocks.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5548
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5549
    bindings at:#resetList   put:#( 'ST/X default' 'RB default' ).
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5550
    bindings at:#resetValue  put:(resetValue := nil asValue).
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5551
    resetValue onChangeEvaluate:
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5552
        [
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5553
            resetValue value == 1 ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5554
                "/ ST/X defaults
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5555
                reformatLocked := true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5556
                tabIndent value: 4.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5557
                spaceAfterReturnToken value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5558
                spaceAfterKeywordSelector value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5559
                spaceAroundTemporaries value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5560
                emptyLineAfterTemporaries value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5561
                cStyleBlocks value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5562
                blockArgumentsOnNewLine value:false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5563
                maxLengthForSingleLineBlocks value: 20.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5564
                reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5565
                reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5566
            ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5567
            resetValue value == 2 ifTrue:[
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5568
                "/ RBParser defaults
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5569
                reformatLocked := true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5570
                tabIndent value: 8.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5571
                spaceAfterReturnToken value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5572
                spaceAfterKeywordSelector value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5573
                spaceAroundTemporaries value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5574
                emptyLineAfterTemporaries value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5575
                cStyleBlocks value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5576
                blockArgumentsOnNewLine value:false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5577
                maxLengthForSingleLineBlocks value: 20.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5578
                reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5579
                reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5580
            ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5581
            resetValue value:nil. "/ to force default label
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5582
        ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5583
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5584
    reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5585
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5586
    "/
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5587
    "/ create a box on those ...
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5588
    "/
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5589
    dialog := SimpleDialog new.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5590
    dialog postBuildBlock:[:builder |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5591
                                (builder componentAt:#sampleTextView) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5592
                                    cursorMovementWhenUpdating:nil;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5593
                                    scrollWhenUpdating:nil.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5594
                          ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5595
    (dialog openFor:nil 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5596
        spec:(self formatterDialogSpec) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5597
        withBindings:bindings) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5598
    ifTrue:[
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5599
        RBFormatter 
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5600
            tabIndent:tabIndent value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5601
            spaceAroundTemporaries:spaceAroundTemporaries value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5602
            emptyLineAfterTemporaries:emptyLineAfterTemporaries value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5603
            spaceAfterReturnToken:spaceAfterReturnToken value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5604
            spaceAfterKeywordSelector:spaceAfterKeywordSelector value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5605
            cStyleBlocks:cStyleBlocks value;
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5606
            blockArgumentsOnNewLine:blockArgumentsOnNewLine value;
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5607
            maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5608
    ] ifFalse: [
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5609
        (UserPreferences reset; current) declareAllFrom: oldUserPreferences
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  5610
    ].
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  5611
!
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5612
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5613
old_cvsConfigurationDialogFor:requestor
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5614
    |box y cvsRootHolder component resources defaultsList|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5615
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5616
    resources := requestor class classResources.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5617
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5618
    OperatingSystem isUNIXlike ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5619
        defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5620
    ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5621
        OperatingSystem isMSDOSlike ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5622
            defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5623
        ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5624
            defaultsList := #('host:/files/CVS' 'host:/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5625
        ]
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5626
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5627
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5628
    cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5629
    cvsRootHolder := cvsRootHolder asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5630
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5631
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5632
    "/ create a box to input the CVSRoot ...
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5633
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5634
    box := DialogBox new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5635
    box label:(resources string:'CVS Setup').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5636
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5637
    component := (box addTextLabel:'CVS SourceCodeManager setup').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5638
    component adjust:#left.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5639
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5640
    y := box yPosition.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5641
    component := box addTextLabel:(resources string:'CVSRoot:').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5642
    component width:0.25; adjust:#right; borderWidth:0.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5643
    box yPosition:y.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5644
    component := box addComboBoxOn:nil tabable:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5645
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5646
    component width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5647
    component list:defaultsList.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5648
    component model:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5649
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5650
"/    component := box 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5651
"/                    addLabelledInputField:(resources string:'CVSRoot:')
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5652
"/                    adjust:#right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5653
"/                    on:nil 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5654
"/                    tabable:true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5655
"/                    separateAtX:0.5.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5656
"/    component acceptOnLeave:false.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5657
"/    component model:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5658
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5659
    box 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5660
        addHelpButtonFor:'Launcher/sourceSettings.html';
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5661
        addAbortAndOkButtons.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5662
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5663
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5664
    "/ show the box ...
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5665
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5666
    box extent:400@300.
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
  5667
    box open.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5668
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5669
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5670
    "/ update system settings
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5671
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5672
    box accepted ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5673
        CVSSourceCodeManager initializeForRepository:cvsRootHolder value
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5674
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5675
    box destroy
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5676
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5677
    "Modified: / 16.4.1998 / 17:18:16 / ca"
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5678
    "Modified: / 12.8.1998 / 17:09:02 / cg"
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5679
!
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5680
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5681
syntaxColorConfigurationDialogFor:requestor
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5682
    |box frame exampleView y
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5683
     resources exampleText coloredText recolorAction
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5684
     syntaxColor syntaxColors colorMenu oldUserPreferences
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5685
     syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5686
     syntaxEmphasisesBox syntaxColoringResetButton b resetList
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5687
     resetListBox currentUserPrefs|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5688
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5689
    resources := requestor class classResources.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5690
    currentUserPrefs := UserPreferences current.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5691
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5692
    exampleText := 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5693
'methodSelector:methodArg
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5694
    "method comment:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5695
     some stupid code to show the current settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5696
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5697
    |methodVar|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5698
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5699
    "/ another comment ...
2200
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5700
    self at:methodArg.        "/ a message
3238
24602460b3af checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3237
diff changeset
  5701
    self fooBarBaz:methodVar. "/ a bad message
2045
59dae01315b9 added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 2041
diff changeset
  5702
    methodVar := Array new:1.
2200
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5703
    unknonVar := 1.           "/ a bad variable
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5704
    UnknonVar := 1.           "/ another bad variable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5705
    "self bar:methodVar.  detect commented code easily"
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5706
    1 to:5 do:[:i | self at:i + 1].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5707
    Transcript showCR:''some string'' , #someSymbol.
2083
3ebaf8eceeaf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2081
diff changeset
  5708
    ^ self.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5709
'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5710
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5711
    coloredText := '' asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5712
    recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5713
    recolorAction value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5714
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5715
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5716
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5717
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5718
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5719
    box label:(resources string:'Syntax Colors').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5720
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5721
    frame := View new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5722
    frame extent:1.0 @ 200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5723
    frame borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5724
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5725
    exampleView := HVScrollableView for:TextView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5726
    exampleView model:coloredText.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5727
    exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5728
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5729
    frame topInset:box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5730
    box addComponent:frame withExtent:1.0@200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5731
    box makeTabable:exampleView. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5732
    frame width:1.0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5733
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5734
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5735
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5736
    oldUserPreferences := currentUserPrefs copy.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5737
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5738
    syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColorNames initialSelection:1).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5739
    syntaxColorSelector    := [(syntaxColors selection replChar:$  withString: '') asLowercaseFirst asSymbol].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5740
    syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol].
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5741
    syntaxColor := (currentUserPrefs perform: syntaxColorSelector value) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5742
    colorMenu := ColorMenu new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5743
    colorMenu model: syntaxColor.
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5744
    syntaxColor onChangeEvaluate: 
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5745
        [currentUserPrefs at:  syntaxColorSelector value put: syntaxColor value.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5746
         recolorAction value.].
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5747
    syntaxColors onChangeEvaluate: 
2960
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5748
        [|eVal|
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5749
         syntaxColor value: (currentUserPrefs perform:syntaxColorSelector value).
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5750
         eVal := currentUserPrefs perform: syntaxEmphasisSelector value.
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5751
         eVal isArray ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5752
            eVal = (Array with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5753
                eVal := #'red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5754
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5755
            eVal = (Array with:#bold with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5756
                eVal := #'bold+red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5757
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5758
            eVal = (Array with:#bold with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5759
                eVal := #'bold+red underline'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5760
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5761
            eVal = (Array with:#italic with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5762
                eVal := #'italic+red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5763
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5764
            eVal = (Array with:#italic with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5765
                eVal := #'italic+red underline'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5766
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5767
         ].
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5768
         syntaxEmphasises selection: eVal.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5769
         recolorAction value.].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5770
2233
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5771
    syntaxEmphasises := SelectionInList 
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5772
                            with:#(
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5773
                                    normal
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5774
                                    underline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5775
                                    #'red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5776
                                    underwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5777
                                    #'red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5778
                                    bold
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5779
                                    boldUnderline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5780
                                    #'bold+red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5781
                                    boldUnderwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5782
                                    #'bold+red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5783
                                    italic
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5784
                                    italicUnderline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5785
                                    #'italic+red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5786
                                    italicUnderwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5787
                                    #'italic+red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5788
                                    reverse
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5789
                                  ) 
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5790
                            initialSelection:1.
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5791
    syntaxEmphasisesBox := box addComboListOn:syntaxEmphasises.
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5792
    syntaxEmphasises 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5793
        onChangeEvaluate:[ |em|
2569
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5794
            em := syntaxEmphasises selection.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5795
            em notNil ifTrue:[
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5796
                em := em asSymbol.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5797
                em == #'red underline' ifTrue:[ em := Array with:#underline with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5798
                em == #'red underwave' ifTrue:[ em := Array with:#underwave with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5799
                em == #'bold+red underline' ifTrue:[ em := Array with:#bold with:#underline with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5800
                em == #'bold+red underwave' ifTrue:[ em := Array with:#bold with:#underwave with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5801
                em == #'italic+red underline' ifTrue:[ em := Array with:#italic with:#underline with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5802
                em == #'italic+red underwave' ifTrue:[ em := Array with:#italic with:#underwave with:(#underlineColor->Color red)].
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5803
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5804
                currentUserPrefs at: syntaxEmphasisSelector value put:em.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5805
            ].
2233
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5806
            recolorAction value
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5807
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5808
    syntaxColors changed:#value. "/ to force initial update of emphasis
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5809
    box addComponent:colorMenu tabable:true.
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5810
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5811
    y := box yPosition.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5812
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5813
    b := Button new label: (resources string:'reset to:').
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5814
    b action:[
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5815
        |resetSelector|
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5816
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5817
        resetSelector := #(
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5818
                                #resetSyntaxColors
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5819
                                #resetSyntaxColorsGreenComments
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5820
                                #resetSyntaxColorsAllBlackExceptBadIDs
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5821
                          ) at:resetList selectionIndex.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5822
        currentUserPrefs perform:resetSelector. 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5823
        syntaxColor value:(currentUserPrefs perform:syntaxColorSelector value).
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5824
        recolorAction value.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5825
    ].
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5826
    syntaxColoringResetButton := box addComponent:b.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5827
    box makeTabable:syntaxColoringResetButton.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5828
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5829
    box yPosition:y.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5830
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5831
    resetList := SelectionInList 
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5832
                            with:#(
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5833
                                    'default'
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5834
                                    'default, but green comments'
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5835
                                    'no colors, but highlight errors'
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5836
                                    "/ add more here ...
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5837
                                  ) 
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5838
                            initialSelection:1.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5839
    resetListBox := box addComboListOn:resetList.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5840
    box makeTabable:resetListBox.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5841
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5842
    syntaxColoringBox enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5843
    colorMenu enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5844
    syntaxEmphasisesBox enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5845
    syntaxColoringResetButton enable. 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5846
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5847
    box 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5848
"/        addHelpButtonFor:'Launcher/sourceSettings.html';
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5849
        addAbortAndOkButtons.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5850
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5851
    box stickAtBottomWithVariableHeight:frame.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5852
    box stickAtBottomWithFixHeight:syntaxColoringBox.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5853
    box stickAtBottomWithFixHeight:syntaxEmphasisesBox.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5854
    box stickAtBottomWithFixHeight:colorMenu.
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5855
    box stickAtBottomWithFixHeight:syntaxColoringResetButton left:0.0 right:0.5.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5856
    box stickAtBottomWithFixHeight:resetListBox left:0.5 right:1.0.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5857
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5858
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5859
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5860
    "/
2234
7641ad0b4bf8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2233
diff changeset
  5861
    box extent:600@400.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5862
    box openModal.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5863
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5864
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5865
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5866
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5867
    box accepted ifTrue:[
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5868
    ] ifFalse: [
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5869
        (UserPreferences reset; current) declareAllFrom: oldUserPreferences
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5870
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5871
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5872
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5873
    "Modified: / 16.4.1998 / 17:18:16 / ca"
2234
7641ad0b4bf8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2233
diff changeset
  5874
    "Modified: / 7.7.1999 / 00:27:02 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5875
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5876
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5877
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'interface specs'!
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5878
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5879
cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5880
    "This resource specification was automatically generated
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5881
     by the UIPainter of ST/X."
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5882
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5883
    "Do not manually edit this!! If it is corrupted,
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5884
     the UIPainter may not be able to read the specification."
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5885
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5886
    "
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5887
     UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5888
    "
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5889
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5890
    <resource: #canvas>
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5891
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5892
    ^ 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5893
     #(#FullSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5894
        #name: #cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5895
        #window: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5896
       #(#WindowSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5897
          #label: 'CVS Setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5898
          #name: 'CVS Setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5899
          #min: #(#Point 436 316)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5900
          #max: #(#Point 1280 1024)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5901
          #bounds: #(#Rectangle 16 46 452 362)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5902
        )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5903
        #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5904
       #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5905
          #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5906
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5907
              #label: 'CVS SourceCodeManager setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5908
              #name: 'label'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5909
              #layout: #(#LayoutFrame 1 0.0 3 0 -1 1.0 20 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5910
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5911
              #adjust: #left
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5912
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5913
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5914
              #label: 'CVSRoot default:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5915
              #name: 'defaultCvsRootLabel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5916
              #layout: #(#LayoutFrame 0 0.0 31 0 40 0.25 48 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5917
              #level: 0
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5918
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5919
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5920
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5921
           #(#ComboBoxSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5922
              #name: 'cvsRootComboBox'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5923
              #layout: #(#LayoutFrame 44 0.25 31 0 -1 1.0 53 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5924
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5925
              #model: #cvsRootHolder
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5926
              #immediateAccept: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5927
              #acceptOnLeave: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5928
              #acceptOnReturn: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5929
              #acceptOnTab: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5930
              #acceptOnLostFocus: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5931
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5932
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5933
              #comboList: #cvsRootPrototypeList
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5934
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5935
           #(#DividerSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5936
              #name: 'Separator1'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5937
              #layout: #(#LayoutFrame 0 0.0 56 0 0 1.0 60 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5938
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5939
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5940
              #label: 'CVSRoot per Module:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5941
              #name: 'knownModulesLabel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5942
              #layout: #(#LayoutFrame 0 0.0 69 0 40 0.25 86 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5943
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5944
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5945
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5946
           #(#SequenceViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5947
              #name: 'List1'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5948
              #layout: #(#LayoutFrame 44 0.25 64 0 -1 1 162 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5949
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5950
              #model: #selectedPerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5951
              #hasHorizontalScrollBar: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5952
              #hasVerticalScrollBar: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5953
              #miniScrollerHorizontal: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5954
              #useIndex: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5955
              #sequenceList: #listOfModules
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5956
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5957
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5958
              #label: 'Module:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5959
              #name: 'moduleLabel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5960
              #layout: #(#LayoutFrame 0 0.0 169 0 40 0.25 186 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5961
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5962
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5963
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5964
           #(#InputFieldSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5965
              #name: 'perModuleRootModuleEntryField'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5966
              #layout: #(#LayoutFrame 44 0.25 165 0 -20 1 187 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5967
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5968
              #model: #perModuleRootModule
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5969
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5970
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5971
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5972
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5973
              #label: 'CVSRoot:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5974
              #name: 'cvsRootLabel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5975
              #layout: #(#LayoutFrame 0 0.0 196 0 40 0.25 213 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5976
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5977
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5978
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5979
           #(#ComboBoxSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5980
              #name: 'perModuleRootComboBox'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5981
              #layout: #(#LayoutFrame 44 0.25 192 0 -1 1.0 214 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5982
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5983
              #model: #perModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5984
              #immediateAccept: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5985
              #acceptOnLeave: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5986
              #acceptOnReturn: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5987
              #acceptOnTab: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5988
              #acceptOnLostFocus: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5989
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5990
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5991
              #comboList: #cvsRootPrototypeList
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5992
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5993
           #(#HorizontalPanelViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5994
              #name: 'HorizontalPanel1'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5995
              #layout: #(#LayoutFrame 44 0.25 218 0 -1 1 249 0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5996
              #horizontalLayout: #fitSpace
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5997
              #verticalLayout: #center
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5998
              #horizontalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5999
              #verticalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6000
              #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6001
             #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6002
                #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6003
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6004
                    #label: 'Add/Apply'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6005
                    #name: 'addButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6006
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6007
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6008
                    #model: #addPerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6009
                    #extent: #(#Point 136 22)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6010
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6011
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6012
                    #label: 'Remove'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6013
                    #name: 'removeButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6014
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6015
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6016
                    #model: #removePerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6017
                    #enableChannel: #removeEnabled
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6018
                    #extent: #(#Point 137 22)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6019
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6020
                 )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6021
               
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6022
              )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6023
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6024
           #(#DividerSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6025
              #name: 'Separator2'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6026
              #layout: #(#LayoutFrame 0 0.0 -45 1 0 1.0 -34 1)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6027
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6028
           #(#HorizontalPanelViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6029
              #name: 'buttonPanel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6030
              #layout: #(#LayoutFrame 0 0.0 -29 1.0 0 1.0 -3 1.0)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6031
              #horizontalLayout: #fitSpace
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6032
              #verticalLayout: #center
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6033
              #horizontalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6034
              #verticalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6035
              #ignoreInvisibleComponents: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6036
              #reverseOrderIfOKAtLeft: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6037
              #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6038
             #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6039
                #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6040
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6041
                    #label: 'cancel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6042
                    #name: 'cancelButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6043
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6044
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6045
                    #model: #cancel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6046
                    #extent: #(#Point 141 21)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6047
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6048
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6049
                    #label: 'help'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6050
                    #name: 'helpButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6051
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6052
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6053
                    #model: #help
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6054
                    #extent: #(#Point 141 21)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6055
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6056
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6057
                    #label: 'ok'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6058
                    #name: 'okButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6059
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6060
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6061
                    #model: #accept
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6062
                    #isDefault: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6063
                    #extent: #(#Point 140 21)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6064
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6065
                 )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6066
               
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6067
              )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6068
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6069
           )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6070
         
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6071
        )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6072
      )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6073
!
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6074
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6075
formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6076
    "This resource specification was automatically generated
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6077
     by the UIPainter of ST/X."
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6078
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6079
    "Do not manually edit this!! If it is corrupted,
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6080
     the UIPainter may not be able to read the specification."
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6081
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6082
    "
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6083
     UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6084
    "
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6085
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6086
    <resource: #canvas>
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6087
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6088
    ^ 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6089
     #(#FullSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6090
        #name: #formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6091
        #window: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6092
       #(#WindowSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6093
          #label: 'Formatting parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6094
          #name: 'Formatting parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6095
          #min: #(#Point 10 10)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6096
          #max: #(#Point 1280 1024)
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6097
          #bounds: #(#Rectangle 10 406 606 989)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6098
        )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6099
        #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6100
       #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6101
          #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6102
           #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6103
              #label: 'Sample output:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6104
              #name: 'Label2'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6105
              #layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6106
              #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6107
              #adjust: #left
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6108
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6109
           #(#TextEditorSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6110
              #name: 'sampleTextView'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6111
              #layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 -234 1.0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6112
              #level: -1
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6113
              #model: #formattedText
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6114
              #hasHorizontalScrollBar: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6115
              #hasVerticalScrollBar: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6116
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6117
           #(#FramedBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6118
              #label: 'Parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6119
              #name: 'FramedBox1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6120
              #layout: #(#LayoutFrame 0 0.0 -225 1 0 1.0 -30 1)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6121
              #labelPosition: #topLeft
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6122
              #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6123
              #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6124
             #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6125
                #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6126
                 #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6127
                    #label: 'Max length for single line blocks:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6128
                    #name: 'Label1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6129
                    #layout: #(#LayoutFrame 185 0.0 127 0 66 0.7 153 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6130
                    #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6131
                    #adjust: #right
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6132
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6133
                 #(#CheckBoxSpec
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6134
                    #label: 'Space around temporaries '
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6135
                    #name: 'checkBox'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6136
                    #layout: #(#LayoutFrame 2 0 3 0 260 0 32 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6137
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6138
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6139
                    #model: #spaceAroundTemporaries
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6140
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6141
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6142
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6143
                    #label: 'Blank line after local var declaration'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6144
                    #name: 'CheckBox1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6145
                    #layout: #(#LayoutFrame 267 0 3 0 567 0 32 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6146
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6147
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6148
                    #model: #emptyLineAfterTemporaries
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6149
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6150
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6151
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6152
                    #label: 'Space after ''^'''
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6153
                    #name: 'CheckBox2'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6154
                    #layout: #(#LayoutFrame 2 0 31 0 260 0 60 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6155
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6156
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6157
                    #model: #spaceAfterReturnToken
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6158
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6159
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6160
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6161
                    #label: 'Space after '':'' in keywords'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6162
                    #name: 'CheckBox3'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6163
                    #layout: #(#LayoutFrame 267 0 31 0 567 0 60 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6164
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6165
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6166
                    #model: #spaceAfterKeywordSelector
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6167
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6168
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6169
                 #(#CheckBoxSpec
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6170
                    #label: 'C-Style blocks'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6171
                    #name: 'CheckBox4'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6172
                    #layout: #(#LayoutFrame 2 0 59 0 260 0 88 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6173
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6174
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6175
                    #model: #cStyleBlocks
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6176
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6177
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6178
                 #(#InputFieldSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6179
                    #name: 'editField'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6180
                    #layout: #(#LayoutFrame 74 0.7 93 0 -38 1.0 119 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6181
                    #level: -1
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6182
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6183
                    #model: #tabIndent
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6184
                    #type: #number
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6185
                    #immediateAccept: false
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6186
                    #acceptOnLeave: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6187
                    #acceptOnReturn: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6188
                    #acceptOnTab: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6189
                    #acceptOnLostFocus: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6190
                    #acceptOnPointerLeave: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6191
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6192
                 #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6193
                    #label: 'Indent:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6194
                    #name: 'label'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6195
                    #layout: #(#LayoutFrame 242 0.0 93 0 66 0.7 119 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6196
                    #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6197
                    #adjust: #right
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6198
                  )
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6199
                 #(#InputFieldSpec
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6200
                    #name: 'EntryField1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6201
                    #layout: #(#LayoutFrame 74 0.7 127 0 -38 1.0 153 0)
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6202
                    #level: -1
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6203
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6204
                    #model: #maxLengthForSingleLineBlocks
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6205
                    #type: #number
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6206
                    #immediateAccept: false
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6207
                    #acceptOnLeave: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6208
                    #acceptOnReturn: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6209
                    #acceptOnTab: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6210
                    #acceptOnLostFocus: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6211
                    #acceptOnPointerLeave: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6212
                  )
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6213
                 #(#PopUpListSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6214
                    #label: 'Reset to...'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6215
                    #name: 'PopUpList1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6216
                    #layout: #(#LayoutFrame 2 0 129 0 127 0 151 0)
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6217
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6218
                    #model: #resetValue
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6219
                    #menu: #resetList
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6220
                    #useIndex: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6221
                  )
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6222
                 #(#CheckBoxSpec
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6223
                    #label: 'Block args on new line'
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6224
                    #name: 'CheckBox5'
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6225
                    #layout: #(#LayoutFrame 267 0 59 0 567 0 88 0)
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6226
                    #level: 0
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6227
                    #tabable: true
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6228
                    #model: #blockArgumentsOnNewLine
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6229
                    #translateLabel: true
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6230
                  )
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6231
                 )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6232
               
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6233
              )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6234
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6235
           #(#HorizontalPanelViewSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6236
              #name: 'horizontalPanelView'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6237
              #layout: #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 0 1.0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6238
              #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6239
              #horizontalLayout: #fitSpace
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6240
              #verticalLayout: #center
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6241
              #horizontalSpace: 4
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6242
              #verticalSpace: 4
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6243
              #ignoreInvisibleComponents: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6244
              #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6245
             #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6246
                #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6247
                 #(#ActionButtonSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6248
                    #label: 'cancel'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6249
                    #name: 'button'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6250
                    #translateLabel: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6251
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6252
                    #model: #cancel
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6253
                    #useDefaultExtent: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6254
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6255
                 #(#ActionButtonSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6256
                    #label: 'ok'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6257
                    #name: 'Button1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6258
                    #translateLabel: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6259
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6260
                    #model: #accept
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6261
                    #isDefault: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6262
                    #useDefaultExtent: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6263
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6264
                 )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6265
               
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6266
              )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6267
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6268
           )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6269
         
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6270
        )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6271
      )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6272
! !
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6273
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6274
!AbstractLauncherApplication class methodsFor:'documentation'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6275
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6276
version
3325
81e06c615998 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3324
diff changeset
  6277
    ^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.170 2001-10-18 14:08:05 cg Exp $'
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6278
! !