Launcher.st
author Claus Gittinger <cg@exept.de>
Fri, 01 Nov 1996 17:26:35 +0100
changeset 827 c74f542ba50b
parent 821 a81a0fb108d0
child 833 f4d9acc94617
permissions -rw-r--r--
use new Method>>who interface
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     1
"
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     3
	      All Rights Reserved
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     4
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     5
 This software is furnished under a license and may be used
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     6
 only in accordance with the terms of that license and with the
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     8
 be provided or otherwise made available to, or used by, any
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
     9
 other person.  No title to or ownership of the software is
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    10
 hereby transferred.
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    11
"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
    12
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
    13
ApplicationModel subclass:#Launcher
658
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
    14
	instanceVariableNames:'myMenu buttonPanel transcript infoView infoProcess helpIsOn
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
    15
		isMainLauncher'
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
    16
	classVariableNames:'CachedAboutIcon OpenLaunchers'
281
7b73ea8b2faa more for international language support
Claus Gittinger <cg@exept.de>
parents: 262
diff changeset
    17
	poolDictionaries:''
7b73ea8b2faa more for international language support
Claus Gittinger <cg@exept.de>
parents: 262
diff changeset
    18
	category:'Interface-Smalltalk'
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
    19
!
11b4ce85104e Initial revision
claus
parents:
diff changeset
    20
760
39e3f920b233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 743
diff changeset
    21
!Launcher class methodsFor:'documentation'!
88
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    22
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    23
copyright
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    24
"
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    25
 COPYRIGHT (c) 1995 by Claus Gittinger
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    26
	      All Rights Reserved
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    27
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    28
 This software is furnished under a license and may be used
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    29
 only in accordance with the terms of that license and with the
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    31
 be provided or otherwise made available to, or used by, any
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    32
 other person.  No title to or ownership of the software is
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    33
 hereby transferred.
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    34
"
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    35
!
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    36
105
claus
parents: 104
diff changeset
    37
customization
claus
parents: 104
diff changeset
    38
"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
    39
    Of course, it is possible to change the Launcher class itself
105
claus
parents: 104
diff changeset
    40
    as appropriate, however, we suggest you create a subclass (say MyLauncher),
524
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    41
    define it as autoloaded in the patches file, and redefine some methods
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    42
    in that class. 
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    43
    That way, your changes are easier to reintroduce in case of an ST/X upgrade.
105
claus
parents: 104
diff changeset
    44
claus
parents: 104
diff changeset
    45
claus
parents: 104
diff changeset
    46
    adding more buttons to the button-panel:
claus
parents: 104
diff changeset
    47
claus
parents: 104
diff changeset
    48
      see the method #buttonPanelSpec;
524
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    49
        it defines a list of selectors and icons, which is used by 
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    50
        #setupButtonPanelIn:. 
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    51
        There, for each entry, a button with that icon is created, 
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    52
        which sends a selector-message to the launcher.
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    53
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    54
        Add entries to that list, and define appropriate methods.
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    55
        For example, to add a button which opens a drawTool,
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    56
        change #buttonPanelSpec to:
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    57
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    58
        buttonPanelSpec
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    59
            ^ #(
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    60
                #(startSystemBrowser  'SBrowser32x32.xbm')
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    61
                #(startFileBrowser    'FBrowser32x32.xbm')
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    62
                #(nil nil)
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    63
                #(startChangesBrowser 'CBrowser32x32.xbm')
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    64
                #(nil nil)
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    65
                #(nil nil)
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    66
                #(startDrawTool       'DrawTool.xbm')
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    67
             )
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    68
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    69
        the panel adjusts its height as appropriate - you may want to
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    70
        create new (small) icons for a good look.
105
claus
parents: 104
diff changeset
    71
claus
parents: 104
diff changeset
    72
    adding an entry to a menu:
claus
parents: 104
diff changeset
    73
524
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    74
        see the #setupMenu method; either add another top-menu, or
72d2fa78dd49 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 521
diff changeset
    75
        add entries to an existing menu.
88
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    76
"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    77
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    78
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    79
documentation
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    80
"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    81
    a new launcher, combining old Launchers menu and transcript into
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    82
    one view. (you no longer have to move two views around all the time ...).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    83
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    84
    Also, this app makes first use of the new compatibility framework;
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    85
    you will notice, that this is a subclass of ApplicationModel.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    86
    New applications will no longer be built as subclasses of standardSystemView.
511
1e00846b87e5 documentation
Claus Gittinger <cg@exept.de>
parents: 505
diff changeset
    87
1e00846b87e5 documentation
Claus Gittinger <cg@exept.de>
parents: 505
diff changeset
    88
    [author:]
1e00846b87e5 documentation
Claus Gittinger <cg@exept.de>
parents: 505
diff changeset
    89
        Claus Gittinger
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
    90
"
88
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    91
! !
a38a2e87687b *** empty log message ***
claus
parents: 86
diff changeset
    92
760
39e3f920b233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 743
diff changeset
    93
!Launcher class methodsFor:'accessing'!
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    94
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    95
current
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    96
    "return the launcher running on the current screen.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    97
     (for access via addMenu/ removeMenu)"
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    98
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
    99
    OpenLaunchers do:[:aLauncher |
662
b5efd05fa256 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 661
diff changeset
   100
        aLauncher window graphicsDevice == Screen current ifTrue:[
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   101
            ^ aLauncher
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   102
        ]
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   103
    ].
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   104
    ^ nil.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   105
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   106
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   107
     Launcher current
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   108
    "
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   109
662
b5efd05fa256 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 661
diff changeset
   110
    "Modified: 5.7.1996 / 17:55:28 / cg"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   111
    "Modified: 9.9.1996 / 22:41:36 / stefan"
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   112
! !
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
   113
760
39e3f920b233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 743
diff changeset
   114
!Launcher class methodsFor:'defaults'!
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
   115
11b4ce85104e Initial revision
claus
parents:
diff changeset
   116
aboutIcon
11b4ce85104e Initial revision
claus
parents:
diff changeset
   117
    |image|
11b4ce85104e Initial revision
claus
parents:
diff changeset
   118
11b4ce85104e Initial revision
claus
parents:
diff changeset
   119
    CachedAboutIcon notNil ifTrue:[^ CachedAboutIcon].
11b4ce85104e Initial revision
claus
parents:
diff changeset
   120
11b4ce85104e Initial revision
claus
parents:
diff changeset
   121
    image := Image fromFile:'SmalltalkX.xbm'.
92
claus
parents: 91
diff changeset
   122
    image notNil ifTrue:[
580
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   123
        |green dark|
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   124
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
   125
        Screen current hasColors ifTrue:[
580
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   126
            green := (Color red:0 green:80 blue:20) "darkened".
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   127
            dark := Color gray:10.
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   128
            image photometric:#palette.
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   129
        ] ifFalse:[
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   130
            dark := Color black.
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   131
            green := Color white.
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   132
            image photometric:#blackIs0.
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   133
        ].
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   134
        image colorMap:(Array with:dark with:green).
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
   135
"/        Screen current depth > 2 ifTrue:[
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
   136
"/            image := (Image implementorForDepth:Screen current depth) fromImage:image.
144
Claus Gittinger <cg@exept.de>
parents: 142
diff changeset
   137
"/        ]
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
   138
    ].
11b4ce85104e Initial revision
claus
parents:
diff changeset
   139
    CachedAboutIcon := image.
11b4ce85104e Initial revision
claus
parents:
diff changeset
   140
    ^ image
11b4ce85104e Initial revision
claus
parents:
diff changeset
   141
11b4ce85104e Initial revision
claus
parents:
diff changeset
   142
    "
92
claus
parents: 91
diff changeset
   143
     CachedAboutIcon := nil.
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   144
     Launcher aboutIcon
92
claus
parents: 91
diff changeset
   145
    "
144
Claus Gittinger <cg@exept.de>
parents: 142
diff changeset
   146
580
71a1b9e1ee81 gray vs. grey
Claus Gittinger <cg@exept.de>
parents: 574
diff changeset
   147
    "Modified: 28.5.1996 / 20:55:15 / cg"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   148
    "Modified: 9.9.1996 / 22:41:23 / stefan"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   149
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   150
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
   151
buttonImageSize
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   152
    "images in buttonPanel are sized to this.
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   153
     Can be redefined in subclasses to return nil (no scaling)
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   154
     or any other useful size"
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   155
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   156
    ^ 32@32
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   157
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   158
    "Modified: 19.4.1996 / 16:36:17 / cg"
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
   159
!
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
   160
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   161
smallAboutIcon
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   162
    |image|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   163
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   164
    image := self aboutIcon.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   165
    image notNil ifTrue:[
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   166
        image := image magnifiedBy:0.4.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   167
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   168
    ^ image
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   169
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   170
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   171
     CachedAboutIcon := nil.
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   172
     Launcher aboutIcon.
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   173
     Launcher smallAboutIcon.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   174
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   175
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   176
    "Modified: 9.9.1996 / 22:42:12 / stefan"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   177
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   178
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   179
!Launcher methodsFor:'actions - about & help'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   180
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   181
about
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   182
    |box|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   183
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   184
    box := AboutBox new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   185
    box autoHideAfter:10 with:[].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   186
    box showAtCenter
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   187
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   188
727
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   189
showBookPrintDocument
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   190
    self showDocumentation:'BOOK.html'
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   191
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   192
    "Modified: 31.8.1995 / 13:11:28 / claus"
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   193
    "Created: 12.9.1996 / 01:53:30 / cg"
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   194
!
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
   195
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   196
showDocumentation:aRelativeDocFilePath
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   197
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   198
     although that one is not yet finished,
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   199
     its better than nothing ...
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   200
    "
555
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   201
    HTMLDocumentView notNil ifTrue:[
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   202
        "
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   203
         temporary kludge;
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   204
         not all machines can autoload binaries;
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   205
         however, on my SGI (which can) we want it
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   206
         to load automatically.
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   207
        "
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   208
        HTMLDocumentView isLoaded ifFalse:[
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   209
            ErrorSignal catch:[HTMLDocumentView autoload]
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   210
        ].
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   211
        HTMLDocumentView isLoaded ifTrue:[
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   212
            HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   213
            ^ self
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   214
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   215
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   216
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   217
    self warn:'Sorry, the ST/X HTML reader is not (yet) 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   218
included in this architectures release.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   220
Please use Mosaic, netscape, chimera or any
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   221
other HTML viewer to see the documentation.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   222
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   223
The documentation is found in the ''doc/online'' directory.'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   224
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   225
    "Modified: 31.8.1995 / 13:11:08 / claus"
555
c5efe38d2c46 use new documentView
Claus Gittinger <cg@exept.de>
parents: 549
diff changeset
   226
    "Modified: 21.5.1996 / 14:15:57 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   227
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   228
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
   229
showLicenceConditions
739
cce1e1dab15e Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents: 738
diff changeset
   230
    self showDocumentation:'../german/LICENCE.STX.html'
cce1e1dab15e Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents: 738
diff changeset
   231
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
   232
    "Created: 14.9.1996 / 12:35:00 / cg"
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
   233
    "Modified: 14.9.1996 / 13:28:51 / cg"
739
cce1e1dab15e Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents: 738
diff changeset
   234
    "Modified: 23.9.1996 / 17:03:15 / stefan"
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
   235
!
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
   236
496
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   237
startClassDocumentation
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   238
    self showDocumentation:'classDoc/TOP.html'
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   239
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   240
    "Modified: 31.8.1995 / 13:11:28 / claus"
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   241
    "Created: 22.4.1996 / 21:03:56 / cg"
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   242
!
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
   243
483
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   244
startDocumentationIndex
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   245
    self showDocumentation:'index.html'
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   246
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   247
    "Modified: 31.8.1995 / 13:11:28 / claus"
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   248
    "Created: 17.4.1996 / 22:08:55 / cg"
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   249
!
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   250
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   251
startDocumentationTool
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   252
    self showDocumentation:'TOP.html'
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   253
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   254
    "Modified: 31.8.1995 / 13:11:28 / claus"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   255
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   256
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   257
startWhatsNewDocumentation
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   258
    self showDocumentation:'whatsNew.html'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   259
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   260
    "Modified: 31.8.1995 / 13:11:28 / claus"
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   261
    "Created: 18.10.1996 / 14:00:35 / cg"
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   262
!
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
   263
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   264
toggleActiveHelp:aBoolean
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   265
    ActiveHelp notNil ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   266
	helpIsOn := aBoolean.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   267
	helpIsOn ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   268
	    ActiveHelp start
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   269
	] ifFalse:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   270
	    ActiveHelp stop
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   271
	]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   272
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   273
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   274
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   275
!Launcher methodsFor:'actions - classes'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   276
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   277
browseImplementors
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   278
    |enterBox|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   279
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   280
    enterBox := EnterBox title:(resources at:'Browse implementors of:') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   281
    enterBox okText:(resources at:'browse').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   282
    enterBox action:[:selectorName |
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   283
	|cls|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   284
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   285
	self withWaitCursorDo:[SystemBrowser browseImplementorsOf:selectorName]  
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   286
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   287
    enterBox showAtPointer
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   288
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   289
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   290
browseResources
589
ce36a65f07a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 582
diff changeset
   291
    |enterBox t|
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   292
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   293
    enterBox := EnterBox title:(resources at:'Resource symbol (nil for any):') withCRs.
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   294
    enterBox okText:(resources at:'browse').
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   295
    enterBox action:[:resourceName |
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   296
        |rsc|
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   297
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   298
        (resourceName isNil or:[resourceName isEmpty]) ifTrue:[
589
ce36a65f07a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 582
diff changeset
   299
            t := 'methods with any resource'.
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   300
            rsc := nil
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   301
        ] ifFalse:[
589
ce36a65f07a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 582
diff changeset
   302
            t := 'methods with ' , resourceName , '-resource'.
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   303
            rsc := resourceName asSymbolIfInterned.
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   304
        ].
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   305
        self withWaitCursorDo:[
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   306
            SystemBrowser browseForResource:rsc
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   307
                          in:(Smalltalk allClasses)
589
ce36a65f07a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 582
diff changeset
   308
                          title:t
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   309
        ]  
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   310
    ].
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   311
    enterBox showAtPointer
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   312
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   313
    "Created: 28.5.1996 / 13:15:16 / cg"
589
ce36a65f07a1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 582
diff changeset
   314
    "Modified: 29.5.1996 / 17:30:38 / cg"
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   315
!
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   316
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   317
browseSenders
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   318
    |enterBox|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   319
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   320
    enterBox := EnterBox title:(resources at:'Browse senders of:') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   321
    enterBox okText:(resources at:'browse').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   322
    enterBox action:[:selectorName |
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   323
	|cls|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   324
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   325
	self withWaitCursorDo:[SystemBrowser browseAllCallsOn:selectorName]  
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   326
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   327
    enterBox showAtPointer
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   328
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   329
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   330
startChangesBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   331
    self withWaitCursorDo:[ChangesBrowser open]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   332
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   333
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   334
startClassBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   335
    SystemBrowser askThenBrowseClass
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   336
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   337
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   338
startClassHierarchyBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   339
    SystemBrowser askThenBrowseClassHierarchy
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   340
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   341
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   342
startClassTreeView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   343
    self withWaitCursorDo:[ClassTreeGraphView open]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   344
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   345
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   346
startFileBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   347
    self withWaitCursorDo:[FileBrowser open]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   348
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   349
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   350
startFullClassBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   351
    SystemBrowser askThenBrowseFullClassProtocol
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   352
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   353
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   354
startJavaBrowser
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   355
    JavaBrowser notNil ifTrue:[
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   356
        self withWaitCursorDo:[JavaBrowser open]
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   357
    ]
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   358
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   359
    "Created: 18.4.1996 / 15:55:44 / cg"
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   360
    "Modified: 19.4.1996 / 16:39:08 / cg"
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   361
!
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
   362
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   363
startSystemBrowser
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   364
    self withWaitCursorDo:[SystemBrowser open]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   365
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   366
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   367
startWorkspace
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   368
    Workspace open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   369
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   370
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   371
!Launcher methodsFor:'actions - demos'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   372
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   373
openDemo:className
536
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   374
    |cls|
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   375
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   376
    cls := Smalltalk at:className.
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   377
    cls isNil ifTrue:[
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   378
        self warn:'sorry, the ' , className , ' class is not available.'.
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   379
    ] ifFalse:[
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   380
        Autoload autoloadFailedSignal handle:[:ex |
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   381
            self warn:'sorry, the ' , className , ' class seems to be not available.'
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   382
        ] do:[
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   383
            (Smalltalk at:className) open
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   384
        ]
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   385
    ]
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   386
a56ee0a5abdd show a warnBox if a demo-open fails
Claus Gittinger <cg@exept.de>
parents: 524
diff changeset
   387
    "Modified: 10.5.1996 / 15:56:47 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   388
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   389
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   390
startTetris
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   391
    Tetris open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   392
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   393
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   394
startTicTacToe
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   395
    TicTacToeGame open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   396
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   397
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   398
startTicTacToe2
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   399
    TicTacToeGame open2UserGame
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   400
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   401
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   402
!Launcher methodsFor:'actions - file'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   403
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   404
exit
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   405
    (self confirm:(resources string:'Are you certain you want to exit without saving ?'))
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   406
    ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   407
	self saveAllViews.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   408
	Smalltalk exit
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   409
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   410
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   411
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   412
objectModuleDialog
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   413
    |allModules moduleNames
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   414
     allObjects methodObjects methodNames 
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   415
     cObjects cObjectNames
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   416
     otherObjects otherObjectNames
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   417
     box l handles unloadButton
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   418
     list1 list2 listView1 listView2
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   419
     y panel 
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   420
     showBuiltIn showModules showMethods showCObjects showOthers
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   421
     moduleListUpdater check canDoIt menu|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   422
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   423
    showBuiltIn := true asValue. 
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   424
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   425
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   426
    showModules := canDoIt asValue. 
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   427
    showMethods := canDoIt asValue.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   428
    showCObjects := canDoIt asValue.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   429
    showOthers := canDoIt asValue.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   430
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   431
    list1 := SelectionInList new.
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   432
    list2 := SelectionInList new.
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   433
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   434
    moduleListUpdater := [
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   435
            |l|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   436
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   437
            list2 list:nil.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   438
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   439
            l := Array new.
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   440
            handles := Array new.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   441
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   442
            (showModules value or:[showBuiltIn value]) ifTrue:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   443
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   444
                (showBuiltIn value and:[showModules value]) ifFalse:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   445
                    allModules := allModules select:[:i |
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   446
                        |wantToSee|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   447
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   448
                        wantToSee := i dynamic.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   449
                        showBuiltIn value ifTrue:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   450
                            wantToSee := wantToSee not
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   451
                        ].
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   452
                        wantToSee
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   453
                    ]
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   454
                ].
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   455
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   456
                "/ sorting by reverse id brings newest ones to the top (a side effect)
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   457
                allModules sort:[:a :b | (a id) > (b id)].
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   458
                moduleNames := allModules collect:[:entry | entry name].
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   459
                l := l , moduleNames.
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   460
                handles := handles , allModules.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   461
            ].
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   462
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   463
            showMethods value ifTrue:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   464
                allObjects := ObjectFileLoader loadedObjectHandles.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   465
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   466
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   467
                                                                'compiled method - removed' , ' (in ' , mH pathName , ')'
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   468
                                                            ] ifFalse:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   469
                                                                'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')'
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   470
                                                            ].
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   471
                                                     ].
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   472
                l := l , methodNames.
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   473
                handles := handles , methodObjects.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   474
            ].
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   475
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   476
            showCObjects value ifTrue:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   477
                allObjects := ObjectFileLoader loadedObjectHandles.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   478
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   479
                cObjectNames := cObjects collect:[:entry | entry pathName].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   480
                l := l , cObjectNames.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   481
                handles := handles , cObjects.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   482
            ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   483
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   484
            showOthers value ifTrue:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   485
                allObjects := ObjectFileLoader loadedObjectHandles.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   486
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   487
                                                         or:[h isMethodHandle
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   488
                                                         or:[h isClassLibHandle]]) not]) asArray.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   489
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   490
                l := l , otherObjectNames.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   491
                handles := handles , otherObjects.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   492
            ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   493
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   494
            list1 list:l.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   495
            unloadButton disable.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   496
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   497
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   498
    showBuiltIn onChangeSend:#value to:moduleListUpdater.
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   499
    showModules onChangeSend:#value to:moduleListUpdater.
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   500
    showMethods onChangeSend:#value to:moduleListUpdater.
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   501
    showCObjects onChangeSend:#value to:moduleListUpdater.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   502
    showOthers onChangeSend:#value to:moduleListUpdater.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   503
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   504
    box := Dialog new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   505
    box label:(resources string:'Module dialog').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   506
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   507
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   508
    listView1 model:list1.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   509
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   510
    listView1 action:[:sel |
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   511
        |info classNames tabs module|
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   512
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   513
        listView1 middleButtonMenu:nil.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   514
467
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   515
        box withWaitCursorDo:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   516
            |nm fileName addr entry1 entry2 entry3 method|
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   517
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   518
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   519
467
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   520
            (showModules value or:[showBuiltIn value]) ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   521
                info := allModules at:sel ifAbsent:nil.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   522
            ].
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   523
            info isNil ifTrue:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   524
                "/ selected a method, cObject or unknown
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   525
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   526
                module := handles at:sel.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   527
                fileName := module pathName.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   528
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   529
                module isMethodHandle ifTrue:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   530
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   531
                    (method := module method) isNil ifTrue:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   532
                        nm := '** removed **'.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   533
                    ] ifFalse:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   534
                        menu := PopUpMenu
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   535
                                    labels:#('inspect' 'browse')
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   536
                                    selectors:#(inspect browse).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   537
                        menu actionAt:#inspect put:[ method inspect ].
