AbstractLauncherApplication.st
author Stefan Vogel <sv@exept.de>
Tue, 21 May 2002 10:12:34 +0200
changeset 3664 77fb767b5368
parent 3644 7fcc80a16f12
child 3690 828698baf5ac
permissions -rw-r--r--
Changed Workstation initialization
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
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
    14
'From Smalltalk/X, Version:4.1.4 on 20-Mai-2002 at 15:13:15'                    !
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
    15
2689
602cbcd0feb3 Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents: 2621
diff changeset
    16
"{ Package: 'stx:libtool' }"
602cbcd0feb3 Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents: 2621
diff changeset
    17
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
ToolApplicationModel subclass:#AbstractLauncherApplication
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    19
	instanceVariableNames:'transcript'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    20
	classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    21
	poolDictionaries:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    22
	category:'Interface-Smalltalk'
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
Object subclass:#LauncherDialogs
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    26
	instanceVariableNames:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    27
	classVariableNames:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    28
	poolDictionaries:''
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
    29
	privateIn:AbstractLauncherApplication
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    32
!AbstractLauncherApplication class methodsFor:'documentation'!
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
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    35
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    36
 COPYRIGHT (c) 1997 by eXept Software AG
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    37
              All Rights Reserved
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    38
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    39
 This software is furnished under a license and may be used
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    40
 only in accordance with the terms of that license and with the
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    41
 inclusion of the above copyright notice. This software may not
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    42
 be provided or otherwise made available to, or used by, any
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    43
 other person. No title to or ownership of the software is
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    44
 hereby transferred.
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
!
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
documentation
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    50
"
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    51
    This is an abstract class, providing mechanisms and common functionality
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    52
    for launcher-type applications. Subclasses may implement their GUI either
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    53
    with or without the UIPainter framework, and still use the common functions
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    54
    provided here.
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    55
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    56
    [author:]
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    57
        Claus Gittinger, eXept Software AG
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
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    60
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
    61
! !
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
!AbstractLauncherApplication class methodsFor:'accessing'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    65
closeAllLaunchers
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    66
    "close all opened launchers"
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    67
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    68
    self openLaunchers copy do:[:eachLauncher |
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    69
        eachLauncher closeRequest
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
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    72
    "
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    73
     self closeAllLaunchers.
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    74
     NewLauncher open
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    75
    "
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    76
!
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    77
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
current
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "return the launcher running on the current screen.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
     (for access via addMenu/ removeMenu)"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    |currentScreen|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    OpenLaunchers size > 0 ifTrue:[
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    85
        currentScreen := Screen current.
2762
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
    86
        ^ OpenLaunchers detect:[:eachLauncher | eachLauncher graphicsDevice == currentScreen] ifNone:nil
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    ^ nil.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "
2761
4e05f561e2db checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2760
diff changeset
    91
     NewLauncher current
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    "Modified: / 9.9.1996 / 22:41:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    "Modified: / 13.10.1998 / 16:09:50 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
openLaunchers
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "return all opened launchers"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
3079
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   101
    OpenLaunchers isNil ifTrue:[
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   102
        OpenLaunchers := IdentitySet new
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   103
    ].
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   104
    ^ OpenLaunchers
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!AbstractLauncherApplication class methodsFor:'defaults'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
notifyingEmergencyHandler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    "return a block (used as an emergency handler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
     for exceptions), which does errorNotification before going
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
     into the debugger."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Remember the handlerBlock, to be able to determine if the current
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
     handler is the notifying one."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    NotifyingEmergencyHandler isNil ifTrue:[
2316
6a46309a5e43 NotifyingEmergencyHandler moved to NoHandlerError
Stefan Vogel <sv@exept.de>
parents: 2314
diff changeset
   118
        NotifyingEmergencyHandler := NoHandlerError notifyingEmergencyHandler
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    ^ NotifyingEmergencyHandler
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    "Created: 7.1.1997 / 22:18:19 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    "Modified: 15.1.1997 / 21:15:38 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   126
!AbstractLauncherApplication class methodsFor:'queries'!
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   127
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   128
isVisualStartable
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
   129
    "return true, if this application can be started via #open.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
   130
     (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
   131
2762
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   132
    "/ assume all my subclasses can
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   133
    ^ self ~~ AbstractLauncherApplication
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   134
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   135
    "
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   136
     AbstractLauncherApplication isVisualStartable
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   137
     NewLauncher isVisualStartable
713cb2f6ad5c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2761
diff changeset
   138
    "
2195
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   139
! !
5f1c47696cd6 added documentation
Claus Gittinger <cg@exept.de>
parents: 2194
diff changeset
   140
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
!AbstractLauncherApplication methodsFor:'private'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   143
findApplicationClass:classOrClassName nameSpace:aNameSpace
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   144
    "find some application, given the classes name.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   145
     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
   146
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   147
    |cls|
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   148
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   149
    classOrClassName isBehavior ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   150
        cls := classOrClassName.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   151
    ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   152
        cls := Smalltalk at:classOrClassName asSymbol.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   153
        cls isNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   154
            "/ look if its in the nameSpace
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   155
            aNameSpace notNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   156
                cls := aNameSpace at:classOrClassName asSymbol
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   157
            ]
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   158
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   159
        cls isNil ifTrue:[
3037
0d452d54bf04 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3035
diff changeset
   160
            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
   161
            ^ nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   162
        ].
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
    ^ cls
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   165
!
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   166
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   167
findWindow:title
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   168
    "a helper for find & destroy and find & raise operations;
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   169
     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
   170
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   171
    ^ self findWindow:title windowGroupFilter:nil
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
!
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   174
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   175
findWindow:title windowGroupFilter:windowGroupFilterOrNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   176
    "a helper for find & destroy and find & raise operations;
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   177
     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
   178
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   179
    |knownTopViews nameList box|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   180
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   181
    knownTopViews := IdentitySet new.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   182
    Screen allScreens do:[:aScreen |
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   183
        aScreen knownViews do:[:aView |
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   184
            |top showIt wg|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   185
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   186
            aView notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   187
                top := aView topView.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   188
                (top isKindOf:DebugView) ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   189
                    "/ although modal, show it.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   190
                    showIt := top realized
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   191
                ] ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   192
                    wg := top windowGroup.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   193
                    showIt := (wg notNil and:[wg isModal not]).
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   194
                    showIt ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   195
                        windowGroupFilterOrNil notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   196
                            showIt := windowGroupFilterOrNil includes:wg
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
                    ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   199
                ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   200
                showIt ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   201
                    knownTopViews add:top
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   202
                ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   203
            ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   204
        ]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   205
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   206
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   207
    knownTopViews := knownTopViews asOrderedCollection.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   208
    knownTopViews sort:[:v1 :v2 | |l1 l2|
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   209
                                l1 := v1 label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   210
                                l2 := v2 label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   211
                                l1 < l2
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   212
                       ].