827
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   538
                        menu actionAt:#browse put:[ |who|
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   539
                                                    who := method who.
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   540
                                                    SystemBrowser 
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   541
                                                        openInClass:(who methodClass) 
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   542
                                                        selector:(who methodSelector) 
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   543
                                                  ].
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   544
                        listView1 middleButtonMenu:menu.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   545
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   546
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   547
                    ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   548
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   549
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   550
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   551
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   552
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   553
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   554
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   555
                    entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   556
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   557
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   558
                ] ifFalse:[
673
c227d07d31bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 672
diff changeset
   559
                    (module isFunctionObjectHandle 
c227d07d31bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 672
diff changeset
   560
                    and:[module functions notEmpty]) ifTrue:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   561
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   562
                        menu := PopUpMenu
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   563
                                    labels:#('inspect')
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   564
                                    selectors:#(inspect).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   565
                        menu actionAt:#inspect put:[ module functions inspect  ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   566
                        listView1 middleButtonMenu:menu.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   567
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   568
                        list2 list:((module functions select:[:f | f notNil])
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   569
                                        collect:[:f | |entry|
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   570
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   571
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   572
                                                        entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   573
                                                        entry
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   574
                                                ]).
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   575
                    ] ifFalse:[
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   576
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   577
                    ]
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   578
                ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   579
                
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   580
                unloadButton enable.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   581
            ] ifFalse:[
467
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   582
                "/ selected a package
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   583
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   584
                "/ fill bottom list with class-info
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   585
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   586
                classNames := info classNames asSortedCollection.
467
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   587
                classNames := classNames collect:[:cName |
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   588
                                |cls entry rev listEntry|
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   589
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   590
                                listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   591
                                listEntry colAt:1 put:cName.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   592
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   593
                                cls := Smalltalk classNamed:cName.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   594
                                cls isNil ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   595
                                    listEntry colAt:2 put:'(class removed)'.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   596
                                ] ifFalse:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   597
                                    rev := cls binaryRevision.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   598
                                    rev notNil ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   599
                                        cls isLoaded ifFalse:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   600
                                            entry := '(stub for: ' , rev.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   601
                                        ] ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   602
                                            entry :='(bin: ' , rev.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   603
                                        ].    
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   604
                                        cls revision ~= rev ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   605
                                            entry := entry , ' / src: ' , cls revision    
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   606
                                        ].
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   607
                                        listEntry colAt:2 put:entry , ')'
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   608
                                    ] ifFalse:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   609
                                       cls revision notNil ifTrue:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   610
                                            listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   611
                                       ]
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   612
                                    ]
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   613
                                ].
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   614
                                listEntry
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   615
                              ].
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   616
                list2 list:classNames.
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   617
                info dynamic ifTrue:[
467
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   618
                    unloadButton enable.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   619
                ] ifFalse:[
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   620
                    unloadButton disable.
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   621
                ].
b07279f33723 show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   622
            ]
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   623
        ]
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   624
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   625
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   626
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   627
    panel := HorizontalPanelView new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   628
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   629
    panel add:(l := Label label:'show:').
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   630
    l adjust:#left; borderWidth:0.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   631
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   632
    box makeTabable:check.
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   633
    panel add:(check := CheckBox label:'classLibs' model:showModules).
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   634
    canDoIt ifFalse:[
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   635
        check disable
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   636
    ] ifTrue:[
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   637
        box makeTabable:check.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   638
    ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   639
    panel add:(check := CheckBox label:'methods' model:showMethods).
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   640
    canDoIt ifFalse:[
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   641
        check disable
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   642
    ] ifTrue:[
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   643
        box makeTabable:check.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   644
    ].
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   645
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   646
    canDoIt ifFalse:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   647
        check disable
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   648
    ] ifTrue:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   649
        box makeTabable:check.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   650
    ].
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   651
    panel add:(check := CheckBox label:'others' model:showOthers).
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   652
    canDoIt ifFalse:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   653
        check disable
690
c3fb26a81b59 disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   654
    ] ifTrue:[
671
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   655
        box makeTabable:check.
036972e738ba much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents: 670
diff changeset
   656
    ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   657
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   658
    panel horizontalLayout:#fitSpace.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   659
    "/ panel horizontalLayout:#leftSpace.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   660
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   661
    box addComponent:panel tabable:false.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   662
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   663
    box addVerticalSpace.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   664
    box addComponent:listView1 tabable:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   665
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   666
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   667
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   668
    l := box addTextLabel:(resources string:'contained classes/subsets:').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   669
    l adjust:#left; borderWidth:0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   670
    l origin:0.0@0.4 corner:1.0@0.4.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   671
    l topInset:(View viewSpacing).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   672
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   673
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   674
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   675
    listView2 model:list2; printItems:false.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   676
    box addComponent:listView2 tabable:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   677
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   678
    listView2 disable.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   679
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   680
    unloadButton := Button label:(resources string:'unload').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   681
    unloadButton action:[
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   682
        self withWaitCursorDo:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   683
            box withWaitCursorDo:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   684
                |info idx pathName|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   685
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   686
                idx := list1 selectionIndex.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   687
                info := allModules at:idx ifAbsent:nil.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   688
672
9e8c6ef412b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   689
                list1 selectionIndex:nil.
9e8c6ef412b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   690
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   691
                info isNil ifTrue:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   692
                    "/ selected a method
740
95ef743fb8aa fixed unload of method-modules
Claus Gittinger <cg@exept.de>
parents: 739
diff changeset
   693
                    "/ idx := idx - allModules size.
672
9e8c6ef412b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   694
                    pathName := (handles at:idx) pathName.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   695
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   696
                ] ifFalse:[
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   697
                    "/ selected a package
821
a81a0fb108d0 changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents: 815
diff changeset
   698
                    pathName := info pathName.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   699
                ].
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   700
                ObjectFileLoader unloadObjectFile:pathName.
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   701
                moduleListUpdater value.
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   702
                unloadButton disable.
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   703
            ]
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   704
        ]
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   705
    ].
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   706
    moduleListUpdater value.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   707
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   708
    box addButton:unloadButton.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   709
    box addAbortButtonLabelled:(resources string:'close').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   710
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   711
    y := box yPosition.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   712
    listView2 topInset:(l preferredExtent y + 5).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   713
    listView2 bottomInset:(box preferredExtent y - y).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   714
458
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   715
"/    box width:(400 min:(box device width * 2 // 3)); 
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   716
"/        height:(450 min:(box device height - 50)); 
f2e58c66454c show stub classes
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
   717
"/        sizeFixed:true.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   718
    box open.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   719
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   720
    box destroy.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   721
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   722
    "Modified: 17.9.1995 / 16:47:50 / claus"
827
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
   723
    "Modified: 1.11.1996 / 16:36:14 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   724
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   725
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   726
snapshot
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   727
    |fileName|
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   728
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   729
    fileName := DialogBox
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   730
                    request:(resources at:'filename for image:') withCRs
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   731
              initialAnswer:(ObjectMemory nameForSnapshot) 
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   732
                    okLabel:(resources at:'save')
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   733
                      title:(resources string:'save image')
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   734
                   onCancel:nil.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   735
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   736
    fileName notNil ifTrue:[
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   737
        self showCursor:Cursor write.
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   738
        [
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   739
            (ObjectMemory snapShotOn:fileName) ifFalse:[
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   740
                "
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   741
                 snapshot failed for some reason (disk full, no permission etc.)
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   742
                "
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   743
                self warn:(resources string:'failed to save snapshot image (disk full or not writable)').
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   744
            ]
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   745
        ] valueNowOrOnUnwindDo:[
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   746
            self restoreCursors.
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   747
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   748
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   749
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   750
    "Modified: 1.6.1996 / 17:02:45 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   751
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   752
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   753
snapshotAndExit
590
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   754
    |fileName ok|
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   755
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   756
    fileName := DialogBox
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   757
                    request:(resources at:'filename for image:') withCRs
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   758
              initialAnswer:(ObjectMemory nameForSnapshot) 
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   759
                    okLabel:(resources at:'save & exit')
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   760
                      title:(resources string:'save image & exit')
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   761
                   onCancel:nil.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   762
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   763
    fileName notNil ifTrue:[
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   764
        self showCursor:Cursor write.
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   765
        [
590
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   766
            ok := ObjectMemory snapShotOn:fileName.
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   767
        ] valueNowOrOnUnwindDo:[
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   768
            self restoreCursors.
590
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   769
        ].
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   770
590
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   771
        ok ifFalse:[
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   772
            "
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   773
             snapshot failed for some reason (disk full, no permission etc.)
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   774
             Do NOT exit in this case.
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   775
            "
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   776
            self warn:(resources string:'failed to save snapshot image (disk full or not writable)').
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   777
        ] ifTrue:[
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   778
            "
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   779
             saveAllViews tells all views to shutdown neatly 
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   780
             (i.e. offer a chance to save the contents to a file).
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   781
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   782
             This is NOT required - all data should be in the snapshot ...
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   783
             ... however, if remote disks/mountable filesystems are involved,
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   784
             which may not be present the next time, it may make sense to 
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   785
             uncomment it and query for saving - time will show which is better.
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   786
            "
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   787
"
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   788
            self saveAllViews.
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   789
"
776544e5eab4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 589
diff changeset
   790
            Smalltalk exit
404
4960628225e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 403
diff changeset
   791
        ]
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   792
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   793
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
   794
    "Modified: 1.6.1996 / 17:02:07 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   795
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   796
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   797
!Launcher methodsFor:'actions - goodies'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   798
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   799
startCalendar
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   800
    Calendar open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   801
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   802
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   803
startClock
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   804
    RoundClock open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   805
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   806
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   807
startMailTool
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   808
    MailView open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   809
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   810
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   811
startNewsTool
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   812
    NewsView open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   813
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   814
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   815
!Launcher methodsFor:'actions - projects'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   816
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   817
newProject 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   818
    Project notNil ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   819
	(ProjectView for:(Project new)) open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   820
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   821
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   822
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   823
selectProject
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   824
    |list box|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   825
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   826
    Project notNil ifTrue:[
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   827
        list := Project allInstances.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   828
        box := ListSelectionBox new.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   829
        box list:(list collect:[:p | p name]).
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   830
        box title:(resources string:'select a project').
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   831
        box action:[:selection |
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   832
            |project|
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   833
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   834
            project := list detect:[:p | p name = selection] ifNone:[nil].
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   835
            project isNil ifTrue:[
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
   836
                transcript showCR:'no such project.'
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   837
            ] ifFalse:[
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   838
                project showViews.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   839
                Project current:project
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   840
            ]
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   841
        ].
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   842
        box showAtPointer.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   843
        box destroy
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   844
    ]
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   845
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
   846
    "Modified: 5.7.1996 / 13:12:53 / cg"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
   847
! !
11b4ce85104e Initial revision
claus
parents:
diff changeset
   848
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
   849
!Launcher methodsFor:'actions - settings'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   850
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   851
compilerSettings
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   852
    |box warnings warnSTX warnUnderscore warnOldStyle allowUnderscore immutableArrays
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
   853
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   854
     stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   855
     stcLibraries stcLibraryPath historyLines catchRedefs keepSourceOptions keepSource  
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   856
     constantFoldingOptions constantFolding justInTimeCompilation fullSingleStep
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   857
     warnEnabler check component oldIndent t supportsJustInTimeCompilation y
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   858
     y2 fullLineNumbers|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   859
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   860
    warnings := Compiler warnings asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   861
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   862
    warnSTX := Compiler warnSTXSpecials asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   863
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   864
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
   865
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   866
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   867
    immutableArrays := Compiler arraysAreImmutable asValue.
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   868
    fullLineNumbers := (Compiler lineNumberInfo == #full) asValue.
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   869
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   870
    constantFoldingOptions := #( nil #level1 #level2 #full ).
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   871
    constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')).
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   872
    constantFolding selectionIndex:3.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   873
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   874
    stcCompilationOptions := #( always default never).
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   875
    stcCompilation := SelectionInList new 
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   876
                        list:(resources array:#('always' 
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   877
                                                'primitive code only' 
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   878
                                                'never'
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   879
                                               )).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   880
    stcCompilation selectionIndex:2.
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   881
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   882
    ifTrue:[
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   883
        justInTimeCompilation := ObjectMemory justInTimeCompilation:nil.
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   884
        fullSingleStep := ObjectMemory fullSingleStepSupport:nil.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   885
    ] ifFalse:[
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   886
        justInTimeCompilation := false.
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   887
        fullSingleStep := false.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   888
    ].
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   889
    justInTimeCompilation := justInTimeCompilation asValue.
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   890
    fullSingleStep := fullSingleStep asValue.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   891
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   892
    stcIncludes := Compiler stcCompilationIncludes asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   893
    stcDefines := Compiler stcCompilationDefines asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   894
    stcOptions := Compiler stcCompilationOptions asValue.
232
926e657541c9 *** empty log message ***
chrisy
parents: 230
diff changeset
   895
    ObjectFileLoader notNil ifTrue:[
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   896
        (t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   897
            stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   898
        ].
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   899
        (t := ObjectFileLoader libPath) notNil ifTrue:[
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   900
            stcLibraryPath := t asValue.
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   901
        ]
232
926e657541c9 *** empty log message ***
chrisy
parents: 230
diff changeset
   902
    ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   903
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   904
    catchRedefs := Class catchMethodRedefinitions asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   905
    historyLines := (HistoryManager notNil and:[HistoryManager isActive]) asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   906
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   907
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   908
    keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )).
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   909
    keepSource selectionIndex:1.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   910
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   911
    warnEnabler := [
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   912
              warnings value ifTrue:[
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   913
                warnSTXBox enable. 
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   914
                warnOldStyleBox enable.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
   915
                warnCommonMistakesBox enable.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   916
                allowUnderscore value ifTrue:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   917
                    warnUnderscoreBox enable.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   918
                ] ifFalse:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   919
                    warnUnderscoreBox disable.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   920
                ].
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   921
              ] ifFalse:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   922
                warnSTXBox disable. 
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   923
                warnUnderscoreBox disable.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   924
                warnOldStyleBox disable.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
   925
                warnCommonMistakesBox disable.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   926
              ]].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   927
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   928
    warnings onChangeSend:#value to:warnEnabler.
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
   929
    allowUnderscore onChangeSend:#value to:warnEnabler.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   930
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   931
    box := DialogBox new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   932
    box label:(resources string:'Compiler settings').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   933
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   934
    box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   935
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   936
    HistoryManager isNil ifTrue:[check disable].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   937
378
7e17a9941cca added ...'s
Claus Gittinger <cg@exept.de>
parents: 377
diff changeset
   938
    box addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   939
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   940
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   941
    box addHorizontalLine.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   942
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   943
    supportsJustInTimeCompilation ifTrue:[
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   944
        component := box 
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   945
                        addCheckBox:(resources string:'just in time compilation to machine code') 
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   946
                        on:justInTimeCompilation.
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   947
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   948
        component := box 
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
   949
                        addCheckBox:(resources string:'detailed single step support') 
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   950
                        on:fullSingleStep.
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   951
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
   952
        box addHorizontalLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   953
    ].
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   954
232
926e657541c9 *** empty log message ***
chrisy
parents: 230
diff changeset
   955
    ObjectFileLoader notNil ifTrue:[
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   956
        compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
   957
        stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
   958
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   959
        component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   960
                        addLabelledInputField:(resources string:'stc include directories:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   961
                        adjust:#right
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   962
                        on:stcIncludes 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   963
                        tabable:true
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
   964
                        separateAtX:0.3.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   965
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   966
        component preferredExtent:(250 @ component preferredExtent y).
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   967
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
   968
"/        box addVerticalSpace.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   969
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   970
        component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   971
                        addLabelledInputField:(resources string:'stc defines:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   972
                        adjust:#right
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   973
                        on:stcDefines 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   974
                        tabable:true
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
   975
                        separateAtX:0.3.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   976
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   977
        component preferredExtent:(250 @ component preferredExtent y).
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   978
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
   979
"/        box addVerticalSpace.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   980
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   981
        component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   982
                        addLabelledInputField:(resources string:'stc options:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   983
                        adjust:#right
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   984
                        on:stcOptions 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   985
                        tabable:true
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
   986
                        separateAtX:0.3.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
   987
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   988
        component preferredExtent:(250 @ component preferredExtent y).
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   989
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   990
        stcLibraries notNil ifTrue:[
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
   991
"/            box addVerticalSpace.
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   992
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   993
            component := box 
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   994
                            addLabelledInputField:(resources string:'stc C-libraries:')
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   995
                            adjust:#right
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   996
                            on:stcLibraries 
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   997
                            tabable:true
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
   998
                            separateAtX:0.3.
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
   999
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
  1000
            component preferredExtent:(250 @ component preferredExtent y).
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1001
        ].
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1002
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1003
        stcLibraryPath notNil ifTrue:[
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1004
"/            box addVerticalSpace.
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1005
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1006
            component := box 
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1007
                            addLabelledInputField:(resources string:'stc libPath:')
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1008
                            adjust:#right
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1009
                            on:stcLibraryPath 
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1010
                            tabable:true
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1011
                            separateAtX:0.3.
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1012
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
  1013
            component preferredExtent:(250 @ component preferredExtent y).
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1014
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1015
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1016
"/        box addVerticalSpace.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1017
        box addHorizontalLine.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1018
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1019
        "/ if there is no compiler around,
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1020
        "/ change to compile nothing, and disable the checkBoxes
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1021
        Compiler canCreateMachineCode ifFalse:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1022
            stcCompilation selectionIndex:3.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1023
            compilationList disable.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1024
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1025
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1026
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1027
    y := box yPosition.
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1028
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1029
"/    box addVerticalSpace.
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1030
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1031
    component width:0.4.
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1032
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1033
"/    box addVerticalSpace.
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1034
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1035
    component width:0.4.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1036
    y2 := box yPosition.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1037
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1038
    box yPosition:y.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1039
    box leftIndent:0.
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1040
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1041
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1042
    component superView left:0.5; width:0.5.
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1043
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1044
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1045
    component := box addCheckBox:(resources string:'full lineNumber info') on:fullLineNumbers.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1046
    component left:0.5; width:0.4.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1047
    box yPosition:(box yPosition max:y2).
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1048
695
bb9142257343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
  1049
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1050
    box addHorizontalLine.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1051
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1052
    box addCheckBox:(resources string:'warnings') on:warnings.
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1053
"/    box addVerticalSpace.
343
569baf25f549 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 342
diff changeset
  1054
    oldIndent := box leftIndent.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1055
    box leftIndent:30.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
  1056
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1057
    y := box yPosition.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1058
760
39e3f920b233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 743
diff changeset
  1059
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1060
    warnSTXBox width:0.4.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1061
"/    box addVerticalSpace.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
  1062
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1063
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1064
    warnUnderscoreBox width:0.4.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1065
"/    box addVerticalSpace.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1066
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1067
    box yPosition:y.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1068
    box leftIndent:0.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1069
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1070
    warnOldStyleBox left:0.5; width:0.4.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1071
"/    box addVerticalSpace.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
  1072
679
c9613b350e05 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 678
diff changeset
  1073
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
737
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1074
    warnCommonMistakesBox left:0.5; width:0.4.
cf66bc0a104f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1075
"/    box addVerticalSpace.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
  1076
343
569baf25f549 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 342
diff changeset
  1077
    box leftIndent:oldIndent.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1078
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1079
    box 
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1080
        addHelpButtonFor:'Launcher/compilerSettings.html';
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1081
        addAbortButton; 
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1082
        addOkButton.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1083
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  1084
    warnEnabler value.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1085
    box open.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1086
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1087
    box accepted ifTrue:[
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1088
        HistoryManager notNil ifTrue:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1089
            historyLines value ifTrue:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1090
                HistoryManager activate
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1091
            ] ifFalse:[
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1092
                HistoryManager deactivate
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1093
            ].
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1094
        ].
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1095
        Class catchMethodRedefinitions:catchRedefs value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1096
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1097
        Compiler warnings:warnings value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1098
        Compiler warnSTXSpecials:warnSTX value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1099
        Compiler warnOldStyleAssignment:warnOldStyle value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1100
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
678
3088fddbfb98 added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents: 676
diff changeset
  1101
        Compiler warnCommonMistakes:warnCommonMistakes value.
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1102
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1103
        Compiler arraysAreImmutable:immutableArrays value.
782
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1104
        fullLineNumbers value ifTrue:[
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1105
            Compiler lineNumberInfo:#full.
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1106
        ] ifFalse:[
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1107
            Compiler lineNumberInfo:true
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1108
        ].
907c21d2cac1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
  1109
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1110
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1111
        Compiler stcCompilationIncludes:stcIncludes value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1112
        Compiler stcCompilationDefines:stcDefines value.
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1113
        Compiler stcCompilationOptions:stcOptions value.
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1114
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
700
23bc1eb02ac9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 699
diff changeset
  1115
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
  1116
        supportsJustInTimeCompilation ifTrue:[
700
23bc1eb02ac9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 699
diff changeset
  1117
            justInTimeCompilation value ifTrue:[
23bc1eb02ac9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 699
diff changeset
  1118
                Method allInstancesDo:[:m | m checked:false].
23bc1eb02ac9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 699
diff changeset
  1119
            ].
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
  1120
            ObjectMemory justInTimeCompilation:justInTimeCompilation value.
780
c017bed8f4f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1121
            ObjectMemory fullSingleStepSupport:fullSingleStep value.
698
64cf733533d1 dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents: 697
diff changeset
  1122
        ].
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1123
        ObjectFileLoader notNil ifTrue:[
688
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1124
            stcLibraries notNil ifTrue:[
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1125
                ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1126
            ].
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1127
            stcLibraryPath notNil ifTrue:[
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1128
                ObjectFileLoader libPath:(stcLibraryPath value).
b695a9f1a456 dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents: 686
diff changeset
  1129
            ]
359
26ce81391dbb sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents: 347
diff changeset
  1130
        ]
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1131
    ].
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1132
    box destroy
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1133
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1134
    "Modified: 10.9.1995 / 19:19:18 / claus"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1135
    "Modified: 9.9.1996 / 22:42:47 / stefan"
783
0f64a5d1bad2 reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents: 782
diff changeset
  1136
    "Modified: 21.10.1996 / 15:20:36 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1137
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1138
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1139
displaySettings
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1140
    |box 
614
561229d704f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 608
diff changeset
  1141
     sizes sizeNames sizeList sizeX sizeY deepIcons
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1142
     isColorMonitor useFixPalette idx ditherStyles ditherSyms ditherList
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1143
     y component screen visual|
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1144
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1145
    sizeNames := #(
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1146
                        '9''    (212mm x 160mm) GAS plasma/LCD'
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1147
                        '11.3'' (235mm x 175mm) LCD'
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1148
                        '16''   (275mm x 208mm)'
636
12296c4a31b9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 635
diff changeset
  1149
                        '17''   (315mm x 245mm) SUN ELC'
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1150
                        '17''   (325mm x 245mm)'
635
2b0ae1f2cf0e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 632
diff changeset
  1151
                        '19''   (340mm x 270mm) (NCD)'
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1152
                        '20''   (350mm x 280mm) (SGI)'
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1153
                        '21''   (365mm x 285mm) (Eizo / Nanao)'
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1154
                       ).
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1155
    sizes := #(      (212 160)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1156
                     (235 175)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1157
                     (275 208)
636
12296c4a31b9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 635
diff changeset
  1158
                     (315 245)
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1159
                     (325 245)
635
2b0ae1f2cf0e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 632
diff changeset
  1160
                     (340 270)
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1161
                     (350 280)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1162
                     (365 285)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1163
                   ).
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1164
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1165
    screen := Screen current.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1166
    visual := screen visualType.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1167
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1168
    isColorMonitor := screen hasColors asValue.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1169
    deepIcons := screen supportsDeepIcons asValue.
670
7c958acbc5e8 fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents: 668
diff changeset
  1170
    useFixPalette := screen fixColors notNil asValue.
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1171
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1172
    sizeList := SelectionInList with:sizeNames.
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1173
    sizeX := screen widthInMillimeter asValue.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1174
    sizeY := screen heightInMillimeter asValue.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1175
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1176
    ditherList := SelectionInList with:sizeNames.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1177
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1178
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1179
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1180
        ditherSyms := #(threshold ordered floydSteinberg).
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1181
    ] ifFalse:[
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1182
        visual ~~ #TrueColor ifTrue:[
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1183
            ditherStyles := #('nearest color' 'error diffusion').
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1184
            ditherSyms := #(ordered floydSteinberg).
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1185
        ]
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1186
    ].
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1187
    ditherSyms notNil ifTrue:[    
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1188
        ditherList list:ditherStyles.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1189
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1190
    ].
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1191
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1192
    box := DialogBox new.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1193
    box label:(resources string:'Display screen settings').
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1194
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1195
    (box addTextLabel:(resources string:'Actual visible screen area:'))
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1196
        adjust:#left.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1197
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1198
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1199
        label:'monitor size'.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1200
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1201
    idx := sizes findFirst:[:entry |
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1202
                                ((entry at:1) = sizeX value)
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1203
                                and:[((entry at:2) = sizeY value)]
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1204
                           ].
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1205
    idx ~~ 0 ifTrue:[
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1206
        sizeList selectionIndex:idx
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1207
    ].
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1208
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1209
    sizeList onChangeSend:#value to:[
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1210
                                        |idx|
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1211
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1212
                                        idx := sizeList selectionIndex.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1213
                                        sizeX value:((sizes at:idx) at:1).
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1214
                                        sizeY value:((sizes at:idx) at:2).
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1215
                                    ].
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1216
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1217
    y := box yPosition.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1218
    component := box addTextLabel:(resources string:'screen size:').
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1219
    component width:0.3; adjust:#right; borderWidth:0.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1220
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1221
    box yPosition:y.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1222
    component := box addInputFieldOn:sizeX tabable:true.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1223
    component width:0.25; left:0.3; 
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1224
              immediateAccept:false; acceptOnLeave:false; 
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1225
              cursorMovementWhenUpdating:#beginOfLine;
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1226
              converter:(PrintConverter new initForInteger);
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1227
              model:sizeX.
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1228
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1229
    box yPosition:y.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1230
    component := box addTextLabel:(' x ').
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1231
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1232
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1233
    box yPosition:y.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1234
    component := box addInputFieldOn:sizeY tabable:true.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1235
    component width:0.25; left:0.65; 
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1236
              immediateAccept:false; acceptOnLeave:false; 
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1237
              cursorMovementWhenUpdating:#beginOfLine;
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1238
              converter:(PrintConverter new initForInteger);
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1239
              model:sizeY.
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1240
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1241
    box yPosition:y.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1242
    component := box addTextLabel:('(mm)').
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1243
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1244
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1245
    box addVerticalSpace.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1246
    box addHorizontalLine.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1247
    box addVerticalSpace.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1248
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1249
    box addCheckBox:(resources string:'color monitor') on:isColorMonitor.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1250
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1251
    visual == #PseudoColor ifTrue:[
622
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1252
        box addVerticalSpace.
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1253
        component := box addCheckBox:(resources string:'use fix color palette (6x6x4)') on:useFixPalette.
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1254
    ].
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1255
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1256
    ditherSyms notNil ifTrue:[
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1257
        box addVerticalSpace.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1258
        component := box addPopUpList:(resources string:'image display:') on:ditherList.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1259
        component label:'image display'.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1260
        component superView horizontalLayout:#leftSpace.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1261
    ].
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1262
614
561229d704f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 608
diff changeset
  1263
    box addVerticalSpace.
561229d704f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 608
diff changeset
  1264
    box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons.
561229d704f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 608
diff changeset
  1265
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1266
    box 
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1267
        addHelpButtonFor:'Launcher/screenSettings.html';
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1268
        addAbortButton; addOkButton.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1269
    box open.
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1270
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1271
    box accepted ifTrue:[
632
7b59b670e687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 631
diff changeset
  1272
        Image flushDeviceImages.
7b59b670e687 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 631
diff changeset
  1273
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1274
        screen visualType == #PseudoColor ifTrue:[
622
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1275
            useFixPalette value ifTrue:[
638
5541c2f7836f warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents: 636
diff changeset
  1276
                Color colorAllocationFailSignal handle:[:ex |
5541c2f7836f warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents: 636
diff changeset
  1277
                    self warn:(resources string:'Could not allocate colors.').
5541c2f7836f warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents: 636
diff changeset
  1278
                ] do:[
670
7c958acbc5e8 fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents: 668
diff changeset
  1279
                    Color getColorsRed:6 green:6 blue:4 on:screen
638
5541c2f7836f warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents: 636
diff changeset
  1280
                ]
622
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1281
            ] ifFalse:[
670
7c958acbc5e8 fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents: 668
diff changeset
  1282
                screen releaseFixColors
622
9d02b3440252 ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents: 618
diff changeset
  1283
            ]
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1284
        ].
630
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1285
        screen hasColors:isColorMonitor value.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1286
        screen widthInMillimeter:sizeX value.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1287
        screen heightInMillimeter:sizeY value.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1288
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1289
        screen supportsDeepIcons:deepIcons value.
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1290
        ditherSyms notNil ifTrue:[
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1291
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
b5a673d2ba35 added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents: 624
diff changeset
  1292
        ].
614
561229d704f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 608
diff changeset
  1293
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1294
        self withWaitCursorDo:[
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1295
            View defaultStyle:(View defaultStyle).
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1296
        ].
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1297
    ].
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1298
    box destroy
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1299
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1300
    "Modified: 9.9.1996 / 22:43:04 / stefan"
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1301
    "Modified: 30.9.1996 / 23:25:22 / cg"
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1302
!
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  1303
398
001d78a6cacd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 397
diff changeset
  1304
fontSettings
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  1305
    (self fontBoxForEncoding:nil) ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  1306
        self reopenLauncher.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  1307
    ]
397
799d6b395675 check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents: 382
diff changeset
  1308
398
001d78a6cacd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 397
diff changeset
  1309
    "Created: 26.2.1996 / 22:52:51 / cg"
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  1310
    "Modified: 27.2.1996 / 02:05:05 / cg"
397
799d6b395675 check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents: 382
diff changeset
  1311
!
799d6b395675 check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents: 382
diff changeset
  1312
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1313
keyboardSetting 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1314
    |mappings listOfRawKeys listOfFunctions
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1315
     box l
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1316
     list1 list2 listView1 listView2 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1317
     frame selectionForwarder macroForwarder macroTextView y|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1318
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1319
    mappings := Screen current keyboardMap.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1320
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1321
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1322
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1323
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1324
    selectionForwarder := Plug new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1325
    selectionForwarder respondTo:#showFunction
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1326
                  with:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1327
                        |raw|
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1328
                        raw := list1 selection.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1329
                        list2 retractInterestsFor:selectionForwarder.
568
58d7e4157f23 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 566
diff changeset
  1330
                        list2 selection:(mappings at:raw asSymbol) asString.
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1331
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1332
                       ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1333
    selectionForwarder respondTo:#showRawKey
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1334
                  with:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1335
                        |f raw|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1336
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1337
                        f := list2 selection.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1338
                        list1 retractInterestsFor:selectionForwarder.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1339
                        raw := mappings keyAtValue:f asString.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1340
                        raw isNil ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1341
                            raw := mappings keyAtValue:f first.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1342
                            raw isNil ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1343
                                raw := mappings keyAtValue:f asSymbol.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1344
                            ]
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1345
                        ].