2041
52cd1ca19280 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
   213
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   214
    nameList := knownTopViews collect:[:v | 
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   215
                                        |isDead wg p l|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   216
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   217
                                        l := v label ? 'aView'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   218
                                        v device == Display ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   219
                                            l := l , ' [' , (v device displayName ? '?') , ']'
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   220
                                        ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   221
                                        ((wg := v windowGroup) notNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   222
                                        and:[(p := wg process) notNil
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   223
                                        and:[p state ~~ #dead]]) ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   224
                                            l  
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   225
                                        ] ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   226
                                            l , ' (dead ?)'
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   227
                                        ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   228
                                      ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   229
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   230
    box := ListSelectionBox new.
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   231
    box selectionChangeCallback:[:selectionIndex |   |v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   232
                                    v := knownTopViews at:box selectionIndex.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   233
                                    v raise. box raise 
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   234
                                ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   235
    box noEnterField.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   236
    box list:nameList.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   237
    box label:(resources string:'view selection').
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   238
    box title:(resources string:title) withCRs.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   239
    box action:[:selection |
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   240
        |v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   241
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   242
        v := knownTopViews at:box selectionIndex.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   243
        box destroy.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
   244
        ^ v
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   245
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   246
    box extent:400@300.
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   247
    box open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   248
    ^ nil
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   249
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   250
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   251
openApplication: classOrClassName
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   252
     "open an application, given by the classe name."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   253
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   254
    self openApplication:classOrClassName nameSpace:nil
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   255
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   256
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   257
openApplication:classOrClassName nameSpace:aNameSpace
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   258
    "open some application, given the classes name.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   259
     Look for it in Smalltalk and the given nameSpace"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   260
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   261
    self openApplication:classOrClassName nameSpace:aNameSpace with:#open
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   262
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   263
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   264
openApplication:classOrClassName nameSpace:aNameSpace with:aSelector
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   265
    "open some application, given the classes name.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   266
     Look for it in Smalltalk and the given nameSpace"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   267
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   268
    |cls|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   269
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   270
    cls := self findApplicationClass:classOrClassName nameSpace:aNameSpace.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   271
    cls isNil ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   272
        ^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   273
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   274
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
   275
    Autoload autoloadFailedSignal handle:[:ex |
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   276
        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
   277
    ] do:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   278
        self withWaitCursorDo:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   279
            cls perform:aSelector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   280
        ]
2005
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
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   283
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   284
pickAView
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   285
    "let user pick a view and return it"
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
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   288
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   289
    (Delay forSeconds:1) wait.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   290
    v := Screen current viewFromUser.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   291
    v isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   292
	self warn:'Sorry, this is not a smalltalk view'.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   293
	^ nil
2005
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
    ^ v
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
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   298
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   299
saveScreenImage:anImage defaultName:defaultName
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   300
    "save an image into a file 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   301
     - ask user for filename using a fileSelectionBox."
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|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   304
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   305
    fileName := Dialog
3003
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   306
                    requestFileName:(resources string:'save image in:') 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   307
                    default:(defaultName , '.tiff')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   308
                    ok:(resources string:'save')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   309
                    abort:(resources string:'cancel')
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   310
                    pattern:'*.tiff'
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   311
                    fromDirectory:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   312
                    whenBoxCreatedEvaluate:[:box | 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   313
                                                |editButton|
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   314
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   315
                                                editButton := Button label:(resources string:'edit').
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   316
                                                (DialogBox styleSheet at:'dialogBox.okAtLeft' default:false) ifFalse:[
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   317
                                                    box addButton:editButton before:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   318
                                                ] ifTrue:[
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   319
                                                    box addButton:editButton after:nil
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   320
                                                ].
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   321
                                                editButton 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   322
                                                    action:[ 
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   323
                                                        box hide; destroy.
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   324
                                                        ImageEditor openOnImage:anImage.
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   325
                                                    ].
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   326
                                           ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   327
    fileName notNil ifTrue:[
3003
74e2002951dc edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents: 2993
diff changeset
   328
        anImage saveOn:fileName
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   329
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   330
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   331
    "Modified: / 21.2.1996 / 13:09:28 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   332
    "Created: / 29.1.1998 / 23:20:36 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   333
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   334
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
showDocumentation:aRelativeDocFilePath
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
    "open an HTML browser on some document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
     although that one is not yet finished,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
     its better than nothing ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
    HTMLDocumentView notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   343
	self withWaitCursorDo:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   344
	    "
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   345
	     temporary kludge;
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   346
	     not all machines can autoload binaries;
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   347
	     however, on my SGI (which can) we want it
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   348
	     to load automatically.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   349
	    "
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   350
	    HTMLDocumentView isLoaded ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   351
		ErrorSignal catch:[HTMLDocumentView autoload]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   352
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   353
	    HTMLDocumentView isLoaded ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   354
		HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   355
		^ self
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   356
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   357
	]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
    self warn:'Sorry, the ST/X HTML reader is not
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
included in this release.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
Please use Mosaic, netscape, chimera or any
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
other HTML viewer to see the documentation.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
The documentation is found in the ''doc/online'' directory.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
    "Modified: / 25.2.1998 / 21:24:20 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   371
!AbstractLauncherApplication methodsFor:'private - settings callBacks'!
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
changeViewStyleTo:newStyle
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   374
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   375
    newStyle notNil ifTrue:[
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   376
        self withWaitCursorDo:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   377
            (transcript ? Transcript) showCR:'change style to ' , newStyle , ' ...'.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   378
            View defaultStyle:newStyle asSymbol.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   379
        ].
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   380
        self reopenLauncher.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   381
        DebugView newDebugger.
2005
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
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   385
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   386
fontBoxForEncoding:encodingMatch
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   387
    "open a fontBox, showing fonts which match some encoding
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   388
     (used when changing to japanese ...)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   389
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   390
    ^ LauncherDialogs fontBoxForEncoding:encodingMatch for:self.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   391
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   392
"/    |box y b
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   393
"/     labelDef buttonDef listDef menuDef textDef
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   394
"/     models labels allOfThem filter|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   395
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   396
"/    encodingMatch notNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   397
"/        filter := [:f | f encoding notNil 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   398
"/                        and:[encodingMatch match:f encoding]].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   399
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   400
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   401
"/    models := OrderedCollection new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   402
"/    labels := OrderedCollection new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   403
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   404
"/    models add:(allOfThem := nil asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   405
"/    models add:(labelDef := Label defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   406
"/    models add:(buttonDef := Button defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   407
"/    models add:(listDef := SelectionInListView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   408
"/    models add:(menuDef := MenuView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   409
"/    models add:(textDef := TextView defaultFont asValue).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   410
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   411
"/    box := Dialog new.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   412
"/    box label:(resources string:'Font settings').
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   413
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   414
"/    models
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   415
"/    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
   416
"/    do:[:model :title |
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   417
"/        |y2 lbl f i|
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
"/        f := model value.
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
"/        (box addTextLabel:title) adjust:#left.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   422
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   423
"/        y := box yPosition.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   424
"/        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
   425
"/        b relativeExtent:nil; extent:(b preferredExtent).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   426
"/        y2 := box yPosition.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   427
"/        box yPosition:y.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   428
"/        i := box leftIndent.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   429
"/        box leftIndent:(b widthIncludingBorder + View viewSpacing).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   430
"/        (lbl := box addTextLabel:'')
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   431
"/            adjust:#left;
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   432
"/            font:(model value);
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   433
"/            labelChannel:(BlockValue 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   434
"/                            with:[:v | |f|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   435
"/                                f := v value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   436
"/                                f isNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   437
"/                                    ''
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   438
"/                                ] ifFalse:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   439
"/                                    f userFriendlyName
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   440
"/                                ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   441
"/                            ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   442
"/                            argument:model).
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   443
"/        labels add:lbl.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   444
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   445
"/        box leftIndent:i.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   446
"/        box yPosition:(box yPosition max:y2).
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
"/        box addHorizontalLine.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   449
"/        box addVerticalSpace.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   450
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   451
"/        b action:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   452
"/            |f|
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   453
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   454
"/            f := FontPanel 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   455
"/                fontFromUserInitial:(model value) 
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   456
"/                              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
   457
"/                             filter:filter.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   458
"/            f notNil ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   459
"/                model == allOfThem ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   460
"/                    models do:[:m | m value:f].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   461
"/                    labels do:[:l | l font:f]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   462
"/                ] ifFalse:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   463
"/                    model value:f.  
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   464
"/                    lbl font:f.
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
"/            ]
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   467
"/        ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   468
"/        model == allOfThem ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   469
"/            box addVerticalSpace
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
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   472
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   473
"/    box addAbortButton; addOkButton.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   474
"/    (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
   475
"/        action:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   476
"/            "/ fetch defaults
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   477
"/            View readStyleSheetAndUpdateAllStyleCaches.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   478
"/            labelDef value: Label defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   479
"/            buttonDef value: Button defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   480
"/            listDef value: SelectionInListView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   481
"/            menuDef value: MenuView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   482
"/            textDef value: TextView defaultFont.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   483
"/        ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   484
"/
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   485
"/    box open.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   486
"/    box accepted ifTrue:[
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   487
"/        Label defaultFont:labelDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   488
"/        Button defaultFont:buttonDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   489
"/        Toggle defaultFont:buttonDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   490
"/        SelectionInListView defaultFont:listDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   491
"/        MenuView defaultFont:menuDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   492
"/        PullDownMenu defaultFont:menuDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   493
"/        TextView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   494
"/        EditTextView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   495
"/        CodeView defaultFont:textDef value.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   496
"/    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   497
"/    box destroy.
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   498
"/    ^ box accepted
2005
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
    "Modified: / 15.9.1998 / 22:04:56 / cg"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   501
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   502
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   503
reopenLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   504
    "reopen a new launcher.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   505
     for now (since style & language settings currently do
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   506
     not affect living views ...)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   507
     WARNING: bad design: Message known in LauncherDialogs"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   508
2034
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   509
    |oldOrigin contents builder newLauncher|
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   510
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   511
    oldOrigin := self window origin.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   512
    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
   513
    builder := self class openAt:oldOrigin.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   514
    builder window waitUntilVisible.
2034
b3537f805381 force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents: 2021
diff changeset
   515
    builder window origin:oldOrigin.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   516
    newLauncher := builder application.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   517
    transcript notNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   518
        newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
   519
    ].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   520
    ^ newLauncher
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
    "Modified: / 4.8.1998 / 17:08:33 / cg"
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
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   525
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   526
!AbstractLauncherApplication methodsFor:'queries'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   527
3410
fd14c97c539a *** empty log message ***
penk
parents: 3408
diff changeset
   528
bugReporterAvailable
fd14c97c539a *** empty log message ***
penk
parents: 3408
diff changeset
   529
    ^ BugGUI notNil
fd14c97c539a *** empty log message ***
penk
parents: 3408
diff changeset
   530
!
fd14c97c539a *** empty log message ***
penk
parents: 3408
diff changeset
   531
3120
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   532
hasPDALauncher
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   533
    ^ PDALauncher notNil
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   534
!
564ee1530a8e startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents: 3100
diff changeset
   535
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   536
processName
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   537
    "for monitors only - my name"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   538
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   539
    ^ 'ST/X Launcher'
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   540
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   541
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   542
3575
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   543
remoteImageBrowserAvailable
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   544
    ^ SmalltalkShareClient notNil and:[RemoteImage notNil]
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   545
!
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   546
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   547
transcript
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   548
    "my transcript"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   549
3079
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   550
    transcript isNil ifTrue:[
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   551
        ^ Transcript current
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   552
    ].
9e8b81438edb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3078
diff changeset
   553
    ^ transcript 
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   554
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   555
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   556
!AbstractLauncherApplication methodsFor:'startup / release'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   557
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   558
addTopViewsToCurrentProject
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   559
    "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
   560
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   561
    ^ self
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   562
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   563
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   564
2314
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   565
closeDownViews
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   566
    OpenLaunchers remove:self ifAbsent:nil.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   567
    super closeDownViews
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
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   570
postBuildWith:aBuilder
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   571
    super postBuildWith:aBuilder.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   572
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   573
    OpenLaunchers isNil ifTrue:[
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   574
        OpenLaunchers := IdentitySet new.
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   575
    ].
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   576
    OpenLaunchers add:self
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   577
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   578
!
7ac730bdb664 OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents: 2311
diff changeset
   579
2040
06dd0e21aae0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2038
diff changeset
   580
requestForWindowClose
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   581
    "close request from windowing system (window close);
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   582
     confirm and ask if closing of launcher only or
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   583
     a smalltalk-exit is wanted"
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
    |answer|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   586
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   587
    answer := Dialog 
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   588
                confirmWithCancel:(resources string:'Close %1 only or exit Smalltalk (close all)?' with:self class name)
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   589
                labels:(resources array:#('Cancel' 'Close' 'Exit'))
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   590
                default:3.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   591
    answer isNil ifTrue:[
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   592
        "/ cancel
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   593
        ^ false
2005
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
2165
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   596
    answer == false ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   597
        ^ true
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   598
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   599
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   600
    self exit
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   601
2160
028c1d5740e5 exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents: 2149
diff changeset
   602
    "Modified: / 20.5.1999 / 17:24:47 / cg"
2005
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
saveAndTerminateRequest
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   606
    "some windowManagers can send this, to shutDown an application
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   607
     but let it save its state before, for later restart. 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   608
     Although I have not yet encountered such a windowManager,
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   609
     we are already prepared for this ;-)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   610
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   611
    self snapshot.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   612
    super saveAndTerminateRequest
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   613
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   614
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   615
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
!AbstractLauncherApplication methodsFor:'user actions - about'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
openLicenseConditions
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    "open an HTML browser on the 'LICENCE' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   622
	|lang doc|
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
	Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   625
	    doc := 'english/LICENCE_DEMO_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   626
	] ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   627
	    ((lang := Smalltalk language) = 'de'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   628
	    or:[lang = 'german']) ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   629
		doc := 'german/LICENCE_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   630
	    ] ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   631
		doc := 'english/LICENCE_STX.html'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   632
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   633
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   634
	doc := resources at:'LICENCEFILE' default:doc.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   635
	self showDocumentation:('../' , doc)
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
    ]
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
    "Created: / 5.2.1998 / 21:43:19 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
    "Modified: / 23.4.1998 / 11:45:53 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   642
!AbstractLauncherApplication methodsFor:'user actions - classes'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   643
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   644
browseAllBreakAndTracePoints
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   645
    "open a browser showing all breakPointed/traced methods
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   646
     (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
   647
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   648
    UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   649
        browseMethods:(WrappedMethod allInstances)
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   650
        title:'all breakPointed/traced methods'
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   651
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   652
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   653
browseImplementors
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   654
    "open an implementors- browser after asking for a selector"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   655
3369
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   656
    |selector|
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   657
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   658
    selector := Dialog 
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   659
                    requestSelector:(resources at:'Browse implementors of (Tab for completion):') 
3442
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   660
                    okLabel:(resources at:'Browse')
3369
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   661
                    initialAnswer:''.
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   662
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   663
    selector size > 0 ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   664
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   665
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   666
                browseImplementorsOf:selector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   667
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   668
    ].
3442
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   669
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   670
    "Modified: / 17.11.2001 / 16:33:28 / cg"
2005
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
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   673
browseResources
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   674
    "open a resource- browser after asking for a resource string"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   675
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   676
    |box resourceHolder valueHolder component rsrc value t anyString|
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
    anyString := resources string:'* any *'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   679
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   680
    resourceHolder := ValueHolder newString.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   681
    valueHolder := '*' asValue.
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
    box := DialogBox new.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   684
    box label:(resources at:'Resource search:').
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   685
    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
   686
    component adjust:#left.
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
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   689
    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
   690
    component adjust:#left.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   691
    component :=  box addComboBoxOn:resourceHolder tabable:true.
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
   692
    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
   693
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   694
    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
   695
    component adjust:#left.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   696
    box addInputFieldOn:valueHolder tabable:true.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   697
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   698
    box addVerticalSpace:10.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   699
    box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
   700
    box addAbortAndOkButtons.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   701
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   702
    box open.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   703
    box destroy.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   704
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   705
    box accepted ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   706
        rsrc := resourceHolder value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   707
        value := valueHolder value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   708
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   709
        (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
   710
            t := 'methods with any resource'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   711
            rsrc := nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   712
        ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   713
            t := 'methods with #' , rsrc , '-resource'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   714
            rsrc := rsrc withoutSeparators asSymbol
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   715
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   716
        (value size == 0 or:[value = '*']) ifTrue:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   717
            t := t , ' and any value'.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   718
            value := nil
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   719
        ] ifFalse:[
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   720
            t := t , ' and value ' , value.
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   721
        ].
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   722
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   723
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   724
                browseForResource:rsrc
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   725
                containing:value
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   726
                in:(Smalltalk allClasses)
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   727
                title:t
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   728
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   729
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   730
!
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
browseSenders
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   733
    "open a senders- browser after asking for a selector"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   734
3369
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   735
    |selector|
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   736
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   737
    selector := Dialog 
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   738
                    requestSelector:(resources at:'Browse senders of (Tab for completion):') 
3442
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   739
                    okLabel:(resources at:'Browse')
3369
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   740
                    initialAnswer:''.
ac3ce702451c senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents: 3362
diff changeset
   741
    selector size > 0 ifTrue:[
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   742
        self withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   743
            UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   744
                browseAllCallsOn:selector
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   745
        ]  
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   746
    ].
3442
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   747
38a5ec1d3add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3423
diff changeset
   748
    "Modified: / 17.11.2001 / 16:33:42 / cg"
2005
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
browseUndeclared
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   752
    "open a browser on methods refering to undeclared variables"
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 withWaitCursorDo:[
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   755
        UserPreferences systemBrowserClass
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   756
            browseReferendsOf:(Smalltalk underclaredPrefix , '*')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   757
            title:(resources string:'references to undeclared variables')
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
   758
            warnIfNone:true
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   759
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   760
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   761
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   762
removeAllBreakAndTracePoints
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   763
    "remove all break- and trace points"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   764
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   765
    self withCursor:Cursor execute do:[ MessageTracer cleanup]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   766
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   767
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   768
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   769
startClassBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   770
    "open a classBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   771
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   772
    UserPreferences systemBrowserClass askThenBrowseClass
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   773
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   774
3100
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   775
startClassBrowserOnChangedClasses
2854
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   776
    "open a classBrowser on the changeSet"
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   777
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   778
    NewSystemBrowser isNil ifTrue:[
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   779
        ^ self warn:'This needs the NewSystemBrowser to be loaded.'
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   780
    ].
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   781
    NewSystemBrowser openOnClassesInChangeSet
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   782
!
ac97ea47bb08 browse changed classes added
Claus Gittinger <cg@exept.de>
parents: 2845
diff changeset
   783
3100
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   784
startClassBrowserOnChangedMethods
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   785
    "open a classBrowser on the changeSet"
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
    NewSystemBrowser isNil ifTrue:[
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   788
        ^ self warn:'This needs the NewSystemBrowser to be loaded.'
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   789
    ].
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   790
    NewSystemBrowser openOnMethodsInChangeSet
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   791
!
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   792
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   793
startClassBrowserOnChanges
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   794
    "open a classBrowser on the changeSet"
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   795
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   796
    ^ self startClassBrowserOnChangedClasses
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   797
!
8867c882329c added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents: 3079
diff changeset
   798
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   799
startClassHierarchyBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   800
    "open a classHierarchyBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   801
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   802
    UserPreferences systemBrowserClass askThenBrowseClassHierarchy
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   803
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   804
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   805
startFullClassBrowser
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   806
    "open a fullClass systemBrowser; asks for class"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   807
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
   808
    UserPreferences systemBrowserClass askThenBrowseFullClassProtocol
3575
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   809
!
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   810
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   811
startRemoteImageBrowser
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   812
    "open a remoteImage browser; asks for hostname.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   813
     The remote host must have an st/x running with remote browsing enabled.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   814
     Sorry, for now, only the old browser can be used this way."
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   815
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   816
    |hostName|
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   817
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   818
    hostName := Dialog request:'Remote Host:'.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   819
    SystemBrowser openOnRemoteImageOnHost:hostName port:nil.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   820
!
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   821
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   822
startSnapshotImageBrowser
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   823
    "open a snapshotImage browser; asks for filename.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   824
     Sorry, for now, only the old browser can be used this way."
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   825
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   826
    |imageFileName|
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   827
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   828
    imageFileName := Dialog requestFileName:'Name of Snapshot Image File:' default:'st.img' pattern:'*.img;*.sav'.
c35b9ba0092c snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents: 3572
diff changeset
   829
    SystemBrowser openOnSnapShotImage:imageFileName
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   830
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
   831
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   832
!AbstractLauncherApplication methodsFor:'user actions - demos'!
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   833
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   834
startPDALauncher
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   835
    self startRemoteLauncherWithSetup:[:newDisplay | newDisplay bePDA].
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   836
!
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   837
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   838
startRemoteLauncher
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   839
    self startRemoteLauncherWithSetup:[:newDisplay | ].
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   840
!
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   841
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   842
startRemoteLauncherWithSetup:aSetupBlock
2754
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   843
    |host remoteDisplay remoteDisplayClass|
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   844
2620
fe33eeb9d2ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2609
diff changeset
   845
    host := Dialog 
fe33eeb9d2ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2609
diff changeset
   846
                request:(resources string:'Remote Launcher on which display:')
3215
5782487c2f48 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3180
diff changeset
   847
                initialAnswer:'{hostName}:0'
5782487c2f48 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3180
diff changeset
   848
                initialSelection:(1 to:10).
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   849
    host size > 0 ifTrue:[
2359
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   850
        (host includes:$:) ifFalse:[
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   851
            host := (host , ':0')
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   852
        ].
2754
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   853
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   854
        remoteDisplayClass := XWorkstation.
565abad0ef64 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2737
diff changeset
   855
2755
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   856
"/        "/ 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
   857
"/        "/ (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
   858
"/        "/ 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
   859
"/
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   860
"/        "/ 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
   861
"/        (Screen current supportsGLDrawing 
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   862
"/        and:[Screen current isTrueGL not])
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   863
"/        ifTrue:[
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   864
"/            remoteDisplayClass := GLXWorkstation.
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   865
"/        ].
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   866
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
   867
        [
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
   868
            remoteDisplay := remoteDisplayClass newDispatchingFor:host.
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
   869
        ] on:Screen deviceOpenErrorSignal do:[:ex|
2359
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   870
            self warn:'Could not connect to display: ''' , host , '''.'.
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   871
            ^ self
7432181f17a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2331
diff changeset
   872
        ].
3035
55824593b14c some more pda support
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
   873
        aSetupBlock value:remoteDisplay.
2755
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   874
        Screen currentScreenQuerySignal 
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   875
            answer:remoteDisplay
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   876
            do:[
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   877
                self class open.
48769b1546d8 use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents: 2754
diff changeset
   878
            ]
2038
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   879
    ].
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   880
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   881
    "Created: / 10.9.1998 / 11:48:42 / cg"
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   882
! !
2f58a17935b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2037
diff changeset
   883
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
!AbstractLauncherApplication methodsFor:'user actions - file'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
objectModuleDialog
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
    "opens a moduleInfo dialog"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    ^ LauncherDialogs objectModuleDialogFor:self
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
    "Modified: / 31.7.1998 / 17:33:24 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   894
packageDialog
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   895
    "opens a package dialog"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   896
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   897
    ^ LauncherDialogs packageDialogFor:self
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   898
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   899
    "Modified: / 31.7.1998 / 17:33:24 / cg"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   900
!
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
   901
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
saveImageAs: aFileName
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
    "save image in aFilename"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
    aFileName notNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   906
        self withCursor:Cursor write do:[
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   907
            (ObjectMemory snapShotOn:aFileName) ifFalse:[
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   908
                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
   909
            ]
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
   910
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
!AbstractLauncherApplication methodsFor:'user actions - help'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
showBookPrintDocument
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
    "open an HTML browser on the 'book'-printing document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
    self showDocumentation:'BOOK.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
startClassDocumentation
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
    "open an HTML browser on the 'classDoc/TOP' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
    self showDocumentation:'classDoc/TOP.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
startDocumentationIndex
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
    "open an HTML browser on the 'index' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
    self showDocumentation:'index.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
startDocumentationTool
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
    "open an HTML browser on the 'TOP' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
    self showDocumentation:'TOP.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
startWhatsNewDocumentation
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
    "open an HTML browser on the 'whatsNew.html' document"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
    self showDocumentation:'whatsNew.html'
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
2296
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   947
!
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   948
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   949
startWhatsNewSTX
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   950
    "open an HTML browser on the 'relNotes.html' document"
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   951
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   952
    self showDocumentation:'newFeatures.html'
cb2a81a506ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   953
2001
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
!AbstractLauncherApplication methodsFor:'user actions - settings'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   958
communicationsSettings
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   959
    "open a dialog on misc other settings"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   960
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   961
    self settingsDialog:#communicationsSettingsFor:
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   962
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   963
    "Modified: / 31.7.1998 / 22:46:56 / cg"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   964
!
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
   965
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
compilerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
    "open a dialog on compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
    self settingsDialog:#compilerSettingsFor:
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
displaySettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    "open a dialog on display 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:#displaySettingsFor:
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:38 / 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
editSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
    "open a dialog on edit 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:#editSettingsFor:
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:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
    "Created: / 6.1.1999 / 14:14:48 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
fontSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
    "open a dialog on font related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    self settingsDialog:#fontSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
    "Modified: / 31.7.1998 / 22:45:44 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
javaSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   998
    "open a dialog on java-subsystem related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
    self settingsDialog:#javaSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
    "Modified: / 31.7.1998 / 22:46:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1003
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
keyboardSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
    "open a dialog on keyboard related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
    self settingsDialog:#keyboardSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    "Modified: / 31.7.1998 / 22:45:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
languageSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
    "open a dialog on language related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
    self settingsDialog:#languageSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
    "Modified: / 31.7.1998 / 22:46:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
loadSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
    "restore settings from a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
     which can be saved/restored with a single store/read."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
    |fileName|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
    fileName := Dialog 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1030
	requestFileName:(resources string:'load settings from:') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1031
	default:'settings.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1032
	ok:(resources string:'load') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1033
	abort:(resources string:'cancel') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1034
	pattern:'*.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1035
	fromDirectory:nil.
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  1036
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  1037
    (fileName size == 0) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1038
	"/ canceled
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1039
	^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1041
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1043
	Smalltalk fileIn:fileName.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1044
	self reOpen
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1045
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
memorySettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
    "open a dialog on objectMemory related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
    self settingsDialog:#memorySettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
    "Modified: / 31.7.1998 / 22:46:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
messageSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
    "open a dialog on infoMessage related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
    self settingsDialog:#messageSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
    "Modified: / 31.7.1998 / 22:46:45 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
miscSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
    self settingsDialog:#miscSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
    "Modified: / 31.7.1998 / 22:46:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
2993
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1074
mouseSettings
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1075
    "open a dialog on display related settings"
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1076
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1077
    self settingsDialog:#mouseSettingsFor:
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1078
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1079
    "Modified: / 31.7.1998 / 22:45:38 / cg"
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1080
!
f20b48702fc0 Add MouseSettings dialog.
Stefan Vogel <sv@exept.de>
parents: 2977
diff changeset
  1081
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
printerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
    "open a dialog on printer related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
    self settingsDialog:#printerSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1086
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
    "Modified: / 31.7.1998 / 22:47:05 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
saveSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
    "save settings to a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
    self settingsDialog:#saveSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
    "Modified: / 31.7.1998 / 22:48:38 / 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
settingsDialog:symbol 
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
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1101
    |handler|
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1102
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1103
    RegisteredMenuHandlers notNil ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1104
        handler := RegisteredMenuHandlers at:symbol ifAbsent:nil.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1105
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1106
    handler isNil ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1107
        handler := LauncherDialogs
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1108
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1109
    handler perform:symbol with:self.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
    "Modified: / 31.7.1998 / 22:47:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
sourceAndDebuggerSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
    self settingsDialog:#sourceAndDebuggerSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
    "Modified: / 31.7.1998 / 22:47:21 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
toolSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1123
    "open a dialog on tool settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
    self settingsDialog:#toolSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
    "Modified: / 31.7.1998 / 22:46:56 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
    "Created: / 13.10.1998 / 15:50:53 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
viewStyleSetting 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
    "open a dialog on viewStyle related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
    self settingsDialog:#viewStyleSettingsFor:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
    "Modified: / 31.7.1998 / 22:47:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1139
!AbstractLauncherApplication methodsFor:'user actions - system'!
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
compressingGarbageCollect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1142
    "perform a compressing garbageCollect"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1143
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1144
    self withWaitCursorDo:[ObjectMemory verboseGarbageCollect]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1145
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1146
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1147
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1148
garbageCollect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1149
    "perform a non-compressing garbageCollect"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1150
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1151
    self withWaitCursorDo:[ObjectMemory reclaimSymbols]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1152
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1153
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1154
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1155
startStopEventTrace
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1156
    "start/stop event tracing for a particular view"
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
    |v wg|
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
    v := Screen current viewFromUser.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1161
    v notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1162
	v := v topView.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1163
	wg := v windowGroup.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1164
	wg notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1165
	    "/
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1166
	    "/ toggle eventTrace in its windowGroup
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1167
	    "/
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1168
	    wg traceEvents:(wg preEventHook isNil)
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1169
	]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1170
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1171
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1172
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1173
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1174
!AbstractLauncherApplication methodsFor:'user actions - tools'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1175
2210
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1176
inspectGlobalVariables
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1177
    "inspect globals"
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1178
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1179
    Smalltalk inspect
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1180
!
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1181
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1182
inspectWorkspaceVariables
2210
efe47610b7ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
  1183
    "inspect workspace variables"
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1184
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1185
    Workspace workspaceVariables inspect
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1186
!
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1187
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1188
newProject 
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1189
    "creates a new project & opens a projectView for it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1190
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1191
    Project notNil ifTrue: [(ProjectView for: Project new) open]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1192
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1193
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1194
openTerminal
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1195
    self openApplication:#VT100TerminalView 
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1196
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1197
    "Created: / 27.7.1998 / 12:48:30 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1198
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1199
3158
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1200
openWorkspace
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1201
    WorkspaceApplication notNil ifTrue:[
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1202
        ^ WorkspaceApplication open
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1203
    ].
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1204
    ^ self openApplication:Workspace
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1205
!
70963eea944a new workspace
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
  1206
2207
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1207
removeAllWorkspaceVariables
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1208
    "remove workspace variables"
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1209
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1210
    Workspace removeAllWorkspaceVariables
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1211
!
84d23e553268 support for workspace variables
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
  1212
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1213
selectProject
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1214
    "asks for and switch to another project"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1215
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1216
    |list box|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1217
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1218
    Project notNil ifTrue:[
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1219
        list := Project allInstances.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1220
        box := ListSelectionBox new.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1221
        box list:(list collect:[:p | p name]).
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1222
        box title:(resources string:'select a project').
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1223
        box action:[:selection |
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1224
            |project|
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1225
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1226
            project := list detect:[:p | p name = selection] ifNone:[nil].
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1227
            project isNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1228
                transcript notNil ifTrue:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1229
                    transcript showCR:'no such project.'
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1230
                ]
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1231
            ] ifFalse:[
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1232
                project showViews.
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1233
                Project current:project
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1234
            ]
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1235
        ].
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
  1236
        box open.
2458
3c273283bb84 care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents: 2457
diff changeset
  1237
        box destroy
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1238
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1239
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1240
3408
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1241
startBugMessages
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1242
    "open the SUnit test runner"
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1243
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1244
    self openApplication:#BugGUI
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1245
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1246
    "Modified: / 17.10.1998 / 14:38:18 / cg"
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1247
!
12215beef308 new Icon in NewLauncher for Bug messages
penk
parents: 3401
diff changeset
  1248
3362
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1249
startChangeSetBrowser
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1250
    "open a change Set Browser"
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1251
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1252
    ChangeSetBrowser open
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1253
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1254
    "Created: / 5.11.2001 / 18:04:05 / cg"
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1255
!
e02cc20dd18f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3326
diff changeset
  1256
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1257
startChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1258
    "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
  1259
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1260
    self openApplication:(UserPreferences current changesBrowserClass)
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1261
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1262
    "Modified: / 17.10.1998 / 14:38:18 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1263
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1264
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1265
startNewChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1266
    "opens the new changeBrowser"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1267
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1268
    self openApplication:#NewChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1269
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1270
    "Created: / 6.6.1998 / 19:47:26 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1271
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1272
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1273
startNewLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1274
    "opens the new launcher"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1275
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1276
    NewLauncher isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1277
	^ 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
  1278
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1279
    NewLauncher openAt:(self window origin)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1280
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
2111
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1283
startOldChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1284
    "opens the old changeBrowser"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1285
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1286
    self openApplication:#ChangesBrowser
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1287
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1288
    "Created: / 6.6.1998 / 19:47:26 / cg"
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1289
!
b36bdfb0af38 moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
  1290
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1291
startOldLauncher
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1292
    "opens the old launcher"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1293
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1294
    Launcher isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1295
	^ 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
  1296
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1297
    Launcher openAt:(self window origin)
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1298
2883
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1299
!
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1300
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1301
startSUnitTestRunner
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1302
    "open the SUnit test runner"
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1303
3037
0d452d54bf04 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3035
diff changeset
  1304
    self openApplication:#TestRunner
2883
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1305
bd88b8b95b29 SUNit stuff added
Claus Gittinger <cg@exept.de>
parents: 2866
diff changeset
  1306
    "Modified: / 17.10.1998 / 14:38:18 / cg"
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1307
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1308
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1309
!AbstractLauncherApplication methodsFor:'user actions - windows'!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1310
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1311
askForAnotherDisplay
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1312
    "ask for some other display"
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1313
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1314
    |displayName|
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1315
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1316
    displayName := Dialog request:'Display:' initialAnswer:(Screen default displayName).
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1317
    displayName size == 0 ifTrue:[^ nil].
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1318
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1319
    ^ XWorkstation newDispatchingFor:displayName.
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1320
!
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1321
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1322
deIconifyAllWindows
2144
48df3bc4d44c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2111
diff changeset
  1323
    |setOfViews currentScreen|
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1324
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1325
    setOfViews := Project current views asIdentitySet.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1326
    setOfViews addAll:(Project defaultProject views).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1327
2144
48df3bc4d44c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2111
diff changeset
  1328
    currentScreen := Screen current.
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1329
    setOfViews do:[:aTopView |
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1330
	aTopView device == currentScreen ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1331
	    aTopView expand
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1332
	].
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1333
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1334
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1335
    "
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1336
     Transcript topView application deIconifyAllWindows
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1337
    "
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1338
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1339
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1340
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1341
findAndDestroyWindow
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1342
    "find a window (by name) and destroy it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1343
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1344
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1345
    v := self findWindow:'select view to close:'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1346
    v notNil ifTrue:[v destroy]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1347
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1348
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1349
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1350
findAndMigrateWindow
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1351
    "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
  1352
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1353
    |possibleGroups v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1354
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1355
    possibleGroups := WindowGroup allInstances select:[:eachGroup |
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
  1356
                                        eachGroup graphicsDevice == Screen current
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1357
                                        and:[eachGroup isModal not
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1358
                                        and:[eachGroup topViews size > 0]]].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1359
    possibleGroups size == 0 ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1360
        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
  1361
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1362
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1363
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1364
    v := self findWindow:'Select view to migrate:' windowGroupFilter:possibleGroups.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1365
    v notNil ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1366
        self migrateWindow:v topView
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1367
    ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1368
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1369
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1370
findAndMigrateWindowBack
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1371
    "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
  1372
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1373
    |possibleGroups v|
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1374
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1375
    possibleGroups := WindowGroup allInstances select:[:eachGroup |
3014
cb531619c185 Don't use obsolete methods.
Stefan Vogel <sv@exept.de>
parents: 3003
diff changeset
  1376
                                        eachGroup graphicsDevice ~~ Screen current
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1377
                                        and:[eachGroup isModal not
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1378
                                        and:[eachGroup topViews size > 0]]].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1379
    possibleGroups size == 0 ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1380
        self information:'No windows are open on any other display.'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1381
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1382
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1383
        
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1384
    v := self findWindow:'Select view to migrate back:' windowGroupFilter:possibleGroups.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1385
    v notNil ifTrue:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1386
        v windowGroup migrateTo:(Screen current)
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1387
    ]
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1388
!
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1389
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1390
findAndRaiseWindow
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1391
    "find a window (by name) and raise it"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1392
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1393
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1394
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1395
    v := self findWindow:'select view to raise deiconified:'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1396
    v notNil ifTrue:[v raiseDeiconified]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1397
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1398
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1399
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1400
fullScreenHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1401
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1402
     save the contents of the whole screen."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1403
3326
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1404
    self window sensor ctrlDown ifTrue:[
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1405
        ^ self fullScreenHardcopyUngrabbed
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1406
    ].
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1407
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1408
    Processor 
3326
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1409
        addTimedBlock:[
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1410
                        self 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1411
                            saveScreenImage:(Image fromScreen) 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1412
                            defaultName:'screen'
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1413
                      ] 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1414
        afterSeconds:(self window sensor shiftDown ifTrue:5 ifFalse:1)
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1415
!
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1416
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1417
fullScreenHardcopyUngrabbed
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1418
    "after a second (to allow redraw of views under menu ...),
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1419
     save the contents of the whole screen."
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1420
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1421
    Processor 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1422
        addTimedBlock:[
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1423
                        |display image|
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1424
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1425
                        display := Screen current.
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1426
                        image := Image 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1427
                            fromScreen:(0@0 corner:(display extent))
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1428
                            on:display
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1429
                            grab:false.
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1430
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1431
                        self 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1432
                            saveScreenImage:image 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1433
                            defaultName:'screen'
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1434
                      ] 
d6713cc88cde grab screen (shift/ctrl key behavior)
james
parents: 3325
diff changeset
  1435
        afterSeconds:(self window sensor shiftDown ifTrue:5 ifFalse:1)
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1436
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1437
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1438
iconifyAllWindows
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1439
    |setOfViews currentScreen|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1440
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1441
    setOfViews := Project current views asIdentitySet.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1442
    setOfViews addAll:(Project defaultProject views).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1443
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1444
    currentScreen := Screen current.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1445
    setOfViews do:[:aTopView |
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1446
	aTopView device == currentScreen ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1447
	    aTopView collapse
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1448
	]
2005
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
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
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1453
migrateAllWindows
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1454
    "migrate all views to some other display"
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1455
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1456
    |anotherDisplay toMigrate|
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1457
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1458
    [
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1459
        anotherDisplay := self askForAnotherDisplay.
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1460
        anotherDisplay isNil ifTrue:[
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1461
            ^ self.
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1462
        ].
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1463
    ] on:Screen deviceOpenErrorSignal do:[:ex|
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1464
        ^ self warn:'cannot open display: ', ex parameter.
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1465
    ].
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1466
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1467
    toMigrate := WindowGroup allInstances 
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1468
        select:[:each | each graphicsDevice == Screen current
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1469
                        and:[each topViews size > 0
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1470
                        and:[each isModal not]]
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1471
               ].
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1472
    toMigrate do:[:eachGroup |
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1473
        eachGroup migrateTo:anotherDisplay
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1474
    ]
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1475
!
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1476
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1477
migrateWindow:aWindow
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1478
    "migrate a view to some other display"
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1479
2778
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1480
    aWindow windowGroup isModal ifTrue:[
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1481
        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
  1482
        ^ self
1e4bf8bf1d37 block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1483
    ].
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1484
    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
  1485
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1486
!
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1487
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1488
migrateWindow:aWindow withBackOption:withBackOption
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1489
    "migrate a view to some other display"
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1490
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1491
    |anotherDisplay wg here b|
2765
c85460a22ba8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2763
diff changeset
  1492
2766
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1493
    aWindow isTopView ifFalse:[
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1494
        self information:'Cannto migrate this view'.
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1495
        ^ self
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1496
    ].
b8f839bdb66a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2765
diff changeset
  1497
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1498
    [
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1499
        anotherDisplay := self askForAnotherDisplay.
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1500
        anotherDisplay isNil ifTrue:[
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1501
            ^ self.
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1502
        ].
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1503
    ] on:Screen deviceOpenErrorSignal do:[:ex|
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  1504
        ^ self warn:'cannot open display: ', ex parameter.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1505
    ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1506
2775
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1507
    wg := aWindow windowGroup.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1508
    wg migrateTo:anotherDisplay.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1509
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1510
    withBackOption ifTrue:[
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1511
        here := Screen current.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1512
        b := Button onDevice:anotherDisplay.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1513
        b label:'Return window back to ' , here displayName.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1514
        b action:[ wg migrateTo:here. b destroy. ].
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1515
        b origin:0@0.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1516
        b open.
f780a7d651e5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2766
diff changeset
  1517
    ].
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1518
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1519
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1520
screenHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1521
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1522
     let user specify a rectangular area on the screen
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1523
     and save its contents."
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
    |area|
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
    Processor 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1528
	addTimedBlock:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1529
			[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1530
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1531
			area := Rectangle fromUser.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1532
			(area width > 0 and:[area height > 0]) ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1533
			    self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1534
			]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1535
		      ] 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1536
	afterSeconds:1
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1537
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1538
    "Modified: / 18.8.1998 / 15:00:42 / cg"
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
startWindowTreeView
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1542
    "open a windowTree (on a picked topView)"
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1543
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1544
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1545
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1546
    WindowTreeView isNil ifTrue:[
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1547
        ^ 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
  1548
    ].
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
    v := self pickAView.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1551
    v notNil ifTrue:[
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1552
        WindowTreeView openOn:v topView
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1553
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1554
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1555
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1556
2371
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1557
startWindowTreeViewForAll
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1558
    "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
  1559
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1560
    |v|
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1561
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1562
    WindowTreeView isNil ifTrue:[
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1563
        ^ 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
  1564
    ].
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1565
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1566
    WindowTreeView openOnAll
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1567
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1568
!
7ce8ba08aca1 added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
  1569
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1570
viewDestroy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1571
    "let user pick a view and destroy it.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1572
     Even allow destroying non-smalltalk views
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1573
     (also for views which I forgot due to some error)"
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1574
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1575
    |device v id i c|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1576
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1577
    (Delay forSeconds:1) wait.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1578
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1579
    device := Screen current.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1580
    i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'.
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1581
    i isNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1582
	c := Cursor crossHair
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1583
    ] ifFalse:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1584
	c := Cursor fromImage:i
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1585
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1586
    id := device viewIdFromPoint:(device pointFromUserShowing:c).
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1587
    (v := device viewFromId:id) notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1588
	v topView destroy.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1589
	^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1590
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1591
    id = device rootView id ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1592
	^ self
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1593
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1594
    (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
  1595
    ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1596
	device destroyView:nil withId:id
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1597
    ].
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1598
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1599
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1600
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1601
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1602
viewHardcopy
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1603
    "after a second (to allow redraw of views under menu ...),
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1604
     let user specify a view and save its contents."
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1605
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1606
    Processor 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1607
	addTimedBlock:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1608
			|v|
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1609
			(v := Screen current viewFromUser) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1610
			    self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1611
			]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1612
		      ] 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1613
	afterSeconds:1
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1614
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1615
!
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1616
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1617
viewInspect
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1618
    "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
  1619
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1620
    |v|
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1621
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1622
    (v := self pickAView) notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  1623
	v inspect
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1624
    ]
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1625
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1626
!
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1627
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1628
viewMigrate
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1629
    "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
  1630
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1631
    |v|
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1632
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1633
    (v := self pickAView) notNil ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1634
        self migrateWindow:v topView
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1635
    ]
2005
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1636
! !
c227faa4616b more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  1637
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1638
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1639
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1640
communicationsSettingsFor:requestor
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1641
    "open a dialog on communications settings"
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1642
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1643
    |box check in resources y acceptChannel
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1644
     hasRDoitServer rDoitServerPort
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1645
     rDoitsEnabled rDoitLogging rDoitErrorLogging rDoitErrorDebugging 
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1646
     org_rDoitsEnabled org_rDoitLogging org_rDoitErrorLogging org_rDoitErrorDebugging org_rDoitServerPort
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1647
3572
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1648
     hasRemoteBrowsingSupport remoteBrowsingEnabled org_remoteBrowsingEnabled
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1649
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1650
     hasWindowMigrationServer windowMigrationAuthenticate windowMigrationPassword
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1651
     windowMigrationEnabled  
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1652
     org_windowMigrationEnabled org_windowMigrationAuthenticate org_windowMigrationPassword
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1653
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1654
     hasHTTPServer httpServerRunning httpServerFileRoot httpServerHomeURL
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1655
     httpServerPort httpServerLogFile hasSwiki swikiEnabled swikiRoot
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1656
     allowEmbedded
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1657
     org_httpServerRunning org_httpServerFileRoot org_httpServerHomeURL
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1658
     org_httpServerPort org_swikiRoot org_swikiEnabled org_httpServerLogFile
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1659
     org_allowEmbedded
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1660
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1661
     osiACSEPresent osiROSEPresent osiCMISEPresent
2199
a5d89d6fc80b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2198
diff changeset
  1662
     osiACSEErrorLogging osiACSEConnectionLogging osiACSEDataLogging
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1663
     osiROSEErrorLogging osiROSEResponseLogging osiROSEInvokationLogging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1664
     osiCMISEErrorLogging osiCMISEMessageLogging
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1665
    |
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1666
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1667
    acceptChannel := false asValue.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1668
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1669
    resources := requestor class classResources.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1670
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1671
    "/ 
3572
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1672
    "/ extract relevant remoteBrowsing settings ...
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1673
    "/
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1674
    remoteBrowsingEnabled := false.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1675
    (hasRemoteBrowsingSupport := SmalltalkShareServer notNil) ifTrue:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1676
        SmalltalkShareServer isLoaded ifTrue:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1677
            remoteBrowsingEnabled := SmalltalkShareServer serverRunning.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1678
        ].
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1679
    ].
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1680
    org_remoteBrowsingEnabled := remoteBrowsingEnabled.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1681
    remoteBrowsingEnabled := remoteBrowsingEnabled asValue.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1682
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1683
    "/ 
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1684
    "/ extract relevant windowMigration settings ...
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1685
    "/
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1686
    windowMigrationEnabled := windowMigrationAuthenticate := false.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1687
    (hasWindowMigrationServer := WindowMigrationServer notNil) ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1688
        WindowMigrationServer isLoaded ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1689
            windowMigrationEnabled := WindowMigrationServer serverRunning.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1690
        ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1691
        windowMigrationPassword := WindowMigrationServer password.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1692
        windowMigrationAuthenticate := windowMigrationPassword notNil.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1693
    ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1694
    org_windowMigrationEnabled := windowMigrationEnabled.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1695
    windowMigrationEnabled := windowMigrationEnabled asValue.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1696
    org_windowMigrationAuthenticate := windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1697
    windowMigrationAuthenticate := windowMigrationAuthenticate asValue.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1698
    org_windowMigrationPassword := windowMigrationPassword.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1699
    windowMigrationPassword := windowMigrationPassword asValue.
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1700
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1701
    "/ 
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1702
    "/ extract relevant rdoit settings ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1703
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1704
    rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1705
    (hasRDoitServer := RDoItServer notNil) ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1706
        RDoItServer isLoaded ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1707
            rDoitsEnabled := RDoItServer serverRunning.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1708
            rDoitLogging := RDoItServer isLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1709
            rDoitErrorLogging := RDoItServer isErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1710
            rDoitErrorDebugging := RDoItServer isErrorCatching not.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1711
            rDoitServerPort := RDoItServer defaultPortNumber.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1712
        ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1713
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1714
    org_rDoitsEnabled := rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1715
    org_rDoitLogging := rDoitLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1716
    org_rDoitErrorLogging := rDoitErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1717
    org_rDoitErrorDebugging := rDoitErrorDebugging.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1718
    org_rDoitServerPort := rDoitServerPort.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1719
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1720
    rDoitServerPort := rDoitServerPort asValue.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1721
    rDoitsEnabled := rDoitsEnabled asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1722
    rDoitLogging := rDoitLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1723
    rDoitErrorLogging := rDoitErrorLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1724
    rDoitErrorDebugging := rDoitErrorDebugging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1725
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1726
    "/
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1727
    "/ extract http-server settings
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1728
    "/
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1729
    hasHTTPServer := httpServerRunning := false.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1730
    (hasHTTPServer := HTTPServer notNil) ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1731
        HTTPServer isLoaded ifTrue:[
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1732
            httpServerRunning := HTTPServer isRunning.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1733
            httpServerFileRoot := HTTPServer fileRoot.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1734
            httpServerHomeURL := HTTPServer homeURL.
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1735
            httpServerPort := HTTPServer defaultPort.
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1736
            httpServerLogFile := HTTPServer defaultLogFile.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1737
        ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1738
    ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1739
    org_httpServerRunning := httpServerRunning.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1740
    httpServerRunning := httpServerRunning asValue.
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1741
    org_httpServerFileRoot := httpServerFileRoot.
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1742
    httpServerFileRoot := httpServerFileRoot asValue.
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  1743
    org_httpServerHomeURL := httpServerHomeURL.
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1744
    httpServerHomeURL := httpServerHomeURL asValue.
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1745
    org_httpServerPort := httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1746
    httpServerPort := httpServerPort asValue.
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1747
    org_httpServerLogFile := httpServerLogFile.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1748
    httpServerLogFile := httpServerLogFile asValue.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1749
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1750
    httpServerRunning 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  1751
        onChangeEvaluate:[
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1752
            httpServerFileRoot value:(HTTPServer fileRoot).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1753
            httpServerHomeURL value:(HTTPServer homeURL).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1754
            httpServerPort value:(HTTPServer defaultPort).
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1755
            httpServerLogFile value:(HTTPServer defaultLogFile)
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1756
        ].
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1757
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1758
    hasSwiki := false.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1759
    swikiEnabled := false.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1760
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1761
    (hasSwiki := PWS::SwikiAction notNil) ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1762
        PWS::SwikiAction isLoaded ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1763
            (HTTPServer notNil and:[HTTPServer isLoaded]) ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1764
                swikiEnabled := HTTPServer hasActionLinkFor:'myswiki'.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1765
                swikiRoot := PWS::SwikiAction serverDirectory.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1766
            ]
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1767
        ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1768
    ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1769
    org_swikiRoot := swikiRoot.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1770
    org_swikiEnabled := swikiEnabled.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1771
    swikiRoot := swikiRoot asValue.
2289
f11b1b928d2c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2288
diff changeset
  1772
    swikiEnabled := swikiEnabled asValue.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1773
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1774
    swikiEnabled
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  1775
        onChangeEvaluate:[
2306
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1776
            swikiRoot value:(PWS::SwikiAction serverDirectory).
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1777
        ].
8d8172bccbc7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2304
diff changeset
  1778
2561
6f19bef93a30 avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents: 2560
diff changeset
  1779
    allowEmbedded := HTTPServer isLoaded and:[HTTPServer enableEmbeddedSmalltalk].
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1780
    org_allowEmbedded := allowEmbedded.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1781
    allowEmbedded := allowEmbedded asValue.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1782
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1783
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1784
    "/ osi settings ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1785
    "/
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1786
    osiACSEPresent := OSI::ACSE notNil and:[OSI::ACSE isLoaded].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1787
    osiROSEPresent := OSI::ROSE notNil and:[OSI::ROSE isLoaded].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1788
    osiCMISEPresent := OSI::CMISE notNil and:[OSI::CMISE isLoaded].
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1789
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1790
    osiACSEPresent ifTrue:[
2204
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1791
        osiACSEErrorLogging := OSI::ACSE errorLogging asValue.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1792
        osiACSEConnectionLogging := OSI::ACSE connectionLogging asValue.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  1793
        osiACSEDataLogging :=  OSI::ACSE dataLogging asValue.
2196
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
    osiROSEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1796
        osiROSEErrorLogging := OSI::ROSE errorLogging asValue.
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  1797
        osiROSEInvokationLogging := OSI::ROSE invocationLogging asValue.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1798
        osiROSEResponseLogging :=  OSI::ROSE responseLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1799
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1800
    osiCMISEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1801
        osiCMISEErrorLogging := OSI::CMISE errorLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1802
        osiCMISEMessageLogging := OSI::CMISE messageLogging asValue.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1803
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1804
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1805
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1806
    "/ create a box on those values ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1807
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1808
    box := DialogBox new.
2809
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1809
    box label:(resources string:'Communication settings').
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1810
3572
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1811
    box addTextLabel:(resources string:'Remote browsing').
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1812
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1813
    check := box addCheckBox:(resources string:'Remote browsing enabled') on:remoteBrowsingEnabled.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1814
    hasRemoteBrowsingSupport ifFalse:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1815
        check disable
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1816
    ].
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1817
    box addHorizontalLine.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  1818
2809
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1819
    box addTextLabel:(resources string:'Window migration').
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1820
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1821
    check := box addCheckBox:(resources string:'Window migration enabled') on:windowMigrationEnabled.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1822
    hasWindowMigrationServer ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1823
        check disable
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1824
    ].
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1825
    check := box addCheckBox:(resources string:'Password check') on:windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1826
    check enableChannel:windowMigrationEnabled.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1827
    hasWindowMigrationServer ifFalse:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1828
        check disable
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1829
    ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1830
    box leftIndent:20.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1831
    in := box 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1832
            addLabelledInputField:(resources string:'Password:')
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1833
            adjust:#right
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1834
            on:nil 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1835
            tabable:true
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1836
            separateAtX:0.3.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1837
    in passwordCharacter:$*.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1838
    in model:windowMigrationPassword.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1839
    in acceptChannel:acceptChannel.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1840
    in enableChannel:windowMigrationAuthenticate.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1841
    box leftIndent:0.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  1842
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1843
    box addHorizontalLine.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  1844
2279
5ce7d23ec7ca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2278
diff changeset
  1845
    box addTextLabel:'RDoIt Server'.
5ce7d23ec7ca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2278
diff changeset
  1846
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1847
    check := box addCheckBox:(resources string:'Remote doits enabled') on:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1848
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1849
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1850
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1851
    box leftIndent:20.
3237
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1852
    rDoitsEnabled onChangeEvaluate:[ rDoitsEnabled value ifTrue:[
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1853
                                        rDoitServerPort value isNil ifTrue:[
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1854
                                            rDoitServerPort value:(RDoItServer defaultPortNumber).
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1855
                                        ]
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1856
                                     ]   
711fa349be33 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1857
                                   ].
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1858
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1859
    in := box 
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1860
            addLabelledInputField:(resources string:'Port:')
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1861
            adjust:#right
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1862
            on:nil 
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1863
            tabable:true
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1864
            separateAtX:0.3.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1865
    in converter:(PrintConverter new initForNumber).
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1866
    in model:rDoitServerPort.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1867
    in acceptChannel:acceptChannel.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1868
    in enableChannel:rDoitsEnabled.
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  1869
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1870
    y := box yPosition.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1871
    check := box addCheckBox:(resources string:'Log errors') on:rDoitErrorLogging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1872
    check width:0.4.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1873
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1874
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1875
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1876
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1877
    box yPosition:y.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1878
    check := box addCheckBox:(resources string:'Log requests') on:rDoitLogging.
2281
8c3aea30c82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2280
diff changeset
  1879
    check left:0.4; width:0.4.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1880
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1881
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1882
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1883
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1884
    check := box addCheckBox:(resources string:'Debug errors') on:rDoitErrorDebugging.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1885
    check width:0.4.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1886
    check enableChannel:rDoitsEnabled.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1887
    hasRDoitServer ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1888
        check disable
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1889
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1890
    box leftIndent:0.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1891
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1892
    box addHorizontalLine.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  1893
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1894
    box addTextLabel:'HTTP Server'.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1895
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1896
    check := box addCheckBox:(resources string:'Serving HTTP Requests') on:httpServerRunning.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1897
    hasHTTPServer ifFalse:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1898
        check disable
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1899
    ].
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1900
    box leftIndent:20.
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1901
    in := box 
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1902
            addLabelledInputField:(resources string:'Port:')
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1903
            adjust:#right
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1904
            on:nil 
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1905
            tabable:true
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1906
            separateAtX:0.3.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1907
    in converter:(PrintConverter new initForNumber).
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1908
    in model:httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1909
    in acceptChannel:acceptChannel.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1910
    in enableChannel:httpServerRunning.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1911
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1912
    in := box 
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1913
            addLabelledInputField:(resources string:'Log File:')
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1914
            adjust:#right
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1915
            on:httpServerLogFile 
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1916
            tabable:true
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1917
            separateAtX:0.3.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1918
    in acceptChannel:acceptChannel.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1919
    in enableChannel:httpServerRunning.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1920
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  1921
    in := box 
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1922
            addLabelledInputField:(resources string:'File Root:')
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1923
            adjust:#right
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1924
            on:httpServerFileRoot 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1925
            tabable:true
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1926
            separateAtX:0.3.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1927
    in acceptChannel:acceptChannel.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1928
    in enableChannel:httpServerRunning.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1929
2280
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1930
    in := box 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1931
            addLabelledInputField:(resources string:'Home URL:')
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1932
            adjust:#right
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1933
            on:httpServerHomeURL 
025a0856f94e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2279
diff changeset
  1934
            tabable:true
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1935
            separateAtX:0.3.
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  1936
    in acceptChannel:acceptChannel.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1937
    in enableChannel:httpServerRunning.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1938
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1939
    check := box addCheckBox:(resources string:'Swiki enabled') on:swikiEnabled.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1940
    hasHTTPServer ifFalse:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1941
        check disable
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1942
    ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1943
    check enableChannel:httpServerRunning.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1944
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  1945
"/    box leftIndent:40.
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1946
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1947
    in := box 
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1948
            addLabelledInputField:(resources string:'SwikiRoot:')
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1949
            adjust:#right
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1950
            on:swikiRoot 
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1951
            tabable:true
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1952
            separateAtX:0.3.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1953
    in acceptChannel:acceptChannel.
2307
6aa722a14c1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1954
    in enableChannel:(BlockValue forLogical:httpServerRunning and:swikiEnabled).
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1955
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1956
    check := box addCheckBox:(resources string:'Allow embedded ST applications') on:allowEmbedded.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1957
    hasHTTPServer ifFalse:[
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1958
        check disable
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1959
    ].
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1960
    check enableChannel:httpServerRunning.
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  1961
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  1962
    box leftIndent:0.
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1963
    box addHorizontalLine.
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  1964
2809
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1965
    box addTextLabel:(resources string:'OSI Protocols (addOn package)').
4094e478153c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2807
diff changeset
  1966
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1967
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1968
    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
  1969
    check width:0.33.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1970
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1971
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1972
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1973
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1974
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1975
    check := box addCheckBox:(resources string:'Connections') on:osiACSEConnectionLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1976
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1977
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1978
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1979
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1980
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1981
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1982
    check := box addCheckBox:(resources string:'Data Xfer') on:osiACSEDataLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1983
    osiACSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1984
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1985
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1986
    check left:0.66; width:0.34.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1987
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1988
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1989
    box addVerticalSpace.
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1990
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1991
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1992
    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
  1993
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1994
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  1995
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1996
    check width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1997
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1998
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  1999
    check := box addCheckBox:(resources string:'Invoactions') on:osiROSEInvokationLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2000
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2001
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2002
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2003
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2004
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2005
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2006
    check := box addCheckBox:(resources string:'Responses') on:osiROSEResponseLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2007
    osiROSEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2008
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2009
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2010
    check left:0.66; width:0.34.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2011
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2012
    box addVerticalSpace.
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2013
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2014
    y := box yPosition.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2015
    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
  2016
    osiCMISEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2017
        check disable
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2018
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2019
    check width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2020
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2021
    box yPosition:y.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2022
    check := box addCheckBox:(resources string:'Messages') on:osiCMISEMessageLogging.
2198
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2023
    osiCMISEPresent ifFalse:[
69e1e07a8a90 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2196
diff changeset
  2024
        check disable
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2025
    ].
3169
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2026
    check left:0.33; width:0.33.
0b9d688ca36f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
  2027
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2028
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  2029
    box addHorizontalLine.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2030
    box 
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2031
        addHelpButtonFor:'Launcher/communicationsSettings.html';
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2032
        addAbortAndOkButtons.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2033
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2034
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2035
    "/ show the box ...
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2036
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2037
    box open.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2038
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2039
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2040
    "/ update system settings
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2041
    "/
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2042
    box accepted ifTrue:[
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2043
        acceptChannel value:false; value:true.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2044
3572
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2045
        hasRemoteBrowsingSupport ifTrue:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2046
            remoteBrowsingEnabled := remoteBrowsingEnabled value.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2047
            (remoteBrowsingEnabled ~~ org_remoteBrowsingEnabled) ifTrue:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2048
                remoteBrowsingEnabled ~~ SmalltalkShareServer serverRunning ifTrue:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2049
                    remoteBrowsingEnabled ifFalse:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2050
                        SmalltalkShareServer killAll
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2051
                    ] ifTrue:[
3576
569fc1084563 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2052
                        SmalltalkShareServer start.
3572
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2053
                        "/ must wait a bit; give it a chance to
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2054
                        "/ really start (before checking)
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2055
                        Delay waitForSeconds:0.5.
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2056
                        SmalltalkShareServer serverRunning ifFalse:[
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2057
                            self warn:'SmalltalkShareServer startup failed (see stderr).'
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2058
                        ]
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2059
                    ]
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2060
                ].
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2061
            ]
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2062
        ].
b06bfddcbead remote browsing
Claus Gittinger <cg@exept.de>
parents: 3553
diff changeset
  2063
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2064
        hasWindowMigrationServer ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2065
            windowMigrationEnabled := windowMigrationEnabled value.
2763
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2066
            windowMigrationAuthenticate := windowMigrationAuthenticate value.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2067
            windowMigrationPassword := windowMigrationPassword value.
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2068
            (windowMigrationEnabled ~~ org_windowMigrationEnabled
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2069
            or:[windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate 
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2070
            or:[windowMigrationPassword ~~ org_windowMigrationPassword]])  ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2071
                windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2072
                    windowMigrationAuthenticate ifFalse:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2073
                        WindowMigrationServer password:nil    
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2074
                    ] ifTrue:[
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2075
                        WindowMigrationServer password:windowMigrationPassword    
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2076
                    ].
40a55bba45bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2762
diff changeset
  2077
                ].
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2078
                windowMigrationEnabled ~~ WindowMigrationServer serverRunning ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2079
                    windowMigrationEnabled ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2080
                        WindowMigrationServer stop
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2081
                    ] ifTrue:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2082
                        WindowMigrationServer start.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2083
                        "/ must wait a bit; give it a chance to
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2084
                        "/ really start (before checking)
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2085
                        Delay waitForSeconds:0.5.
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2086
                        WindowMigrationServer serverRunning ifFalse:[
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2087
                            self warn:'WindowMigrationServer startup failed (see stderr).'
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2088
                        ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2089
                    ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2090
                ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2091
            ]
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2092
        ].
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2093
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2094
        hasRDoitServer ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2095
            (rDoitLogging value ~~ org_rDoitLogging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2096
            or:[rDoitErrorDebugging value ~~ org_rDoitErrorDebugging
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2097
            or:[rDoitErrorLogging value ~~ org_rDoitErrorLogging
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  2098
            or:[rDoitsEnabled value ~~ org_rDoitsEnabled
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  2099
            or:[rDoitServerPort value ~~ org_rDoitServerPort]]]]) ifTrue:[
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2100
                RDoItServer autoload.
3180
d3ade1ad1361 allow setting of portNr.
Claus Gittinger <cg@exept.de>
parents: 3169
diff changeset
  2101
                RDoItServer defaultPortNumber:rDoitServerPort value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2102
                RDoItServer logging:(rDoitLogging value).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2103
                RDoItServer errorLogging:(rDoitErrorLogging value).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2104
                RDoItServer errorCatching:(rDoitErrorDebugging value not).
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2105
                rDoitsEnabled := rDoitsEnabled value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2106
                rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2107
                    rDoitsEnabled ifFalse:[
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2108
                        RDoItServer stop
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2109
                    ] ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2110
                        RDoItServer start.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2111
                        "/ must wait a bit; give it a chance to
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2112
                        "/ really start (before checking)
2759
2afab235070a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2755
diff changeset
  2113
                        Delay waitForSeconds:0.5.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2114
                        RDoItServer serverRunning ifFalse:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2115
                            self warn:'RDoit startup failed (see stderr).'
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2116
                        ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2117
                    ]
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2118
                ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2119
            ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2120
        ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2121
2561
6f19bef93a30 avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents: 2560
diff changeset
  2122
        (hasHTTPServer and:[HTTPServer isLoaded]) ifTrue:[
2304
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2123
            httpServerPort := httpServerPort value.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2124
            org_httpServerPort ~= httpServerPort ifTrue:[
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2125
                HTTPServer defaultPort:httpServerPort.
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2126
            ].
7b32d2b8784d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2296
diff changeset
  2127
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2128
            httpServerFileRoot := httpServerFileRoot value.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2129
            httpServerFileRoot size == 0 ifTrue:[
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2130
                httpServerFileRoot := nil
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2131
            ].
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2132
            org_httpServerFileRoot ~= httpServerFileRoot ifTrue:[
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2133
                HTTPServer fileRoot:httpServerFileRoot.
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2134
            ].
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2135
2559
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2136
            httpServerLogFile := httpServerLogFile value.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2137
            httpServerLogFile size == 0 ifTrue:[
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2138
                httpServerLogFile := nil
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2139
            ].
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2140
            org_httpServerLogFile ~= httpServerLogFile ifTrue:[
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2141
                HTTPServer defaultLogFile:httpServerLogFile.
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2142
            ].
3c1bb826c2ea added change of httpServers logFile
ah
parents: 2553
diff changeset
  2143
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2144
            httpServerHomeURL := httpServerHomeURL value.
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2145
            httpServerHomeURL size == 0 ifTrue:[
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2146
                httpServerHomeURL := nil
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2147
            ].
2285
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2148
            org_httpServerHomeURL ~= httpServerHomeURL ifTrue:[
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2149
                HTTPServer homeURL:httpServerHomeURL.
23b173086610 oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents: 2282
diff changeset
  2150
            ].
2282
f78747b0f82d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2281
diff changeset
  2151
2278
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2152
            httpServerRunning value ~~ org_httpServerRunning ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2153
                httpServerRunning value ifTrue:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2154
                    HTTPServer startServer
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2155
                ] ifFalse:[
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2156
                    HTTPServer stopServer
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2157
                ]
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2158
            ].
fb7e4e64a152 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2270
diff changeset
  2159
        ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2160
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2161
        hasSwiki ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2162
            swikiRoot := swikiRoot value.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2163
            swikiRoot size == 0 ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2164
                swikiRoot := nil
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2165
            ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2166
            org_swikiRoot ~= swikiRoot ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2167
                PWS::ServerAction serverDirectory:swikiRoot.
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2168
            ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2169
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2170
            swikiEnabled value ~~ org_swikiEnabled ifTrue:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2171
                swikiEnabled value ifTrue:[
2311
1545462965c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2310
diff changeset
  2172
                    HTTPServer setupMySwiki
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2173
                ] ifFalse:[
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2174
                    HTTPServer removeActionLinkFor:'myswiki'
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2175
                ]
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2176
            ].
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2177
            allowEmbedded value ~~ org_allowEmbedded ifTrue:[
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2178
                HTTPServer enableEmbeddedSmalltalk:allowEmbedded value
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2179
            ].
2288
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2180
        ].
050cd24be9de checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2287
diff changeset
  2181
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2182
        osiACSEPresent ifTrue:[
2204
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2183
            OSI::ACSE errorLogging:osiACSEErrorLogging value.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2184
            OSI::ACSE connectionLogging:osiACSEConnectionLogging value.
5e6c36eaba35 replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents: 2203
diff changeset
  2185
            OSI::ACSE dataLogging:osiACSEDataLogging value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2186
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2187
        osiROSEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2188
            OSI::ROSE errorLogging:osiROSEErrorLogging value.
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  2189
            OSI::ROSE invocationLogging:osiROSEInvokationLogging value.
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2190
            OSI::ROSE responseLogging:osiROSEResponseLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2191
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2192
        osiCMISEPresent ifTrue:[
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2193
            OSI::CMISE errorLogging:osiCMISEErrorLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2194
            OSI::CMISE messageLogging:osiCMISEMessageLogging value.
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2195
        ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2196
    ].
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2197
    box destroy
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2198
2218
e8b16573104f Renamed some OSI Methods.
Stefan Vogel <sv@exept.de>
parents: 2210
diff changeset
  2199
    "Modified: / 28.6.1999 / 15:44:35 / stefan"
2560
5502b389d898 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  2200
    "Modified: / 20.1.2000 / 19:14:18 / cg"
2196
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2201
!
53741ab5bd17 added OSI logging settings
Claus Gittinger <cg@exept.de>
parents: 2195
diff changeset
  2202
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2203
compilerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2204
    "open a dialog on compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2205
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2206
    |box warnings warnSTX warnUnderscore warnDollar warnOldStyle warnUnusedVars
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2207
     allowDollar allowUnderscore allowSqueakExtensions allowQualifiedNames
3643
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2208
     allowDolphinExtensions allowOldStyleAssignment  
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2209
     immutableArrays
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2210
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2211
     warnCompatibility warnCompatibilityBox warnDollarBox warnUnusedVarsBox
2018
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  2212
     stcCompilation compilationList stcCompilationOptions 
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  2213
     historyLines fullHistoryUpdate 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2214
     catchMethodRedefs catchClassRedefs keepSourceOptions keepSource  
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2215
     constantFoldingOptions constantFolding justInTimeCompilation 
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  2216
     warnEnabler check component oldIndent supportsJustInTimeCompilation y
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2217
     y2 fullDebugSupport yMax
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2218
     compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2219
     resources stcSetupButt|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2220
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2221
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2222
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2223
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2224
    loadBinaries := Smalltalk loadBinaries asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2225
    compileLazy := Autoload compileLazy asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2226
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2227
    warnings := Compiler warnings asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2228
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2229
    warnSTX := Compiler warnSTXSpecials asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2230
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2231
    warnDollar := Compiler warnDollarInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2232
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2233
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2234
    warnCompatibility := Compiler warnPossibleIncompatibilities asValue.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2235
    warnUnusedVars := Compiler warnUnusedVars asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2236
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2237
    allowDollar := Compiler allowDollarInIdentifier asValue.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2238
    allowSqueakExtensions := Compiler allowSqueakExtensions asValue.
3479
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2239
    allowDolphinExtensions := Compiler allowDolphinExtensions asValue.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2240
    allowQualifiedNames := Compiler allowQualifiedNames asValue.
3643
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2241
    allowOldStyleAssignment := Compiler allowOldStyleAssignment asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2242
    immutableArrays := Compiler arraysAreImmutable asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2243
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2244
    constantFoldingOptions := #( nil #level1 #level2 #full ).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2245
    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
  2246
    constantFolding selectionIndex:3.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2247
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2248
    thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2249
    thisIsADemoVersion ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2250
        stcCompilationOptions := #( never).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2251
        strings := #('never').
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2252
        idx := 1.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2253
    ] ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2254
        stcCompilationOptions := #( always default never).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2255
        strings := #('always' 'primitive code only' 'never').
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2256
        idx := 2.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2257
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2258
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2259
    stcCompilation := SelectionInList new list:(resources array:strings).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2260
    stcCompilation selectionIndex:idx.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2261
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2262
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2263
    ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2264
        justInTimeCompilation := ObjectMemory justInTimeCompilation.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2265
        fullDebugSupport := ObjectMemory fullSingleStepSupport.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2266
    ] ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2267
        justInTimeCompilation := false.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2268
        fullDebugSupport := (Compiler lineNumberInfo == #full) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2269
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2270
    justInTimeCompilation := justInTimeCompilation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2271
    fullDebugSupport := fullDebugSupport asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2272
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2273
    catchMethodRedefs := Class catchMethodRedefinitions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2274
    catchClassRedefs := Class catchClassRedefinitions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2275
    historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2276
    historyLines ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2277
        fullHistoryUpdate := false asValue   
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2278
    ] ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2279
        fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2280
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2281
    historyLines := historyLines asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2282
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2283
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2284
    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
  2285
    keepSource selectionIndex:1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2286
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2287
    warnEnabler := [
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2288
              warnings value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2289
                warnSTXBox enable. 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2290
                warnOldStyleBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2291
                warnCommonMistakesBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2292
                warnCompatibilityBox enable.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2293
                warnUnusedVarsBox enable.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2294
                allowUnderscore value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2295
                    warnUnderscoreBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2296
                ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2297
                    warnUnderscoreBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2298
                ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2299
                allowDollar value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2300
                    warnDollarBox enable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2301
                ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2302
                    warnDollarBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2303
                ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2304
              ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2305
                warnSTXBox disable. 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2306
                warnUnderscoreBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2307
                warnDollarBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2308
                warnOldStyleBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2309
                warnCommonMistakesBox disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2310
                warnCompatibilityBox disable.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2311
                warnUnusedVarsBox disable.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2312
              ]].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2313
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2314
    warnings onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2315
    allowUnderscore onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2316
    allowDollar onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2317
"/    allowSqueakExtensions onChangeEvaluate:warnEnabler.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2318
"/    allowQualifiedNames onChangeEvaluate:warnEnabler.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2319
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2320
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2321
    box label:(resources string:'Compiler settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2322
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2323
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2324
    check := box addCheckBox:(resources string:'catch method redefinitions') on:catchMethodRedefs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2325
    check width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2326
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2327
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2328
    check := box addCheckBox:(resources string:'catch class redefinitions') on:catchClassRedefs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2329
    check left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2330
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2331
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2332
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2333
    check width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2334
    HistoryManager isNil ifTrue:[check disable].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2335
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2336
    check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2337
    check left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2338
    HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines].
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 addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2341
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2342
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2343
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2344
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2345
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2346
    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
  2347
    canLoadBinaries ifFalse:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2348
        loadBinaries value:false.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2349
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2350
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2351
    supportsJustInTimeCompilation ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2352
        component := box 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2353
                        addCheckBox:(resources string:'just in time compilation to machine code') 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2354
                        on:justInTimeCompilation.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2355
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2356
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2357
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2358
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2359
    ObjectFileLoader notNil ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2360
        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
  2361
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2362
        thisIsADemoVersion ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2363
            stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2364
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2365
            stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') 
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2366
                       action:[|manager|
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2367
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2368
                               self stcCompilerSettingsFor:requestor.
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
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2372
        box addHorizontalLine.
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
        "/ if there is no compiler around,
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2375
        "/ change to compile nothing, and disable the checkBoxes
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2376
        Compiler canCreateMachineCode ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2377
            stcCompilation selectionIndex:(3 min:stcCompilationOptions size).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2378
            compilationList disable.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2379
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2380
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2381
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2382
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2383
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2384
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2385
    component width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2386
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2387
    component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2388
    component width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2389
3479
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2390
    component := box addCheckBox:(resources string:'allow vw3 qualifiedNames') on:allowQualifiedNames.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2391
    component width:0.4.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2392
3479
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2393
    component := box addCheckBox:(resources string:'allow squeak extensions') on:allowSqueakExtensions.
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2394
    component width:0.4.
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2395
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2396
    component := box addCheckBox:(resources string:'allow dolphin extensions') on:allowDolphinExtensions.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2397
    component width:0.4.
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2398
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2399
    y2 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2400
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2401
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2402
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2403
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2404
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2405
    component superView left:0.5; width:0.5.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2406
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2407
3643
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2408
    component := box addCheckBox:(resources string:'allow oldStyle assignment (_)') on:allowOldStyleAssignment.
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2409
    component left:0.5; width:0.4.
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2410
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2411
    component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2412
    component left:0.5; width:0.4.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2413
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2414
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2415
    component left:0.5; width:0.4.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2416
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2417
    box yPosition:(box yPosition max:y2).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2418
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2419
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2420
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2421
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2422
    box addCheckBox:(resources string:'warnings') on:warnings.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2423
"/    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2424
    oldIndent := box leftIndent.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2425
    box leftIndent:30.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2426
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2427
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2428
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2429
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2430
    warnSTXBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2431
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2432
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2433
    warnUnderscoreBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2434
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2435
    warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2436
    warnDollarBox width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2437
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2438
    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
  2439
    warnUnusedVarsBox width:0.4.
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2440
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2441
    yMax := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2442
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2443
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2444
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2445
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2446
    warnOldStyleBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2447
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2448
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2449
    warnCommonMistakesBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2450
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2451
    warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2452
    warnCompatibilityBox left:0.5; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2453
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2454
    box leftIndent:oldIndent.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2455
    box yPosition:(yMax max: box yPosition).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2456
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  2457
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2458
    box 
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2459
        addHelpButtonFor:'Launcher/compilerSettings.html';
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2460
        addAbortAndOkButtons.
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
    warnEnabler value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2463
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2464
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2465
    box accepted ifTrue:[
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2466
        HistoryManager notNil ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2467
            HistoryManager fullHistoryUpdate:fullHistoryUpdate value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2468
            historyLines value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2469
                HistoryManager activate
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2470
            ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2471
                HistoryManager deactivate
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2472
            ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2473
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2474
        Class catchMethodRedefinitions:catchMethodRedefs value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2475
        Class catchClassRedefinitions:catchClassRedefs value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2476
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2477
        Compiler warnings:warnings value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2478
        Compiler warnSTXSpecials:warnSTX value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2479
        Compiler warnOldStyleAssignment:warnOldStyle value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2480
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2481
        Compiler warnDollarInIdentifier:warnDollar value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2482
        Compiler warnCommonMistakes:warnCommonMistakes value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2483
        Compiler warnPossibleIncompatibilities:warnCompatibility value.
3054
43a0f825bdb0 new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents: 3037
diff changeset
  2484
        Compiler warnUnusedVars:warnUnusedVars value.
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2485
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2486
        Compiler allowDollarInIdentifier:allowDollar value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2487
        Compiler allowSqueakExtensions:allowSqueakExtensions value.
3479
c068d829d733 compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3475
diff changeset
  2488
        Compiler allowDolphinExtensions:allowDolphinExtensions value.
2287
12127e8bcf4e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2285
diff changeset
  2489
        Compiler allowQualifiedNames:allowQualifiedNames value.
3643
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2490
        Compiler allowOldStyleAssignment:allowOldStyleAssignment value.
db6d5eae42b2 allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents: 3603
diff changeset
  2491
2244
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2492
        Compiler arraysAreImmutable:immutableArrays value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2493
        fullDebugSupport value ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2494
            Compiler lineNumberInfo:#full.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2495
        ] ifFalse:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2496
            Compiler lineNumberInfo:true
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2497
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2498
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2499
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2500
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2501
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2502
        supportsJustInTimeCompilation ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2503
            justInTimeCompilation := justInTimeCompilation value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2504
            justInTimeCompilation ifTrue:[
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2505
                Method allInstancesDo:[:m | m checked:false].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2506
            ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2507
            ObjectMemory justInTimeCompilation:justInTimeCompilation.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2508
            ObjectMemory fullSingleStepSupport:fullDebugSupport value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2509
        ].
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2510
        Autoload compileLazy:compileLazy value.
9823c67ba0ae checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2239
diff changeset
  2511
        Smalltalk loadBinaries:loadBinaries value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2512
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2513
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2514
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2515
    "Modified: / 10.9.1995 / 19:19:18 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2516
    "Modified: / 9.9.1996 / 22:42:47 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2517
    "Modified: / 5.11.1998 / 14:25:59 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2518
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2519
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2520
displaySettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2521
    "open a dialog on display related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2522
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2523
    |box listOfSizes sizeInfos
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2524
     sizes sizeNames sizeList sizeX sizeY deepIcons
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2525
     isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2526
     y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  2527
     |
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2528
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2529
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2530
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2531
    listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2532
    listOfSizes == #default ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2533
        "/ nothing in resource file; offer at least some.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2534
        sizeInfos := #(
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2535
                           ( '11.3'' (235mm x 175mm) LCD'   (235 175)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2536
                           ( '17''   (325mm x 245mm)'       (325 245)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2537
                           ( '19''   (340mm x 270mm)'       (340 270)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2538
                           ( '20''   (350mm x 280mm)'       (350 280)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2539
                           ( '21''   (365mm x 285mm)'       (365 285)    )
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2540
                       ).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2541
    ] ifFalse:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2542
        sizeInfos := resources array:listOfSizes.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2543
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2544
    sizeNames := sizeInfos collect:[:entry | entry at:1].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2545
    sizes := sizeInfos collect:[:entry | entry at:2].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2546
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2547
    screen := Screen current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2548
    visual := screen visualType.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2549
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2550
    isColorMonitor := screen hasColors asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2551
    deepIcons := screen supportsDeepIcons asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2552
    useFixPalette := screen fixColors notNil asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2553
    useFixGrayPalette := screen fixGrayColors notNil asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2554
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2555
    sizeList := SelectionInList with:sizeNames.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2556
    sizeX := screen widthInMillimeter asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2557
    sizeY := screen heightInMillimeter asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2558
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2559
    clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2560
    clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2561
    clipEncodingList := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2562
    clipEncodingList list:clipEncodings.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2563
    clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2564
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2565
    ditherList := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2566
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2567
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2568
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2569
        ditherSyms := #(threshold ordered floydSteinberg).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2570
    ] ifFalse:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2571
        visual ~~ #TrueColor ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2572
            ditherStyles := #('nearest color' 'error diffusion').
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2573
            ditherSyms := #(ordered floydSteinberg).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2574
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2575
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2576
    ditherSyms notNil ifTrue:[    
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2577
        ditherList list:ditherStyles.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2578
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2579
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2580
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2581
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2582
    box label:(resources string:'Display screen settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2583
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2584
    (box addTextLabel:(resources string:'Actual visible screen area:'))
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2585
        adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2586
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2587
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2588
        label:'monitor size'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2589
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2590
    idx := sizes findFirst:[:entry |
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2591
                                ((entry at:1) = sizeX value)
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2592
                                and:[((entry at:2) = sizeY value)]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2593
                           ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2594
    idx ~~ 0 ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2595
        sizeList selectionIndex:idx
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
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  2598
    sizeList onChangeEvaluate:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2599
                                        |idx|
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2600
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2601
                                        idx := sizeList selectionIndex.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2602
                                        sizeX value:((sizes at:idx) at:1).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2603
                                        sizeY value:((sizes at:idx) at:2).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2604
                                    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2605
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2606
    y := box yPosition.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2607
    component := box addTextLabel:(resources string:'Screen size:').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2608
    component width:0.3; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2609
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2610
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2611
    component := box addInputFieldOn:nil tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2612
    component width:0.25; left:0.3; 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2613
              immediateAccept:false; acceptOnLeave:false; 
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2614
              cursorMovementWhenUpdating:#beginOfLine;
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2615
              converter:(PrintConverter new initForInteger);
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2616
              model:sizeX.
2001
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 yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2619
    component := box addTextLabel:(' x ').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2620
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2621
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2622
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2623
    component := box addInputFieldOn:nil tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2624
    component width:0.25; left:0.65; 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2625
              immediateAccept:false; acceptOnLeave:false; 
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2626
              cursorMovementWhenUpdating:#beginOfLine;
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2627
              converter:(PrintConverter new initForInteger);
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2628
              model:sizeY.
2001
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 yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2631
    component := box addTextLabel:('(mm)').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2632
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2633
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2634
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2635
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2636
    (box addTextLabel:(resources string:'Screen: depth: %1 visual: %2  (%3)'
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2637
                                 with:screen depth printString
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2638
                                 with:screen visualType
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  2639
                                 with:screen serverVendor))
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2640
        adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2641
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2642
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2643
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2644
    box addCheckBox:(resources string:'Color monitor') on:isColorMonitor.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2645
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2646
    visual == #PseudoColor ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2647
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2648
        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
  2649
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2650
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2651
        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
  2652
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2653
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2654
    ditherSyms notNil ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2655
        box addVerticalSpace.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2656
        component := box addPopUpList:(resources string:'Amage display:') on:ditherList.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2657
        component defaultLabel:'image display'.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2658
        component superView horizontalLayout:#leftSpace.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2659
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2660
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2661
    box addVerticalSpace.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2662
    box addCheckBox:(resources string:'Allow colored/grayscale icons') on:deepIcons.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2663
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2664
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2665
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2666
    component := box addPopUpList:(resources string:'ClipBoard encoding:') on:clipEncodingList.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2667
    component superView horizontalLayout:#leftSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2668
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  2669
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2670
    box 
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2671
        addHelpButtonFor:'Launcher/screenSettings.html';
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2672
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2673
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2674
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2675
    box accepted ifTrue:[
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2676
        Image flushDeviceImages.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2677
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2678
        screen visualType == #PseudoColor ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2679
            useFixPalette value ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2680
                Color colorAllocationFailSignal handle:[:ex |
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  2681
                    requestor warn:'Could not allocate colors.'.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2682
                ] do:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2683
                    Color getColorsRed:4 green:8 blue:4 on:screen
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2684
                ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2685
            ] ifFalse:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2686
                screen releaseFixColors
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2687
            ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2688
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2689
            useFixGrayPalette value ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2690
                Color colorAllocationFailSignal handle:[:ex |
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  2691
                    requestor warn:'Could not allocate colors.'.
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2692
                ] do:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2693
                    Color getGrayColors:32 on:screen
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2694
                ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2695
            ] ifFalse:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2696
                screen releaseFixGrayColors
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2697
            ]
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2698
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2699
        screen hasColors:isColorMonitor value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2700
        screen widthInMillimeter:sizeX value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2701
        screen heightInMillimeter:sizeY value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2702
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2703
        screen supportsDeepIcons:deepIcons value.
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2704
        ditherSyms notNil ifTrue:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2705
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2706
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2707
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2708
        requestor withWaitCursorDo:[
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2709
            View defaultStyle:(View defaultStyle).
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2710
        ].
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2711
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2712
        screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2713
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2714
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2715
2162
340897f1c1b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2161
diff changeset
  2716
    "Modified: / 9.9.1996 / 22:43:04 / stefan"
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  2717
    "Modified: / 20.5.1999 / 18:35:21 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2718
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2719
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2720
editSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2721
    "open a dialog on edit settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2722
3644
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2723
    |box st80EditingMode st80DoubleClickSelectMode resources tabsIs4 prevTabsIs4 searchDialogIsModal|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2724
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2725
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2726
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2727
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2728
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2729
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2730
    st80EditingMode := EditTextView st80Mode asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2731
    st80DoubleClickSelectMode := TextView st80SelectMode asValue.
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2732
    prevTabsIs4 := (ListView userDefaultTabPositions = ListView tab4Positions).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2733
    tabsIs4 := prevTabsIs4 asValue.
3644
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2734
    searchDialogIsModal := UserPreferences current searchDialogIsModal asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2735
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2736
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2737
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2738
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2739
    box label:(resources string:'Edit settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2740
3644
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2741
    box addCheckBox:(resources string:'Cursor has ST80 line end behavior') on:st80EditingMode.
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2742
    box addCheckBox:(resources string:'Double click select behavior as in ST80') on:st80DoubleClickSelectMode.
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2743
    box addCheckBox:(resources string:'Tab stops in multiples of 4') on:tabsIs4.
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2744
    box addCheckBox:(resources string:'SearchBox is modal') on:searchDialogIsModal.
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 addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2747
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2748
    box 
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2749
        addHelpButtonFor:'Launcher/editSettings.html';
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2750
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2751
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2752
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2753
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2754
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2755
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2756
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2757
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2758
    "/ update system settings
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:[
3031
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2761
        EditTextView st80Mode:(st80EditingMode value).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2762
        TextView st80SelectMode:(st80DoubleClickSelectMode value).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2763
        tabsIs4 value ~~ prevTabsIs4 ifTrue:[
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2764
            ListView userDefaultTabPositions:(tabsIs4 value ifTrue:[ListView tab4Positions] ifFalse:[ListView tab8Positions]).
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2765
            ListView allSubInstancesDo:[:eachKindOfListView |
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2766
                tabsIs4 value ifTrue:[eachKindOfListView setTab4] ifFalse:[eachKindOfListView setTab8]
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2767
            ].
4f31ae099eb6 tab stuff
Claus Gittinger <cg@exept.de>
parents: 3014
diff changeset
  2768
        ].
3644
7fcc80a16f12 searchBoxIsModal
Claus Gittinger <cg@exept.de>
parents: 3643
diff changeset
  2769
        UserPreferences current searchDialogIsModal:searchDialogIsModal value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2770
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2771
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2772
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2773
    "Created: / 6.1.1999 / 14:12:09 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2774
    "Modified: / 6.1.1999 / 14:17:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2775
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2776
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2777
fontSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2778
    "open a dialog on font related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2779
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2780
    (self fontBoxForEncoding:nil for:requestor) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  2781
	requestor reopenLauncher.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2782
    ]
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2783
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2784
    "Created: 26.2.1996 / 22:52:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2785
    "Modified: 8.1.1997 / 14:52:49 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2786
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2787
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2788
javaSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2789
    "open a dialog on settings related to the java subsystem"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2790
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2791
    |box audio javaHome classPath oldJavaHome oldClassPath resources component
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2792
     extraFileSecurityChecks extraSocketSecurityChecks
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2793
     supportsJustInTimeCompilation 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2794
     javaJustInTimeCompilation javaNativeCodeOptimization
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2795
     showJavaByteCode exceptionDebug nullPointerExceptionDebug pathSep|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2796
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2797
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2798
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2799
    audio := JavaVM audioEnabled asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2800
    extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2801
    extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2802
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2803
        javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2804
        javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2805
    ] ifFalse:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2806
        javaJustInTimeCompilation := javaNativeCodeOptimization := false
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2807
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2808
    showJavaByteCode := JavaMethod forceByteCodeDisplay asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2809
    exceptionDebug := JavaVM exceptionDebug asValue.
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2810
    nullPointerExceptionDebug := JavaVM nullPointerExceptionDebug asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2811
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2812
    classPath := (Java classPath ? '').
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2813
    OperatingSystem isUNIXlike ifTrue:[
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2814
        pathSep := $;.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2815
    ] ifFalse:[
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2816
        pathSep := $:.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2817
    ].
3288
e4b161270f66 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  2818
    classPath := (classPath asStringWith:pathSep) asValue.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2819
    oldClassPath := classPath copy.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2820
    classPath := classPath asValue.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2821
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2822
    javaHome := (Java javaHome ? '').
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2823
    oldJavaHome := javaHome copy.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2824
    javaHome := javaHome asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2825
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2826
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2827
    box label:(resources string:'Java').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2828
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2829
    box addCheckBox:(resources string:'Audio Enabled') on:audio.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2830
    box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2831
    box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2832
    box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug.
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2833
    box addCheckBox:(resources string:'Debug Null Pointer Exceptions') on:nullPointerExceptionDebug.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2834
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2835
    supportsJustInTimeCompilation ifTrue:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2836
        box 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2837
            addCheckBox:(resources string:'java just in time compilation to machine code') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2838
            on:javaJustInTimeCompilation.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2839
        box 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2840
            addCheckBox:(resources string:'optimize native code') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2841
            on:javaNativeCodeOptimization.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2842
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2843
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2844
    box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2845
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2846
    component := box 
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2847
                    addLabelledInputField:(resources string:'classPath:')
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2848
                    adjust:#right
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2849
                    on:classPath 
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2850
                    tabable:true
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2851
                    separateAtX:0.3.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2852
    component acceptOnLeave:false.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2853
    component := box 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2854
                    addLabelledInputField:(resources string:'java home:')
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2855
                    adjust:#right
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2856
                    on:javaHome 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2857
                    tabable:true
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2858
                    separateAtX:0.3.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2859
    component acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2860
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2861
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2862
    box addComponent:(Button 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2863
                        label:(resources string:'Reinit VM now') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2864
                        action:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2865
                                box windowGroup withWaitCursorDo:[
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2866
"/                                    Java classPath size == 0 ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2867
"/                                        Java initialize.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2868
"/                                    ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2869
"/                                    Java classPath size == 0 ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2870
"/                                        self warn:'No JDK found'.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2871
"/                                    ] ifFalse:[
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2872
                                        JavaVM initializeVM
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2873
"/                                    ]
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2874
                                ]
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2875
                               ]).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2876
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2877
    box addComponent:(Button 
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2878
                        label:(resources string:'Remove all Java classes now') 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2879
                        action:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2880
                                box windowGroup withWaitCursorDo:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2881
                                    Java flushAllJavaResources
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2882
                                ]
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2883
                               ]).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2884
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2885
    "/ box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2886
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2887
"/    box addHelpButtonFor:'Launcher/javaSettings.html'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  2888
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2889
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2890
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2891
    box accepted ifTrue:[
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2892
        classPath value ~= oldClassPath ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2893
            OperatingSystem isUNIXlike ifTrue:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2894
                classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$:)
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2895
            ] ifFalse:[
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2896
                classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$;)
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2897
            ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2898
            Java classPath:classPath
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2899
        ].
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2900
        Java javaHome:javaHome value.
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2901
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2902
        JavaMethod forceByteCodeDisplay:showJavaByteCode value. 
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2903
        JavaVM audioEnabled:audio value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2904
        JavaVM exceptionDebug:exceptionDebug value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2905
        JavaVM nullPointerExceptionDebug:nullPointerExceptionDebug value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2906
        JavaVM fileOpenConfirmation: extraFileSecurityChecks value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2907
        JavaVM socketConnectConfirmation: extraSocketSecurityChecks value.
2609
41920e69990a java setup
Claus Gittinger <cg@exept.de>
parents: 2608
diff changeset
  2908
2259
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2909
        javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2910
            ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2911
            javaJustInTimeCompilation value ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2912
                JavaMethod allSubInstancesDo:[:m | m checked:false].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2913
            ].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2914
        ].
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2915
        javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2916
            ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value.
d8c1dbd55fd4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2244
diff changeset
  2917
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2918
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2919
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2920
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2921
    "Created: / 18.7.1998 / 22:32:58 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2922
    "Modified: / 27.1.1999 / 20:16:03 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2923
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2924
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2925
keyboardSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2926
    "open a dialog on keyboard related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2927
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2928
    |mappings listOfRawKeys listOfFunctions
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2929
     box l
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2930
     list1 list2 listView1 listView2 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2931
     frame selectionForwarder macroForwarder macroTextView y resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2932
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2933
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2934
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2935
    mappings := Screen current keyboardMap.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2936
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2937
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2938
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2939
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2940
    selectionForwarder := Plug new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2941
    selectionForwarder respondTo:#showFunction
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2942
                  with:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2943
                        |raw|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2944
                        raw := list1 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2945
                        list2 retractInterestsFor:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2946
                        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
  2947
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2948
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2949
    selectionForwarder respondTo:#showRawKey
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2950
                  with:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2951
                        |f raw|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2952
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2953
                        f := list2 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2954
                        list1 retractInterestsFor:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2955
                        raw := mappings keyAtValue:f asString.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2956
                        raw isNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2957
                            raw := mappings keyAtValue:f first.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2958
                            raw isNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2959
                                raw := mappings keyAtValue:f asSymbol.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2960
                            ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2961
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2962
                        list1 selection:raw.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2963
                        list1 onChangeSend:#showFunction to:selectionForwarder.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2964
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2965
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2966
    macroForwarder := [
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2967
                        |f macro indent|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2968
                        f := list2 selection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2969
                        (f startsWith:'Cmd') ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2970
                            f := f copyFrom:4
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2971
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2972
                        macro := UserPreferences current functionKeySequences 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2973
                                    at:(f asSymbol) ifAbsent:nil.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2974
                        macro notNil ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2975
                            macro := macro asStringCollection.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2976
                            indent := macro
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2977
                                         inject:99999 into:[:min :element |
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2978
                                             |stripped|
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2979
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2980
                                             stripped := element withoutLeadingSeparators.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2981
                                             stripped size == 0 ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2982
                                                 min
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2983
                                             ] ifFalse:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2984
                                                 min min:(element size - stripped size)
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2985
                                             ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2986
                                         ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2987
                            indent ~~ 0 ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2988
                                macro := macro collect:[:line | 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2989
                                             line size > indent ifTrue:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2990
                                                line copyFrom:indent+1
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2991
                                             ] ifFalse:[
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2992
                                                line
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2993
                                             ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2994
                                        ]
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2995
                            ].                        
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2996
                        ].
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2997
                        macroTextView contents:macro.
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  2998
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2999
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3000
    list1 := SelectionInList with:listOfRawKeys.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3001
    list1 onChangeSend:#showFunction to:selectionForwarder.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3002
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3003
    list2 := SelectionInList with:listOfFunctions.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3004
    list2 onChangeSend:#showRawKey to:selectionForwarder.
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  3005
    list2 onChangeEvaluate:macroForwarder.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3006
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3007
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3008
    box label:(resources string:'Keyboard mappings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3009
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3010
    l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3011
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3012
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3013
    frame := View new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3014
    frame extent:300 @ 300.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3015
    frame borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3016
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3017
    listView1 := ScrollableView for:SelectionInListView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3018
    listView1 model:list1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3019
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3020
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3021
    listView2 := ScrollableView for:SelectionInListView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3022
    listView2 model:list2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3023
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3024
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3025
    frame topInset:box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3026
    box addComponent:frame withExtent:350@200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3027
    box makeTabable:listView1. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3028
    box makeTabable:listView2. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3029
    frame origin:0.0@0.0 corner:1.0@0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3030
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3031
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3032
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3033
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3034
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3035
    l origin:0.0@0.6 corner:1.0@0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3036
    l topInset:(View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3037
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3038
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3039
    macroTextView := HVScrollableView for:TextView miniScroller:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3040
    box addComponent:macroTextView tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3041
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3042
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3043
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3044
    box
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  3045
        addHelpButtonFor:'Launcher/keyboardSetting.html';
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  3046
        "addAbortButton;" 
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  3047
        addOkButtonLabelled:(resources string:'dismiss').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3048
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3049
    macroTextView topInset:(l preferredExtent y + 5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3050
    macroTextView bottomInset:(box preferredExtent y - y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3051
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3052
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3053
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3054
    box accepted ifTrue:[
2270
89a5fc4c5d78 keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
  3055
        "no action yet ..."
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3056
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3057
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3058
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3059
    "Modified: / 9.9.1996 / 22:43:17 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3060
    "Modified: / 4.5.1998 / 12:40:02 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3061
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3062
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3063
languageSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3064
    "open a dialog on language related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3065
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3066
    |listOfLanguages translatedLanguages switch box languageList flags resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3067
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3068
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3069
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3070
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3071
     get list of supported languages from the launchers resources ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3072
    "
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3073
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3074
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3075
    listOfLanguages := listOfLanguages asOrderedCollection.
2149
9d9b06a23a70 care for languageTerritory
Claus Gittinger <cg@exept.de>
parents: 2144
diff changeset
  3076
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3077
    translatedLanguages := listOfLanguages collect:[:lang | |item|
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3078
                                        item := resources at:lang.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3079
                                        item isString ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3080
                                            item
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3081
                                        ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3082
                                            item at:1
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3083
                                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3084
                                ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3085
    flags := listOfLanguages collect:[:lang | |item|
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3086
                                        item := resources at:lang.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3087
                                        item isArray ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3088
                                            item at:2
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3089
                                        ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3090
                                            nil
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3091
                                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3092
                                ].
2845
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3093
    flags := flags collect:[:nm | |img d| nm notNil ifTrue:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3094
                                            img := Image fromFile:nm.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3095
                                            img isNil ifTrue:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3096
                                                d := Smalltalk getPackageDirectoryForPackage:'stx:goodies'.
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3097
                                                img := Image fromFile:(d construct:nm).
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3098
                                            ].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3099
                                        ] ifFalse:[
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3100
                                            nil
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3101
                                        ]
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3102
                           ].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3103
    listOfLanguages := listOfLanguages collect:[:nm | nm copyFrom:'LANG_' size + 1].
e7d49909cab3 language settings fixed
Claus Gittinger <cg@exept.de>
parents: 2838
diff changeset
  3104
    languageList := translatedLanguages with:flags collect:[:lang :flag | LabelAndIcon icon:flag string:lang.].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3105
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3106
    box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3107
    box label:(resources string:'Language selection').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3108
    box list:languageList.
2149
9d9b06a23a70 care for languageTerritory
Claus Gittinger <cg@exept.de>
parents: 2144
diff changeset
  3109
    box initialText:(Language , '-' , LanguageTerritory).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3110
    box action:[:newLanguage |
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3111
        requestor withWaitCursorDo:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3112
            |fontPref idx language oldLanguage territory enc 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3113
             answer matchingFonts l screen|
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3114
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3115
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3116
            idx ~~ 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3117
                language := listOfLanguages at:idx
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3118
            ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3119
                language := newLanguage
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3120
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3121
            (language includes:$-) ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3122
                l := language asCollectionOfSubstringsSeparatedBy:$-.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3123
                language := l at:1.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3124
                territory := l at:2.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3125
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3126
            territory isNil ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3127
                territory := language copyTo:2
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3128
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3129
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3130
            "/ check if the new language needs a differently encoded font;
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3131
            "/ ask user to switch font and allow cancellation.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3132
            "/ Otherwise, you are left with unreadable menu & button items ...
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3133
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3134
            oldLanguage := Smalltalk language.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3135
            Smalltalk language:language asSymbol.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3136
            ResourcePack flushCachedResourcePacks.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3137
            "/ refetch resources ...
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3138
            resources := requestor class classResources.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3139
            fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
3423
6bf5611b8a1c lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents: 3410
diff changeset
  3140
            fontPref := fontPref asLowercase.    
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3141
            Smalltalk language:oldLanguage.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3142
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3143
            switch := true.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3144
            enc := MenuView defaultFont encoding.
3423
6bf5611b8a1c lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents: 3410
diff changeset
  3145
            (fontPref match:enc asLowercase) ifFalse:[
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3146
                "/ look if there is one at all.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3147
                screen := Screen current.
3423
6bf5611b8a1c lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents: 3410
diff changeset
  3148
                matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding asLowercase].
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3149
                matchingFonts size == 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3150
                    "/ 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
  3151
                    screen flushListOfAvailableFonts.
3423
6bf5611b8a1c lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents: 3410
diff changeset
  3152
                    matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding asLowercase].
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3153
                ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3154
                matchingFonts size == 0 ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3155
                    (Dialog 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3156
                        confirm:(resources 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3157
                                    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
  3158
                                      with:fontPref) withCRs)
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3159
                    ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3160
                        switch := false
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3161
                    ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3162
                ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3163
                    answer := Dialog 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3164
                                confirmWithCancel:(resources 
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3165
                                                        string:'menu font is not %1-encoded.\\Change it ?'
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3166
                                                        with:fontPref) withCRs
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3167
                                           labels:(resources
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3168
                                                        array:#('cancel' 'no' 'yes'))
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3169
                                           default:3.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3170
                    answer isNil ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3171
                        switch := false
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3172
                    ] ifFalse:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3173
                        answer ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3174
                            switch := (requestor fontBoxForEncoding:fontPref)
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3175
                        ]
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3176
                    ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3177
                ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3178
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3179
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3180
            switch ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3181
                Transcript showCR:'change language to ' , newLanguage , ' ...'.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3182
                Smalltalk language:language asSymbol.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3183
                Smalltalk languageTerritory:territory asSymbol.
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  3184
                "/ ResourcePack flushCachedResourcePacks - already done by language-change
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3185
            ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3186
        ].
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3187
        switch ifTrue:[
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3188
            requestor reopenLauncher.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3189
            DebugView newDebugger.
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3190
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3191
    ].    
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3192
    box
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3193
        addHelpButtonFor:'Launcher/languageSetting.html'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3194
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3195
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3196
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3197
    "Modified: / 9.9.1996 / 22:43:27 / stefan"
3423
6bf5611b8a1c lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents: 3410
diff changeset
  3198
    "Modified: / 16.11.2001 / 11:51:35 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3199
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3200
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3201
memorySettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3202
    "open a dialog on objectMemory related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3203
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3204
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3205
     compressLimit
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3206
     oldIncr component fields codeLimit codeTrigger stackLimit resources
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3207
     fastMoreLimit maxOldSpace models info acceptChannel|
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3208
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3209
    acceptChannel := false asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3210
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3211
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3212
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3213
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3214
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3215
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3216
    igcLimit := ObjectMemory incrementalGCLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3217
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3218
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3219
    newSpaceSize := ObjectMemory newSpaceSize asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3220
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3221
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3222
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3223
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3224
    stackLimit := Process defaultMaximumStackSize asValue.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3225
    fastMoreLimit := (ObjectMemory fastMoreOldSpaceLimit:-1) asValue.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3226
    maxOldSpace := ObjectMemory maxOldSpace asValue.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3227
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3228
    models := OrderedCollection new.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3229
    info := OrderedCollection new.
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3230
    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
  3231
    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
  3232
    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
  3233
    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
  3234
    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
  3235
    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
  3236
    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
  3237
    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
  3238
    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
  3239
    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
  3240
    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
  3241
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3242
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3243
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3244
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3245
    fields := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3246
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3247
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3248
    box label:(resources string:'Memory manager settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3249
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3250
    (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
  3251
' , 'You have been warned' allBold , '.') adjust:#left.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3252
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3253
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3254
    models with:info do:[:m :i |
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3255
        |lbl descr conv|
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3256
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3257
        conv := i at:1.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3258
        lbl := i at:3.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3259
        descr := i at:2.
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3260
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3261
        component := box 
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3262
                    addLabelledInputField:(resources string:lbl)
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3263
                    adjust:#right
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3264
                    on:nil "/ newSpaceSize 
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3265
                    tabable:true
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3266
                    separateAtX:0.7.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3267
        component acceptOnLeave:false.
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3268
"/        component converter:(PrintConverter new perform:conv).
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3269
        component model:((TypeConverter on:m) perform:conv).
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3270
        component acceptChannel:acceptChannel.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3271
        fields add:component.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3272
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3273
        (box addTextLabel:descr) adjust:#left.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3274
        box addHorizontalLine.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3275
    ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3276
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3277
    ObjectMemory supportsJustInTimeCompilation ifFalse:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3278
        (fields at:9) disable.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3279
        (fields at:10) disable.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3280
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3281
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  3282
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3283
    box
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3284
        addHelpButtonFor:'Launcher/memorySettings.html'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3285
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3286
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3287
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3288
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3289
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3290
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3291
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3292
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3293
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3294
    box accepted ifTrue:[
2318
32dae4e72c7d fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents: 2316
diff changeset
  3295
        acceptChannel value:true.
2294
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3296
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3297
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3298
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3299
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3300
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3301
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3302
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3303
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3304
            ObjectMemory incrementalGCLimit:igcLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3305
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3306
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3307
            ObjectMemory newSpaceSize:newSpaceSize value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3308
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3309
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3310
            ObjectMemory oldSpaceIncrement:oldIncr value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3311
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3312
        stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3313
            Process defaultMaximumStackSize:stackLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3314
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3315
        fastMoreLimit value ~~ (ObjectMemory fastMoreOldSpaceLimit:-1) ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3316
            ObjectMemory fastMoreOldSpaceLimit:fastMoreLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3317
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3318
        maxOldSpace value ~~ ObjectMemory maxOldSpace ifTrue:[
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3319
            ObjectMemory maxOldSpace:maxOldSpace value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3320
        ].
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3321
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3322
        ObjectMemory dynamicCodeLimit:codeLimit value.
56c17b6b9bff more tuning
Claus Gittinger <cg@exept.de>
parents: 2289
diff changeset
  3323
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3324
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3325
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3326
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3327
    "Modified: 27.2.1997 / 16:50:12 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3328
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3329
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3330
messageSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3331
    "open a dialog on infoMessage related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3332
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3333
    |box vmInfo vmErrors displayErrors classInfos resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3334
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3335
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3336
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3337
    vmInfo := ObjectMemory infoPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3338
    vmErrors := ObjectMemory debugPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3339
    classInfos := Object infoPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3340
    displayErrors := DeviceWorkstation errorPrinting asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3341
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3342
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3343
    box label:(resources string:'Messages').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3344
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3345
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3346
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3347
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3348
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3349
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3350
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3351
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3352
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3353
    box addHelpButtonFor:'Launcher/messageSettings.html'.
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  3354
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3355
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3356
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3357
    box accepted ifTrue:[
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3358
        ObjectMemory infoPrinting:vmInfo value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3359
        ObjectMemory debugPrinting:vmErrors value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3360
        Object infoPrinting:classInfos value.
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3361
        DeviceWorkstation errorPrinting:displayErrors value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3362
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3363
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3364
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3365
    "Modified: 27.1.1997 / 17:46:01 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3366
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3367
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3368
miscSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3369
    "open a dialog on misc other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3370
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3371
    |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
  3372
     hostNameInLabel showAccelerators 
b4412338a603 avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents: 2064
diff changeset
  3373
     preemptive dynamicPrios hostNameInLabelHolder resources y
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3374
     activateOnClick opaqueVariablePanelResize opaqueTableColumnResize currentUserPrefs
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3375
     beepEnabled newWindowLabelFormat|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3376
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3377
    resources := requestor class classResources.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3378
    currentUserPrefs := UserPreferences current.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3379
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3380
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3381
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3382
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3383
    shadows := PopUpView shadows asValue.
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3384
    beepEnabled := currentUserPrefs beepEnabled asValue.
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3385
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3386
    hostNameInLabel := StandardSystemView includeHostNameInLabel.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3387
    hostNameInLabelHolder := hostNameInLabel asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3388
    returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3389
    takeFocus := StandardSystemView takeFocusWhenMapped asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3390
    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
  3391
    activateOnClick := (Display activateOnClick:nil) asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3392
    opaqueVariablePanelResize := currentUserPrefs opaqueVariablePanelResizing asValue.
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3393
    opaqueTableColumnResize := currentUserPrefs opaqueTableColumnResizing asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3394
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3395
    showAccelerators := MenuView showAcceleratorKeys asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3396
    preemptive := Processor isTimeSlicing asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3397
    dynamicPrios := Processor supportDynamicPriorities asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3398
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3399
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3400
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3401
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3402
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3403
    box label:(resources string:'Other settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3404
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3405
    box addCheckBox:(resources string:'Shadows under popup views') on:shadows.
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3406
    box addCheckBox:(resources string:'Beeper enabled') on:beepEnabled.
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3407
    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
  3408
    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
  3409
    pos := box yPosition.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3410
    check := box addCheckBox:(resources string:'Hostname in window labels') on:hostNameInLabelHolder.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3411
    check width:0.6.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3412
    pos2 := box yPosition.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3413
    box yPosition:pos.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3414
    butt := box addComponent:(Button label:(resources string:'Format...') 
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3415
               action:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3416
                       |newFormat|
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3417
3386
dd6c25e8adb8 windowLabel format
Claus Gittinger <cg@exept.de>
parents: 3385
diff changeset
  3418
                       newFormat := Dialog request:'Define the format of window labels:\\  %1 - label\  %2 - hostname\  %3 - username\  %4 - processId\' withCRs initialAnswer:StandardSystemView windowLabelFormat.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3419
                       newFormat size > 0 ifTrue:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3420
                           newWindowLabelFormat := newFormat
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3421
                       ].
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3422
                      ]).
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3423
    box makeTabable:butt.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3424
    butt left:0.6; width:0.4.
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3425
    box yPosition:(box yPosition max:pos2).
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3426
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3427
    box addCheckBox:(resources string:'Show accelerator keys in menus') on:showAccelerators.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3428
    box addCheckBox:(resources string:'Raise & activate windows on click') on:activateOnClick.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3429
    box addCheckBox:(resources string:'Focus follows mouse') on:focusFollowsMouse.
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3430
    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
  3431
    box addCheckBox:(resources string:'Opaque table column resizing') on:opaqueTableColumnResize.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3432
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3433
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3434
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3435
    box addCheckBox:(resources string:'Preemptive scheduling') on:preemptive.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3436
    box leftIndent:20.
2081
a5a01188c030 added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents: 2070
diff changeset
  3437
    check := box addCheckBox:(resources string:'Dynamic priorities') on:dynamicPrios.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3438
    check enableChannel:preemptive.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3439
    box leftIndent:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3440
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3441
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3442
    box 
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3443
        addHelpButtonFor:'Launcher/miscSettings.html';
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3444
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3445
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3446
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3447
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3448
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3449
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3450
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3451
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3452
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3453
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3454
    box accepted ifTrue:[
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3455
        PopUpView shadows:shadows value.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3456
        (hostNameInLabelHolder value ~= hostNameInLabel 
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3457
        or:[newWindowLabelFormat ~= StandardSystemView windowLabelFormat]) ifTrue:[ 
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3458
            StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value.
3077
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3459
            newWindowLabelFormat notNil ifTrue:[
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3460
                StandardSystemView windowLabelFormat:newWindowLabelFormat
6b8aa1dc38a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3461
            ].
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3462
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3463
            Screen allScreens do:[:aDisplay |
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3464
                aDisplay allViewsDo:[:aView |
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3465
                    |l|
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3466
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3467
                    aView isTopView ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3468
                        l := aView label.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3469
                        l notNil ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3470
                            aView label:(l , ' '); label:l.  "/ force a change
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3471
                        ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3472
                    ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3473
                ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3474
            ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3475
        ].
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3476
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3477
        currentUserPrefs opaqueVariablePanelResizing:opaqueVariablePanelResize value.
2977
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3478
        currentUserPrefs opaqueTableColumnResizing:opaqueTableColumnResize value.
42647581793b opaque table col resize
Claus Gittinger <cg@exept.de>
parents: 2976
diff changeset
  3479
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3480
        currentUserPrefs beepEnabled:beepEnabled value.
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3481
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3482
        StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3483
        StandardSystemView takeFocusWhenMapped:takeFocus value.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3484
        currentUserPrefs focusFollowsMouse:focusFollowsMouse value.
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3485
        Screen current activateOnClick:(activateOnClick value).
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3486
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3487
        MenuView showAcceleratorKeys:showAccelerators value.
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3488
        Processor isTimeSlicing ~~ preemptive value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3489
            preemptive value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3490
                Processor startTimeSlicing
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3491
            ] ifFalse:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3492
                Processor stopTimeSlicing
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3493
            ]
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3494
        ].
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3495
        Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3496
            Processor supportDynamicPriorities:dynamicPrios value
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3497
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3498
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3499
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3500
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3501
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
2164
fd79997e6ce0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
  3502
    "Modified: / 20.5.1999 / 18:33:55 / cg"
2461
17163bfda82b configure beep
ps
parents: 2458
diff changeset
  3503
    "Modified: / 3.12.1999 / 17:11:38 / ps"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3504
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3505
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3506
printerSettingsFor:requestor
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3507
    "open a dialog on printer related settings; returns true if accepted"
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3508
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3509
    |box accepted
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3510
     possiblePrinters possibleTypes printerType printCommand 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3511
     pageFormat landscape updater
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3512
     formatLabel formatComponent landscapeLabel landscapeComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3513
     topMargin leftMargin rightMargin bottomMargin unitList unit
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3514
     topMarginComponent leftMarginComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3515
     rightMarginComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3516
     bottomMarginComponent supportsColor supportsColorComponent
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3517
     y y1 commandListPop component commandList row resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3518
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3519
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3520
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3521
    possiblePrinters := PrinterStream withAllSubclasses asArray.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3522
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3523
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3524
    printerType := SelectionInList new list:(resources array:possibleTypes).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3525
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3526
    printCommand := Printer printCommand asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3527
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3528
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3529
    pageFormat selection:(Printer pageFormat).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3530
    landscape := Printer landscape asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3531
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3532
    topMargin := Printer topMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3533
    leftMargin := Printer leftMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3534
    rightMargin := Printer rightMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3535
    bottomMargin := Printer bottomMargin asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3536
    supportsColor := Printer supportsColor asValue.
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 := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3539
    box label:(resources string:'Printer settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3540
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3541
"/ either use a popUpList ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3542
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3543
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3544
"/ or a comboList;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3545
"/ which one looks better ?
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3546
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3547
    component := box addTextLabel:(resources string:'printer type:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3548
    component width:0.25; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3549
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3550
    component := box addComboListOn:printerType tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3551
    component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3552
    component width:0.75; left:0.25.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3553
"/ end of question
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3554
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3555
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3556
    component := box addTextLabel:(resources string:'print command:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3557
    component width:0.25; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3558
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3559
    commandListPop := box addComboBoxOn:printCommand tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3560
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3561
    commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3562
    "/ some common print commands ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3563
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3564
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3565
    commandList isNil ifTrue:[
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3566
        commandList := PrinterStream defaultCommands.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3567
        commandList isNil ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3568
            commandList := #('lpr' 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3569
                             'lp' 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3570
                            ).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3571
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3572
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3573
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3574
    commandListPop list:commandList.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3575
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3576
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3577
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3578
    row := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3579
    row add:(formatLabel := Label label:(resources string:'page format:')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3580
    formatLabel borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3581
    row add:(formatComponent := PopUpList on:pageFormat).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3582
    formatComponent label:'unknown'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3583
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3584
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3585
    landscapeLabel borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3586
    row add:(landscapeComponent := CheckToggle on:landscape).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3587
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3588
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3589
    box
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3590
        addRow:(1 to:2)
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3591
        fromX:0
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3592
        toX:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3593
        collect:[:idx | row at:idx]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3594
        tabable:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3595
        horizontalLayout:#leftSpace
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3596
        verticalLayout:#center.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3597
    y1 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3598
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3599
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3600
    box
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3601
        addRow:(3 to:4)
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3602
        fromX:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3603
        toX:1.0
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3604
        collect:[:idx | row at:idx]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3605
        tabable:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3606
        horizontalLayout:#leftSpace
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3607
        verticalLayout:#center.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3608
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3609
    box yPosition:(box yPosition max:y1).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3610
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3611
    box makeTabable:(formatComponent).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3612
    box makeTabable:(landscapeComponent).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3613
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3614
    box addVerticalSpace; addHorizontalLine; addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3615
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3616
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3617
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3618
    topMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3619
        addLabelledInputField:(resources string:'top margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3620
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3621
        on:nil "/ topMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3622
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3623
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3624
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3625
    topMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3626
    topMarginComponent model:topMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3627
    y1 := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3628
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3629
    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3630
    unitList := SelectionInList with:#('inch' 'mm').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3631
    unitList selectionIndex:1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3632
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3633
    component := box addComponent:(PopUpList on:unitList).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3634
    component
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3635
        left:0.6;
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3636
        width:0.3.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3637
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3638
    box yPosition:y1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3639
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3640
    leftMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3641
        addLabelledInputField:(resources string:'left margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3642
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3643
        on:nil "/ leftMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3644
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3645
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3646
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3647
    leftMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3648
    leftMarginComponent model:leftMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3649
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3650
    rightMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3651
        addLabelledInputField:(resources string:'right margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3652
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3653
        on:nil "/ rightMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3654
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3655
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3656
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3657
    rightMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3658
    rightMarginComponent model:rightMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3659
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3660
    bottomMarginComponent := box 
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3661
        addLabelledInputField:(resources string:'bottom margin:')
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3662
        adjust:#right
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3663
        on:nil "/ bottomMargin 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3664
        tabable:true
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3665
        from:0.0 to:0.5
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3666
        separateAtX:0.6.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3667
    bottomMarginComponent converter:(PrintConverter new initForNumber).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3668
    bottomMarginComponent model:bottomMargin.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3669
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3670
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3671
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3672
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3673
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3674
    updater := [ |p fg hasPageSize hasMargins|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3675
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3676
                       printerType selectionIndex ~~ 0 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3677
                           p := possiblePrinters at:(printerType selectionIndex).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3678
                           hasPageSize := p supportsPageSizes. 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3679
                           hasMargins := p supportsMargins. 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3680
                       ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3681
                           hasPageSize := false.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3682
                           hasMargins := false.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3683
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3684
                       hasPageSize ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3685
                          fg := Button new foregroundColor.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3686
                          formatComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3687
                          landscapeComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3688
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3689
                          formatComponent label:p pageFormat.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3690
                          pageFormat value:(p pageFormat).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3691
                          landscape value:(p landscape).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3692
                       ] ifFalse:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3693
                          fg := Button new disabledForegroundColor.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3694
                          formatComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3695
                          landscapeComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3696
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3697
                          formatComponent label:'unknown'.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3698
                          landscape value:nil.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3699
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3700
                       hasMargins ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3701
                          unitList selectionIndex == 2 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3702
                              unit := #mm
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3703
                          ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3704
                              unit := #inch
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
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3708
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3709
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3710
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3711
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3712
                          topMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3713
                          leftMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3714
                          rightMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3715
                          bottomMarginComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3716
                       ] ifFalse:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3717
                          topMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3718
                          leftMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3719
                          rightMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3720
                          bottomMarginComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3721
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3722
                       formatLabel foregroundColor:fg.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3723
                       landscapeLabel foregroundColor:fg.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3724
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3725
                       p notNil ifTrue:[ 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3726
                           commandList := p defaultCommands.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3727
                           commandList notNil ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3728
                                commandListPop list:commandList 
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3729
                           ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3730
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3731
                           printCommand value:(p printCommand).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3732
                       ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3733
                       p supportsPostscript ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3734
                           supportsColorComponent disable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3735
                           supportsColor value:false
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3736
                       ] ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3737
                           supportsColorComponent enable.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3738
                           supportsColor value:(Printer supportsColor).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3739
                       ]
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3740
                     ].
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  3741
    unitList onChangeEvaluate:updater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  3742
    printerType onChangeEvaluate:updater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3743
    updater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3744
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  3745
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3746
    box addVerticalSpace;
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3747
        addHelpButtonFor:'Launcher/printerSettings.html';
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3748
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3749
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3750
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3751
    (accepted := box accepted) ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3752
        Printer := possiblePrinters at:(printerType selectionIndex).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3753
        Printer printCommand:printCommand value.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3754
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3755
        Printer supportsPageSizes ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3756
            Printer pageFormat:(pageFormat selection).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3757
            Printer landscape:(landscape value).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3758
        ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3759
        Printer supportsMargins ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3760
            unitList selectionIndex == 2 ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3761
                unit := #mm
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3762
            ] ifFalse:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3763
                unit := #inch
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3764
            ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3765
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3766
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3767
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3768
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3769
        ].
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3770
        Printer supportsPostscript ifTrue:[
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3771
            Printer supportsColor:supportsColor value.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3772
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3773
    ].
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3774
    box destroy.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3775
    ^ accepted
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3776
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3777
    "Modified: 9.9.1996 / 22:43:51 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3778
    "Modified: 28.2.1997 / 14:00:13 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3779
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3780
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3781
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3782
restoreSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3783
    "restore settings from a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3784
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3785
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3786
     which can be saved/restored with a single store/read.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3787
     Will move entries over to UserPreferences over time;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3788
     new items should always go there."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3789
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3790
    |fileName resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3791
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3792
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3793
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3794
    fileName := Dialog 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3795
	requestFileName:(resources string:'restore settings from:') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3796
	default:'settings.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3797
	ok:(resources string:'restore') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3798
	abort:(resources string:'cancel') 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3799
	pattern:'*.stx'
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3800
	fromDirectory:nil.
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3801
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3802
    (fileName size == 0) ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3803
	"/ canceled
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3804
	^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3805
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3806
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3807
    self withWaitCursorDo:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3808
	Smalltalk fileIn:fileName.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3809
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  3810
	self reopenLauncher.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3811
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3812
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3813
    "Modified: / 21.7.1998 / 11:37:54 / cg"
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
saveSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3817
    "save settings to a settings-file."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3818
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3819
    "a temporary kludge - we need a central systemSettings object for this,
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3820
     which can be saved/restored with a single store/read.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3821
     Will move entries over to UserPreferences over time;
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3822
     new items should always go there."
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3823
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3824
    |fileName resources|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3825
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3826
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3827
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3828
    fileName := Dialog 
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3829
        requestFileName:(resources string:'save settings in:') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3830
        default:'settings.stx'
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3831
        ok:(resources string:'save') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3832
        abort:(resources string:'cancel') 
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3833
        pattern:'*.stx'
2715
a7bcbf85f2ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2703
diff changeset
  3834
        fromDirectory:'.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3835
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3836
    self saveSettingsFor:requestor in:fileName.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3837
!
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3838
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3839
saveSettingsFor:requestor in:fileName
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3840
    "save settings to a settings-file."
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3841
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3842
    "a temporary kludge - we need a central systemSettings object for this,
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3843
     which can be saved/restored with a single store/read.
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3844
     Will move entries over to UserPreferences over time;
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3845
     new items should always go there."
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3846
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3847
    |s screen currentUserPrefs|
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3848
2021
07aa22f577c5 code cleanup; replaced
Claus Gittinger <cg@exept.de>
parents: 2019
diff changeset
  3849
    (fileName size == 0) ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3850
        "/ canceled
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3851
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3852
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3853
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3854
    s := fileName asFilename writeStream.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3855
    s isNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  3856
        requestor warn:'cannot write the ''' , fileName , ''' file'.
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3857
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3858
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3859
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3860
    currentUserPrefs := UserPreferences current.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3861
    screen := Screen current.
2435
0c1aa09bf9e0 checkin from browser
ca
parents: 2395
diff changeset
  3862
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3863
    s nextPutLine:'"/ ST/X saved settings';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3864
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3865
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3866
      nextPutLine:'"/';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3867
      nextPutLine:'"/ this file was automatically generated by the';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3868
      nextPutLine:'"/ ''save settings'' function of the Launcher';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3869
      nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3870
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3871
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3872
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3873
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3874
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3875
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3876
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3877
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3878
    s nextPutLine:'"/ Display settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3879
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3880
    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
  3881
    s nextPutLine:'Display notNil ifTrue:['.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  3882
    s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3883
      screen fixColors notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3884
        s nextPutLine:'  Image flushDeviceImages.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3885
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3886
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3887
        s nextPutLine:'  ].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3888
      ] ifFalse:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3889
        s nextPutLine:'  Display releaseFixColors.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3890
      ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3891
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3892
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3893
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3894
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3895
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3896
      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
  3897
    s nextPutLine:' ].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3898
    s nextPutLine:'].'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3899
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3900
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3901
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3902
    s nextPutLine:'"/ Compiler settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3903
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3904
    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3905
      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3906
      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3907
      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3908
      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3909
      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
3480
7f13d0a4ae1d save compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3479
diff changeset
  3910
      nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.';
7f13d0a4ae1d save compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents: 3479
diff changeset
  3911
      nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.';
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3912
      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3913
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3914
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3915
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3916
      nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3917
      nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:[';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3918
      nextPutLine:'  Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3919
      nextPutLine:'  Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3920
      nextPutLine:'  Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3921
      nextPutLine:'  ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:[';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3922
      nextPutLine:'    Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3923
      nextPutLine:'  ].';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3924
      nextPutLine:'  Compiler stcPath: ' , (Compiler stcPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3925
      nextPutLine:'  Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3926
      nextPutLine:'  Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3927
      nextPutLine:'  ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3928
      nextPutLine:'  ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3929
      nextPutLine:'  ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3930
      nextPutLine:'  ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.';
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  3931
      nextPutLine:'].';
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3932
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3933
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3934
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3935
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3936
    HistoryManager notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3937
        HistoryManager isActive ifTrue:[
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3938
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3939
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3940
        ] ifFalse:[
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3941
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3942
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3943
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3944
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3945
    ObjectFileLoader notNil ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3946
        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3947
        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3948
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3949
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3950
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3951
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3952
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3953
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3954
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3955
    s nextPutLine:'"/ Info & Debug Messages:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3956
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3957
    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3958
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3959
      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3960
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3961
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3962
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3963
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3964
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3965
    s nextPutLine:'"/ Edit settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3966
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3967
    s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3968
    s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3969
    s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'.
3032
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3970
    (ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3971
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'.
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3972
    ] ifFalse:[
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3973
        s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'.
709d71418e15 tab stuff (in settings.stx)
Claus Gittinger <cg@exept.de>
parents: 3031
diff changeset
  3974
    ].
2719
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3975
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3976
    s nextPutLine:'"/'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3977
    s nextPutLine:'"/ User preference values:'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3978
    s nextPutLine:'"/'.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  3979
    currentUserPrefs keysAndValuesDo:[:k :v |
3587
0364cb87b84c implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
  3980
        (UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[
2719
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3981
            s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3982
        ] ifFalse:[
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3983
            s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'.
2e786578714d userPreference saving
Claus Gittinger <cg@exept.de>
parents: 2718
diff changeset
  3984
        ]
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  3985
    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3986
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3987
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3988
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3989
    s nextPutLine:'"/ Misc settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3990
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3991
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3992
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3993
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3994
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3995
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3996
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3997
      "/ claus - I dont think its a good idea to save those ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3998
      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3999
      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4000
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4001
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4002
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  4003
      nextPutLine:'Display notNil ifTrue:[';
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  4004
      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
  4005
      nextPutLine:'].';
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4006
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4007
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
2017
a4d6c76cdef5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2016
diff changeset
  4008
    (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4009
        s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4010
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4011
    Processor isTimeSlicing ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4012
        s nextPutLine:'Processor startTimeSlicing.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4013
        s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.').
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4014
    ] ifFalse:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4015
        s nextPutLine:'Processor stopTimeSlicing.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4016
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4017
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4018
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4019
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4020
    s nextPutLine:'"/ Printer settings:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4021
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4022
    s nextPutLine:'Printer := ' , (Printer name) , '.';
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4023
      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4024
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4025
    Printer supportsPageSizes ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4026
        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4027
        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4028
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4029
    Printer supportsMargins ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4030
        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4031
        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4032
        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4033
        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4034
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4035
    Printer supportsPostscript ifTrue:[
2201
7122d672326c save syntaxColor settings
Claus Gittinger <cg@exept.de>
parents: 2200
diff changeset
  4036
        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4037
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4038
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4039
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4040
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4041
    s nextPutLine:'"/ Font settings:'.
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4042
    s nextPutLine:'"/ (only restored, if image is restarted on the same display)'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4043
    s nextPutLine:'"/'.
2456
8434c67045db settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents: 2435
diff changeset
  4044
    s nextPutLine:'Display notNil ifTrue:['.
2457
0540ec0d7051 care for nil Display
Claus Gittinger <cg@exept.de>
parents: 2456
diff changeset
  4045
    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
  4046
    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
  4047
    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
  4048
    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
  4049
    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
  4050
    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
  4051
    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
  4052
    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
  4053
    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
  4054
    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
  4055
    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
  4056
    s nextPutLine:' ].'.
2269
822bf9616e8d only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents: 2259
diff changeset
  4057
    s nextPutLine:'].'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4058
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4059
    s cr.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4060
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4061
    s nextPutLine:'"/ Language setting:'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4062
    s nextPutLine:'"/'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4063
    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4064
    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4065
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4066
    s cr.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4067
    s nextPutLine:'"/'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4068
    s nextPutLine:'"/ SourceCodeManager settings:'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4069
    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
  4070
    s nextPutLine:'"/'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4071
    s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4072
    s nextPutLine:'  Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  4073
    (Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[
2788
126bf75fecf4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
  4074
    s nextPutLine:'  Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  4075
    s nextPutLine:'  AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'.
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  4076
    s nextPutLine:'  CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4077
    s nextPutLine:'  CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'.
2786
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  4078
    s nextPutLine:'  CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'.
0a38d76d091e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2785
diff changeset
  4079
    ].
2785
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4080
    s nextPutLine:'].'.
8e6b32f0a4d0 save cvs settings
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
  4081
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4082
    s close.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4083
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4084
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4085
     Transcript topView application saveSettings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4086
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4087
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  4088
    "Modified: / 6.1.1999 / 14:24:16 / cg"
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  4089
!
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4090
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4091
sourceAndDebuggerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4092
    "open a dialog on source&debugger other settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4093
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4094
    |box check butt setupButt logDoits updChanges changeFileName
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4095
     useManager hasManager cvsIsSetup
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4096
     repository repositoryHolder localSourceFirst 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4097
     sourceCacheDir cacheEntry
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4098
     component localCheck oldIndent nm fn manager
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4099
     showErrorNotifier showVerboseStack
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4100
     syntaxColoring fullSelectorCheck autoFormat
3603
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4101
     resources pos currentUserPrefs checkClassesWhenCheckingIn checkClassesBox|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4102
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4103
    currentUserPrefs := UserPreferences current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4104
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4105
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4106
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4107
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4108
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4109
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4110
    logDoits := Smalltalk logDoits asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4111
    updChanges := Class updatingChanges asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4112
    changeFileName := ObjectMemory nameForChanges asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4113
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4114
    (AbstractSourceCodeManager notNil 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4115
    and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4116
        AbstractSourceCodeManager autoload.    
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4117
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4118
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4119
    hasManager := AbstractSourceCodeManager notNil
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4120
                  and:[AbstractSourceCodeManager isLoaded].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4121
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4122
    repositoryHolder := '' asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4123
    hasManager ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4124
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4125
        localSourceFirst := Class tryLocalSourceFirst asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4126
        manager notNil ifTrue:[
2861
1f6dafaaeb90 remember unaccessable repository modules and disable access.
Claus Gittinger <cg@exept.de>
parents: 2854
diff changeset
  4127
            manager forgetDisabledModules.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4128
            repository := manager repositoryName.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4129
            repository notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4130
                repositoryHolder := repository asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4131
            ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4132
                repositoryHolder := '' asValue.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4133
            ].
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4134
        ].
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4135
        cvsIsSetup := true.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4136
    ] ifFalse:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4137
        useManager := false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4138
        localSourceFirst := false.
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4139
        cvsIsSetup := false.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4140
    ].
2976
f0578ab14d13 allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents: 2960
diff changeset
  4141
    cvsIsSetup := cvsIsSetup asValue.
2037
7f824ca6e61b removed ref to (old) Launcher class
Claus Gittinger <cg@exept.de>
parents: 2034
diff changeset
  4142
    showErrorNotifier := (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4143
    showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4144
    syntaxColoring := currentUserPrefs syntaxColoring asValue.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4145
    fullSelectorCheck := currentUserPrefs fullSelectorCheck asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4146
    autoFormat := currentUserPrefs autoFormatting asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4147
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4148
    sourceCacheDir := nil asValue.
3603
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4149
    checkClassesWhenCheckingIn := (currentUserPrefs at:#checkClassesWhenCheckingIn ifAbsent:true) asValue.
2001
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
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4153
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4154
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4155
    box label:(resources string:'Source & Debugger settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4156
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4157
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4158
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4159
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4160
    component := box 
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4161
                    addLabelledInputField:(resources string:'change file name:')
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4162
                    adjust:#right
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4163
                    on:changeFileName 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4164
                    tabable:true
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4165
                    separateAtX:0.4.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4166
    component immediateAccept:true; acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4167
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4168
"/    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4169
"/    component := box addTextLabel:(resources string:'change file name:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4170
"/    component width:0.5; adjust:#right; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4171
"/    box yPosition:y.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4172
"/    component := box addInputFieldOn:changeFileName tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4173
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4174
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4175
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4176
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4177
    hasManager ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4178
        pos := box yPosition.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4179
        check := box addCheckBox:(resources string:'sourcecode management') on:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4180
        check enableChannel:cvsIsSetup.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4181
        box makeTabable:check.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4182
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4183
        CVSSourceCodeManager notNil ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4184
            check width:0.6.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4185
            box yPosition:pos.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4186
            setupButt := box addComponent:(Button label:(resources string:'setup...') 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4187
                       action:[|manager|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4188
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4189
                               self cvsConfigurationDialogFor:requestor.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4190
                               manager := (Smalltalk at:#SourceCodeManager).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4191
                               cvsIsSetup value:manager notNil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4192
                               manager notNil ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4193
                                    repositoryHolder value: manager repositoryName.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4194
                                    sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4195
                               ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4196
                              ]).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4197
            setupButt enableChannel:useManager.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4198
            box makeTabable:setupButt.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4199
            setupButt left:0.6; width:0.4.
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
        oldIndent := box leftIndent.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4202
        box leftIndent:30.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4203
2905
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4204
        box addVerticalSpace:10.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4205
"/        component := box 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4206
"/                        addLabelledInputField:(resources string:'CVS repository:')
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4207
"/                        adjust:#right
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4208
"/                        on:repositoryHolder 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4209
"/                        tabable:true
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4210
"/                        separateAtX:0.5.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4211
"/        component immediateAccept:true; acceptOnLeave:false.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4212
"/        component enableChannel:useManager.
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4213
"/        component readOnly:true. 
e7a2392be56a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
  4214
"/
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4215
        cacheEntry := box 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4216
                        addLabelledInputField:(resources string:'source cache dir:')
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4217
                        adjust:#right
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4218
                        on:sourceCacheDir 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4219
                        tabable:true
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  4220
                        separateAtX:0.5.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4221
        cacheEntry immediateAccept:true; acceptOnLeave:false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4222
        cacheEntry enableChannel:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4223
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4224
        pos := box yPosition.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4225
        butt := Button label:(resources string:'flush cache now').
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4226
        butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ] ].
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4227
        box addComponent:butt tabable:true.
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4228
        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
  4229
        butt enableChannel:useManager.
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4230
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4231
        butt := Button label:(resources string:'condense cache now').
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4232
        butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ] ].
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4233
        box addComponent:butt tabable:true.
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4234
        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
  4235
        butt enableChannel:useManager.
2737
8158d426cfa6 added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents: 2719
diff changeset
  4236
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4237
        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
  4238
        localCheck enableChannel:useManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4239
3603
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4240
        checkClassesBox := box addCheckBox:(resources string:'check for halt/error-messages when checking in') on:checkClassesWhenCheckingIn.
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4241
        checkClassesBox enableChannel:useManager.
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4242
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4243
        box leftIndent:oldIndent.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4244
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4245
        (AbstractSourceCodeManager isNil 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4246
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4247
            useManager value:false.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4248
            "/ cacheEntry disable.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4249
            "/ localCheck enable.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4250
        ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4251
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4252
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4253
        box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4254
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4255
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4256
    pos := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4257
    check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4258
    check width:0.6.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4259
    box yPosition:pos.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4260
    butt := box addComponent:(Button label:(resources string:'configure...') action:[self syntaxColorConfigurationDialogFor:requestor]).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4261
    box makeTabable:butt.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4262
    butt enableChannel:syntaxColoring.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4263
    butt left:0.6; width:0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4264
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4265
    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
  4266
    check enableChannel:syntaxColoring.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4267
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4268
    pos := box yPosition.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4269
    check := box addCheckBox:(resources string:'auto format') on:autoFormat.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4270
    check width:0.6.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4271
    box yPosition:pos.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4272
    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
  4273
    box makeTabable:butt.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4274
    butt left:0.6; width:0.4.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4275
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4276
    box addHorizontalLine.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4277
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4278
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4279
    box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4280
    box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4281
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4282
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4283
    box 
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4284
        addHelpButtonFor:'Launcher/sourceSettings.html';
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4285
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4286
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4287
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4288
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4289
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4290
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4291
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4292
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4293
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4294
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4295
    box accepted ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4296
        Smalltalk logDoits:logDoits value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4297
        Class updateChanges:updChanges value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4298
        ObjectMemory nameForChanges:changeFileName value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4299
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4300
        (hasManager and:[useManager value]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4301
            manager isNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4302
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4303
                manager := Smalltalk at:#SourceCodeManager.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4304
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4305
            Class tryLocalSourceFirst:(localSourceFirst value).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4306
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4307
            manager notNil ifTrue:[
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4308
"/                localSourceFirst value ifFalse:[
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4309
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4310
                    nm := sourceCacheDir value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4311
                    nm size > 0 ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4312
                        (fn := nm asFilename) exists ifFalse:[
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  4313
                            (self confirm:('CVS cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4314
                                fn makeDirectory; 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4315
                                   makeReadableForAll;
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4316
                                   makeWritableForAll;
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4317
                                   makeExecutableForAll.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4318
                            ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4319
                        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4320
                        (fn exists 
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4321
                        and:[fn isDirectory
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4322
                        and:[fn isReadable
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4323
                        and:[fn isWritable]]]) ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4324
                            AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4325
                        ] ifFalse:[
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4326
                            self warn:'Invalid sourceCache directory.'
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4327
                        ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4328
                    ]
3078
588bfe79efca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3077
diff changeset
  4329
"/                ]
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4330
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4331
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4332
            repositoryHolder notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4333
                repositoryHolder value size > 0 ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4334
                    manager notNil ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4335
                        manager initializeForRepository:repositoryHolder value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4336
                    ]
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4337
                ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4338
            ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4339
        ] ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4340
            Smalltalk at:#SourceCodeManager put:nil
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4341
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4342
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4343
        showErrorNotifier value ifFalse:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4344
            Exception emergencyHandler:nil
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4345
        ] ifTrue:[
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4346
            Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler)
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4347
        ].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4348
        DebugView defaultVerboseBacktrace:(showVerboseStack value).
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4349
        currentUserPrefs syntaxColoring:syntaxColoring value.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  4350
        currentUserPrefs at:#fullSelectorCheck put:fullSelectorCheck value.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  4351
        currentUserPrefs autoFormatting:autoFormat value.
3603
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4352
7d3120035246 allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents: 3601
diff changeset
  4353
        UserPreferences current at:#checkClassesWhenCheckingIn put:checkClassesWhenCheckingIn value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4354
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4355
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4356
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4357
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4358
    "Created: / 17.1.1997 / 17:39:33 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4359
    "Modified: / 16.4.1998 / 17:18:47 / ca"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4360
    "Modified: / 13.10.1998 / 15:47:31 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4361
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4362
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4363
stcCompilerSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4364
    "open an extra dialog on stc-compiler related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4365
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4366
    |box      
2018
ac678817ff98 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2017
diff changeset
  4367
     stcIncludes stcDefines stcOptions
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4368
     stcLibraries stcLibraryPath cc stc ccOptions   
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4369
     linkCommand linkArgs
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4370
     component t
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4371
     canLoadBinaries thisIsADemoVersion
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4372
     resources|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4373
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4374
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4375
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4376
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4377
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4378
    stcIncludes := Compiler stcCompilationIncludes asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4379
    stcDefines := Compiler stcCompilationDefines asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4380
    stcOptions := Compiler stcCompilationOptions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4381
    ccOptions := Compiler ccCompilationOptions asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4382
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4383
    cc := Compiler ccPath asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4384
    stc := Compiler stcPath asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4385
    linkCommand := ObjectFileLoader linkCommand asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4386
    linkArgs := ObjectFileLoader linkArgs asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4387
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4388
    ObjectFileLoader notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4389
	(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4390
	    stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4391
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4392
	(t := ObjectFileLoader libPath) notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4393
	    stcLibraryPath := t asValue.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4394
	]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4395
    ].
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 := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4398
    box label:(resources string:'STC Compilation settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4399
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4400
    thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4401
    ObjectFileLoader notNil ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4402
	thisIsADemoVersion ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4403
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4404
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4405
			    addLabelledInputField:(resources string:'stc command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4406
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4407
			    on:stc 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4408
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4409
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4410
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4411
	    component preferredExtent:(100 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4412
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4413
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4414
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4415
			    addLabelledInputField:(resources string:'stc options:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4416
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4417
			    on:stcOptions 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4418
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4419
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4420
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4421
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4422
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4423
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4424
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4425
			    addLabelledInputField:(resources string:'cc command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4426
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4427
			    on:cc 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4428
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4429
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4430
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4431
	    component preferredExtent:(150 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4432
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4433
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4434
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4435
			    addLabelledInputField:(resources string:'cc options:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4436
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4437
			    on:ccOptions 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4438
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4439
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4440
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4441
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4442
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4443
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4444
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4445
			    addLabelledInputField:(resources string:'include directories:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4446
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4447
			    on:stcIncludes 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4448
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4449
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4450
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4451
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4452
	    canLoadBinaries ifFalse:[component disable].
2001
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 addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4455
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4456
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4457
			    addLabelledInputField:(resources string:'defines:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4458
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4459
			    on:stcDefines 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4460
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4461
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4462
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4463
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4464
	    canLoadBinaries ifFalse:[component disable].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4465
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4466
"/        box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4467
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4468
"/        box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4469
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4470
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4471
			    addLabelledInputField:(resources string:'link command:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4472
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4473
			    on:linkCommand 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4474
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4475
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4476
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4477
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4478
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4479
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4480
	    component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4481
			    addLabelledInputField:(resources string:'link args:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4482
			    adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4483
			    on:linkArgs 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4484
			    tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4485
			    separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4486
	    component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4487
	    component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4488
	    canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4489
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4490
	    stcLibraries notNil ifTrue:[
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4491
"/            box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4492
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4493
		component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4494
				addLabelledInputField:(resources string:'C-libraries:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4495
				adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4496
				on:stcLibraries 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4497
				tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4498
				separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4499
		component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4500
		component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4501
		canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4502
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4503
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4504
	    stcLibraryPath notNil ifTrue:[
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4505
"/            box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4506
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4507
		component := box 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4508
				addLabelledInputField:(resources string:'stc libPath:')
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4509
				adjust:#right
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4510
				on:stcLibraryPath 
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4511
				tabable:true
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4512
				separateAtX:0.3.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4513
		component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4514
		component preferredExtent:(250 @ component preferredExtent y).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4515
		canLoadBinaries ifFalse:[component disable].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4516
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4517
	].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4518
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4519
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4520
    box 
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4521
	addHelpButtonFor:'Launcher/compilerSettings.html';
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4522
	addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4523
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4524
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4525
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4526
    box accepted ifTrue:[
3219
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4527
	thisIsADemoVersion  ifFalse:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4528
	    Compiler stcCompilationIncludes:stcIncludes value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4529
	    Compiler stcCompilationDefines:stcDefines value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4530
	    Compiler stcCompilationOptions:stcOptions value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4531
	    Compiler ccCompilationOptions:ccOptions value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4532
	    Compiler ccPath:cc value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4533
	    stc value ~= Compiler stcPath ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4534
		Compiler stcPath:stc value
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4535
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4536
	    ObjectFileLoader linkCommand:linkCommand value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4537
	    ObjectFileLoader linkArgs:linkArgs value.
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4538
	].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4539
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4540
	ObjectFileLoader notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4541
	    stcLibraries notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4542
		ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4543
	    ].
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4544
	    stcLibraryPath notNil ifTrue:[
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4545
		ObjectFileLoader libPath:(stcLibraryPath value).
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4546
	    ]
2e32f575524c removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  4547
	].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4548
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4549
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4550
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4551
    "Modified: / 10.9.1995 / 19:19:18 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4552
    "Modified: / 9.9.1996 / 22:42:47 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4553
    "Created: / 2.10.1998 / 16:27:49 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4554
    "Modified: / 21.10.1998 / 19:15:10 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4555
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4556
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4557
toolSettingsFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4558
    "open a dialog on tool settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4559
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4560
    |box resources currentUserPrefs in acceptChannel
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4561
     useNewInspector useNewChangesBrowser useNewSystemBrowser useNewVersionDiffBrowser
2703
ea75f41902bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2696
diff changeset
  4562
     showClockInLauncher showClock launcher transcriptBufferSize useNew|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4563
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4564
    currentUserPrefs := UserPreferences current.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4565
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4566
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4567
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4568
    "/ 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4569
    "/ extract relevant system settings ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4570
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4571
    useNewInspector := currentUserPrefs useNewInspector asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4572
    useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue.
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4573
    useNewSystemBrowser := currentUserPrefs useNewSystemBrowser asValue.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4574
    showClockInLauncher := currentUserPrefs showClockInLauncher asValue.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  4575
    useNewVersionDiffBrowser := currentUserPrefs useNewVersionDiffBrowser asValue.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4576
    transcriptBufferSize := Transcript current lineLimit printString asValue.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4577
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4578
    acceptChannel := false asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4579
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4580
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4581
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4582
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4583
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4584
    box label:(resources string:'Tool settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4585
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4586
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4587
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4588
    box addCheckBox:(resources string:'Use the new Changes Browser') on:useNewChangesBrowser.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4589
    box addHorizontalLine.
2696
bc8ab69f2a56 allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents: 2689
diff changeset
  4590
    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
  4591
    box addHorizontalLine.
2239
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4592
    box addCheckBox:(resources string:'Use the new VersionDiff Browser') on:useNewVersionDiffBrowser.
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4593
    box addHorizontalLine.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4594
    box addCheckBox:(resources string:'Use Hierarchical Inspector') on:useNewInspector.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4595
    box addHorizontalLine.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4596
    box addCheckBox:(resources string:'Show Clock in Launcher') on:showClockInLauncher.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4597
    box addHorizontalLine.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4598
    in := box 
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4599
            addLabelledInputField:(resources string:'Transcript Buffer Size:')
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4600
            adjust:#right
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4601
            on:transcriptBufferSize 
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4602
            tabable:true
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4603
            separateAtX:0.6.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4604
    in acceptChannel:acceptChannel.
2807
70a16d1b0d13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2798
diff changeset
  4605
    box addHorizontalLine.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4606
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4607
    box 
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4608
        addHelpButtonFor:'Launcher/toolSettings.html';
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4609
        addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4610
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4611
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4612
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4613
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4614
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4615
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4616
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4617
    "/ update system settings
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 accepted ifTrue:[
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4620
        acceptChannel value:false; value:true.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4621
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4622
        currentUserPrefs useNewInspector:useNewInspector value.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4623
        currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value.
2703
ea75f41902bd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2696
diff changeset
  4624
        currentUserPrefs useNewSystemBrowser:(useNew := useNewSystemBrowser value).
2239
2540ede3681d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2237
diff changeset
  4625
        currentUserPrefs useNewVersionDiffBrowser:useNewVersionDiffBrowser value.
2227
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4626
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4627
        showClock := showClockInLauncher value.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4628
        currentUserPrefs showClockInLauncher ~= showClock ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4629
            currentUserPrefs showClockInLauncher:showClock.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4630
            launcher := Transcript application.
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4631
            (launcher isKindOf:ToolApplicationModel) ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4632
                showClock ifTrue:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4633
                    launcher startClock
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4634
                ] ifFalse:[
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4635
                    launcher stopClock
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4636
                ]
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4637
            ]
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4638
        ].
d81cbdaa0599 #showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4639
3401
71e5f042236f inspector
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  4640
        Inspector := currentUserPrefs inspectorClassSetting.
2553
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4641
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4642
        transcriptBufferSize := Integer readFrom:transcriptBufferSize value onError:Transcript current lineLimit.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4643
        Transcript current lineLimit:transcriptBufferSize.
915720ed9166 Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
  4644
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4645
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4646
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4647
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4648
    "Modified: / 9.9.1996 / 22:43:36 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4649
    "Modified: / 16.4.1998 / 17:18:47 / ca"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4650
    "Created: / 13.10.1998 / 15:44:36 / cg"
3401
71e5f042236f inspector
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  4651
    "Modified: / 12.11.2001 / 15:48:54 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4652
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4653
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4654
viewStyleSettingsFor:requestor 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4655
    "open a dialog on viewStyle related settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4656
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4657
    |resourceDir dir box 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4658
     list listView scrView infoLabel infoForwarder newStyle
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4659
     someRsrcFile didApply resources listUpdater showStandardStylesOnly standardStyles|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4660
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4661
    showStandardStylesOnly := true asValue.
2110
ed1910b1dd06 added decWindows to the standard styles
Claus Gittinger <cg@exept.de>
parents: 2097
diff changeset
  4662
    standardStyles := #(
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4663
                        'decWindows'
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4664
                        'iris' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4665
                        'motif' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4666
                        'mswindows95' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4667
                        'next' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4668
                        'normal'
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4669
                        'os2' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4670
                        'st80' 
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4671
                       ).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4672
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4673
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4674
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4675
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4676
     search resources directory for a list of .style files ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4677
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4678
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4679
    someRsrcFile isNil ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4680
        someRsrcFile := Smalltalk getResourceFileName:'normal.style' forPackage:'stx:libview'.
2528
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4681
        someRsrcFile isNil ifTrue:[
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4682
            someRsrcFile := Smalltalk getResourceFileName:'styles/normal.style' forPackage:'stx:libview'.
e49663321188 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
  4683
        ].
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4684
    ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4685
    someRsrcFile notNil ifTrue:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4686
        resourceDir := someRsrcFile asFilename directoryName
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4687
    ] ifFalse:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4688
        resourceDir := Smalltalk getSystemFileName:'resources'.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4689
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4690
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4691
    resourceDir isNil ifTrue:[
2621
a79f619e7538 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2620
diff changeset
  4692
        requestor warn:'no styles found (missing ''resources'' directory)'.
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4693
        ^ self
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4694
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4695
    dir := resourceDir asFilename directoryContents.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4696
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4697
    list := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4698
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4699
    listUpdater := [
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4700
        |listOfStyles lastSelection|
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4701
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4702
        lastSelection := list selection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4703
        listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4704
        listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4705
        Filename isCaseSensitive ifFalse:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4706
            listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4707
        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4708
        listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4709
        showStandardStylesOnly value ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4710
            listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4711
        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4712
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4713
        listOfStyles sort.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4714
        list list:listOfStyles.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4715
        list selection:lastSelection.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4716
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4717
    listUpdater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4718
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4719
    showStandardStylesOnly onChangeEvaluate:listUpdater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4720
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4721
    infoForwarder := [
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4722
                        |nm sheet comment|
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4723
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4724
                        comment := ''.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4725
                        nm := list selection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4726
                        nm notNil ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4727
                            sheet := ViewStyle fromFile:(nm , '.style').
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4728
                            comment := (sheet at:#comment ifAbsent:'') withoutSeparators.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4729
                        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4730
                        comment := comment withCRs asStringCollection.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4731
                        comment size == 1 ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4732
                            comment := comment first
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4733
                        ].
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4734
                        infoLabel label:comment
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4735
                       ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4736
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4737
    list onChangeEvaluate:infoForwarder.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4738
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4739
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4740
    box label:(resources string:'Style selection').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4741
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4742
    (box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4743
    listView := SelectionInListView on:list.
2798
e3e59ce1a7d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2793
diff changeset
  4744
    listView doubleClickAction:[:sel | box acceptChannel value:true. box hide].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4745
    box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4746
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4747
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4748
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4749
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4750
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4751
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  4752
    box addAbortAndOkButtons.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4753
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4754
"/    b := box addButton:(Button label:(resources string:'apply')).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4755
"/    b action:[didApply := true. requestor changeViewStyleTo:(list selection)].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4756
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4757
    (standardStyles includes:View defaultStyle) ifFalse:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4758
        showStandardStylesOnly value:false
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4759
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4760
    list selection:(View defaultStyle).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4761
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4762
    box stickAtBottomWithVariableHeight:scrView.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4763
    box stickAtBottomWithFixHeight:infoLabel.
2019
02adb457589b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2018
diff changeset
  4764
    didApply := false.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4765
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4766
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4767
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4768
    box accepted ifTrue:[
2462
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4769
        ((newStyle := list selection) ~= View defaultStyle
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4770
        or:[didApply ~~ true]) ifTrue:[
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4771
            requestor changeViewStyleTo:newStyle.
acd79b47c41f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2461
diff changeset
  4772
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4773
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4774
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4775
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4776
     self viewStyleSettingsFor:nil
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4777
    "
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4778
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4779
    "Modified: / 14.9.1998 / 20:33:59 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4780
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4781
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4782
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - file'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4783
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4784
objectModuleDialogFor:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4785
    "opens a moduleInfo dialog"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4786
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4787
    <resource: #programMenu >
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4788
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4789
    |allModules moduleNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4790
     allObjects methodObjects methodNames 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4791
     cObjects cObjectNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4792
     otherObjects otherObjectNames
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4793
     box l handles unloadButton unloadAndRemoveButton
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4794
     list1 list2 listView1 listView2
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4795
     y panel 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4796
     showBuiltIn showModules showMethods showCObjects showOthers
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4797
     moduleListUpdater check canDoIt menu
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4798
     resources middleLabel|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4799
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4800
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4801
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4802
    showBuiltIn := true asValue. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4803
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4804
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4805
    showModules := canDoIt asValue. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4806
    showMethods := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4807
    showCObjects := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4808
    showOthers := canDoIt asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4809
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4810
    list1 := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4811
    list2 := SelectionInList new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4812
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4813
    moduleListUpdater := [
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4814
            |l|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4815
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4816
            list2 list:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4817
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4818
            l := Array new.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4819
            handles := Array new.
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
            (showModules value or:[showBuiltIn value]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4822
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4823
                (showBuiltIn value and:[showModules value]) ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4824
                    allModules := allModules select:[:i |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4825
                        |wantToSee|
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
                        wantToSee := i dynamic.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4828
                        showBuiltIn value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4829
                            wantToSee := wantToSee not
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4830
                        ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4831
                        wantToSee
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4832
                    ]
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
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4835
                "/ 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
  4836
                allModules sort:[:a :b | (a id) > (b id)].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4837
                moduleNames := allModules collect:[:entry | entry name].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4838
                l := l , moduleNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4839
                handles := handles , allModules.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4840
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4841
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4842
            showMethods value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4843
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4844
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4845
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4846
                                                                'compiled method - removed' " , ' (in ' , mH pathName , ')' "
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4847
                                                            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4848
                                                                'compiled method ' , mH method whoString  " , ' (in ' , mH pathName , ')' "
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4849
                                                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4850
                                                     ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4851
                l := l , methodNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4852
                handles := handles , methodObjects.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4853
            ].
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
            showCObjects value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4856
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4857
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4858
                cObjectNames := cObjects collect:[:entry | entry pathName].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4859
                l := l , cObjectNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4860
                handles := handles , cObjects.
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
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4863
            showOthers value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4864
                allObjects := ObjectFileLoader loadedObjectHandles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4865
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4866
                                                         or:[h isMethodHandle
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4867
                                                         or:[h isClassLibHandle]]) not]) asArray.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4868
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4869
                l := l , otherObjectNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4870
                handles := handles , otherObjects.
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
            showBuiltIn value ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4874
                l := #('VM') , l.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4875
                handles := #(VM) , handles.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4876
                allModules := #(VM) , allModules.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4877
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4878
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4879
            list1 list:l.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4880
            unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4881
            unloadAndRemoveButton disable.
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
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4884
    showBuiltIn onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4885
    showModules onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4886
    showMethods onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4887
    showCObjects onChangeEvaluate:moduleListUpdater.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4888
    showOthers onChangeEvaluate:moduleListUpdater.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4889
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4890
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4891
    box label:(resources string:'ST/X & Module Version information').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4892
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4893
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4894
    listView1 model:list1.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4895
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4896
    listView1 action:[:sel |
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4897
        |info classNames tabs module|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4898
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4899
        listView1 middleButtonMenu:nil.
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
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4902
            |nm fileName addr entry1 entry2 entry3 method l|
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
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4905
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4906
            (showModules value or:[showBuiltIn value]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4907
                info := allModules at:sel ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4908
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4909
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4910
                "/ selected a method, cObject or unknown
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4911
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4912
                module := handles at:sel.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4913
                fileName := module pathName.
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
                module isMethodHandle ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4916
                    middleLabel label:'contains method:'.
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
                    (method := module method) isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4919
                        nm := '** removed **'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4920
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4921
                        menu := PopUpMenu
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4922
                                    labels:#('inspect' 'browse')
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4923
                                    selectors:#(inspect browse).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4924
                        menu actionAt:#inspect put:[ method inspect ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4925
                        menu actionAt:#browse put:[ |who|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4926
                                                    who := method who.
3140
1f85ff8a1a22 UserPreference access
Claus Gittinger <cg@exept.de>
parents: 3120
diff changeset
  4927
                                                    UserPreferences systemBrowserClass
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4928
                                                        openInClass:(who methodClass) 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4929
                                                        selector:(who methodSelector) 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4930
                                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4931
                        listView1 middleButtonMenu:menu.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4932
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4933
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
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
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4936
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4937
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4938
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4939
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4940
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4941
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4942
                    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
  4943
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4944
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4945
                ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4946
                    (module isFunctionObjectHandle 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4947
                    and:[module functions notEmpty]) ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4948
                        middleLabel label:'contains function:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4949
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4950
                        menu := PopUpMenu
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4951
                                    labels:#('inspect')
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4952
                                    selectors:#(inspect).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4953
                        menu actionAt:#inspect put:[ module functions inspect  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4954
                        listView1 middleButtonMenu:menu.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4955
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4956
                        list2 list:((module functions select:[:f | f notNil])
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4957
                                        collect:[:f | |entry|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4958
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4959
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4960
                                                        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
  4961
                                                        entry
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4962
                                                ]).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4963
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4964
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4965
                    ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4966
                ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4967
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4968
                unloadButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4969
                unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4970
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4971
                info == #VM ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4972
                    "/ dummy entry for VM;
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4973
                    "/ show file versions in lower view.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4974
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4975
                    middleLabel label:'contains modules:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4976
                    l := (ObjectMemory getVMIdentificationStrings).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4977
                    l := l select:[:entry | entry includesString:'$Header'].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4978
                    l := l select:[:entry | entry includesString:',v'].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4979
                    l := l collect:[:entry |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4980
                        |i1 i2 file revision date listEntry|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4981
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4982
                        listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4983
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4984
                        i1 := entry indexOfSubCollection:'librun'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4985
                        i1 ~~ 0 ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4986
                            i2 := entry indexOfSubCollection:',v' startingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4987
                            i2 ~~ 0 ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4988
                                file := entry copyFrom:i1+7 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4989
                                listEntry colAt:1 put:file.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4990
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4991
                                i1 := i2+3.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4992
                                i2 := entry indexOfSeparatorStartingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4993
                                revision := entry copyFrom:i1 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4994
                                listEntry colAt:2 put:revision.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4995
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4996
                                i1 := i2+1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4997
                                i2 := entry indexOfSeparatorStartingAt:i1.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4998
                                date := entry copyFrom:i1 to:(i2-1).
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  4999
                                listEntry colAt:3 put:date.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5000
                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5001
                        ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5002
                        listEntry.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5003
                        "/ entry
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
                    list2 list:l.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5006
                
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5007
                    unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5008
                    unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5009
                ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5010
                    "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5011
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5012
                    "/ fill bottom list with class-info
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
                    middleLabel label:'contains classes:'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5015
                    classNames := info classNames asSortedCollection.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5016
                    classNames := classNames select:[:cName |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5017
                                    |cls|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5018
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5019
                                    cls := Smalltalk classNamed:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5020
                                    cls isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5021
                                        true "a removed class"
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5022
                                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5023
                                        cls isPrivate not
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
                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5026
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5027
                    classNames := classNames collect:[:cName |
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5028
                                    |cls entry rev listEntry|
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
                                    listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5031
                                    listEntry colAt:1 put:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5032
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5033
                                    cls := Smalltalk classNamed:cName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5034
                                    cls isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5035
                                        listEntry colAt:2 put:'(class removed)'.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5036
                                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5037
                                        rev := cls binaryRevision.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5038
                                        rev notNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5039
                                            cls isLoaded ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5040
                                                entry := '(stub for: ' , rev.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5041
                                            ] ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5042
                                                entry :='(bin: ' , rev.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5043
                                            ].    
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5044
                                            cls revision ~= rev ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5045
                                                entry := entry , ' / src: ' , (cls revision printString)
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5046
                                            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5047
                                            listEntry colAt:2 put:entry , ')'
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5048
                                        ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5049
                                           cls revision notNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5050
                                                listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5051
                                           ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5052
                                        ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5053
                                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5054
                                    listEntry
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5055
                                  ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5056
                    list2 list:classNames.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5057
                    info dynamic ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5058
                        unloadButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5059
                        unloadAndRemoveButton enable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5060
                    ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5061
                        unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5062
                        unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5063
                    ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5064
                ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5065
            ]
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5066
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5067
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5068
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5069
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5070
    panel := HorizontalPanelView new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5071
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5072
    panel add:(l := Label label:'show:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5073
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5074
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5075
    box makeTabable:check.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5076
    panel add:(check := CheckBox label:'classLibs' model:showModules).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5077
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5078
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5079
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5080
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5081
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5082
    panel add:(check := CheckBox label:'methods' model:showMethods).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5083
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5084
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5085
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5086
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5087
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5088
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5089
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5090
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5091
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5092
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5093
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5094
    panel add:(check := CheckBox label:'others' model:showOthers).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5095
    canDoIt ifFalse:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5096
        check disable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5097
    ] ifTrue:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5098
        box makeTabable:check.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5099
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5100
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5101
    panel horizontalLayout:#fitSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5102
    "/ panel horizontalLayout:#leftSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5103
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5104
    box addComponent:panel tabable:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5105
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5106
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5107
    box addComponent:listView1 tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5108
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5109
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5110
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5111
    l := box addTextLabel:(resources string:'contains:').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5112
    l adjust:#left; borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5113
    l origin:0.0@0.4 corner:1.0@0.4.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5114
    l topInset:(View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5115
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5116
    middleLabel := l.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5117
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5118
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5119
    listView2 model:list2; printItems:false.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5120
    box addComponent:listView2 tabable:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5121
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5122
    listView2 disable.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5123
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5124
    unloadButton := Button label:(resources string:'unload').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5125
    unloadButton action:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5126
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5127
            |info idx pathName|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5128
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5129
            idx := list1 selectionIndex.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5130
            info := allModules at:idx ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5131
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5132
            list1 selectionIndex:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5133
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5134
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5135
                "/ selected a method
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5136
                "/ idx := idx - allModules size.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5137
                pathName := (handles at:idx) pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5138
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5139
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5140
                "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5141
                pathName := info pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5142
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5143
            ObjectFileLoader unloadObjectFile:pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5144
            moduleListUpdater value.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5145
            unloadButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5146
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5147
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5148
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5149
    unloadAndRemoveButton := Button label:(resources string:'remove classes & unload').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5150
    unloadAndRemoveButton action:[
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5151
        box withWaitCursorDo:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5152
            |info idx pathName|
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5153
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5154
            idx := list1 selectionIndex.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5155
            info := allModules at:idx ifAbsent:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5156
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5157
            list1 selectionIndex:nil.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5158
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5159
            info isNil ifTrue:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5160
                "/ selected a method
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5161
                "/ idx := idx - allModules size.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5162
                pathName := (handles at:idx) pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5163
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5164
            ] ifFalse:[
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5165
                "/ selected a package
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5166
                pathName := info pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5167
            ].
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5168
            ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5169
            moduleListUpdater value.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5170
            unloadAndRemoveButton disable.
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5171
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5172
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5173
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5174
    moduleListUpdater value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5175
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5176
    box addButton:unloadButton.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5177
    box addButton:unloadAndRemoveButton.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5178
    box addAbortButtonLabelled:(resources string:'dismiss').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5179
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5180
    y := box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5181
    listView2 topInset:(l preferredExtent y + 5).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5182
    listView2 bottomInset:(box preferredExtent y - y).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5183
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5184
    box width:(400 min:(box device width * 2 // 3)); 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5185
        height:(450 min:(box device height - 50)).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5186
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5187
"/  box sizeFixed:true.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5188
    box openWithExtent:(600 min:(box device width * 2 // 3))
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5189
                       @
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5190
                       (500 min:(box device height - 50)) .
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5191
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5192
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5193
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5194
    "Modified: / 17.9.1995 / 16:47:50 / claus"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5195
    "Created: / 31.7.1998 / 15:49:45 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5196
    "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
  5197
!
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5198
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5199
packageDialogFor:requestor
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5200
    "opens a package dialog"
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5201
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5202
    |allPackages packageList packageUpdater
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5203
     box l listView tabs
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5204
     y menu resources selectedPackage|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5205
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5206
    resources := requestor class classResources.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5207
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5208
    box := Dialog new.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5209
    box label:(resources string:'Packages').
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5210
2493
e25c257bda20 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  5211
    allPackages := Set new.
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5212
    allPackages addAll:(Smalltalk knownPackages).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5213
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5214
    Project knownProjects do:[:package |
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5215
        allPackages add:(package name)    
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5216
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5217
    Project loadedProjects do:[:package |
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5218
        allPackages add:(package name)    
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5219
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5220
    allPackages := allPackages asOrderedCollection sort.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5221
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5222
    packageUpdater := [
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5223
        tabs := TabulatorSpecification unit:#inch positions:#(0 4).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5224
        packageList := allPackages collect:[:pName | |pkg entry|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5225
                            entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5226
                            pkg := Project projectWithId:pName asSymbol.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5227
                            (pkg notNil and:[pkg isLoaded]) ifTrue:[
2866
bdbdb168bc5c asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 2861
diff changeset
  5228
                                entry colAt:1 put:pName allBold.
2490
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5229
                                entry colAt:2 put:'loaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5230
                            ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5231
                                entry colAt:1 put:pName.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5232
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5233
                                (Smalltalk allClasses
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5234
                                     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
  5235
                                ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5236
                                    (Smalltalk allClasses
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5237
                                         contains:[:cls | cls package = pName and:[cls isLoaded]])
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5238
                                    ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5239
                                        entry colAt:2 put:'loaded/autoloaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5240
                                    ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5241
                                        entry colAt:2 put:'autoloaded'.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5242
                                    ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5243
                                ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5244
                            ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5245
                            entry
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5246
                       ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5247
    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5248
    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5249
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5250
    listView := HVScrollableView for:SelectionInListView miniScrollerH:true.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5251
    listView list:packageList.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5252
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5253
    box addComponent:listView tabable:true.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5254
    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
  5255
    listView bottomInset:40.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5256
    listView action:[:selIndex | |pkg|
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5257
                        selectedPackage := (allPackages at:selIndex) asSymbol.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5258
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5259
                        pkg := Project projectWithId:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5260
                        (pkg notNil and:[pkg isLoaded]) ifTrue:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5261
                            menu disable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5262
"/                            menu enable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5263
                        ] ifFalse:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5264
"/                            menu disable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5265
                            menu enable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5266
                        ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5267
                    ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5268
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5269
    menu := PopUpMenu 
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5270
                itemList:#(
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5271
                    ('load...'    load  )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5272
"/                    ('-'          nil   )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5273
"/                    ('unload...'  unload)
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5274
                )
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5275
                resources:resources.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5276
    listView middleButtonMenu:menu.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5277
    menu actionAt:#load   put:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5278
                                box withWaitCursorDo:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5279
                                    Smalltalk loadPackage:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5280
                                    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5281
                                ]
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5282
                              ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5283
"/    menu actionAt:#unload put:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5284
"/                                box withWaitCursorDo:[
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5285
"/                                    Smalltalk unloadPackage:selectedPackage.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5286
"/                                    packageUpdater value.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5287
"/                                ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5288
"/                              ].
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5289
    menu disable:#load.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5290
"/    menu disable:#unload.
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5291
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5292
    box addAbortButtonLabelled:(resources string:'dismiss').
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5293
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5294
    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
  5295
        height:(450 min:(box device height - 50)).
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5296
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5297
    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
  5298
                       @
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5299
                       (500 min:(box device height - 50)) .
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5300
924e607d11d8 first version of a package dialog
Claus Gittinger <cg@exept.de>
parents: 2462
diff changeset
  5301
    box destroy.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5302
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5303
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5304
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - private'!
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5305
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5306
cvsConfigurationDialogFor:requestor
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5307
    |cvsRootHolder resources defaultsList bindings dialog 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5308
     listOfModules selectedPerModuleRoot rootsPerModule acceptChannel
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  5309
     removeEnabled cvsBinDirectoryHolder|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5310
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5311
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5312
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5313
    OperatingSystem isUNIXlike ifTrue:[
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5314
        defaultsList := #(
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5315
                          '/files/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5316
                          '/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5317
                          'host:/files/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5318
                          'host:/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5319
                          ':pserver:user@host:/files/CVS'
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5320
                         ).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5321
    ] ifFalse:[
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5322
        OperatingSystem isMSDOSlike ifTrue:[
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5323
            defaultsList := #(
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5324
                              ':local:c:\files\CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5325
                              ':local:c:\CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5326
                              'host:/files/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5327
                              'host:/CVS' 
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5328
                              ':pserver:user@host:/files/CVS'
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  5329
                             ).
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5330
        ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5331
            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
  5332
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5333
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5334
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5335
    cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5336
    cvsRootHolder := cvsRootHolder asValue.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5337
    rootsPerModule := Dictionary new declareAllFrom:(CVSSourceCodeManager repositoryNamesPerModule).
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  5338
    cvsBinDirectoryHolder := CVSSourceCodeManager cvsBinDirectory asValue.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5339
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5340
    bindings := IdentityDictionary new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5341
    bindings at:#acceptChannel put:(acceptChannel := TriggerValue new).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5342
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5343
    bindings at:#cvsRootPrototypeList put:defaultsList.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5344
    bindings at:#cvsRootHolder put:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5345
    bindings at:#perModuleRootModule put:nil asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5346
    bindings at:#perModuleRoot put:nil asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5347
    bindings at:#removeEnabled put:(removeEnabled := false asValue).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5348
    bindings at:#listOfModules put:(listOfModules := rootsPerModule keys asList).
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  5349
    bindings at:#cvsBinDirectoryHolder put:cvsBinDirectoryHolder.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5350
    listOfModules sort.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5351
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5352
    bindings at:#selectedPerModuleRoot put:(selectedPerModuleRoot := nil asValue).
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5353
    selectedPerModuleRoot 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5354
             onChangeEvaluate:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5355
                            |module cvsRoot|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5356
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5357
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5358
                            module := selectedPerModuleRoot value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5359
                            removeEnabled value:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5360
                            cvsRoot := rootsPerModule at:module ifAbsent:''.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5361
                            (bindings at:#perModuleRootModule) value:module.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5362
                            (bindings at:#perModuleRoot) value:cvsRoot.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5363
             ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5364
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5365
    bindings at:#help put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5366
                            requestor withWaitCursorDo:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5367
                                HTMLDocumentView openFullOnHelpFile:'Launcher/cvsSetup.html'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5368
                            ]
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5369
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5370
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5371
    bindings at:#addPerModuleRoot put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5372
                            |module cvsRoot|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5373
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5374
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5375
                            module := (bindings at:#perModuleRootModule) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5376
                            cvsRoot := (bindings at:#perModuleRoot) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5377
                            (listOfModules includes:module) ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5378
                                listOfModules add:module.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5379
                                listOfModules sort.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5380
                            ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5381
                            cvsRoot size > 0 ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5382
                                rootsPerModule at:module put:cvsRoot.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5383
                            ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5384
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5385
    bindings at:#removePerModuleRoot put:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5386
                            |module|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5387
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5388
                            acceptChannel value:true.    
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5389
                            module := (bindings at:#perModuleRootModule) value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5390
                            listOfModules remove:module ifAbsent:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5391
                            rootsPerModule removeKey:module ifAbsent:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5392
                            (bindings at:#perModuleRootModule) value:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5393
                            (bindings at:#perModuleRoot) value:nil.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5394
                          ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5395
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5396
    dialog := SimpleDialog new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5397
    dialog resources:resources.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5398
    (dialog openSpec:(self cvsSetupSpec) withBindings:bindings) ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5399
        ^ self
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5400
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5401
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5402
    acceptChannel value.    
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5403
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5404
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5405
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5406
    "/
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  5407
    CVSSourceCodeManager cvsBinDirectory:cvsBinDirectoryHolder value.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5408
    CVSSourceCodeManager initializeForRepository:cvsRootHolder value.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5409
    CVSSourceCodeManager repositoryNamesPerModule:rootsPerModule.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5410
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5411
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5412
fontBoxForEncoding:encodingMatch for:requestor
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5413
    "open a fontBox, showing fonts which match some encoding
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5414
     (used when changing to japanese ...)"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5415
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5416
    |box y b
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5417
     labelDef buttonDef listDef menuDef textDef
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5418
     models labels allOfThem filter resources defaultButton|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5419
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5420
    resources := requestor class classResources.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5421
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5422
    encodingMatch notNil ifTrue:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5423
        filter := [:f | f encoding notNil 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5424
                        and:[encodingMatch match:f encoding]].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5425
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5426
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5427
    models := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5428
    labels := OrderedCollection new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5429
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5430
    models add:(allOfThem := nil asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5431
    models add:(labelDef := Label defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5432
    models add:(buttonDef := Button defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5433
    models add:(listDef := SelectionInListView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5434
    models add:(menuDef := MenuView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5435
    models add:(textDef := TextView defaultFont asValue).
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5436
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5437
    box := Dialog new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5438
    box label:(resources string:'Font settings').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5439
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5440
    models
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5441
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5442
    do:[:model :title |
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5443
        |y2 lbl f i|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5444
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5445
        f := model value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5446
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5447
        (box addTextLabel:title) adjust:#left.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5448
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5449
        y := box yPosition.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5450
        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
  5451
        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
  5452
        y2 := box yPosition.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5453
        box yPosition:y.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5454
        i := box leftIndent.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5455
        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
  5456
        (lbl := box addTextLabel:'')
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5457
            adjust:#left;
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5458
            font:(model value);
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5459
            labelChannel:(BlockValue 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5460
                            with:[:v | |f|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5461
                                f := v value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5462
                                f isNil ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5463
                                    ''
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5464
                                ] ifFalse:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5465
                                    f userFriendlyName
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5466
                                ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5467
                            ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5468
                            argument:model).
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5469
        labels add:lbl.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5470
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5471
        box leftIndent:i.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5472
        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
  5473
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5474
        box addVerticalSpace; addHorizontalLine; addVerticalSpace.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5475
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5476
        b action:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5477
            |f|
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5478
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5479
            f := FontPanel 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5480
                fontFromUserInitial:(model value) 
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5481
                              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
  5482
                             filter:filter.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5483
            f notNil ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5484
                model == allOfThem ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5485
                    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
  5486
                    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
  5487
                ] ifFalse:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5488
                    model value:f.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5489
                    lbl font:f.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5490
                ].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5491
            ]
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5492
        ].
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5493
        model == allOfThem ifTrue:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5494
            box addVerticalSpace
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5495
        ]
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5496
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5497
2048
f8c010698b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2047
diff changeset
  5498
    box addAbortAndOkButtons.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5499
    defaultButton := Button label:(resources string:'defaults').
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5500
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5501
    (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
  5502
        box addButton:defaultButton after:nil.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5503
    ] ifFalse:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5504
        box addButton:defaultButton before:nil.
2047
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5505
    ].
bb2070a26bd2 care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
  5506
    defaultButton
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5507
        action:[
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5508
            "/ fetch defaults
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5509
            View readStyleSheetAndUpdateAllStyleCaches.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5510
            labelDef value: Label defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5511
            buttonDef value: Button defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5512
            listDef value: SelectionInListView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5513
            menuDef value: MenuView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5514
            textDef value: TextView defaultFont.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5515
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5516
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5517
    box open.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5518
    box accepted ifTrue:[
2209
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5519
        Label defaultFont:labelDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5520
        Button defaultFont:buttonDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5521
        Toggle defaultFont:buttonDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5522
        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
  5523
        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
  5524
        MenuView defaultFont:menuDef value.
753b5db1eea5 font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  5525
        PullDownMenu defaultFont:menuDef value.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5526
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5527
    box destroy.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5528
    ^ box accepted
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5529
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5530
    "Created: / 27.2.1996 / 01:44:16 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5531
    "Modified: / 17.6.1996 / 13:38:48 / stefan"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5532
    "Modified: / 15.9.1998 / 22:04:51 / cg"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5533
!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5534
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5535
formattingConfigurationDialogFor:requestor
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5536
    |dialog frame exampleView y 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5537
     resources exampleText formattedText reformatAction
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5538
     reformatLocked
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5539
     oldUserPreferences
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5540
     b resetList components
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5541
     resetListBox currentUserPrefs 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5542
     tabIndent  
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5543
     spaceAroundTemporaries emptyLineAfterTemporaries 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5544
     spaceAfterReturnToken spaceAfterKeywordSelector cStyleBlocks
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5545
     blockArgumentsOnNewLine
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5546
     maxLengthForSingleLineBlocks resetValue bindings|
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5547
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5548
    RBFormatter isNil ifTrue:[
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5549
        ^ requestor warn:'Sorry, no RBFormatter class'.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5550
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5551
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5552
    RBFormatter isLoaded ifFalse:[
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5553
        requestor withWaitCursorDo:[
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5554
            RBFormatter autoload
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5555
        ]
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5556
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5557
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5558
    resources := requestor class classResources.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5559
    currentUserPrefs := UserPreferences current.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5560
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5561
    exampleText := 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5562
'methodSelector:methodArg
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5563
    "method comment:
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5564
     some stupid code to show the current settings"
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5565
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5566
    |index|
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5567
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5568
    "/ another comment ...
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5569
    self at:index.                      "/ a message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5570
    self at:index put:methodArg.        "/ a two arg message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5571
    self from:1 to:index put:methodArg. "/ a three arg message
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5572
    methodArg ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5573
        Transcript showCR:''hello''.      "/ condition
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5574
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5575
    methodArg ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5576
        Transcript showCR:''hello''.      "/ condition
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5577
    ] ifFalse:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5578
        Transcript showCR:''world''.      
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5579
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5580
    [methodArg] whileTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5581
        Transcript showCR:''hello''.      "/ looping
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
    [self aVeryLongConditionBlock and:[self toMakeBlockLonger]] whileTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5584
        Transcript showCR:''hello''.      "/ long blocks
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
    methodArg do:[:element |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5587
        Transcript showCR:''hello''.      "/ looping
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
    1 to:methodArg size do:[:index |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5590
        Transcript showCR:''hello''.      "/ looping
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5591
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5592
    methodArg keysAndValuesDo:[:index |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5593
        Transcript showCR:''hello''.      "/ looping
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
    Object errorSignal handle:[:ex |      
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5596
        ex return                         
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5597
    ] do:[                                "/ exception handling
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5598
        self someAction                   "/ blocks
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5599
    ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5600
    ^ self.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5601
'.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5602
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5603
    formattedText := '' asValue.
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5604
    reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5605
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5606
    reformatAction := [ |tree
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5607
                         s_tabIndent s_spaceAroundTemporaries s_emptyLineAfterTemporaries
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5608
                         s_spaceAfterReturnToken s_spaceAfterKeywordSelector s_cStyleBlocks
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5609
                         s_maxLengthForSingleLineBlocks s_blockArgumentsOnNewLine|
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5610
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5611
                        reformatLocked ifFalse:[
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5612
                            "/
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5613
                            "/ temporary change the RBFormatters settings ...
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5614
                            "/
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5615
                            s_tabIndent := RBFormatter tabIndent.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5616
                            s_spaceAroundTemporaries := RBFormatter spaceAroundTemporaries.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5617
                            s_emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5618
                            s_spaceAfterReturnToken := RBFormatter spaceAfterReturnToken.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5619
                            s_spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5620
                            s_cStyleBlocks := RBFormatter cStyleBlocks.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5621
                            s_blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5622
                            s_maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks.
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5623
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5624
                            RBFormatter 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5625
                                tabIndent:tabIndent value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5626
                                spaceAroundTemporaries:spaceAroundTemporaries value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5627
                                emptyLineAfterTemporaries:emptyLineAfterTemporaries value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5628
                                spaceAfterReturnToken:spaceAfterReturnToken value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5629
                                spaceAfterKeywordSelector:spaceAfterKeywordSelector value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5630
                                cStyleBlocks:cStyleBlocks value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5631
                                blockArgumentsOnNewLine:blockArgumentsOnNewLine value;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5632
                                maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5633
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5634
                            tree := RBParser 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5635
                                        parseMethod:exampleText
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5636
                                        onError: [:aString :position | nil].
3324
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5637
                            tree do:[:node |
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5638
                                node ~~ tree ifTrue:[
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5639
                                    node parent haltIfNil
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5640
                                ]
e9730d911afe checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3293
diff changeset
  5641
                            ].
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5642
                            formattedText value:tree printString.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5643
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5644
                            RBFormatter 
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5645
                                tabIndent:s_tabIndent;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5646
                                spaceAroundTemporaries:s_spaceAroundTemporaries;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5647
                                emptyLineAfterTemporaries:s_emptyLineAfterTemporaries;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5648
                                spaceAfterReturnToken:s_spaceAfterReturnToken;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5649
                                spaceAfterKeywordSelector:s_spaceAfterKeywordSelector;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5650
                                cStyleBlocks:s_cStyleBlocks;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5651
                                blockArgumentsOnNewLine:s_blockArgumentsOnNewLine;
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5652
                                maxLengthForSingleLineBlocks:s_maxLengthForSingleLineBlocks.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5653
                          ].
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5654
                      ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5655
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5656
    bindings := IdentityDictionary new.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5657
    bindings at:#formattedText put:formattedText.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5658
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5659
    oldUserPreferences := currentUserPrefs copy.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5660
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5661
    tabIndent := RBFormatter tabIndent asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5662
    tabIndent onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5663
    bindings at:#tabIndent put:tabIndent.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5664
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5665
    spaceAroundTemporaries := RBFormatter spaceAroundTemporaries asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5666
    spaceAroundTemporaries onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5667
    bindings at:#spaceAroundTemporaries put:spaceAroundTemporaries.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5668
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5669
    emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5670
    emptyLineAfterTemporaries onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5671
    bindings at:#emptyLineAfterTemporaries put:emptyLineAfterTemporaries.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5672
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5673
    spaceAfterReturnToken := RBFormatter spaceAfterReturnToken asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5674
    spaceAfterReturnToken onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5675
    bindings at:#spaceAfterReturnToken put:spaceAfterReturnToken.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5676
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5677
    spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5678
    spaceAfterKeywordSelector onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5679
    bindings at:#spaceAfterKeywordSelector put:spaceAfterKeywordSelector.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5680
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5681
    cStyleBlocks := RBFormatter cStyleBlocks asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5682
    cStyleBlocks onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5683
    bindings at:#cStyleBlocks put:cStyleBlocks.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5684
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5685
    blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine asValue.
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5686
    blockArgumentsOnNewLine onChangeEvaluate:reformatAction. 
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5687
    bindings at:#blockArgumentsOnNewLine put:blockArgumentsOnNewLine.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5688
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5689
    maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks asValue.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5690
    maxLengthForSingleLineBlocks onChangeEvaluate:reformatAction. 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5691
    bindings at:#maxLengthForSingleLineBlocks put:maxLengthForSingleLineBlocks.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5692
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5693
    bindings at:#resetList   put:#( 'ST/X default' 'RB default' ).
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5694
    bindings at:#resetValue  put:(resetValue := nil asValue).
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5695
    resetValue onChangeEvaluate:
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5696
        [
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5697
            resetValue value == 1 ifTrue:[
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5698
                "/ ST/X defaults
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5699
                reformatLocked := true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5700
                tabIndent value: 4.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5701
                spaceAfterReturnToken value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5702
                spaceAfterKeywordSelector value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5703
                spaceAroundTemporaries value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5704
                emptyLineAfterTemporaries value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5705
                cStyleBlocks value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5706
                blockArgumentsOnNewLine value:false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5707
                maxLengthForSingleLineBlocks value: 20.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5708
                reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5709
                reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5710
            ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5711
            resetValue value == 2 ifTrue:[
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5712
                "/ RBParser defaults
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5713
                reformatLocked := true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5714
                tabIndent value: 8.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5715
                spaceAfterReturnToken value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5716
                spaceAfterKeywordSelector value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5717
                spaceAroundTemporaries value: true.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5718
                emptyLineAfterTemporaries value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5719
                cStyleBlocks value: false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5720
                blockArgumentsOnNewLine value:false.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5721
                maxLengthForSingleLineBlocks value: 20.
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5722
                reformatLocked := false.
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5723
                reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5724
            ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5725
            resetValue value:nil. "/ to force default label
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5726
        ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5727
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5728
    reformatAction value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5729
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5730
    "/
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5731
    "/ create a box on those ...
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5732
    "/
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5733
    dialog := SimpleDialog new.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5734
    dialog postBuildBlock:[:builder |
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5735
                                (builder componentAt:#sampleTextView) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5736
                                    cursorMovementWhenUpdating:nil;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5737
                                    scrollWhenUpdating:nil.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5738
                          ].
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5739
    (dialog openFor:nil 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5740
        spec:(self formatterDialogSpec) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5741
        withBindings:bindings) 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5742
    ifTrue:[
3601
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5743
        currentUserPrefs at:#'formatter.tabIndent' put:tabIndent value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5744
        currentUserPrefs at:#'formatter.spaceAroundTemporaries' put:spaceAroundTemporaries value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5745
        currentUserPrefs at:#'formatter.emptyLineAfterTemporaries' put:emptyLineAfterTemporaries value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5746
        currentUserPrefs at:#'formatter.spaceAfterReturnToken' put:spaceAfterReturnToken value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5747
        currentUserPrefs at:#'formatter.spaceAfterKeywordSelector' put:spaceAfterKeywordSelector value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5748
        currentUserPrefs at:#'formatter.cStyleBlocks' put:cStyleBlocks value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5749
        currentUserPrefs at:#'formatter.blockArgumentsOnNewLine' put:blockArgumentsOnNewLine value.
dafc2f087b78 formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents: 3587
diff changeset
  5750
        currentUserPrefs at:#'formatter.maxLengthForSingleLineBlocks' put:maxLengthForSingleLineBlocks value.
2833
5bceae325a3e BRxxx -> RBxxx rename
Claus Gittinger <cg@exept.de>
parents: 2809
diff changeset
  5751
        RBFormatter 
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5752
            tabIndent:tabIndent value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5753
            spaceAroundTemporaries:spaceAroundTemporaries value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5754
            emptyLineAfterTemporaries:emptyLineAfterTemporaries value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5755
            spaceAfterReturnToken:spaceAfterReturnToken value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5756
            spaceAfterKeywordSelector:spaceAfterKeywordSelector value;
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5757
            cStyleBlocks:cStyleBlocks value;
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  5758
            blockArgumentsOnNewLine:blockArgumentsOnNewLine value;
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5759
            maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value.
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5760
    ] ifFalse: [
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5761
        (UserPreferences reset; current) declareAllFrom: oldUserPreferences
2838
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  5762
    ].
141a4b203b92 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2833
diff changeset
  5763
!
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  5764
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5765
old_cvsConfigurationDialogFor:requestor
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5766
    |box y cvsRootHolder component resources defaultsList|
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5767
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5768
    resources := requestor class classResources.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5769
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5770
    OperatingSystem isUNIXlike ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5771
        defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5772
    ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5773
        OperatingSystem isMSDOSlike ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5774
            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
  5775
        ] ifFalse:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5776
            defaultsList := #('host:/files/CVS' 'host:/CVS').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5777
        ]
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5778
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5779
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5780
    cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5781
    cvsRootHolder := cvsRootHolder asValue.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5782
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5783
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5784
    "/ create a box to input the CVSRoot ...
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5785
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5786
    box := DialogBox new.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5787
    box label:(resources string:'CVS Setup').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5788
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5789
    component := (box addTextLabel:'CVS SourceCodeManager setup').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5790
    component adjust:#left.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5791
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5792
    y := box yPosition.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5793
    component := box addTextLabel:(resources string:'CVSRoot:').
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5794
    component width:0.25; adjust:#right; borderWidth:0.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5795
    box yPosition:y.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5796
    component := box addComboBoxOn:nil tabable:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5797
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5798
    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
  5799
    component list:defaultsList.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5800
    component model:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5801
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5802
"/    component := box 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5803
"/                    addLabelledInputField:(resources string:'CVSRoot:')
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5804
"/                    adjust:#right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5805
"/                    on:nil 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5806
"/                    tabable:true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5807
"/                    separateAtX:0.5.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5808
"/    component acceptOnLeave:false.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5809
"/    component model:cvsRootHolder.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5810
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5811
    box 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5812
        addHelpButtonFor:'Launcher/sourceSettings.html';
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5813
        addAbortAndOkButtons.
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5814
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5815
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5816
    "/ show the box ...
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5817
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5818
    box extent:400@300.
3293
d7b925f89a7b dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
  5819
    box open.
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5820
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5821
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5822
    "/ update system settings
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5823
    "/
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5824
    box accepted ifTrue:[
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5825
        CVSSourceCodeManager initializeForRepository:cvsRootHolder value
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5826
    ].
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5827
    box destroy
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5828
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5829
    "Modified: / 16.4.1998 / 17:18:16 / ca"
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5830
    "Modified: / 12.8.1998 / 17:09:02 / cg"
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5831
!
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  5832
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5833
syntaxColorConfigurationDialogFor:requestor
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5834
    |box frame exampleView y
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5835
     resources exampleText coloredText recolorAction
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5836
     syntaxColor syntaxColors colorMenu oldUserPreferences
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5837
     syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5838
     syntaxEmphasisesBox syntaxColoringResetButton b resetList
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5839
     resetListBox currentUserPrefs|
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5840
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5841
    resources := requestor class classResources.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5842
    currentUserPrefs := UserPreferences current.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5843
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5844
    exampleText := 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5845
'methodSelector:methodArg
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5846
    "method comment:
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5847
     some stupid code to show the current settings"
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5848
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5849
    |methodVar|
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5850
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5851
    "/ another comment ...
2200
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5852
    self at:methodArg.        "/ a message
3238
24602460b3af checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3237
diff changeset
  5853
    self fooBarBaz:methodVar. "/ a bad message
2045
59dae01315b9 added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents: 2041
diff changeset
  5854
    methodVar := Array new:1.
2200
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5855
    unknonVar := 1.           "/ a bad variable
b056d74ee93f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2199
diff changeset
  5856
    UnknonVar := 1.           "/ another bad variable
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5857
    "self bar:methodVar.  detect commented code easily"
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5858
    1 to:5 do:[:i | self at:i + 1].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5859
    Transcript showCR:''some string'' , #someSymbol.
2083
3ebaf8eceeaf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2081
diff changeset
  5860
    ^ self.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5861
'.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5862
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5863
    coloredText := '' asValue.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5864
    recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5865
    recolorAction value.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5866
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5867
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5868
    "/ create a box on those values ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5869
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5870
    box := DialogBox new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5871
    box label:(resources string:'Syntax Colors').
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5872
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5873
    frame := View new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5874
    frame extent:1.0 @ 200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5875
    frame borderWidth:0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5876
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5877
    exampleView := HVScrollableView for:TextView in:frame.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5878
    exampleView model:coloredText.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5879
    exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5880
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5881
    frame topInset:box yPosition.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5882
    box addComponent:frame withExtent:1.0@200.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5883
    box makeTabable:exampleView. 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5884
    frame width:1.0.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5885
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5886
    box addVerticalSpace.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5887
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5888
    oldUserPreferences := currentUserPrefs copy.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5889
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5890
    syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColorNames initialSelection:1).
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5891
    syntaxColorSelector    := [(syntaxColors selection replChar:$  withString: '') asLowercaseFirst asSymbol].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5892
    syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol].
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5893
    syntaxColor := (currentUserPrefs perform: syntaxColorSelector value) asValue.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5894
    colorMenu := ColorMenu new.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5895
    colorMenu model: syntaxColor.
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5896
    syntaxColor onChangeEvaluate: 
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5897
        [currentUserPrefs at:  syntaxColorSelector value put: syntaxColor value.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5898
         recolorAction value.].
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5899
    syntaxColors onChangeEvaluate: 
2960
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5900
        [|eVal|
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5901
         syntaxColor value: (currentUserPrefs perform:syntaxColorSelector value).
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5902
         eVal := currentUserPrefs perform: syntaxEmphasisSelector value.
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5903
         eVal isArray ifTrue:[
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5904
            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
  5905
                eVal := #'red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5906
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5907
            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
  5908
                eVal := #'bold+red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5909
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5910
            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
  5911
                eVal := #'bold+red underline'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5912
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5913
            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
  5914
                eVal := #'italic+red underwave'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5915
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5916
            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
  5917
                eVal := #'italic+red underline'    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5918
            ].    
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5919
         ].
9b36fbdef4e9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2905
diff changeset
  5920
         syntaxEmphasises selection: eVal.
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5921
         recolorAction value.].
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5922
2233
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5923
    syntaxEmphasises := SelectionInList 
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5924
                            with:#(
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5925
                                    normal
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5926
                                    underline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5927
                                    #'red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5928
                                    underwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5929
                                    #'red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5930
                                    bold
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5931
                                    boldUnderline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5932
                                    #'bold+red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5933
                                    boldUnderwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5934
                                    #'bold+red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5935
                                    italic
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5936
                                    italicUnderline
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5937
                                    #'italic+red underline'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5938
                                    italicUnderwave
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5939
                                    #'italic+red underwave'
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5940
                                    reverse
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5941
                                  ) 
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5942
                            initialSelection:1.
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5943
    syntaxEmphasisesBox := box addComboListOn:syntaxEmphasises.
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5944
    syntaxEmphasises 
2584
029cf4b76f36 use #onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 2569
diff changeset
  5945
        onChangeEvaluate:[ |em|
2569
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5946
            em := syntaxEmphasises selection.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5947
            em notNil ifTrue:[
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5948
                em := em asSymbol.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5949
                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
  5950
                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
  5951
                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
  5952
                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
  5953
                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
  5954
                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
  5955
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5956
                currentUserPrefs at: syntaxEmphasisSelector value put:em.
8d5bff054544 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2561
diff changeset
  5957
            ].
2233
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5958
            recolorAction value
9fafda9e4ae8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  5959
        ].
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5960
    syntaxColors changed:#value. "/ to force initial update of emphasis
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5961
    box addComponent:colorMenu tabable:true.
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5962
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5963
    y := box yPosition.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5964
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5965
    b := Button new label: (resources string:'reset to:').
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5966
    b action:[
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5967
        |resetSelector|
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5968
3385
0f41b06f2366 syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 3369
diff changeset
  5969
        resetSelector := (currentUserPrefs listOfPredefinedSyntaxColoringSchemes
0f41b06f2366 syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 3369
diff changeset
  5970
                             collect:[:eachEntry | eachEntry first])
0f41b06f2366 syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 3369
diff changeset
  5971
                                 at:resetList selectionIndex.
2395
958d743c03a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2382
diff changeset
  5972
        currentUserPrefs perform:resetSelector. 
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5973
        recolorAction value.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5974
    ].
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5975
    syntaxColoringResetButton := box addComponent:b.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5976
    box makeTabable:syntaxColoringResetButton.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5977
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5978
    box yPosition:y.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5979
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5980
    resetList := SelectionInList 
3385
0f41b06f2366 syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 3369
diff changeset
  5981
                            with:(currentUserPrefs listOfPredefinedSyntaxColoringSchemes
0f41b06f2366 syntax coloring stuff
Claus Gittinger <cg@exept.de>
parents: 3369
diff changeset
  5982
                                        collect:[:eachEntry | eachEntry second])
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5983
                            initialSelection:1.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5984
    resetListBox := box addComboListOn:resetList.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5985
    box makeTabable:resetListBox.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5986
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5987
    syntaxColoringBox enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5988
    colorMenu enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5989
    syntaxEmphasisesBox enable.  
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  5990
    syntaxColoringResetButton enable. 
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5991
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5992
    box 
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5993
"/        addHelpButtonFor:'Launcher/sourceSettings.html';
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5994
        addAbortAndOkButtons.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5995
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5996
    box stickAtBottomWithVariableHeight:frame.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5997
    box stickAtBottomWithFixHeight:syntaxColoringBox.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5998
    box stickAtBottomWithFixHeight:syntaxEmphasisesBox.
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  5999
    box stickAtBottomWithFixHeight:colorMenu.
2237
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  6000
    box stickAtBottomWithFixHeight:syntaxColoringResetButton left:0.0 right:0.5.
ddd553ff2ed5 added some default color settings
Claus Gittinger <cg@exept.de>
parents: 2234
diff changeset
  6001
    box stickAtBottomWithFixHeight:resetListBox left:0.5 right:1.0.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6002
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6003
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6004
    "/ show the box ...
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6005
    "/
2234
7641ad0b4bf8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2233
diff changeset
  6006
    box extent:600@400.
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6007
    box openModal.
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6008
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6009
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6010
    "/ update system settings
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6011
    "/
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6012
    box accepted ifTrue:[
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6013
    ] ifFalse: [
2194
e95ad72c0f46 added immedate selector check option
Claus Gittinger <cg@exept.de>
parents: 2165
diff changeset
  6014
        (UserPreferences reset; current) declareAllFrom: oldUserPreferences
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6015
    ].
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6016
    box destroy
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6017
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6018
    "Modified: / 16.4.1998 / 17:18:16 / ca"
2234
7641ad0b4bf8 support underwave
Claus Gittinger <cg@exept.de>
parents: 2233
diff changeset
  6019
    "Modified: / 7.7.1999 / 00:27:02 / cg"
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6020
! !
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6021
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6022
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'interface specs'!
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6023
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6024
cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6025
    "This resource specification was automatically generated
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6026
     by the UIPainter of ST/X."
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
    "Do not manually edit this!! If it is corrupted,
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6029
     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
  6030
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6031
    "
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6032
     UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6033
    "
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6034
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6035
    <resource: #canvas>
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6036
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6037
    ^ 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6038
     #(#FullSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6039
        #name: #cvsSetupSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6040
        #window: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6041
       #(#WindowSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6042
          #label: 'CVS Setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6043
          #name: 'CVS Setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6044
          #min: #(#Point 436 316)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6045
          #max: #(#Point 1280 1024)
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6046
          #bounds: #(#Rectangle 13 23 449 377)
2884
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
        #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6049
       #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6050
          #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6051
           #(#LabelSpec
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6052
              #label: 'CVS BinDirectory:'
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6053
              #name: 'Label1'
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6054
              #layout: #(#LayoutFrame 0 0.0 36 0 40 0.25 53 0)
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6055
              #level: 0
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6056
              #translateLabel: true
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6057
              #adjust: #right
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6058
            )
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6059
           #(#InputFieldSpec
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6060
              #name: 'BinDirectoryField'
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6061
              #layout: #(#LayoutFrame 44 0.25 34 0 -1 1 56 0)
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6062
              #tabable: true
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6063
              #model: #cvsBinDirectoryHolder
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6064
              #acceptChannel: #acceptChannel
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6065
              #acceptOnPointerLeave: false
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6066
            )
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6067
           #(#DividerSpec
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6068
              #name: 'Separator3'
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6069
              #layout: #(#LayoutFrame 0 0.0 60 0 0 1.0 64 0)
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6070
            )
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6071
           #(#LabelSpec
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6072
              #label: 'CVS SourceCodeManager setup'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6073
              #name: 'label'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6074
              #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
  6075
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6076
              #adjust: #left
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6077
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6078
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6079
              #label: 'CVSRoot default:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6080
              #name: 'defaultCvsRootLabel'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6081
              #layout: #(#LayoutFrame 0 0.0 71 0 40 0.25 88 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6082
              #level: 0
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6083
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6084
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6085
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6086
           #(#ComboBoxSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6087
              #name: 'cvsRootComboBox'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6088
              #layout: #(#LayoutFrame 44 0.25 71 0 -1 1.0 93 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6089
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6090
              #model: #cvsRootHolder
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6091
              #immediateAccept: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6092
              #acceptOnLeave: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6093
              #acceptOnReturn: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6094
              #acceptOnTab: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6095
              #acceptOnLostFocus: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6096
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6097
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6098
              #comboList: #cvsRootPrototypeList
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6099
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6100
           #(#DividerSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6101
              #name: 'Separator1'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6102
              #layout: #(#LayoutFrame 0 0.0 96 0 0 1.0 100 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6103
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6104
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6105
              #label: 'CVSRoot per Module:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6106
              #name: 'knownModulesLabel'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6107
              #layout: #(#LayoutFrame 0 0.0 109 0 40 0.25 126 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6108
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6109
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6110
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6111
           #(#SequenceViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6112
              #name: 'List1'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6113
              #layout: #(#LayoutFrame 44 0.25 104 0 -1 1 202 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6114
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6115
              #model: #selectedPerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6116
              #hasHorizontalScrollBar: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6117
              #hasVerticalScrollBar: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6118
              #miniScrollerHorizontal: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6119
              #useIndex: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6120
              #sequenceList: #listOfModules
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6121
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6122
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6123
              #label: 'Module:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6124
              #name: 'moduleLabel'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6125
              #layout: #(#LayoutFrame 0 0.0 209 0 40 0.25 226 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6126
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6127
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6128
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6129
           #(#InputFieldSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6130
              #name: 'perModuleRootModuleEntryField'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6131
              #layout: #(#LayoutFrame 44 0.25 205 0 -1 1 227 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6132
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6133
              #model: #perModuleRootModule
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6134
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6135
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6136
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6137
           #(#LabelSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6138
              #label: 'CVSRoot:'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6139
              #name: 'cvsRootLabel'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6140
              #layout: #(#LayoutFrame 0 0.0 236 0 40 0.25 253 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6141
              #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6142
              #adjust: #right
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6143
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6144
           #(#ComboBoxSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6145
              #name: 'perModuleRootComboBox'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6146
              #layout: #(#LayoutFrame 44 0.25 232 0 -1 1.0 254 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6147
              #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6148
              #model: #perModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6149
              #immediateAccept: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6150
              #acceptOnLeave: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6151
              #acceptOnReturn: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6152
              #acceptOnTab: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6153
              #acceptOnLostFocus: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6154
              #acceptChannel: #acceptChannel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6155
              #acceptOnPointerLeave: false
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6156
              #comboList: #cvsRootPrototypeList
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6157
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6158
           #(#HorizontalPanelViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6159
              #name: 'HorizontalPanel1'
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6160
              #layout: #(#LayoutFrame 44 0.25 258 0 -1 1 289 0)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6161
              #horizontalLayout: #fitSpace
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6162
              #verticalLayout: #center
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6163
              #horizontalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6164
              #verticalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6165
              #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6166
             #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6167
                #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6168
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6169
                    #label: 'Add/Apply'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6170
                    #name: 'addButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6171
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6172
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6173
                    #model: #addPerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6174
                    #extent: #(#Point 136 22)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6175
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6176
                 #(#ActionButtonSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6177
                    #label: 'Remove'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6178
                    #name: 'removeButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6179
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6180
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6181
                    #model: #removePerModuleRoot
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6182
                    #enableChannel: #removeEnabled
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6183
                    #extent: #(#Point 137 22)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6184
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6185
                 )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6186
               
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6187
              )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6188
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6189
           #(#DividerSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6190
              #name: 'Separator2'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6191
              #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
  6192
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6193
           #(#HorizontalPanelViewSpec
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6194
              #name: 'buttonPanel'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6195
              #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
  6196
              #horizontalLayout: #fitSpace
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6197
              #verticalLayout: #center
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6198
              #horizontalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6199
              #verticalSpace: 3
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6200
              #ignoreInvisibleComponents: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6201
              #reverseOrderIfOKAtLeft: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6202
              #component: 
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6203
             #(#SpecCollection
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6204
                #collection: #(
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6205
                 #(#ActionButtonSpec
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  6206
                    #label: 'Cancel'
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6207
                    #name: 'cancelButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6208
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6209
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6210
                    #model: #cancel
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6211
                    #extent: #(#Point 141 21)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6212
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6213
                 #(#ActionButtonSpec
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  6214
                    #label: 'Help'
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6215
                    #name: 'helpButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6216
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6217
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6218
                    #model: #help
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6219
                    #extent: #(#Point 141 21)
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6220
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6221
                 #(#ActionButtonSpec
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  6222
                    #label: 'OK'
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6223
                    #name: 'okButton'
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6224
                    #translateLabel: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6225
                    #tabable: true
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6226
                    #model: #accept
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6227
                    #isDefault: true
3468
e45ecf93fcc0 allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents: 3442
diff changeset
  6228
                    #extent: #(#Point 142 21)
2884
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6229
                  )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6230
                 )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6231
               
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6232
              )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6233
            )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6234
           )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6235
         
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6236
        )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6237
      )
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6238
!
587baa691c68 fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
  6239
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6240
formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6241
    "This resource specification was automatically generated
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6242
     by the UIPainter of ST/X."
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6243
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6244
    "Do not manually edit this!! If it is corrupted,
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6245
     the UIPainter may not be able to read the specification."
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6246
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6247
    "
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6248
     UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6249
    "
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6250
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6251
    <resource: #canvas>
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6252
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6253
    ^ 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6254
     #(#FullSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6255
        #name: #formatterDialogSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6256
        #window: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6257
       #(#WindowSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6258
          #label: 'Formatting parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6259
          #name: 'Formatting parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6260
          #min: #(#Point 10 10)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6261
          #max: #(#Point 1280 1024)
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6262
          #bounds: #(#Rectangle 10 406 606 989)
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
        #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6265
       #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6266
          #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6267
           #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6268
              #label: 'Sample output:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6269
              #name: 'Label2'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6270
              #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
  6271
              #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6272
              #adjust: #left
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6273
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6274
           #(#TextEditorSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6275
              #name: 'sampleTextView'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6276
              #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
  6277
              #level: -1
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6278
              #model: #formattedText
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6279
              #hasHorizontalScrollBar: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6280
              #hasVerticalScrollBar: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6281
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6282
           #(#FramedBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6283
              #label: 'Parameters'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6284
              #name: 'FramedBox1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6285
              #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
  6286
              #labelPosition: #topLeft
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6287
              #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6288
              #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6289
             #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6290
                #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6291
                 #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6292
                    #label: 'Max length for single line blocks:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6293
                    #name: 'Label1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6294
                    #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
  6295
                    #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6296
                    #adjust: #right
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6297
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6298
                 #(#CheckBoxSpec
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6299
                    #label: 'Space around temporaries '
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6300
                    #name: 'checkBox'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6301
                    #layout: #(#LayoutFrame 2 0 3 0 260 0 32 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6302
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6303
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6304
                    #model: #spaceAroundTemporaries
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6305
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6306
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6307
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6308
                    #label: 'Blank line after local var declaration'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6309
                    #name: 'CheckBox1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6310
                    #layout: #(#LayoutFrame 267 0 3 0 567 0 32 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6311
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6312
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6313
                    #model: #emptyLineAfterTemporaries
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6314
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6315
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6316
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6317
                    #label: 'Space after ''^'''
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6318
                    #name: 'CheckBox2'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6319
                    #layout: #(#LayoutFrame 2 0 31 0 260 0 60 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6320
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6321
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6322
                    #model: #spaceAfterReturnToken
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6323
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6324
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6325
                 #(#CheckBoxSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6326
                    #label: 'Space after '':'' in keywords'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6327
                    #name: 'CheckBox3'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6328
                    #layout: #(#LayoutFrame 267 0 31 0 567 0 60 0)
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6329
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6330
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6331
                    #model: #spaceAfterKeywordSelector
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6332
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6333
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6334
                 #(#CheckBoxSpec
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6335
                    #label: 'C-Style blocks'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6336
                    #name: 'CheckBox4'
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6337
                    #layout: #(#LayoutFrame 2 0 59 0 260 0 88 0)
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6338
                    #level: 0
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6339
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6340
                    #model: #cStyleBlocks
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6341
                    #translateLabel: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6342
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6343
                 #(#InputFieldSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6344
                    #name: 'editField'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6345
                    #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
  6346
                    #level: -1
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6347
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6348
                    #model: #tabIndent
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6349
                    #type: #number
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6350
                    #immediateAccept: false
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6351
                    #acceptOnLeave: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6352
                    #acceptOnReturn: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6353
                    #acceptOnTab: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6354
                    #acceptOnLostFocus: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6355
                    #acceptOnPointerLeave: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6356
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6357
                 #(#LabelSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6358
                    #label: 'Indent:'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6359
                    #name: 'label'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6360
                    #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
  6361
                    #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6362
                    #adjust: #right
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6363
                  )
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6364
                 #(#InputFieldSpec
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6365
                    #name: 'EntryField1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6366
                    #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
  6367
                    #level: -1
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6368
                    #tabable: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6369
                    #model: #maxLengthForSingleLineBlocks
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6370
                    #type: #number
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6371
                    #immediateAccept: false
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6372
                    #acceptOnLeave: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6373
                    #acceptOnReturn: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6374
                    #acceptOnTab: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6375
                    #acceptOnLostFocus: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6376
                    #acceptOnPointerLeave: true
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6377
                  )
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6378
                 #(#PopUpListSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6379
                    #label: 'Reset to...'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6380
                    #name: 'PopUpList1'
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6381
                    #layout: #(#LayoutFrame 2 0 129 0 127 0 151 0)
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6382
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6383
                    #model: #resetValue
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6384
                    #menu: #resetList
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6385
                    #useIndex: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6386
                  )
2608
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6387
                 #(#CheckBoxSpec
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6388
                    #label: 'Block args on new line'
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6389
                    #name: 'CheckBox5'
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6390
                    #layout: #(#LayoutFrame 267 0 59 0 567 0 88 0)
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6391
                    #level: 0
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6392
                    #tabable: true
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6393
                    #model: #blockArgumentsOnNewLine
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6394
                    #translateLabel: true
c3260d4c3061 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2601
diff changeset
  6395
                  )
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6396
                 )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6397
               
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6398
              )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6399
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6400
           #(#HorizontalPanelViewSpec
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6401
              #name: 'horizontalPanelView'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6402
              #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
  6403
              #level: 0
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6404
              #horizontalLayout: #fitSpace
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6405
              #verticalLayout: #center
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6406
              #horizontalSpace: 4
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6407
              #verticalSpace: 4
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6408
              #ignoreInvisibleComponents: true
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6409
              #component: 
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6410
             #(#SpecCollection
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6411
                #collection: #(
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6412
                 #(#ActionButtonSpec
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  6413
                    #label: 'Cancel'
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6414
                    #name: 'button'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6415
                    #translateLabel: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6416
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6417
                    #model: #cancel
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6418
                    #useDefaultExtent: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6419
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6420
                 #(#ActionButtonSpec
3475
b057e853174d save cvsBinDir (for WIN32)
Claus Gittinger <cg@exept.de>
parents: 3468
diff changeset
  6421
                    #label: 'OK'
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6422
                    #name: 'Button1'
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6423
                    #translateLabel: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6424
                    #tabable: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6425
                    #model: #accept
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6426
                    #isDefault: true
2601
9a8cfc629d97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
  6427
                    #useDefaultExtent: true
2596
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6428
                  )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6429
                 )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6430
               
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6431
              )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6432
            )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6433
           )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6434
         
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6435
        )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6436
      )
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6437
! !
a2c3d90290ba formatter setup added;
Claus Gittinger <cg@exept.de>
parents: 2584
diff changeset
  6438
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6439
!AbstractLauncherApplication class methodsFor:'documentation'!
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6440
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6441
version
3664
77fb767b5368 Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents: 3644
diff changeset
  6442
    ^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.196 2002-05-21 08:12:34 stefan Exp $'
2001
3d4249692d25 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  6443
! !