568
58d7e4157f23 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 566
diff changeset
  1346
                        list1 selection:raw.
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1347
                        list1 onChangeSend:#showFunction to:selectionForwarder.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1348
                       ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1349
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  1350
    macroForwarder := [
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1351
                        |f macro indent|
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1352
                        f := list2 selection.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1353
                        (f startsWith:'Cmd') ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1354
                            f := f copyFrom:4
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1355
                        ].
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1356
                        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1357
                        macro notNil ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1358
                            macro := macro asStringCollection.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1359
                            indent := macro
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1360
                                         inject:99999 into:[:min :element |
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1361
                                             |stripped|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1362
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1363
                                             stripped := element withoutLeadingSeparators.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1364
                                             stripped size == 0 ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1365
                                                 min
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1366
                                             ] ifFalse:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1367
                                                 min min:(element size - stripped size)
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1368
                                             ]
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1369
                                         ].
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1370
                            indent ~~ 0 ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1371
                                macro := macro collect:[:line | 
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1372
                                             line size > indent ifTrue:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1373
                                                line copyFrom:indent+1
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1374
                                             ] ifFalse:[
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1375
                                                line
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1376
                                             ].
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1377
                                        ]
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1378
                            ].                        
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1379
                        ].
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1380
                        macroTextView contents:macro.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1381
                       ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1382
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1383
    list1 := SelectionInList with:listOfRawKeys.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1384
    list1 onChangeSend:#showFunction to:selectionForwarder.
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1385
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1386
    list2 := SelectionInList with:listOfFunctions.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1387
    list2 onChangeSend:#showRawKey to:selectionForwarder.
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  1388
    list2 onChangeSend:#value to:macroForwarder.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1389
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1390
    box := Dialog new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1391
    box label:(resources string:'Keyboard mappings').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1392
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1393
    l := box addTextLabel:(resources string:'KEY_MSG') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1394
    l adjust:#left; borderWidth:0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1395
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1396
    frame := View new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1397
    frame extent:300 @ 300.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1398
    frame borderWidth:0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1399
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1400
    listView1 := ScrollableView for:SelectionInListView in:frame.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1401
    listView1 model:list1.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1402
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1403
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1404
    listView2 := ScrollableView for:SelectionInListView in:frame.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1405
    listView2 model:list2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1406
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1407
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1408
    frame topInset:box yPosition.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1409
    box addComponent:frame withExtent:350@200.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1410
    box makeTabable:listView1. 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1411
    box makeTabable:listView2. 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1412
    frame origin:0.0@0.0 corner:1.0@0.6.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1413
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1414
    box addVerticalSpace.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1415
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1416
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1417
    l adjust:#left; borderWidth:0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1418
    l origin:0.0@0.6 corner:1.0@0.6.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1419
    l topInset:(View viewSpacing).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1420
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1421
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1422
    macroTextView := HVScrollableView for:TextView miniScroller:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1423
    box addComponent:macroTextView tabable:true.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1424
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1425
    y := box yPosition.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1426
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1427
    box
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1428
        addHelpButtonFor:'Launcher/keyboardSetting.html';
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1429
        "addAbortButton;" 
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1430
        addOkButton.
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1431
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1432
    macroTextView topInset:(l preferredExtent y + 5).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1433
    macroTextView bottomInset:(box preferredExtent y - y).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1434
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1435
    box open.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1436
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1437
    box accepted ifTrue:[
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1438
        "no action yet ..."
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1439
    ].
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1440
    box destroy
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1441
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  1442
    "Modified: 31.5.1996 / 22:55:51 / cg"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1443
    "Modified: 9.9.1996 / 22:43:17 / stefan"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1444
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1445
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1446
languageSetting 
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1447
    |listOfLanguages translatedLanguages switch box|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1448
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1449
    "
410
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1450
     get list of supported languages from the launchers resources ...
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1451
    "
410
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1452
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
281
7b73ea8b2faa more for international language support
Claus Gittinger <cg@exept.de>
parents: 262
diff changeset
  1453
    translatedLanguages := resources array:listOfLanguages.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1454
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1455
    box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1456
    box label:(resources string:'Language selection').
281
7b73ea8b2faa more for international language support
Claus Gittinger <cg@exept.de>
parents: 262
diff changeset
  1457
    box list:translatedLanguages.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1458
    box initialText:(Language).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1459
    box action:[:newLanguage |
410
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1460
        self withWaitCursorDo:[
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1461
            |fontPref idx language oldLanguage enc answer matchingFonts|
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1462
410
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1463
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1464
            idx ~~ 0 ifTrue:[
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1465
                language := listOfLanguages at:idx
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1466
            ] ifFalse:[
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1467
                language := newLanguage
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1468
            ].
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1469
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1470
            "/ check if the new language needs a differently encoded font;
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1471
            "/ ask user to switch font and allow cancellation.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1472
            "/ Otherwise, you are left with unreadable menu & button items ...
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1473
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1474
            oldLanguage := Smalltalk language.
514
e48fbcbc358d do not directly access the Language variable
Claus Gittinger <cg@exept.de>
parents: 511
diff changeset
  1475
            Smalltalk language:language asSymbol.
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1476
            ResourcePack flushCachedResourcePacks.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1477
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1478
            Smalltalk language:oldLanguage.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1479
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1480
            switch := true.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1481
            enc := MenuView defaultFont encoding.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1482
            (fontPref match:enc) ifFalse:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1483
                "/ look if there is one at all.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1484
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1485
                matchingFonts size == 0 ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1486
                    (Dialog 
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1487
                        confirm:(resources 
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1488
                                    string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)'
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1489
                                      with:fontPref) withCRs)
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1490
                    ifFalse:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1491
                        switch := false
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1492
                    ]
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1493
                ] ifFalse:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1494
                    answer := Dialog 
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1495
                                confirmWithCancel:(resources 
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1496
                                                        string:'menu font is not %1-encoded.\\Change it ?'
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1497
                                                        with:fontPref) withCRs
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1498
                                           labels:(resources
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1499
                                                        array:#('cancel' 'no' 'yes'))
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1500
                                           default:3.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1501
                    answer isNil ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1502
                        switch := false
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1503
                    ] ifFalse:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1504
                        answer ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1505
                            switch := (self fontBoxForEncoding:fontPref)
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1506
                        ]
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1507
                    ].
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1508
                ].
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1509
            ].
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1510
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1511
            switch ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1512
                transcript showCR:'change language to ' , newLanguage , ' ...'.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1513
                Smalltalk language:language asSymbol.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1514
                ResourcePack flushCachedResourcePacks
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1515
            ].
410
5564d9d6d063 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
  1516
        ].
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1517
        switch ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1518
            self reopenLauncher.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1519
        ]
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1520
    ].    
421
0af6aa7db321 added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents: 420
diff changeset
  1521
    box
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1522
        addHelpButtonFor:'Launcher/languageSetting.html'.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1523
    box open.
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1524
    box destroy
281
7b73ea8b2faa more for international language support
Claus Gittinger <cg@exept.de>
parents: 262
diff changeset
  1525
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1526
    "Modified: 9.9.1996 / 22:43:27 / stefan"
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  1527
    "Modified: 18.10.1996 / 15:09:16 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1528
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1529
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1530
memorySettings
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1531
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
440
afdf9ea91d26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 434
diff changeset
  1532
     compressLimit
773
98efb7f5e8fa prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
  1533
     oldIncr component fields codeLimit codeTrigger|
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1534
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1535
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1536
    "/ extract relevant system settings ...
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1537
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1538
    igcLimit := ObjectMemory incrementalGCLimit asValue.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1539
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1540
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1541
    newSpaceSize := ObjectMemory newSpaceSize asValue.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1542
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
440
afdf9ea91d26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 434
diff changeset
  1543
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
774
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1544
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1545
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1546
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1547
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1548
    "/ create a box on those values ...
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1549
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1550
    fields := OrderedCollection new.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1551
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1552
    box := DialogBox new.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1553
    box label:(resources string:'Memory manager settings').
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1554
345
3bb0d27efc7a changed memorySettings texts
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1555
    box addTextLabel:'Warning - invalid settings may result in poor performance.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1556
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1557
You have been warned.'.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1558
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1559
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1560
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1561
                    addLabelledInputField:(resources string:'size of newSpace:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1562
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1563
                    on:nil "/ newSpaceSize 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1564
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1565
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1566
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1567
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1568
    component model:newSpaceSize.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1569
    fields add:component.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1570
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1571
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1572
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1573
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1574
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1575
                    addLabelledInputField:(resources string:'incremental GC allocation trigger:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1576
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1577
                    on:nil "/ igcLimit 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1578
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1579
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1580
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1581
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1582
    component model:igcLimit.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1583
    fields add:component.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1584
345
3bb0d27efc7a changed memorySettings texts
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1585
    box addTextLabel:'(start IGC whenever this amount has been allocated)'.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1586
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1587
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1588
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1589
                    addLabelledInputField:(resources string:'incremental GC freespace trigger:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1590
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1591
                    on:nil "/ igcFreeLimit 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1592
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1593
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1594
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1595
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1596
    component model:igcFreeLimit.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1597
    fields add:component.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1598
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1599
    box addTextLabel:'(start IGC whenever freespace drops below this)'.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1600
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1601
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1602
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1603
                    addLabelledInputField:(resources string:'incremental GC amount:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1604
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1605
                    on:nil "/ igcFreeAmount 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1606
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1607
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1608
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1609
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1610
    component model:igcFreeAmount.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1611
    fields add:component.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1612
345
3bb0d27efc7a changed memorySettings texts
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1613
    box addTextLabel:'(try to keep this amount for peak requests)'.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1614
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1615
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1616
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1617
                    addLabelledInputField:(resources string:'oldspace increment:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1618
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1619
                    on:nil "/ oldIncr 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1620
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1621
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1622
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1623
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1624
    component model:oldIncr.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1625
    fields add:component.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1626
345
3bb0d27efc7a changed memorySettings texts
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1627
    box addTextLabel:'(increase oldSpace in chunks of this size)'.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1628
    box addHorizontalLine.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1629
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1630
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1631
                    addLabelledInputField:(resources string:'oldspace compress limit:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1632
                    adjust:#right
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1633
                    on:nil "/ compressLimit 
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1634
                    tabable:true
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1635
                    separateAtX:0.7.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1636
    component acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1637
    component converter:(PrintConverter new initForNumber).
743
dc5a8537b78a printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1638
    component model:compressLimit.
440
afdf9ea91d26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 434
diff changeset
  1639
    fields add:component.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1640
440
afdf9ea91d26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 434
diff changeset
  1641
    box addTextLabel:'(suppress compressing GC if more memory is in use)'.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1642
    box addHorizontalLine.
440
afdf9ea91d26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 434
diff changeset
  1643
774
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1644
    ObjectMemory supportsJustInTimeCompilation ifTrue:[
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1645
        component := box 
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1646
                        addLabelledInputField:(resources string:'dynamic code limit:')
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1647
                        adjust:#right
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1648
                        on:nil
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1649
                        tabable:true
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1650
                        separateAtX:0.7.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1651
        component acceptOnLeave:false.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1652
        component converter:(PrintConverter new initForNumberOrNil).
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1653
        component model:codeLimit.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1654
        fields add:component.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1655
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1656
        box addTextLabel:'(flush dynamic compiled code to stay within this limit)'.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1657
        box addHorizontalLine.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1658
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1659
        component := box 
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1660
                        addLabelledInputField:(resources string:'dynamic code GC trigger:')
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1661
                        adjust:#right
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1662
                        on:nil
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1663
                        tabable:true
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1664
                        separateAtX:0.7.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1665
        component acceptOnLeave:false.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1666
        component converter:(PrintConverter new initForNumberOrNil).
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1667
        component model:codeTrigger.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1668
        fields add:component.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1669
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1670
        box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1671
        box addHorizontalLine.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1672
    ].
773
98efb7f5e8fa prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
  1673
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1674
    box addAbortButton; addOkButton.
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1675
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1676
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1677
    "/ show the box ...
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1678
    "/
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1679
    box open.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1680
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1681
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1682
    "/ update system settings
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1683
    "/
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1684
    box accepted ifTrue:[
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1685
        fields do:[:comp | comp accept].
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1686
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1687
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1688
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1689
        ].
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1690
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1691
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1692
        ].
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1693
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1694
            ObjectMemory incrementalGCLimit:igcLimit value.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1695
        ].
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1696
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1697
            ObjectMemory newSpaceSize:newSpaceSize value.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1698
        ].
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1699
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1700
            ObjectMemory oldSpaceIncrement:oldIncr value.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1701
        ].
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1702
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
774
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1703
        ObjectMemory dynamicCodeLimit:codeLimit value.
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1704
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1705
    ].
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1706
    box destroy
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1707
774
c22fac38f868 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1708
    "Modified: 17.10.1996 / 20:21:16 / cg"
341
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1709
!
d4a4fb700086 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 335
diff changeset
  1710
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1711
messageSettings
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1712
    |box vmInfo vmErrors displayErrors classInfos|
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1713
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1714
    vmInfo := ObjectMemory infoPrinting asValue.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1715
    vmErrors := ObjectMemory debugPrinting asValue.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1716
    classInfos := Object infoPrinting asValue.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1717
    displayErrors := DeviceWorkstation errorPrinting asValue.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1718
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1719
    box := DialogBox new.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1720
    box label:(resources string:'Messages').
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1721
"/    box extent:200@300.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1722
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1723
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1724
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1725
    box addHorizontalLine.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1726
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1727
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1728
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1729
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1730
    box addAbortButton; addOkButton.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1731
    box open.
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1732
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1733
    box accepted ifTrue:[
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1734
        ObjectMemory infoPrinting:vmInfo value.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1735
        ObjectMemory debugPrinting:vmErrors value.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1736
        Object infoPrinting:classInfos value.
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1737
        DeviceWorkstation errorPrinting:displayErrors value.
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1738
    ].
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1739
    box destroy
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1740
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1741
    "Modified: 29.5.1996 / 14:16:19 / cg"
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1742
!
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  1743
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1744
miscSettings
327
44a25cae2645 allow setting of dialog-focus behavior
ca
parents: 319
diff changeset
  1745
    |box check logDoits shadows updChanges changeFileName returnFocus
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1746
     loadBinaries compileLazy hostNameInLabel useManager hasManager 
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1747
     repository repositoryHolder localSourceFirst 
491
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1748
     showAccelerators sourceCacheDir cacheEntry
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1749
     component localCheck oldIndent nm fn manager|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1750
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1751
    "/
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1752
    "/ extract relevant system settings ...
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1753
    "/
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1754
    logDoits := Smalltalk logDoits asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1755
    shadows := PopUpView shadows asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1756
    hostNameInLabel := StandardSystemView includeHostNameInLabel asValue.
327
44a25cae2645 allow setting of dialog-focus behavior
ca
parents: 319
diff changeset
  1757
    returnFocus := Dialog returnFocusWhenClosingModalBoxes asValue.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1758
    updChanges := Class updatingChanges asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1759
    changeFileName := ObjectMemory nameForChanges asValue.
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1760
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1761
    hasManager := AbstractSourceCodeManager notNil
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1762
                  and:[AbstractSourceCodeManager isLoaded].
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1763
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1764
    hasManager ifTrue:[
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1765
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1766
        localSourceFirst := Class tryLocalSourceFirst asValue.
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1767
        manager notNil ifTrue:[
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1768
            repository := manager repositoryName.
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1769
            repository notNil ifTrue:[
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1770
                repositoryHolder := repository asValue
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1771
            ]
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1772
        ].
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1773
    ] ifFalse:[
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1774
        useManager := false.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1775
        localSourceFirst := false
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1776
    ].
420
2c169931d1ab allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents: 410
diff changeset
  1777
    showAccelerators := MenuView showAcceleratorKeys asValue.
491
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1778
    sourceCacheDir := nil asValue.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1779
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1780
    loadBinaries := Smalltalk loadBinaries asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1781
    compileLazy := Autoload compileLazy asValue.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1782
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1783
    "/
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1784
    "/ create a box on those values ...
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1785
    "/
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1786
    box := DialogBox new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1787
    box label:(resources string:'Other settings').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1788
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1789
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1790
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1791
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1792
    component := box 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1793
                    addLabelledInputField:(resources string:'change file name:')
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1794
                    adjust:#right
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1795
                    on:changeFileName 
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1796
                    tabable:true
492
829b4872bca3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 491
diff changeset
  1797
                    separateAtX:0.4.
476
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1798
    component immediateAccept:true; acceptOnLeave:false.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1799
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1800
"/    y := box yPosition.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1801
"/    component := box addTextLabel:(resources string:'change file name:').
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1802
"/    component width:0.5; adjust:#right; borderWidth:0.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1803
"/    box yPosition:y.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1804
"/    component := box addInputFieldOn:changeFileName tabable:true.
8ebba8966f3f use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents: 467
diff changeset
  1805
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1806
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1807
    box addHorizontalLine.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1808
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1809
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1810
    check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1811
    ObjectFileLoader isNil ifTrue:[
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1812
        loadBinaries value:false.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1813
        check disable
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1814
    ].
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1815
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1816
    hasManager ifTrue:[
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1817
        check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1818
        oldIndent := box leftIndent.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1819
        box leftIndent:30.
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1820
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1821
        repositoryHolder notNil ifTrue:[
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1822
            component := box 
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1823
                            addLabelledInputField:(resources string:'repository:')
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1824
                            adjust:#right
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1825
                            on:repositoryHolder 
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1826
                            tabable:true
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1827
                            separateAtX:0.4.
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1828
            component immediateAccept:true; acceptOnLeave:false.
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1829
        ].
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1830
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1831
        localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1832
        localCheck enableChannel:useManager.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1833
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1834
        cacheEntry := box 
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1835
                        addLabelledInputField:(resources string:'source cache dir:')
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1836
                        adjust:#right
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1837
                        on:sourceCacheDir 
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1838
                        tabable:true
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1839
                        separateAtX:0.4.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1840
        cacheEntry immediateAccept:true; acceptOnLeave:false.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1841
        box leftIndent:oldIndent.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1842
        cacheEntry enableChannel:useManager.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1843
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1844
        (AbstractSourceCodeManager isNil 
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1845
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1846
            useManager value:false.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1847
            cacheEntry disable.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1848
            check disable.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1849
            localCheck enable.
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1850
        ] ifFalse:[
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1851
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1852
        ].
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1853
    ].
335
c725e5d99819 localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents: 327
diff changeset
  1854
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1855
    box addHorizontalLine.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1856
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1857
    box addCheckBox:(resources string:'shadows under popup views') on:shadows.
327
44a25cae2645 allow setting of dialog-focus behavior
ca
parents: 319
diff changeset
  1858
    box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1859
    box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabel.
443
ea8f82ba103c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
  1860
    box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1861
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1862
    box 
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1863
        addHelpButtonFor:'Launcher/miscSettings.html';
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1864
        addAbortButton; 
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1865
        addOkButton.
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1866
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1867
    "/
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1868
    "/ show the box ...
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1869
    "/
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  1870
    box open.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1871
249
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1872
    "/
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1873
    "/ update system settings
cc5c4a442f49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
  1874
    "/
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1875
    box accepted ifTrue:[
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1876
        Smalltalk logDoits:logDoits value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1877
        PopUpView shadows:shadows value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1878
        Class updateChanges:updChanges value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1879
        Autoload compileLazy:compileLazy value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1880
        Smalltalk loadBinaries:loadBinaries value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1881
        StandardSystemView includeHostNameInLabel:hostNameInLabel value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1882
        ObjectMemory nameForChanges:changeFileName value.
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1883
        Dialog returnFocusWhenClosingModalBoxes:returnFocus value.
420
2c169931d1ab allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents: 410
diff changeset
  1884
        MenuView showAcceleratorKeys:showAccelerators value.
327
44a25cae2645 allow setting of dialog-focus behavior
ca
parents: 319
diff changeset
  1885
711
748349e59632 only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents: 709
diff changeset
  1886
        (hasManager and:[useManager value]) ifTrue:[
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1887
            manager isNil ifTrue:[
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1888
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1889
                manager := Smalltalk at:#SourceCodeManager.
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1890
            ].
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1891
            Class tryLocalSourceFirst:(localSourceFirst value).
491
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1892
            nm := sourceCacheDir value.
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1893
            (fn := nm asFilename) exists ifFalse:[
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1894
                (self confirm:(nm , ' does not exists\create ?' withCRs)) ifTrue:[
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1895
                    fn makeDirectory; 
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1896
                       makeReadableForAll;
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1897
                       makeWritableForAll;
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1898
                       makeExecutableForAll.
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1899
                ]
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1900
            ].
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1901
            (fn exists 
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1902
            and:[fn isDirectory
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1903
            and:[fn isReadable
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1904
            and:[fn isWritable]]]) ifTrue:[
8c30fe86b0e9 allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
  1905
                AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1906
            ].
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1907
            repositoryHolder notNil ifTrue:[
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1908
                manager repositoryName:repositoryHolder value.
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1909
                manager initialize
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1910
            ].
364
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1911
        ] ifFalse:[
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1912
            Smalltalk at:#SourceCodeManager put:nil
75f5a7e99eb8 added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
  1913
        ]
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1914
    ].
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1915
    box destroy
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1916
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  1917
    "Modified: 9.9.1996 / 22:43:36 / stefan"
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1918
    "Modified: 14.9.1996 / 13:26:50 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1919
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  1920
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1921
printerSettings
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1922
    |box 
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1923
     possiblePrinters possibleTypes printerType printCommand 
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1924
     pageFormat landscape updater
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1925
     formatLabel formatComponent landscapeLabel landscapeComponent
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  1926
     topMargin leftMargin rightMargin bottomMargin unitList unit
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1927
     topMarginComponent leftMarginComponent
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1928
     rightMarginComponent
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1929
     bottomMarginComponent supportsColor supportsColorComponent
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  1930
     y y1 commandListPop component commandList row|
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1931
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1932
    possiblePrinters := PrinterStream withAllSubclasses asArray.
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1933
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1934
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1935
    printerType := SelectionInList new list:(resources array:possibleTypes).
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1936
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1937
    printCommand := Printer printCommand asValue.
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1938
604
8fd6e7c5868d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1939
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
8fd6e7c5868d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1940
    pageFormat selection:(Printer pageFormat).
8fd6e7c5868d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1941
    landscape := Printer landscape asValue.
8fd6e7c5868d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1942
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  1943
    topMargin := Printer topMargin asValue.
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  1944
    leftMargin := Printer leftMargin asValue.
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  1945
    rightMargin := Printer rightMargin asValue.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  1946
    bottomMargin := Printer bottomMargin asValue.
702
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  1947
    supportsColor := Printer supportsColor asValue.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1948
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1949
    box := DialogBox new.
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1950
    box label:(resources string:'Printer settings').
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1951
726
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1952
"/ either use a popUpList ...
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1953
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1954
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1955
"/ or a comboList;
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1956
"/ which one looks better ?
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1957
    y := box yPosition.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1958
    component := box addTextLabel:(resources string:'printer type:').
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1959
    component width:0.3; adjust:#right; borderWidth:0.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1960
    box yPosition:y.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1961
    component := box addComboListOn:printerType tabable:true.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1962
    component changeMessage:#selectionIndex:; useIndex:true.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1963
    component width:0.7; left:0.3.
904a429b49a0 checkin from browser
dq
parents: 715
diff changeset
  1964
"/ end of question
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1965
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1966
    y := box yPosition.
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1967
    component := box addTextLabel:(resources string:'print command:').
362
d5d99cdda74c use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1968
    component width:0.3; adjust:#right; borderWidth:0.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1969
    box yPosition:y.
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  1970
    commandListPop := box addComboBoxOn:printCommand tabable:true.
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  1971
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  1972
    commandListPop width:0.7; left:0.3; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
362
d5d99cdda74c use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1973
    "/ some common print commands ...
499
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1974
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1975
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1976
    commandList isNil ifTrue:[
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1977
        commandList := PrinterStream defaultCommands.
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1978
        commandList isNil ifTrue:[
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1979
            commandList := #('lpr' 
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  1980
                             'lp' 
499
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1981
                            ).
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1982
        ]
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1983
    ].
245bba7b9cd3 ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents: 497
diff changeset
  1984
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  1985
    commandListPop list:commandList.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  1986
    box addVerticalSpace.
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1987
    box addHorizontalLine.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1988
    box addVerticalSpace.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1989
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1990
    row := OrderedCollection new.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1991
    row add:(formatLabel := Label label:(resources string:'page format:')).
676
a5d1f2adfb98 beautified for 2D look
Claus Gittinger <cg@exept.de>
parents: 673
diff changeset
  1992
    formatLabel borderWidth:0.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1993
    row add:(formatComponent := PopUpList on:pageFormat).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1994
    formatComponent label:'unknown'.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1995
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1996
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
676
a5d1f2adfb98 beautified for 2D look
Claus Gittinger <cg@exept.de>
parents: 673
diff changeset
  1997
    landscapeLabel borderWidth:0.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  1998
    row add:(landscapeComponent := CheckToggle on:landscape).
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  1999
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2000
    y := box yPosition.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2001
    box
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2002
        addRow:(1 to:2)
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2003
        fromX:0
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2004
        toX:0.5
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2005
        collect:[:idx | row at:idx]
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2006
        tabable:false
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2007
        horizontalLayout:#leftSpace
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2008
        verticalLayout:#center.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2009
    y1 := box yPosition.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2010
    box yPosition:y.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2011
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2012
    box
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2013
        addRow:(3 to:4)
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2014
        fromX:0.5
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2015
        toX:1.0
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2016
        collect:[:idx | row at:idx]
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2017
        tabable:false
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2018
        horizontalLayout:#leftSpace
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2019
        verticalLayout:#center.
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2020
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2021
    box yPosition:(box yPosition max:y1).
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2022
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2023
    box makeTabable:(formatComponent).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2024
    box makeTabable:(landscapeComponent).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2025
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2026
    box addVerticalSpace.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2027
    box addHorizontalLine.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2028
    box addVerticalSpace.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2029
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2030
    y := box yPosition.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2031
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2032
    topMarginComponent := box 
603
a1054630b5e4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
  2033
        addLabelledInputField:(resources string:'top margin:')
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2034
        adjust:#right
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2035
        on:nil "/ topMargin 
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2036
        tabable:true
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2037
        from:0.0 to:0.5
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2038
        separateAtX:0.6.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2039
    topMarginComponent converter:(PrintConverter new initForNumber).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2040
    topMarginComponent model:topMargin.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2041
    y1 := box yPosition.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2042
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2043
    box yPosition:y.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2044
    unitList := SelectionInList with:#('inch' 'mm').
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2045
    unitList selectionIndex:1.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2046
605
89f279250b96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 604
diff changeset
  2047
    component := box addComponent:(PopUpList on:unitList).
89f279250b96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 604
diff changeset
  2048
    component
603
a1054630b5e4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
  2049
        left:0.6;
a1054630b5e4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
  2050
        width:0.3.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2051
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2052
    box yPosition:y1.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2053
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2054
    leftMarginComponent := box 
603
a1054630b5e4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
  2055
        addLabelledInputField:(resources string:'left margin:')
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2056
        adjust:#right
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2057
        on:nil "/ leftMargin 
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2058
        tabable:true
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2059
        from:0.0 to:0.5
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2060
        separateAtX:0.6.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2061
    leftMarginComponent converter:(PrintConverter new initForNumber).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2062
    leftMarginComponent model:leftMargin.
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2063
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2064
    rightMarginComponent := box 
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2065
        addLabelledInputField:(resources string:'right margin:')
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2066
        adjust:#right
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2067
        on:nil "/ rightMargin 
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2068
        tabable:true
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2069
        from:0.0 to:0.5
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2070
        separateAtX:0.6.
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2071
    rightMarginComponent converter:(PrintConverter new initForNumber).
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2072
    rightMarginComponent model:rightMargin.
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2073
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2074
    bottomMarginComponent := box 
603
a1054630b5e4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
  2075
        addLabelledInputField:(resources string:'bottom margin:')
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2076
        adjust:#right
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2077
        on:nil "/ bottomMargin 
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2078
        tabable:true
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2079
        from:0.0 to:0.5
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2080
        separateAtX:0.6.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2081
    bottomMarginComponent converter:(PrintConverter new initForNumber).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2082
    bottomMarginComponent model:bottomMargin.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2083
702
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2084
    box addHorizontalLine.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2085
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2086
    box addVerticalSpace.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2087
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2088
    updater := [ |p fg hasPageSize hasMargins|
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2089
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2090
                       printerType selectionIndex ~~ 0 ifTrue:[
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2091
                           p := possiblePrinters at:(printerType selectionIndex).
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2092
                           hasPageSize := p supportsPageSizes. 
604
8fd6e7c5868d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  2093
                           hasMargins := p supportsMargins. 
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2094
                       ] ifFalse:[
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2095
                           hasPageSize := false.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2096
                           hasMargins := false.
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2097
                       ].
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2098
                       hasPageSize ifTrue:[
597
68312d41ebab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 596
diff changeset
  2099
                          fg := Button new foregroundColor.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2100
                          formatComponent enable.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2101
                          landscapeComponent enable.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2102
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2103
                          formatComponent label:p pageFormat.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2104
                          pageFormat value:(p pageFormat).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2105
                          landscape value:(p landscape).
597
68312d41ebab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 596
diff changeset
  2106
                       ] ifFalse:[ 
68312d41ebab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 596
diff changeset
  2107
                          fg := Button new disabledForegroundColor.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2108
                          formatComponent disable.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2109
                          landscapeComponent disable.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2110
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2111
                          formatComponent label:'unknown'.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2112
                          landscape value:nil.
597
68312d41ebab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 596
diff changeset
  2113
                       ].
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2114
                       hasMargins ifTrue:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2115
                          unitList selectionIndex == 2 ifTrue:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2116
                              unit := #mm
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2117
                          ] ifFalse:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2118
                              unit := #inch
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2119
                          ].
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2120
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2121
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2122
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2123
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2124
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2125
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2126
                          topMarginComponent enable.
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2127
                          leftMarginComponent enable.
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2128
                          rightMarginComponent enable.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2129
                          bottomMarginComponent enable.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2130
                       ] ifFalse:[ 
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2131
                          topMarginComponent disable.
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2132
                          leftMarginComponent disable.
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2133
                          rightMarginComponent disable.
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2134
                          bottomMarginComponent disable.
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2135
                       ].
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2136
                       formatLabel foregroundColor:fg.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2137
                       landscapeLabel foregroundColor:fg.
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2138
                        
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2139
                       p notNil ifTrue:[ 
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2140
                           commandList := p defaultCommands.
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2141
                           commandList notNil ifTrue:[
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2142
                                commandListPop list:commandList 
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2143
                           ].
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2144
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2145
                           printCommand value:(p printCommand).
702
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2146
                       ].
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2147
                       p supportsPostscript ifFalse:[
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2148
                           supportsColorComponent disable.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2149
                           supportsColor value:false
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2150
                       ] ifTrue:[
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2151
                           supportsColorComponent enable.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2152
                           supportsColor value:(Printer supportsColor).
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2153
                       ]
597
68312d41ebab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 596
diff changeset
  2154
                     ].
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2155
    unitList onChangeSend:#value to:updater.
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2156
    printerType onChangeSend:#value to:updater.
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2157
    updater value.
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  2158
608
4596be8837d6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 605
diff changeset
  2159
    box addVerticalSpace;
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2160
        addHelpButtonFor:'Launcher/printerSettings.html';
608
4596be8837d6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 605
diff changeset
  2161
        addAbortButton; addOkButton.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  2162
    box open.
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2163
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2164
    box accepted ifTrue:[
598
0d9f5f10e3a0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 597
diff changeset
  2165
        Printer := possiblePrinters at:(printerType selectionIndex).
362
d5d99cdda74c use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  2166
        Printer printCommand:printCommand value.
595
5b51eac88d92 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 594
diff changeset
  2167
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2168
        Printer supportsPageSizes ifTrue:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2169
            Printer pageFormat:(pageFormat selection).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2170
            Printer landscape:(landscape value).
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2171
        ].
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2172
        Printer supportsMargins ifTrue:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2173
            unitList selectionIndex == 2 ifTrue:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2174
                unit := #mm
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2175
            ] ifFalse:[
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2176
                unit := #inch
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2177
            ].
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2178
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2179
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
709
b18e8c1d87e9 rightMargin
ca
parents: 707
diff changeset
  2180
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2181
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
601
78a77af834fe more printer settings
Claus Gittinger <cg@exept.de>
parents: 600
diff changeset
  2182
        ].
702
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2183
        Printer supportsPostscript ifTrue:[
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2184
            Printer supportsColor:supportsColor value.
fdbfdaf9dc17 add printer setup: color
ca
parents: 700
diff changeset
  2185
        ].
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2186
    ].
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2187
    box destroy
362
d5d99cdda74c use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  2188
707
36d04c33b0a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 702
diff changeset
  2189
    "Modified: 5.9.1996 / 21:45:19 / cg"
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2190
    "Modified: 9.9.1996 / 22:43:51 / stefan"
347
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2191
!
acfb4dcd3017 added printerSettings
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
  2192
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2193
viewStyleSetting 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2194
    |listOfStyles resourceDir dir box 
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2195
     list listView scrView infoLabel infoForwarder newStyle|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2196
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2197
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2198
     search resources directory for a list of .style files ...
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2199
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2200
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2201
    resourceDir := Smalltalk getSystemFileName:'resources'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2202
    resourceDir isNil ifTrue:[
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2203
        self warn:'no styles found (missing ''resources'' directory)'.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2204
        ^ self
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2205
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2206
    dir := FileDirectory directoryNamed:resourceDir.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2207
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2208
    listOfStyles := dir select:[:aFileName | aFileName endsWith:'.style'].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2209
    listOfStyles := listOfStyles collect:[:aFileName | aFileName copyWithoutLast:6].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2210
    listOfStyles sort.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2211
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2212
"/ old code: used a standard ListSelectionBox
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2213
"/ changed to intercept selection and add info-output.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2214
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2215
"/    box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2216
"/    box label:(resources string:'Style selection').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2217
"/    box list:listOfStyles.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2218
"/    box initialText:View defaultStyle.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2219
"/    box selectAction:[:newStyle |
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2220
"/    ].    
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2221
"/    box action:[:newStyle |
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2222
"/        transcript topView withCursor:Cursor wait do:[
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2223
"/            transcript showCR:'change style to ' , newStyle , ' ...'.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2224
"/            View defaultStyle:newStyle asSymbol.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2225
"/        ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2226
"/    ].    
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2227
"/    box showAtPointer
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2228
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2229
"/ new code: build box 'by 'hand'
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2230
"/
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  2231
    infoForwarder := [
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2232
                        |nm sheet comment|
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2233
                        nm := list selection.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2234
                        sheet := ViewStyle fromFile:(nm , '.style').
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2235
                        comment := sheet at:#comment ifAbsent:''.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2236
                        infoLabel label:comment withCRs asStringCollection
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2237
                       ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2238
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2239
    list := SelectionInList with:listOfStyles.
596
ad53df643d7e added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents: 595
diff changeset
  2240
    list onChangeSend:#value to:infoForwarder.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2241
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2242
    box := Dialog new.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2243
    box label:(resources string:'Style selection').
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2244
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2245
    (box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2246
    listView := SelectionInListView on:list.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2247
    listView doubleClickAction:[:sel | box accept value:true. box hide].
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2248
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2249
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2250
    box addVerticalSpace.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2251
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2252
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2253
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2254
    box addAbortButton; addOkButton.
568
58d7e4157f23 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 566
diff changeset
  2255
    list selection:(View defaultStyle).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2256
342
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2257
    box stickAtBottomWithVariableHeight:scrView.
d4edf4483817 use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents: 341
diff changeset
  2258
    box stickAtBottomWithFixHeight:infoLabel.
582
aca73c710a3b use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
  2259
    box open.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2260
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2261
    box accepted ifTrue:[
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2262
        newStyle := list selection.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2263
        newStyle notNil ifTrue:[
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2264
            self withWaitCursorDo:[
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2265
                transcript showCR:'change style to ' , newStyle , ' ...'.
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2266
                View defaultStyle:newStyle asSymbol.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2267
            ].
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2268
            self reopenLauncher.
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2269
        ]
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  2270
    ].
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  2271
    box destroy
549
4ed344b70424 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
  2272
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2273
    "Modified: 5.7.1996 / 13:13:22 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2274
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2275
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2276
!Launcher methodsFor:'actions - tools'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2277
537
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2278
compressingGarbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2279
    ObjectMemory verboseGarbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2280
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2281
    "Created: 12.5.1996 / 15:30:15 / cg"
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2282
!
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2283
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2284
findAndDestroyWindow
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2285
    |v|
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2286
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2287
    v := self findWindow.
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2288
    v notNil ifTrue:[
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2289
        v destroy.
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2290
    ].
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2291
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2292
    "Created: 28.10.1996 / 14:39:23 / cg"
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2293
!
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2294
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2295
findAndRaiseWindow
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2296
    |v|
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2297
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2298
    v := self findWindow.
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2299
    v notNil ifTrue:[
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2300
        v raiseDeiconified.
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2301
    ].
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2302
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2303
    "Modified: 28.10.1996 / 14:39:04 / cg"
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2304
!
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2305
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2306
findWindow
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2307
    "a helper for find & destroy and find & raise operations;
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2308
     let user choose a view and return it; return nil on cancel"
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2309
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2310
    |knownTopViews nameList box|
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2311
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2312
    knownTopViews := IdentitySet new.
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2313
    Screen allScreens do:[:aScreen |
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2314
        aScreen knownViews do:[:aView |
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2315
            aView notNil ifTrue:[
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2316
                knownTopViews add:aView topView
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2317
            ]
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2318
        ]
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2319
    ].
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2320
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2321
    knownTopViews := knownTopViews select:[:aView | aView windowGroup notNil
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2322
                                                    and:[aView windowGroup isModal not]].
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2323
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2324
    knownTopViews := knownTopViews asOrderedCollection.
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2325
    knownTopViews sort:[:v1 :v2 | v1 label < v2 label].
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2326
    nameList := knownTopViews collect:[:v | 
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2327
                                        |isDead wg p|
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2328
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2329
                                        ((wg := v windowGroup) notNil
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2330
                                        and:[(p := wg process) notNil
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2331
                                        and:[p state ~~ #dead]]) ifTrue:[
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2332
                                            v label
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2333
                                        ] ifFalse:[
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2334
                                            v label , ' (dead ?)'
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2335
                                        ]
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2336
                                      ].
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2337
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2338
    box := ListSelectionBox new.
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2339
    box noEnterField.
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2340
    box list:nameList.
772
75752d2e781a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 765
diff changeset
  2341
    box label:(resources string:'view selection').
75752d2e781a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 765
diff changeset
  2342
    box title:(resources string:'select a view to raise deiconified:') withCRs.
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2343
    box action:[:selection |
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2344
        |v|
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2345
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2346
        v := knownTopViews at:box selectionIndex.
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2347
        box destroy.
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2348
        ^ v
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2349
    ].
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2350
    box extent:400@300.
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2351
    box showAtPointer.
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2352
    ^ nil
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2353
772
75752d2e781a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 765
diff changeset
  2354
    "Modified: 16.10.1996 / 12:41:39 / cg"
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  2355
    "Created: 28.10.1996 / 14:38:41 / cg"
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2356
!
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  2357
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2358
fullScreenHardcopy
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2359
    "after a second (to allow redraw of views under menu ...),
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2360
     save the contents of the whole screen."
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2361
738
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2362
    Processor 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2363
        addTimedBlock:[
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2364
                        self 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2365
                            saveScreenImage:(Image fromScreen) 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2366
                            defaultName:'screen'
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2367
                      ] 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2368
        afterSeconds:1
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2369
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2370
    "Modified: 23.9.1996 / 14:36:14 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2371
!
99
claus
parents: 98
diff changeset
  2372
537
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2373
garbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2374
    ObjectMemory reclaimSymbols
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2375
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2376
    "Created: 12.5.1996 / 15:28:03 / cg"
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2377
!
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2378
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2379
globalGarbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2380
    ObjectMemory reclaimSymbols
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2381
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2382
    "Created: 12.5.1996 / 15:28:13 / cg"
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2383
!
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  2384
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2385
removeAllBreakAndTracePoints
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2386
    MessageTracer cleanup
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2387
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2388
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2389
screenHardcopy
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2390
    "after a second (to allow redraw of views under menu ...),
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2391
     let user specify a rectangular area on the screen
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2392
     and save its contents."
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2393
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2394
    |area|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2395
738
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2396
    Processor 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2397
        addTimedBlock:[
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2398
                        area := Rectangle fromUser.
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2399
                        (area width > 0 and:[area height > 0]) ifTrue:[
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2400
                            self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2401
                        ]
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2402
                      ] 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2403
        afterSeconds:1
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2404
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2405
    "Modified: 23.9.1996 / 14:36:28 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2406
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2407
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2408
startEventMonitor
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2409
    EventMonitor open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2410
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2411
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2412
startFullWindowTreeView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2413
    WindowTreeView open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2414
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2415
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2416
startMemoryMonitor
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2417
    MemoryMonitor open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2418
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2419
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2420
startMemoryUsageView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2421
    MemoryUsageView open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2422
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2423
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2424
startProcessMonitor
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2425
    ProcessMonitor open
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2426
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2427
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2428
startStopEventTrace
503
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2429
    |v wg|
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2430
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2431
    v := Screen current viewFromUser.
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2432
    v notNil ifTrue:[
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2433
        v := v topView.
503
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2434
        wg := v windowGroup.
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2435
        wg notNil ifTrue:[
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2436
            "/
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2437
            "/ toggle eventTrace in its windowGroup
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2438
            "/
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2439
            wg traceEvents:(wg preEventHook isNil)
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2440
        ]
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2441
    ]
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2442
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2443
    "Created: 7.3.1996 / 14:44:22 / cg"
503
94b826e911b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 500
diff changeset
  2444
    "Modified: 24.4.1996 / 10:27:11 / cg"
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2445
!
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  2446
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2447
startWindowTreeView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2448
    |v|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2449
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2450
    v := self pickAView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2451
    v notNil ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2452
	WindowTreeView openOn:v topView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2453
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2454
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2455
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2456
viewDestroy
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2457
    "let user pick a view and destroy it.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2458
     Even allow destroying non-smalltalk views
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2459
     (also for views which I forgot due to some error)"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2460
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2461
    |device p v id|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2462
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2463
    (Delay forSeconds:1) wait.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2464
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2465
    device := Screen current.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2466
    p :=  device pointFromUser.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2467
    id := device viewIdFromPoint:p.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2468
    v := device viewFromId:id.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2469
    v notNil ifTrue:[
304
49dc8c0e733e interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents: 298
diff changeset
  2470
	v topView destroy.
49dc8c0e733e interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents: 298
diff changeset
  2471
	^ self
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2472
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2473
    id = device rootView id ifTrue:[
304
49dc8c0e733e interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents: 298
diff changeset
  2474
	^ self
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2475
    ].
298
d1212fc486b9 message string changed
Claus Gittinger <cg@exept.de>
parents: 281
diff changeset
  2476
    (Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs)
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2477
    ifTrue:[
304
49dc8c0e733e interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents: 298
diff changeset
  2478
	device destroyView:nil withId:id
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2479
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2480
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2481
    "Modified: 18.9.1995 / 23:13:32 / claus"
298
d1212fc486b9 message string changed
Claus Gittinger <cg@exept.de>
parents: 281
diff changeset
  2482
    "Modified: 14.12.1995 / 22:02:26 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2483
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2484
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2485
viewHardcopy
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2486
    "after a second (to allow redraw of views under menu ...),
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2487
     let user specify a view and save its contents."
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2488
738
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2489
    Processor 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2490
        addTimedBlock:[
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2491
                        |v|
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2492
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2493
                        v := Screen current viewFromUser.
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2494
                        v notNil ifTrue:[
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2495
                            self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2496
                        ]
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2497
                      ] 
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2498
        afterSeconds:1
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2499
e1fa8a2b8bc1 reformatted
Claus Gittinger <cg@exept.de>
parents: 737
diff changeset
  2500
    "Modified: 23.9.1996 / 14:36:48 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2501
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2502
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2503
viewInspect
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2504
    "let user pick a view and inspect it. Only smalltalk views are allowed"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2505
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2506
    |v|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2507
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2508
    v := self pickAView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2509
    v notNil ifTrue:[
226
4b050498fe46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
  2510
"/        v topView inspect
4b050498fe46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
  2511
	v inspect
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2512
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2513
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2514
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2515
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2516
!Launcher methodsFor:'change & update'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2517
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2518
update:something with:aParameter from:changedObject
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2519
    ((something == #currentProject)
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2520
    or:[changedObject == Project]) ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2521
	self changed:#info.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2522
	^ self
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2523
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2524
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2525
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2526
!Launcher methodsFor:'dynamic menus'!
658
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2527
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2528
addMenu:name withItems:items actions:actions
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2529
    "dynamically add a new (user-)menu to the menu panel.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2530
     This allows applications to install items for themself
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2531
     dynamically in the launcher."
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2532
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2533
    |subMenu|
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2534
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2535
    myMenu add:name selector:(name asSymbol) before:#help.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2536
    subMenu := MenuView forMenu:myMenu.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2537
    subMenu labels:items.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2538
    subMenu actions:actions.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2539
    myMenu at:name putMenu:subMenu
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2540
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2541
    "
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2542
     |launcher actionBlocks|
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2543
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2544
     actionBlocks := Array new:3.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2545
     actionBlocks at:1 put:[Transcript showCR:'foo'].
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2546
     actionBlocks at:2 put:[Transcript showCR:'bar'].
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2547
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2548
     launcher := Transcript topView application.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2549
     launcher 
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2550
        addMenu:'misc' 
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2551
        withItems:#('foo' 'bar')
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2552
        actions:actionBlocks
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2553
    "
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2554
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2555
    "
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2556
     |launcher actionBlocks|
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2557
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2558
     actionBlocks := Array new:3.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2559
     actionBlocks at:1 put:[RDoItServer startServer].
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2560
     actionBlocks at:2 put:[RDoItServer killServer].
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2561
                
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2562
     launcher := Transcript topView application.
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2563
     launcher 
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2564
        addMenu:'misc' 
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2565
        withItems:#('start rdoit server' 'stop rdoit server')
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2566
        actions:actionBlocks
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2567
    "
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2568
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2569
    "Modified: 5.7.1996 / 11:45:19 / cg"
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2570
!
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2571
668
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2572
menuAt:nameSymbol
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2573
    "return a menu by name"
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2574
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2575
    ^ myMenu subMenuAt:nameSymbol
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2576
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2577
    "
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2578
     |launcher demoMenu|
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2579
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2580
     launcher := Transcript topView application.
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2581
     demoMenu := launcher menuAt:#demos.
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2582
     demoMenu
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2583
        addLabels:#('-' 'fooBar')
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2584
        selectors:#(nil fooBar).
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2585
     demoMenu actionAt:#fooBar put:[Transcript showCR:'fooBar']
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2586
    "
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2587
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2588
    "Created: 11.7.1996 / 15:35:13 / cg"
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2589
    "Modified: 11.7.1996 / 15:42:25 / cg"
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2590
!
6da85ce16fde checkin from browser
Claus Gittinger <cg@exept.de>
parents: 662
diff changeset
  2591
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2592
removeMenu:name
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2593
    "dynamically remove a (user-)menu from the menu panel.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2594
     This allows applications to de-install items for themself
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2595
     dynamically in the launcher."
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2596
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2597
    myMenu remove:name 
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2598
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2599
    "
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2600
     |launcher actionBlocks|
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2601
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2602
     actionBlocks := Array new:3.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2603
     actionBlocks at:1 put:[Transcript showCR:'foo'].
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2604
     actionBlocks at:2 put:[Transcript showCR:'bar'].
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2605
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2606
     launcher := Transcript topView application.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2607
     launcher 
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2608
        addMenu:'misc' 
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2609
        withItems:#('foo' 'bar')
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2610
        actions:actionBlocks.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2611
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2612
     Delay waitForSeconds:10.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2613
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2614
     launcher removeMenu:'misc'
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2615
    "
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2616
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2617
    "Created: 5.7.1996 / 11:44:54 / cg"
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2618
    "Modified: 5.7.1996 / 11:54:36 / cg"
658
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2619
! !
39ffd3412779 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 638
diff changeset
  2620
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2621
!Launcher methodsFor:'help'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2622
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2623
helpTextFor:aComponent
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2624
    |sel s buttons|
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2625
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2626
    aComponent == transcript ifTrue:[
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2627
        s := 'TRANSCRIPT_HELP'
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2628
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2629
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2630
    aComponent == infoView ifTrue:[
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2631
        s := 'INFOVIEW_HELP'
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2632
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2633
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2634
    buttons := buttonPanel subViews.
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2635
    (buttons notNil and:[buttons includes:aComponent]) ifTrue:[
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2636
        "kludge: look for its change selector"
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2637
        sel := aComponent changeMessage.
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2638
        sel == #startSystemBrowser ifTrue:[
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2639
            s := 'SBROWSER_BUTTON_HELP'
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2640
        ].
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2641
        sel == #startFileBrowser ifTrue:[
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2642
            s := 'FBROWSER_BUTTON_HELP'
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2643
        ].
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2644
        sel == #startChangesBrowser ifTrue:[
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2645
            s := 'CBROWSER_BUTTON_HELP'
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2646
        ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2647
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2648
    s notNil ifTrue:[
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2649
        ^ resources string:s
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2650
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2651
    ^ nil
399
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2652
c75f23ad674c handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
  2653
    "Modified: 26.2.1996 / 23:08:19 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2654
! !
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2655
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2656
!Launcher methodsFor:'infoview update'!
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2657
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2658
info
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2659
    |project projectName projectDir packageName|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2660
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2661
    (Project isNil or:[(project := Project current) isNil]) ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2662
	projectName := '* none *'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2663
	projectDir := '.'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2664
	packageName := '* none *'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2665
    ] ifFalse:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2666
	projectName := project name.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2667
	projectDir := project directory.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2668
	packageName := project packageName.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2669
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2670
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2671
    ^ resources
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2672
	string:'project: ''%1''  fileOut to: ''%3''  package: ''%2'''
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2673
	  withArgs:(Array 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2674
			with:projectName
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2675
			with:packageName 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2676
			with:(projectDir contractTo:30))
319
a39350103cb2 forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
  2677
!
a39350103cb2 forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
  2678
a39350103cb2 forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
  2679
showActivity:someMessage
500
6824f44e589b commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  2680
    "some activityNotification to be forwarded to the user;
6824f44e589b commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  2681
     show it in the transcript here."
6824f44e589b commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  2682
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2683
    transcript showCR:someMessage; endEntry
319
a39350103cb2 forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
  2684
a39350103cb2 forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
  2685
    "Created: 23.12.1995 / 12:38:29 / cg"
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2686
    "Modified: 5.7.1996 / 13:13:15 / cg"
99
claus
parents: 98
diff changeset
  2687
! !
claus
parents: 98
diff changeset
  2688
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  2689
!Launcher methodsFor:'initialize / release'!
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2690
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2691
addTopViewsToCurrentProject
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2692
    "ignored here - the launcher is always global (i.e. not project private)."
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2693
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2694
    ^ self
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2695
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2696
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2697
buttonPanelSpec
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2698
    "return a spec for the buttons in the panel;
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2699
     entries consists of selector and bitmap-filename.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2700
     nil selectors are taken as separators (see setupButtonPanel)"
98
claus
parents: 96
diff changeset
  2701
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2702
    ^ #(
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2703
        #(startSystemBrowser 'SBrowser32x32.xbm')
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2704
        #(startFileBrowser   'FBrowser32x32.xbm')
238
523cc1f36b1d release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  2705
"/        #(startWorkspace      'Workspace32x32.xbm')
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2706
        #(nil nil)
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2707
        #(startChangesBrowser 'CBrowser32x32.xbm')
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2708
"/        #(nil nil)
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2709
"/        #(nil nil)
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2710
"/        #(startDocumentationTool 'book11.ico')
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2711
     )
230
6be247b9d815 workspace button
Claus Gittinger <cg@exept.de>
parents: 228
diff changeset
  2712
6be247b9d815 workspace button
Claus Gittinger <cg@exept.de>
parents: 228
diff changeset
  2713
    "Created: 4.12.1995 / 20:16:18 / cg"
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2714
    "Modified: 19.4.1996 / 16:37:46 / cg"
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2715
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2716
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2717
closeDownViews
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2718
    OpenLaunchers remove:self ifAbsent:nil.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2719
    super closeDownViews.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2720
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2721
    "Created: 5.7.1996 / 13:33:36 / cg"
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2722
!
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2723
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2724
closeRequest
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2725
    (self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2726
	super closeRequest
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2727
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2728
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2729
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2730
disableDangerousMenuItemsInRemoteLauncher
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2731
    "if I am a remote launcher (multidisplay operation),
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2732
     disable menus which are dangerous or affect common state. 
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2733
     These operations have to
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2734
     be performed on the main screen."
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2735
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2736
    isMainLauncher ifFalse:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2737
        (myMenu menuAt:#file) disableAll:#(snapshot snapshotAndExit objectModuleDialog exit).
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2738
        (myMenu menuAt:#projects) disableAll.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2739
        (myMenu menuAt:#settings) disableAll.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2740
    ].
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2741
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2742
    "Created: 5.7.1996 / 17:00:50 / cg"
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2743
    "Modified: 5.7.1996 / 17:01:30 / cg"
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2744
!
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2745
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2746
focusSequence
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2747
    ^ (Array with:myMenu) 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2748
      , 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2749
      (buttonPanel subViews select:[:element | element isKindOf:Button])
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2750
"/      , (Array with:Transcript)
98
claus
parents: 96
diff changeset
  2751
!
claus
parents: 96
diff changeset
  2752
93
claus
parents: 92
diff changeset
  2753
openInterface
98
claus
parents: 96
diff changeset
  2754
    "sent by my superclass to open up my interface"
93
claus
parents: 92
diff changeset
  2755
615
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2756
    |top icn w scrn sz|
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2757
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2758
    "/ if there is already a transcript on my device,
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2759
    "/ I am a slave launcher with limited functionality.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2760
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2761
    Transcript notNil ifTrue:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2762
        Transcript ~~ Stderr ifTrue:[
662
b5efd05fa256 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 661
diff changeset
  2763
            isMainLauncher := (Transcript graphicsDevice == device).
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2764
        ] ifFalse:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2765
            isMainLauncher := true
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2766
        ]
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2767
    ] ifFalse:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2768
        isMainLauncher := true
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2769
    ].
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2770
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2771
    top := StandardSystemView onDevice:device.
205
e3952eceab14 set iconLabel
Claus Gittinger <cg@exept.de>
parents: 192
diff changeset
  2772
    top label:'Smalltalk/X'; iconLabel:'ST/X Launcher'.
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2773
    top extent:(400@300 ).
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2774
615
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2775
    icn := self class aboutIcon.
686
3dd40eb33b09 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 679
diff changeset
  2776
    icn notNil ifTrue:[
3dd40eb33b09 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 679
diff changeset
  2777
        icn := icn magnifiedTo:(sz := Screen current preferredIconSize).
3dd40eb33b09 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 679
diff changeset
  2778
    ].
616
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2779
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2780
    ((scrn := Screen current) supportsDeepIcons not
617
19ec7ab9ffb1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 616
diff changeset
  2781
    and:[scrn supportsIconViews
19ec7ab9ffb1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 616
diff changeset
  2782
    and:[scrn depth > 1]]) ifTrue:[    
616
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2783
        w := View extent:sz. 
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2784
        w viewBackground:icn.
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2785
        top iconView:w
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2786
    ] ifFalse:[
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2787
        top icon:icn.
ae2685e7d843 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 615
diff changeset
  2788
    ].
615
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2789
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2790
"/    (scrn := Screen current) supportsDeepIcons ifTrue:[
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2791
"/        icn := self class aboutIcon.
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2792
"/        icn notNil ifTrue:[
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2793
"/            icn := icn magnifiedTo:(sz := scrn preferredIconSize).
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2794
"/            icn := Depth8Image fromImage:icn.
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2795
"/            top icon:icn
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2796
"/        ].
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2797
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2798
"/    ] ifFalse:[
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2799
"/        scrn supportsIconViews ifTrue:[
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2800
"/            icn := self class aboutIcon.
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2801
"/            icn notNil ifTrue:[
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2802
"/                icn := icn magnifiedTo:(sz := scrn preferredIconSize).
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2803
"/                w := View extent:sz. 
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2804
"/                w viewBackground:icn.
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2805
"/                top iconView:w
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2806
"/            ].
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2807
"/        ]
ed4432c4d5c0 cleanup icon code
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
  2808
"/    ].
92
claus
parents: 91
diff changeset
  2809
93
claus
parents: 92
diff changeset
  2810
    self setupViewsIn:top.
98
claus
parents: 96
diff changeset
  2811
claus
parents: 96
diff changeset
  2812
    top application:self.   
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2813
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2814
    "
92
claus
parents: 91
diff changeset
  2815
     open with higher prio to allow interaction even while things
claus
parents: 91
diff changeset
  2816
     are running ...
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2817
    "
92
claus
parents: 91
diff changeset
  2818
    top openWithPriority:(Processor userSchedulingPriority + 1).
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2819
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2820
    OpenLaunchers isNil ifTrue:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2821
        OpenLaunchers := OrderedCollection new.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2822
    ].
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2823
    OpenLaunchers add:self.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2824
686
3dd40eb33b09 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 679
diff changeset
  2825
    "Modified: 25.7.1996 / 21:12:09 / cg"
93
claus
parents: 92
diff changeset
  2826
!
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2827
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2828
release
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2829
    infoProcess notNil ifTrue:[
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2830
        infoProcess terminate.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2831
        infoProcess := nil.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2832
    ].
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2833
    OpenLaunchers remove:self ifAbsent:nil.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2834
    super release
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2835
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  2836
    "Modified: 5.7.1996 / 11:48:56 / cg"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2837
!
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2838
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2839
restarted
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2840
    "image restart - since WindowGroup recreates the process with
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2841
     the default priority, we have to raise the prio again.
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2842
     Mhmh - this looks like a bug to me ...
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2843
     Also, the cursor (which was stored as a write or waitCursor) must
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2844
     be reset to normal."
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2845
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2846
    Processor activeProcess priority:(Processor userSchedulingPriority + 1).
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2847
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2848
    super restarted
600
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2849
7c4fa93d814a cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents: 598
diff changeset
  2850
    "Modified: 1.6.1996 / 16:58:25 / cg"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2851
!
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2852
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2853
saveAndTerminateRequest
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2854
    "some windowManagers can send this, to shutDown an application
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2855
     but let it save its state before, for later restart. 
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2856
     Although I have not yet encountered such a windowManager,
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2857
     we are already prepared for this ;-)"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2858
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  2859
    self snapshot.
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2860
    super saveAndTerminateRequest
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2861
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2862
    "Created: 5.7.1996 / 13:07:45 / cg"
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  2863
    "Modified: 5.7.1996 / 13:08:55 / cg"
103
claus
parents: 102
diff changeset
  2864
!
claus
parents: 102
diff changeset
  2865
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2866
setupButtonPanelIn:aTopView
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2867
    "create the buttonPanel"
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2868
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2869
    |spc mh buttonSize|
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2870
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2871
    spc := View viewSpacing // 2.
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2872
    buttonPanel := HorizontalPanelView in:aTopView.
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2873
    buttonPanel level:-1; borderWidth:0.
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2874
    buttonPanel horizontalLayout:#leftSpace.
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2875
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2876
    buttonSize := self class buttonImageSize.
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2877
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2878
    "/
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2879
    "/ the buttonSpec is a collection of:
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2880
    "/   #( selector  iconFileName )
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2881
    "/ or:
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2882
    "/   #( selector  (className iconQuerySelector) )
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2883
    "/ or"
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2884
    "/   #( nil )
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2885
    "/
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2886
    self buttonPanelSpec do:[:entry |
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2887
        |sel b sep img iconSpec|
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2888
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2889
        sel := entry at:1.
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2890
        sel isNil ifTrue:[
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2891
            sep := View in:buttonPanel.
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2892
            sep extent:32@1; borderWidth:0.
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2893
        ] ifFalse:[
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2894
            b := Button in:buttonPanel.
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2895
            iconSpec := entry at:2.
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2896
            iconSpec isArray ifTrue:[
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2897
                img := (Smalltalk classNamed:(iconSpec at:1)) perform:(iconSpec at:2).
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2898
            ] ifFalse:[
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2899
                img := Image fromFile:iconSpec.
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2900
            ].
591
b06ede2544fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 590
diff changeset
  2901
            (img notNil and:[buttonSize notNil]) ifTrue:[
b06ede2544fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 590
diff changeset
  2902
                img extent ~= buttonSize ifTrue:[
b06ede2544fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 590
diff changeset
  2903
                    img := img magnifiedTo:buttonSize       
b06ede2544fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 590
diff changeset
  2904
                ]
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2905
            ].
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2906
            b form:img.
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2907
            b model:self; changeMessage:sel
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2908
        ]
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2909
    ].
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2910
100
claus
parents: 99
diff changeset
  2911
    mh := myMenu height.
claus
parents: 99
diff changeset
  2912
    buttonPanel origin:0.0 @ (mh + spc)
368
16b400bb820d allow redefinition of the buttonImage size
ca
parents: 364
diff changeset
  2913
                corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)).
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2914
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2915
    buttonPanel leftInset:spc; rightInset:spc.
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  2916
591
b06ede2544fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 590
diff changeset
  2917
    "Modified: 29.5.1996 / 19:23:04 / cg"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2918
!
11b4ce85104e Initial revision
claus
parents:
diff changeset
  2919
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2920
setupDemoMenu
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2921
    "setup the demo pulldown menu"
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2922
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2923
    |m|
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2924
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2925
    myMenu at:#demos 
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2926
           putLabels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2927
                                        'goodies'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2928
                                        'games'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2929
                                        'geometric designs'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2930
                                        'simple animations'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2931
                                        '3D graphics'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2932
                                        'graphic editors'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2933
                                       ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2934
           selectors:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2935
                                        goodies
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2936
                                        games
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2937
                                        geometricDesigns
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2938
                                        simpleAnimations
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2939
                                        #'3Dgraphics'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2940
                                        #graphicEditors
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2941
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2942
           receiver:self.
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2943
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2944
    "
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2945
     only to show two different ways of defining a popUpMenu,
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2946
     we use labels:selectors:receiver: here:
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2947
    "
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2948
    m := myMenu menuAt:#demos.
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2949
    m subMenuAt:#games
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2950
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2951
                labels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2952
                                           'Tetris'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2953
                                           'Tic Tac Toe'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2954
                                           'Tic Tac Toe (2 players)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2955
                                         ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2956
                selectors:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2957
                                           startTetris
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2958
                                           startTicTacToe
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2959
                                           startTicTacToe2
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2960
                           )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2961
                receiver:self).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2962
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2963
    "
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2964
     and labels:selector:args:receiver: here:
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2965
    "
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2966
    m subMenuAt:#geometricDesigns
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2967
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2968
                labels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2969
                                           'Pen demo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2970
                                           'Commander demo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2971
                                           '-'     
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2972
                                           'Fractal plants demo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2973
                                           'Fractal patterns demo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2974
                                         ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2975
                selector:#openDemo:
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2976
                args:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2977
                                           PenDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2978
                                           CommanderDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2979
                                           nil
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2980
                                           FractalPlantsDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2981
                                           FractalPatternsDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2982
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2983
                receiver:self).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2984
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2985
    m subMenuAt:#simpleAnimations 
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2986
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2987
                labels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2988
                                           'Animation'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2989
                                           'Globe demo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2990
                                         ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2991
                selector:#openDemo:
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2992
                args:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2993
                                           Animation
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2994
                                           GlobeDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2995
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  2996
                receiver:self).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2997
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2998
    m subMenuAt:#'3Dgraphics' 
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  2999
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3000
                labels:(resources 
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3001
                            array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3002
                                'plane'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3003
                                'tetra'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3004
                                'cube (wireframe)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3005
                                'cube (solid)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3006
                                'sphere (wireframe)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3007
                                'doughnut (wireframe)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3008
                                'planet'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3009
                                'teapot'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3010
                                'logo'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3011
                                'rubics cube'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3012
                                'x/y graph'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3013
                                '-'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3014
                                'cube (light)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3015
                                'cube (light & texture)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3016
                                'sphere (light)'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3017
                                'colored octahedron'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3018
                             ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3019
                selector:#openDemo:
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3020
                args:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3021
                                GLPlaneDemoView2
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3022
                                GLTetraDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3023
                                GLWireCubeDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3024
                                GLCubeDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3025
                                GLWireSphereDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3026
                                GLDoughnutDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3027
                                GLPlanetDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3028
                                GLTeapotDemo
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3029
                                Logo3DView1
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3030
                                RubicsCubeView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3031
                                GLXYGraph
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3032
                                nil
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3033
                                GLCubeDemoView2
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3034
                                GLBrickCubeDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3035
                                GLSphereDemoView2
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3036
                                GLOctaHedronDemoView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3037
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3038
                receiver:self).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3039
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3040
    m subMenuAt:#graphicEditors 
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3041
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3042
                labels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3043
                                           'DrawTool'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3044
                                           'LogicTool'
464
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3045
                                           'Paint Demo'
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3046
                                         ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3047
                selector:#openDemo:
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3048
                args:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3049
                                           DrawTool
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3050
                                           LogicTool
464
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3051
                                           ColorDrawDemo3
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3052
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3053
                receiver:self).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3054
91
claus
parents: 90
diff changeset
  3055
    m subMenuAt:#goodies 
claus
parents: 90
diff changeset
  3056
      put:(PopUpMenu
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3057
                labels:(resources array:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3058
                                        'clock'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3059
                                        'calendar'
464
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3060
                                        'calculator'
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3061
                                        '-'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3062
                                        'mail tool'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3063
                                        'news tool'
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3064
                                        ))
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3065
                selector:#openDemo:
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3066
                args:#(
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3067
                                        Clock 
464
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3068
                                        Calendar
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3069
                                        CalculatorView
450
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3070
                                        nil
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3071
                                        MailView 
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3072
                                        NewsView
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3073
                      )
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3074
                receiver:self).
6668a0aec8d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 443
diff changeset
  3075
464
998161ce250d added calculator & panter to demo menu
Claus Gittinger <cg@exept.de>
parents: 458
diff changeset
  3076
    "Modified: 11.4.1996 / 00:21:46 / cg"
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3077
!
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3078
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3079
setupInfoViewIn:topView 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3080
    |spc halfSpc|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3081
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3082
    spc := View viewSpacing.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3083
    infoView := Label label:'' in:topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3084
    infoView adjust:#left; borderWidth:0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3085
    infoView level:-1.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3086
    transcript superView bottomInset:(infoView height + spc).
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3087
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3088
    infoView is3D ifTrue:[
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3089
        halfSpc := spc // 2.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3090
    ] ifFalse:[
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3091
        halfSpc := 0
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3092
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3093
    infoView topInset:(infoView height negated - spc + transcript borderWidth);
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3094
             bottomInset:halfSpc;
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3095
             leftInset:halfSpc; 
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3096
             rightInset:halfSpc.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3097
    infoView origin:0.0 @ 1.0 corner:1.0 @ 1.0.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3098
    infoView model:self; aspect:#info; labelMessage:#info.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3099
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3100
    Project notNil ifTrue:[
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3101
        Project addDependent:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3102
    ]
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3103
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3104
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3105
     Launcher open
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3106
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3107
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3108
    "Modified: 9.9.1996 / 22:44:15 / stefan"
93
claus
parents: 92
diff changeset
  3109
!
claus
parents: 92
diff changeset
  3110
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3111
setupMenu
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3112
    "setup the pulldown menu"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3113
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3114
    |l s icon|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3115
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3116
    myMenu labels:(resources array:#(
379
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3117
                                     about
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3118
                                     file
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3119
                                     classes
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3120
                                     tools
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3121
                                     projects
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3122
                                     settings
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3123
                                     demos
b7adadee426a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
  3124
                                     help)).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3125
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3126
     if there is a bitmap, change 'about' to the ST/X icon
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3127
    "
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3128
    icon := self class smallAboutIcon.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3129
    icon notNil ifTrue:[
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3130
        myMenu labels at:1 put:icon.
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3131
        myMenu height:(myMenu height max:(icon height + (View viewSpacing * 2)))
93
claus
parents: 92
diff changeset
  3132
    ].
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3133
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3134
    myMenu selectors:#(
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3135
                                     #about
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3136
                                     #file
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3137
                                     #classes 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3138
                                     #tools 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3139
                                     #projects 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3140
                                     #settings
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3141
                                     #demos
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3142
                                     #help).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3143
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3144
    myMenu at:#about 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3145
           putLabels:(resources array:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3146
                                        'about Smalltalk/X ...'
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  3147
                                        '-'
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  3148
                                        'licence conditions'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3149
                                       ))
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3150
           selectors:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3151
                                        #about 
733
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  3152
                                        nil
1cd5a9644c57 added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  3153
                                        #showLicenceConditions 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3154
                      )
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3155
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3156
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3157
    l := #(
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3158
                'file browser'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3159
                '-'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3160
                'modules ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3161
                '-'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3162
                'snapshot ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3163
                'snapshot & exit ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3164
                'exit smalltalk ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3165
         ).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3166
    s := #(
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3167
                #startFileBrowser
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3168
                nil
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3169
                #objectModuleDialog 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3170
                nil
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3171
                #snapshot
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3172
                #snapshotAndExit
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3173
                #exit
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3174
         ).
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3175
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3176
    myMenu at:#file
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3177
           putLabels:(resources array:l)
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3178
           selectors:s
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3179
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3180
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3181
    myMenu at:#classes 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3182
           putLabels:(resources array:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3183
                                        'system browser'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3184
                                        'class browser ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3185
                                        'full class browser ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3186
                                        'class hierarchy browser ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3187
                                        'class tree'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3188
                                        '-'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3189
                                        'implementors ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3190
                                        'senders ...'
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
  3191
                                        'resource ...'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3192
                                        '-'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3193
                                        'change browser'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3194
                                        ))
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3195
           selectors:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3196
                                        #startSystemBrowser 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3197
                                        #startClassBrowser 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3198
                                        #startFullClassBrowser 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3199
                                        #startClassHierarchyBrowser 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3200
                                        #startClassTreeView 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3201
                                        nil
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3202
                                        #browseImplementors 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3203
                                        #browseSenders 
574
b097a3dd0360 added browse-resource
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
  3204
                                        #browseResources 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3205
                                        nil
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3206
                                        #startChangesBrowser 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3207
                      )
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3208
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3209
490
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3210
    JavaBrowser notNil ifTrue:[
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3211
        (myMenu subMenuAt:#classes)
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3212
            addLabels:(resources array:#('-' 'java browser'))
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3213
            selectors:#(nil startJavaBrowser)
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3214
            after:#startClassTreeView
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3215
    ].
b11f789fa391 java browser support
Claus Gittinger <cg@exept.de>
parents: 483
diff changeset
  3216
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3217
    myMenu at:#projects 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3218
           putLabels:(resources array:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3219
                                        'new project'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3220
                                        '-'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3221
                                        'select project ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3222
                                        ))
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3223
           selectors:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3224
                                        #newProject 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3225
                                        nil
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3226
                                        #selectProject 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3227
                      )
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3228
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3229
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3230
    myMenu at:#settings 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3231
           putLabels:(resources array:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3232
                                        'language ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3233
                                        'show keyboard mappings ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3234
                                        'view style ...'
398
001d78a6cacd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 397
diff changeset
  3235
                                        'fonts ...'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3236
                                        'printer ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3237
                                        'messages ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3238
                                        'compilation ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3239
                                        'object memory ...'
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  3240
                                        'screen ...'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3241
                                        'misc ...'
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3242
                                        ))
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3243
           selectors:#(
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3244
                                        #languageSetting 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3245
                                        #keyboardSetting 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3246
                                        #viewStyleSetting 
398
001d78a6cacd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 397
diff changeset
  3247
                                        #fontSettings 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3248
                                        #printerSettings 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3249
                                        #messageSettings 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3250
                                        #compilerSettings 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3251
                                        #memorySettings 
594
01aba783dbc8 added screen-settings
Claus Gittinger <cg@exept.de>
parents: 592
diff changeset
  3252
                                        #displaySettings 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3253
                                        #miscSettings 
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3254
                      )
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3255
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3256
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3257
    self setupToolsMenu.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3258
    self setupDemoMenu.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3259
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3260
    ActiveHelp notNil ifTrue:[
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3261
        l := #(
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3262
                'what''s new'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3263
                'index'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3264
                '-'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3265
                'ST/X online documentation'
497
b2fb9ca947d4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 496
diff changeset
  3266
                'class documentation'
538
43effd124313 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
  3267
                '-'
727
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3268
                'print documentation ...'
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3269
                '-'
538
43effd124313 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
  3270
                'active help \c'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3271
              ).
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3272
        s := #(
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3273
                #startWhatsNewDocumentation
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3274
                #startDocumentationIndex
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3275
                nil
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3276
                #startDocumentationTool
496
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
  3277
                #startClassDocumentation
538
43effd124313 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
  3278
                nil
727
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3279
                #showBookPrintDocument
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3280
                nil
538
43effd124313 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
  3281
                #toggleActiveHelp:
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3282
              )
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3283
    ] ifFalse:[
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3284
        l := #(
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3285
                'what''s new'
483
548634e3d258 index in help menu
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
  3286
                'index'
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3287
                '-'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3288
                'ST/X online documentation'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3289
                'class documentation'
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3290
                '-'
727
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3291
                'print documentation ...'
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3292
              ).
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3293
        s := #(
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3294
                #startWhatsNewDocumentation
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3295
                #startDocumentationIndex
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3296
                nil
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3297
                #startDocumentationTool
496
e9f37c7c4109 classDoc item in helpmenu
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
  3298
                #startClassDocumentation
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3299
                nil
727
6d954f6e4ee2 print documentation
Claus Gittinger <cg@exept.de>
parents: 726
diff changeset
  3300
                #showBookPrintDocument
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3301
              )
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3302
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3303
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3304
    myMenu at:#help 
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3305
           putLabels:(resources array:l)
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3306
           selectors:s
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3307
           receiver:self.
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3308
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3309
    (ActiveHelp notNil
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3310
    and:[ActiveHelp isActive]) ifTrue:[
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3311
        (myMenu menuAt:#help) checkToggleAt:#toggleActiveHelp: put:true
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3312
    ].
377
a40d0dd88c1b added ...'s
Claus Gittinger <cg@exept.de>
parents: 368
diff changeset
  3313
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3314
    self disableDangerousMenuItemsInRemoteLauncher
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3315
776
f1a70d73582a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 774
diff changeset
  3316
    "Modified: 18.10.1996 / 14:13:30 / cg"
93
claus
parents: 92
diff changeset
  3317
!
claus
parents: 92
diff changeset
  3318
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3319
setupOtherViewsIn:aTopView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3320
    "a hook - allows redefinition in your personal subclass.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3321
     For example, add a clock:"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3322
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3323
"
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3324
    |sz clock space halfSpace|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3325
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3326
    sz := buttonPanel innerHeight - (buttonPanel level abs*2).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3327
    space := View viewSpacing.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3328
    halfSpace := space // 2.
93
claus
parents: 92
diff changeset
  3329
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3330
    buttonPanel rightInset:sz+(space  * 2).
93
claus
parents: 92
diff changeset
  3331
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3332
    clock := ClockView in:buttonPanel topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3333
    clock borderWidth:1.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3334
    clock showSeconds:false.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3335
    clock extent:(sz @ sz).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3336
    clock origin:(1.0 @ (buttonPanel origin y + halfSpace)).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3337
    clock leftInset:sz negated - 2 - halfSpace.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3338
    clock rightInset:halfSpace.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3339
    clock level:1.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3340
"
93
claus
parents: 92
diff changeset
  3341
!
claus
parents: 92
diff changeset
  3342
claus
parents: 92
diff changeset
  3343
setupToolsMenu
claus
parents: 92
diff changeset
  3344
    "setup the tools pulldown menu"
claus
parents: 92
diff changeset
  3345
claus
parents: 92
diff changeset
  3346
    |m|
claus
parents: 92
diff changeset
  3347
claus
parents: 92
diff changeset
  3348
    myMenu at:#tools 
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3349
           putLabels:(resources array:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3350
                                        'workspace'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3351
                                        '-'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3352
                                        'monitors'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3353
                                        '-'
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3354
                                        'views'
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3355
                                        '-'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3356
                                        'hardcopy'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3357
                                        '-'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3358
                                        'misc'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3359
                                        ))
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3360
           selectors:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3361
                                        #startWorkspace 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3362
                                        nil
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3363
                                        #monitors
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3364
                                        nil
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3365
                                        #views
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3366
                                        nil
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3367
                                        #hardcopy 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3368
                                        nil
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3369
                                        #misc 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3370
                      )
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3371
           receiver:self.
93
claus
parents: 92
diff changeset
  3372
claus
parents: 92
diff changeset
  3373
claus
parents: 92
diff changeset
  3374
    m := myMenu menuAt:#tools.
claus
parents: 92
diff changeset
  3375
    m subMenuAt:#monitors 
claus
parents: 92
diff changeset
  3376
      put:(PopUpMenu
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3377
                labels:(resources array:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3378
                                           'process'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3379
                                           'memory'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3380
                                           'event view'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3381
                                           'event trace'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3382
                                           '-'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3383
                                           'memory usage'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3384
                                         ))
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3385
                selectors:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3386
                                        #startProcessMonitor
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3387
                                        #startMemoryMonitor 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3388
                                        #startEventMonitor 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3389
                                        #startStopEventTrace
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3390
                                        nil
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3391
                                        #startMemoryUsageView 
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3392
                           )
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3393
                receiver:self).
93
claus
parents: 92
diff changeset
  3394
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3395
    m subMenuAt:#views 
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3396
      put:(PopUpMenu
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3397
                labels:(resources array:#(
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3398
                                           'find & raise ...'
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3399
                                           '-'
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3400
                                           'view tree (all views)'
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3401
                                           'view tree'
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  3402
                                           'select & inspect view'
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  3403
                                           'select & destroy view'
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  3404
                                           'find & destroy ...'
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3405
                                         ))
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3406
                selectors:#(
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3407
                                        #findAndRaiseWindow 
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3408
                                        nil
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3409
                                        #startFullWindowTreeView 
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3410
                                        #startWindowTreeView 
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3411
                                        #viewInspect 
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3412
                                        #viewDestroy 
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  3413
                                        #findAndDestroyWindow 
765
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3414
                           )
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3415
                receiver:self).
9dafe5b26f77 moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents: 760
diff changeset
  3416
120
claus
parents: 119
diff changeset
  3417
    m subMenuAt:#misc 
claus
parents: 119
diff changeset
  3418
      put:(PopUpMenu
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3419
                labels:(resources array:#(
537
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3420
                                           'garbage collect'
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3421
                                           'garbage collect & compress'
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3422
                                           '-'
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3423
                                           'remove all break/trace points'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3424
                                         ))
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3425
                selectors:#(
537
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3426
                                        #garbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3427
                                        #compressingGarbageCollect
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3428
                                        nil
9af64613ec8c added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents: 536
diff changeset
  3429
                                        #removeAllBreakAndTracePoints                                        
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3430
                           )
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3431
                receiver:self).
120
claus
parents: 119
diff changeset
  3432
93
claus
parents: 92
diff changeset
  3433
    m subMenuAt:#hardcopy 
claus
parents: 92
diff changeset
  3434
      put:(PopUpMenu
434
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3435
                labels:(resources array:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3436
                                           'screen'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3437
                                           'area'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3438
                                           'view'
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3439
                                         ))
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3440
                selectors:#(
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3441
                                        #fullScreenHardcopy
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3442
                                        #screenHardcopy
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3443
                                        #viewHardcopy
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3444
                           )
17d3ef307bc5 added per-view eventTracing
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
  3445
                receiver:self).
93
claus
parents: 92
diff changeset
  3446
815
573e5b6001f6 added find&destroy
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
  3447
    "Modified: 28.10.1996 / 14:40:03 / cg"
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3448
!
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3449
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3450
setupTranscriptIn:aView 
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3451
    |v launcher|
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3452
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3453
    "/ check if this is an additional launcher on a remote display.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3454
    "/ if so, do not close the real launcher.
107
claus
parents: 106
diff changeset
  3455
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3456
    (Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3457
        isMainLauncher ifTrue:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3458
            launcher := Transcript topView application
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3459
        ] ifFalse:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3460
            launcher := self class current.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3461
        ].
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3462
        launcher notNil ifTrue:[
662
b5efd05fa256 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 661
diff changeset
  3463
            launcher window graphicsDevice == device ifTrue:[
661
8171aa84ae17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 660
diff changeset
  3464
                OpenLaunchers remove:launcher ifAbsent:nil.
8171aa84ae17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 660
diff changeset
  3465
                launcher window destroy.
8171aa84ae17 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 660
diff changeset
  3466
            ]
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3467
        ]
110
claus
parents: 109
diff changeset
  3468
    ].
claus
parents: 109
diff changeset
  3469
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3470
    v := HVScrollableView 
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3471
                for:TextCollector
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3472
                miniScrollerH:true 
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3473
                miniScrollerV:false 
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3474
                in:aView.
93
claus
parents: 92
diff changeset
  3475
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3476
    v origin:(0.0 @ (buttonPanel corner y + View viewSpacing)) 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3477
      corner:(1.0 @ 1.0).
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3478
    transcript := v scrolledView.
660
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3479
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3480
    isMainLauncher ifTrue:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3481
        transcript beTranscript.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3482
    ] ifFalse:[
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3483
        transcript showCR:'**************** Notice ***********************'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3484
        transcript showCR:'**       this is NOT the Transcript          **'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3485
        transcript showCR:'** The real Transcript is on the main screen **'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3486
        transcript showCR:'**                                           **'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3487
        transcript showCR:'** Menus affecting common state are disabled **'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3488
        transcript showCR:'***********************************************'.
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3489
    ]
cb5a90c05873 in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents: 659
diff changeset
  3490
662
b5efd05fa256 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 661
diff changeset
  3491
    "Modified: 5.7.1996 / 17:55:15 / cg"
94
claus
parents: 93
diff changeset
  3492
!
claus
parents: 93
diff changeset
  3493
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3494
setupViewsIn:topView 
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3495
    "create the pulldown menu, buttonPanel and transcript view"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3496
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3497
    |tFont|
131
claus
parents: 128
diff changeset
  3498
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3499
    topView model:self.
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3500
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3501
    myMenu := PullDownMenu in:topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3502
    myMenu origin:0.0 @ 0.0 corner:(1.0 @ myMenu height).
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3503
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3504
    self setupMenu.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3505
    self setupButtonPanelIn:topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3506
    self setupTranscriptIn:topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3507
    self setupInfoViewIn:topView.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3508
    self setupOtherViewsIn:topView.
118
claus
parents: 117
diff changeset
  3509
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3510
    tFont := transcript font.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3511
    topView extent:(((tFont widthOf:'3')*60) max:myMenu preferredExtent x)
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3512
                    @ 
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3513
                    ((tFont height) * 20).
118
claus
parents: 117
diff changeset
  3514
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3515
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3516
     Launcher open
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3517
    "
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3518
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3519
    "Modified: 9.9.1996 / 22:44:31 / stefan"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3520
! !
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3521
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3522
!Launcher methodsFor:'private'!
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3523
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3524
fontBoxForEncoding:encodingMatch
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  3525
    |box y b
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3526
     labelDef buttonDef listDef menuDef textDef
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3527
     models labels allOfThem filter|
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3528
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3529
    encodingMatch notNil ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3530
        filter := [:f | f encoding notNil 
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3531
                        and:[encodingMatch match:f encoding]].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3532
    ].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3533
        
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3534
    models := OrderedCollection new.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3535
    labels := OrderedCollection new.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3536
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3537
    models add:(allOfThem := nil asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3538
    models add:(labelDef := Label defaultFont asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3539
    models add:(buttonDef := Button defaultFont asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3540
    models add:(listDef := SelectionInListView defaultFont asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3541
    models add:(menuDef := MenuView defaultFont asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3542
    models add:(textDef := TextView defaultFont asValue).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3543
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3544
    box := Dialog new.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3545
    box label:(resources string:'Font settings').
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3546
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3547
    models
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3548
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3549
    do:[:model :title |
427
3ad00ff692b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 421
diff changeset
  3550
        |y2 lbl f i|
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3551
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3552
        f := model value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3553
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3554
        (box addTextLabel:title) adjust:#left.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3555
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3556
        y := box yPosition.
631
76013574eb04 Settings.Fonts menu: Add ... to Change button labels.
Stefan Vogel <sv@exept.de>
parents: 630
diff changeset
  3557
        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3558
        b relativeExtent:nil; extent:(b preferredExtent).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3559
        y2 := box yPosition.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3560
        box yPosition:y.
427
3ad00ff692b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 421
diff changeset
  3561
        i := box leftIndent.
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3562
        box leftIndent:(b widthIncludingBorder + View viewSpacing).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3563
        (lbl := box addTextLabel:'')
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3564
            adjust:#left;
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3565
            font:(model value);
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3566
            labelChannel:(BlockValue 
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3567
                            with:[:v | |f|
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3568
                                f := v value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3569
                                f isNil ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3570
                                    ''
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3571
                                ] ifFalse:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3572
                                    f userFriendlyName
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3573
                                ]
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3574
                            ]
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3575
                            argument:model).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3576
        labels add:lbl.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3577
427
3ad00ff692b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 421
diff changeset
  3578
        box leftIndent:i.
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3579
        box yPosition:(box yPosition max:y2).
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3580
        box addVerticalSpace.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3581
        box addHorizontalLine.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3582
        box addVerticalSpace.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3583
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3584
        b action:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3585
            |f|
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3586
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3587
            f := FontPanel 
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3588
                fontFromUserInitial:(model value) 
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3589
                              title:(resources string:'font for %1' with:title)
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3590
                             filter:filter.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3591
            f notNil ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3592
                model == allOfThem ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3593
                    models do:[:m | m value:f].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3594
                    labels do:[:l | l font:f]
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3595
                ] ifFalse:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3596
                    model value:f.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3597
                    lbl font:f.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3598
                ].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3599
            ]
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3600
        ].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3601
        model == allOfThem ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3602
            box addVerticalSpace
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3603
        ]
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3604
    ].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3605
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3606
    box addAbortButton; addOkButton.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3607
    (box addButton:(Button label:(resources string:'defaults')) before:nil)
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3608
        action:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3609
            "/ fetch defaults
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3610
            View updateAllStyleCaches.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3611
            labelDef value: Label defaultFont.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3612
            buttonDef value: Button defaultFont.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3613
            listDef value: SelectionInListView defaultFont.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3614
            menuDef value: MenuView defaultFont.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3615
            textDef value: TextView defaultFont.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3616
        ].
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3617
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3618
    box open.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3619
    box accepted ifTrue:[
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3620
        Label defaultFont:labelDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3621
        Button defaultFont:buttonDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3622
        Toggle defaultFont:buttonDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3623
        SelectionInListView defaultFont:listDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3624
        MenuView defaultFont:menuDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3625
        PullDownMenu defaultFont:menuDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3626
        TextView defaultFont:textDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3627
        EditTextView defaultFont:textDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3628
        CodeView defaultFont:textDef value.
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3629
    ].
592
5a03a69bc5a3 oops - menuAction is now called with arg if there is one
Claus Gittinger <cg@exept.de>
parents: 591
diff changeset
  3630
    box destroy.
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3631
    ^ box accepted
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3632
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3633
    "Created: 27.2.1996 / 01:44:16 / cg"
592
5a03a69bc5a3 oops - menuAction is now called with arg if there is one
Claus Gittinger <cg@exept.de>
parents: 591
diff changeset
  3634
    "Modified: 30.5.1996 / 09:18:57 / cg"
631
76013574eb04 Settings.Fonts menu: Add ... to Change button labels.
Stefan Vogel <sv@exept.de>
parents: 630
diff changeset
  3635
    "Modified: 17.6.1996 / 13:38:48 / stefan"
406
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3636
!
d0caca90e889 better font settings
Claus Gittinger <cg@exept.de>
parents: 404
diff changeset
  3637
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3638
pickAView
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3639
    |v|
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3640
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3641
    (Delay forSeconds:1) wait.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3642
    v := Screen current viewFromUser.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3643
    v isNil ifTrue:[
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3644
	self warn:'sorry, this is not a smalltalk view'.
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3645
	^ nil
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3646
    ].
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3647
    ^ v
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3648
!
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3649
106
claus
parents: 105
diff changeset
  3650
reopenLauncher
claus
parents: 105
diff changeset
  3651
    "for now (since style & language settings currently do
claus
parents: 105
diff changeset
  3652
     not affect living views ...)"
claus
parents: 105
diff changeset
  3653
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
  3654
    |contents fontPref enc newLauncher|
397
799d6b395675 check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents: 382
diff changeset
  3655
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3656
"/ moved the stuff below to the language-setting
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3657
"/ dialog (ask before changing the language, to have
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3658
"/ proper texts in the dialogs).
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3659
"/
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3660
"/    fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3661
"/    enc := MenuView defaultFont encoding.
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3662
"/    (fontPref match:enc) ifFalse:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3663
"/        (self confirm:'menu font is not ' , fontPref , '-encoded.\\Change it ?' withCRs)
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3664
"/        ifTrue:[
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3665
"/            self fontBoxForEncoding:fontPref
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3666
"/        ]
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3667
"/    ].
106
claus
parents: 105
diff changeset
  3668
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3669
    contents := transcript endEntry; list.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3670
    newLauncher := self class open.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3671
    newLauncher window waitUntilVisible.
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3672
    newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3673
777
f00fc8691802 check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents: 776
diff changeset
  3674
    "Modified: 18.10.1996 / 15:04:06 / cg"
106
claus
parents: 105
diff changeset
  3675
!
claus
parents: 105
diff changeset
  3676
100
claus
parents: 99
diff changeset
  3677
saveAllViews
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3678
    "tell each topview that we are going to terminate and give it chance
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3679
     to save its contents."
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3680
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3681
    ObjectMemory changed:#aboutToExit
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3682
!
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3683
93
claus
parents: 92
diff changeset
  3684
saveScreenImage:anImage defaultName:defaultName
claus
parents: 92
diff changeset
  3685
    "save an image into a file 
claus
parents: 92
diff changeset
  3686
     - ask user for filename using a fileSelectionBox."
claus
parents: 92
diff changeset
  3687
claus
parents: 92
diff changeset
  3688
    |fileName|
claus
parents: 92
diff changeset
  3689
claus
parents: 92
diff changeset
  3690
    fileName := Dialog
382
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3691
                    requestFileName:(resources string:'save image in:')
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3692
                    default:(defaultName , '.tiff')
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3693
                    ok:(resources string:'save')
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3694
                    abort:(resources string:'cancel')
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3695
                    pattern:'*.tiff'.
93
claus
parents: 92
diff changeset
  3696
claus
parents: 92
diff changeset
  3697
    fileName notNil ifTrue:[
382
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3698
        anImage saveOn:fileName
93
claus
parents: 92
diff changeset
  3699
    ].
382
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3700
894cc35095fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 379
diff changeset
  3701
    "Modified: 21.2.1996 / 13:09:28 / cg"
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3702
! !
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3703
715
476b5b4d0dd0 Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents: 711
diff changeset
  3704
!Launcher methodsFor:'queries'!
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3705
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3706
processName
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3707
    "for monitors only - my name"
142
claus
parents: 140
diff changeset
  3708
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3709
    ^ 'ST/X Launcher'
659
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3710
!
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3711
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3712
transcript
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3713
    "my transcript"
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3714
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3715
    ^ transcript
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3716
324b82dad016 access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents: 658
diff changeset
  3717
    "Created: 5.7.1996 / 13:04:36 / cg"
90
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3718
! !
60d0bb749a1c *** empty log message ***
claus
parents: 89
diff changeset
  3719
760
39e3f920b233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 743
diff changeset
  3720
!Launcher class methodsFor:'documentation'!
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3721
219
379dfea373d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 205
diff changeset
  3722
version
827
c74f542ba50b use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 821
diff changeset
  3723
    ^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.208 1996-11-01 16:26:35 cg Exp $'
86
11b4ce85104e Initial revision
claus
parents:
diff changeset
  3724
! !