NewLauncher.st
author tz
Sat, 07 Feb 1998 14:12:53 +0100
changeset 1467 59bf087a0423
parent 1466 9f80ba7388b2
child 1469 415d35e62db6
permissions -rw-r--r--
missing call added + using own extent calc routine for opening
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     1
"
1430
c3a8341ecd43 copyright changed
tz
parents: 1429
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     3
              All Rights Reserved
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     4
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     5
 This software is furnished under a license and may be used
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     7
 inclusion of the above copyright notice. This software may not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     9
 other person. No title to or ownership of the software is
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    10
 hereby transferred.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    11
"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    12
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    13
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    14
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    15
ToolApplicationModel subclass:#NewLauncher
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
    16
	instanceVariableNames:'transcript isMainLauncher settingsSelection settingsAspects
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
    17
		helpIsOn'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    18
	classVariableNames:'OpenLaunchers NotifyingEmergencyHandler'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    19
	poolDictionaries:''
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    20
	category:'Interface-Advanced-Tools'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    21
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    22
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    23
!NewLauncher class methodsFor:'documentation'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    24
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    25
copyright
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    26
"
1430
c3a8341ecd43 copyright changed
tz
parents: 1429
diff changeset
    27
 COPYRIGHT (c) 1997 by eXept Software AG
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    28
              All Rights Reserved
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    29
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    30
 This software is furnished under a license and may be used
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    32
 inclusion of the above copyright notice. This software may not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    34
 other person. No title to or ownership of the software is
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    35
 hereby transferred.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    36
"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    37
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    38
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    39
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    40
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    41
documentation
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    42
"
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    43
    The future launcher.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    44
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    45
    [start with:]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    46
        NewLauncher open
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    47
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    48
    [see also:]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    49
        Launcher
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    50
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    51
    [author:]
1453
6abe92727df3 info bars redesigned
tz
parents: 1449
diff changeset
    52
        Thomas Zwick, eXept Software AG
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    53
"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    54
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    55
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    56
!NewLauncher class methodsFor:'accessing'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    57
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    58
current
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    59
    "return the launcher running on the current screen.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    60
     (for access via addMenu/ removeMenu)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    61
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    62
    OpenLaunchers notNil ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    63
        OpenLaunchers do:[:aLauncher |
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    64
            aLauncher window graphicsDevice == Screen current ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    65
                ^ aLauncher
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    66
            ]
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    67
        ].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    68
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    69
    ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    70
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    71
    "Modified: / 29.1.1998 / 22:08:12 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    72
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    73
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    74
label
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    75
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    76
    ^'Launcher'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    77
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    78
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    79
!
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    80
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    81
openLaunchers
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    82
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    83
    ^OpenLaunchers ? (OpenLaunchers := OrderedCollection new)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    84
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    85
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    86
!NewLauncher class methodsFor:'defaults'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    87
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    88
notifyingEmergencyHandler
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    89
    "return a block (used as an emergency handler
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    90
     for exceptions), which does errorNotification before going
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    91
     into the debugger."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    92
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    93
    "Remember the handlerBlock, to be able to determine if the current
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    94
     handler is the notifying one."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    95
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    96
    ^ NotifyingEmergencyHandler ? (NotifyingEmergencyHandler := Exception notifyingEmergencyHandler)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    97
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    98
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    99
!NewLauncher class methodsFor:'interface specs'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   100
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   101
windowSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   102
    "this window spec was automatically generated by the ST/X UIPainter"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   103
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   104
    "do not manually edit this - the painter/builder may not be able to
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   105
     handle the specification if its corrupted."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   106
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   107
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   108
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   109
     NewLauncher new openInterface:#windowSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   110
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   111
    "NewLauncher open"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   112
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   113
    <resource: #canvas>
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   114
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   115
    ^
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   116
     
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   117
       #(#FullSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   118
          #'window:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   119
           #(#WindowSpec
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
   120
              #'name:' 'Launcher'
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
   121
              #'layout:' #(#LayoutFrame 300 0 227 0 590 0 428 0)
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
   122
              #'label:' 'Launcher'
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
   123
              #'min:' #(#Point 374 240)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   124
              #'max:' #(#Point 1152 900)
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
   125
              #'bounds:' #(#Rectangle 300 227 591 429)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   126
              #'menu:' #menu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   127
              #'usePreferredExtent:' false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   128
          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   129
          #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   130
           #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   131
              #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   132
               #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   133
                 #(#MenuPanelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   134
                    #'name:' 'menuToolbarView'
1420
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
   135
                    #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 38 0)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   136
                    #'menu:' #menuToolbar
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   137
                    #'style:' #(#FontDescription #helvetica #medium #roman 10)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   138
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   139
                 #(#ArbitraryComponentSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   140
                    #'name:' 'transcriptView'
1453
6abe92727df3 info bars redesigned
tz
parents: 1449
diff changeset
   141
                    #'layout:' #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   142
                    #'hasHorizontalScrollBar:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   143
                    #'hasVerticalScrollBar:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   144
                    #'miniScrollerHorizontal:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   145
                    #'component:' #TextCollector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   146
                    #'hasBorder:' false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   147
                )
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
   148
                 #(#UISubSpecification
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
   149
                    #'name:' 'infoBarSubSpec'
1453
6abe92727df3 info bars redesigned
tz
parents: 1449
diff changeset
   150
                    #'layout:' #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
   151
                    #'majorKey:' #ToolApplicationModel
1443
70b765e30ce2 info bar subspec changed
tz
parents: 1442
diff changeset
   152
                    #'minorKey:' #windowSpecForInfoBarWithClock
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   153
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   154
              )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   155
          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   156
      )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   157
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   158
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   159
windowSpecForApplicationSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   160
    "this window spec was automatically generated by the ST/X UIPainter"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   161
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   162
    "do not manually edit this - the painter/builder may not be able to
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   163
     handle the specification if its corrupted."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   164
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   165
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   166
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForApplicationSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   167
     NewLauncher new openInterface:#windowSpecForApplicationSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   168
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   169
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   170
    <resource: #canvas>
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   171
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   172
    ^
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   173
     
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   174
       #(#FullSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   175
          #'window:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   176
           #(#WindowSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   177
              #'name:' 'Application Builder'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   178
              #'layout:' #(#LayoutFrame 86 0 180 0 506 0 782 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   179
              #'label:' 'Application Builder'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   180
              #'min:' #(#Point 420 220)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   181
              #'max:' #(#Point 1152 900)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   182
              #'bounds:' #(#Rectangle 86 180 507 783)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   183
              #'usePreferredExtent:' false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   184
          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   185
          #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   186
           #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   187
              #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   188
               #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   189
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   190
                    #'name:' 'applicationNameLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   191
                    #'layout:' #(#LayoutFrame 4 0 4 0 130 0 26 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   192
                    #'label:' 'Application Name:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   193
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   194
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   195
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   196
                    #'name:' 'applicationNameInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   197
                    #'layout:' #(#LayoutFrame 140 0 4 0 -4 1 26 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   198
                    #'model:' #valueOfApplicationName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   199
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   200
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   201
                    #'name:' 'startupClassLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   202
                    #'layout:' #(#LayoutFrame 4 0 28 0 130 0 50 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   203
                    #'label:' 'Startup Class:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   204
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   205
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   206
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   207
                    #'name:' 'startupClassInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   208
                    #'layout:' #(#LayoutFrame 140 0 28 0 -4 1.0 50 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   209
                    #'model:' #valueOfStartupClass
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   210
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   211
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   212
                    #'name:' 'startupSelectorLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   213
                    #'layout:' #(#LayoutFrame 4 0 52 0 130 0 74 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   214
                    #'label:' 'Startup Selector:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   215
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   216
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   217
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   218
                    #'name:' 'startupSelectorInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   219
                    #'layout:' #(#LayoutFrame 140 0 52 0 -4 1.0 74 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   220
                    #'model:' #valueOfStartupSelector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   221
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   222
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   223
                    #'name:' 'targetDirectoryLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   224
                    #'layout:' #(#LayoutFrame 4 0 130 0 130 0 152 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   225
                    #'label:' 'Target Directory:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   226
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   227
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   228
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   229
                    #'name:' 'targetDirectoryInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   230
                    #'layout:' #(#LayoutFrame 140 0 130 0 -4 1.0 152 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   231
                    #'model:' #valueOfTargetDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   232
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   233
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   234
                    #'name:' 'buildDateLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   235
                    #'layout:' #(#LayoutFrame 4 0 76 0 130 0 98 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   236
                    #'label:' 'Build Date:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   237
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   238
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   239
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   240
                    #'name:' 'buildDateInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   241
                    #'layout:' #(#LayoutFrame 140 0 76 0 -4 1.0 98 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   242
                    #'model:' #valueOfBuildDate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   243
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   244
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   245
                    #'name:' 'configurationLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   246
                    #'layout:' #(#LayoutFrame 4 0 100 0 130 0 122 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   247
                    #'label:' 'Configuration:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   248
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   249
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   250
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   251
                    #'name:' 'configurationInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   252
                    #'layout:' #(#LayoutFrame 140 0 100 0 -4 1.0 122 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   253
                    #'model:' #valueOfConfiguration
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   254
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   255
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   256
                    #'name:' 'startupModulLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   257
                    #'layout:' #(#LayoutFrame 4 0 178 0 130 0 200 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   258
                    #'label:' 'Startup Modul:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   259
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   260
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   261
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   262
                    #'name:' 'startupModulInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   263
                    #'layout:' #(#LayoutFrame 140 0 178 0 -4 1.0 200 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   264
                    #'model:' #valueOfStartupModule
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   265
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   266
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   267
                    #'name:' 'topDirectoryInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   268
                    #'layout:' #(#LayoutFrame 140 0 154 0 -4 1.0 176 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   269
                    #'model:' #valueOfTopDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   270
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   271
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   272
                    #'name:' 'topDirectoryLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   273
                    #'layout:' #(#LayoutFrame 4 0 154 0 130 0 176 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   274
                    #'label:' 'Top Directory:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   275
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   276
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   277
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   278
                    #'name:' 'librariesLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   279
                    #'layout:' #(#LayoutFrame 3 0 208 0 129 0 230 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   280
                    #'label:' 'System Libraries:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   281
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   282
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   283
                 #(#ViewSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   284
                    #'name:' 'view2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   285
                    #'layout:' #(#LayoutFrame 0 0.0 -44 1 0 1.0 0 1.0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   286
                    #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   287
                     #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   288
                        #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   289
                         #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   290
                           #(#ActionButtonSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   291
                              #'name:' 'buildButton'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   292
                              #'layout:' #(#LayoutFrame 10 0.5 10 0 -10 1 -10 1)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   293
                              #'label:' 'Build'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   294
                              #'model:' #buildApplication
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   295
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   296
                           #(#ActionButtonSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   297
                              #'name:' 'closeButton'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   298
                              #'layout:' #(#LayoutFrame 10 0.0 10 0 -10 0.5 -10 1)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   299
                              #'label:' 'Close'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   300
                              #'model:' #accept
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   301
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   302
                        )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   303
                    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   304
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   305
                 #(#DividerSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   306
                    #'name:' 'divider1'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   307
                    #'layout:' #(#LayoutFrame 0 0 202 0 0 1 205 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   308
                    #'orientation:' #horizontal
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   309
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   310
                 #(#DividerSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   311
                    #'name:' 'divider3'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   312
                    #'layout:' #(#LayoutFrame 0 0 124 0 0 1 127 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   313
                    #'orientation:' #horizontal
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   314
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   315
                 #(#FramedBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   316
                    #'name:' 'framedBox1'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   317
                    #'layout:' #(#LayoutFrame 0 0 281 0 0 0.5 -44 1)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   318
                    #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   319
                     #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   320
                        #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   321
                         #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   322
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   323
                              #'name:' 'librunCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   324
                              #'layout:' #(#LayoutFrame 10 0 22 0 10 0.5 44 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   325
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   326
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   327
                              #'label:' 'librun'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   328
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   329
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   330
                              #'name:' 'libbasicCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   331
                              #'layout:' #(#LayoutFrame 10 0 48 0 10 0.5 70 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   332
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   333
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   334
                              #'label:' 'libbasic'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   335
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   336
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   337
                              #'name:' 'libbasic2CheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   338
                              #'layout:' #(#LayoutFrame 10 0 74 0 10 0.5 96 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   339
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   340
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   341
                              #'label:' 'libbasic2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   342
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   343
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   344
                              #'name:' 'libbasic3CheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   345
                              #'layout:' #(#LayoutFrame 10 0 100 0 10 1 122 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   346
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   347
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   348
                              #'label:' 'libbasic3'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   349
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   350
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   351
                              #'name:' 'libviewCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   352
                              #'layout:' #(#LayoutFrame 10 0 126 0 10 1 148 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   353
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   354
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   355
                              #'label:' 'libview'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   356
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   357
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   358
                              #'name:' 'libview2CheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   359
                              #'layout:' #(#LayoutFrame 10 0 152 0 10 1 174 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   360
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   361
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   362
                              #'label:' 'libview2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   363
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   364
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   365
                              #'name:' 'ObjectFileLoaderCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   366
                              #'layout:' #(#LayoutFrame 10 0 178 0 10 1 202 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   367
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   368
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   369
                              #'label:' 'ObjectFileLoader'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   370
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   371
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   372
                              #'name:' 'GLXWorkstationCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   373
                              #'layout:' #(#LayoutFrame 10 0 232 0 10 1 254 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   374
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   375
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   376
                              #'label:' 'GLXWorkstation'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   377
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   378
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   379
                              #'name:' 'XWorkstationCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   380
                              #'layout:' #(#LayoutFrame 10 0 206 0 10 1 228 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   381
                              #'initiallyDisabled:' true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   382
                              #'model:' #valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   383
                              #'label:' 'XWorkstation'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   384
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   385
                        )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   386
                    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   387
                    #'label:' 'Basics'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   388
                    #'labelPosition:' #topLeft
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   389
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   390
                 #(#FramedBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   391
                    #'name:' 'framedBox2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   392
                    #'layout:' #(#LayoutFrame 0 0.5 281 0 0 1 392 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   393
                    #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   394
                     #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   395
                        #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   396
                         #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   397
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   398
                              #'name:' 'libwidgCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   399
                              #'layout:' #(#LayoutFrame 10 0 22 0 10 1 44 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   400
                              #'model:' #valueOfLibwidg
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   401
                              #'label:' 'libwidg'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   402
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   403
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   404
                              #'name:' 'libwidg2CheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   405
                              #'layout:' #(#LayoutFrame 10 0 48 0 10 1 70 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   406
                              #'model:' #valueOfLibwidg2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   407
                              #'label:' 'libwidg2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   408
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   409
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   410
                              #'name:' 'libuiCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   411
                              #'layout:' #(#LayoutFrame 10 0 74 0 10 1 96 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   412
                              #'model:' #valueOfLibui
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   413
                              #'label:' 'libui'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   414
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   415
                        )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   416
                    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   417
                    #'label:' 'UI'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   418
                    #'labelPosition:' #topLeft
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   419
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   420
                 #(#FramedBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   421
                    #'name:' 'framedBox3'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   422
                    #'layout:' #(#LayoutFrame 0 0.5 392 0 0 1 -44 1)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   423
                    #'component:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   424
                     #(#SpecCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   425
                        #'collection:' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   426
                         #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   427
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   428
                              #'name:' 'libtoolCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   429
                              #'layout:' #(#LayoutFrame 10 0 22 0 10 1 44 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   430
                              #'model:' #valueOfLibtool
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   431
                              #'label:' 'libtool'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   432
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   433
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   434
                              #'name:' 'libtool2CheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   435
                              #'layout:' #(#LayoutFrame 10 0 48 0 10 1 70 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   436
                              #'model:' #valueOfLibtool2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   437
                              #'label:' 'libtool2'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   438
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   439
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   440
                              #'name:' 'libcompCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   441
                              #'layout:' #(#LayoutFrame 10 0 74 0 10 1 96 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   442
                              #'model:' #valueOfLibcomp
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   443
                              #'label:' 'libcomp'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   444
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   445
                           #(#CheckBoxSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   446
                              #'name:' 'libhtmlCheckBox'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   447
                              #'layout:' #(#LayoutFrame 10 0 100 0 10 1 122 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   448
                              #'model:' #valueOfLibhtml
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   449
                              #'label:' 'libhtml'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   450
                          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   451
                        )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   452
                    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   453
                    #'label:' 'Optional'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   454
                    #'labelPosition:' #topLeft
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   455
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   456
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   457
                    #'name:' 'userLibrariesLabel'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   458
                    #'layout:' #(#LayoutFrame 3 0 232 0 129 0 254 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   459
                    #'label:' 'User Libraries:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   460
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   461
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   462
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   463
                    #'name:' 'userLibrariesInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   464
                    #'layout:' #(#LayoutFrame 139 0 233 0 -5 1.0 255 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   465
                    #'model:' #valueOfUserLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   466
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   467
                 #(#LabelSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   468
                    #'name:' 'label1'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   469
                    #'layout:' #(#LayoutFrame 3 0 256 0 129 0 278 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   470
                    #'label:' 'ST/X Libraries:'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   471
                    #'adjust:' #right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   472
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   473
                 #(#InputFieldSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   474
                    #'name:' 'systemLibrariesInputField'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   475
                    #'layout:' #(#LayoutFrame 139 0 208 0 -5 1.0 230 0)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   476
                    #'model:' #valueOfSystemLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   477
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   478
              )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   479
          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   480
      )
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   481
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   482
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   483
windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   484
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   485
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   486
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   487
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   488
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   489
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   490
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   491
     NewLauncher new openInterface:#windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   492
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   493
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   494
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   495
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   496
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   497
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   498
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   499
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   500
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   501
              #'name:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   502
              #'layout:' #(#LayoutFrame 238 0 252 0 675 0 678 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   503
              #'label:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   504
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   505
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   506
              #'bounds:' #(#Rectangle 238 252 676 679)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   507
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   508
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   509
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   510
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   511
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   512
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   513
                 #(#NoteBookViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   514
                    #'name:' 'noteBookView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   515
                    #'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   516
                    #'model:' #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   517
                    #'menu:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   518
                     #('Views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   519
                        'Fonts' 'Language'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   520
                        'Keyboard' 'Misc'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   521
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   522
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   523
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   524
                    #'canvas:' #settingsCanvas
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   525
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   526
                 #(#HorizontalPanelViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   527
                    #'name:' 'horizontalPanelView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   528
                    #'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   529
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   530
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   531
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   532
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   533
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   534
                              #'name:' 'helpButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   535
                              #'label:' 'Help'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   536
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   537
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   538
                              #'actionValue:' #help
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   539
                              #'extent:' #(#Point 213 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   540
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   541
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   542
                              #'name:' 'closeButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   543
                              #'label:' 'Close'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   544
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   545
                              #'model:' #accept
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   546
                              #'extent:' #(#Point 214 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   547
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   548
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   549
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   550
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   551
                    #'horizontalLayout:' #fitSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   552
                    #'verticalLayout:' #center
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   553
                    #'horizontalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   554
                    #'verticalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   555
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   556
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   557
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   558
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   559
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   560
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   561
windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   562
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   563
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   564
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   565
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   566
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   567
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   568
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   569
     NewLauncher new openInterface:#windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   570
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   571
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   572
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   573
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   574
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   575
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   576
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   577
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   578
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   579
              #'name:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   580
              #'layout:' #(#LayoutFrame 96 0 317 0 533 0 743 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   581
              #'label:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   582
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   583
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   584
              #'bounds:' #(#Rectangle 96 317 534 744)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   585
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   586
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   587
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   588
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   589
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   590
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   591
                 #(#NoteBookViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   592
                    #'name:' 'noteBookView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   593
                    #'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   594
                    #'model:' #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   595
                    #'menu:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   596
                     #('Sources'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   597
                        'Messages' 'Memory'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   598
                        'Screen' 'Printer'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   599
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   600
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   601
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   602
                    #'canvas:' #settingsCanvas
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   603
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   604
                 #(#HorizontalPanelViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   605
                    #'name:' 'horizontalPanelView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   606
                    #'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   607
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   608
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   609
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   610
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   611
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   612
                              #'name:' 'helpButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   613
                              #'label:' 'Help'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   614
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   615
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   616
                              #'actionValue:' #help
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   617
                              #'extent:' #(#Point 213 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   618
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   619
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   620
                              #'name:' 'closeButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   621
                              #'label:' 'Close'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   622
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   623
                              #'model:' #accept
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   624
                              #'extent:' #(#Point 214 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   625
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   626
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   627
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   628
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   629
                    #'horizontalLayout:' #fitSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   630
                    #'verticalLayout:' #center
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   631
                    #'horizontalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   632
                    #'verticalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   633
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   634
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   635
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   636
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   637
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   638
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   639
windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   640
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   641
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   642
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   643
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   644
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   645
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   646
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   647
     NewLauncher new openInterface:#windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   648
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   649
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   650
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   651
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   652
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   653
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   654
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   655
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   656
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   657
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   658
              #'layout:' #(#LayoutFrame 234 0 432 0 671 0 811 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   659
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   660
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   661
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   662
              #'bounds:' #(#Rectangle 234 432 672 812)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   663
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   664
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   665
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   666
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   667
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   668
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   669
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   670
                    #'name:' 'preViewFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   671
                    #'layout:' #(#LayoutFrame 0 0.0 -80 1 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   672
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   673
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   674
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   675
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   676
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   677
                              #'name:' 'previewFontLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   678
                              #'layout:' #(#LayoutFrame 16 0.0 18 0.0 16 1.0 13 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   679
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   680
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   681
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   682
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   683
                    #'label:' 'Font Preview'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   684
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   685
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   686
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   687
                    #'name:' 'fontDescriptionFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   688
                    #'layout:' #(#LayoutFrame 0 0.5 95 0.0 0 1 -80 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   689
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   690
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   691
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   692
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   693
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   694
                              #'name:' 'fontFamilyLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   695
                              #'layout:' #(#LayoutFrame 15 0.0 22 0 15 1.0 44 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   696
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   697
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   698
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   699
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   700
                              #'name:' 'fontFaceLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   701
                              #'layout:' #(#LayoutFrame 15 0.0 49 0 15 1.0 71 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   702
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   703
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   704
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   705
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   706
                              #'name:' 'fontStyleLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   707
                              #'layout:' #(#LayoutFrame 15 0.0 77 0 15 1.0 99 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   708
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   709
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   710
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   711
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   712
                              #'name:' 'fontSizeLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   713
                              #'layout:' #(#LayoutFrame 15 0.0 105 0 15 1.0 127 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   714
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   715
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   716
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   717
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   718
                              #'name:' 'fontEncodingLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   719
                              #'layout:' #(#LayoutFrame 15 0.0 133 0 15 1.0 155 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   720
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   721
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   722
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   723
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   724
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   725
                    #'label:' 'Font Description'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   726
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   727
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   728
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   729
                    #'name:' 'changeAllButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   730
                    #'layout:' #(#LayoutFrame 5 0.5 36 0 -5 1 60 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   731
                    #'label:' 'Change for all View Classes...'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   732
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   733
                    #'model:' #'changeFontFor:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   734
                    #'actionValue:' 'All'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   735
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   736
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   737
                    #'name:' 'defaultButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   738
                    #'layout:' #(#LayoutFrame 5 0.5 64 0 -5 1 88 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   739
                    #'label:' 'Set Default Fonts'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   740
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   741
                    #'model:' #'changeFontFor:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   742
                    #'actionValue:' 'Default'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   743
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   744
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   745
                    #'name:' 'changeFontButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   746
                    #'layout:' #(#LayoutFrame 5 0.5 8 0 -5 1.0 32 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   747
                    #'label:' 'Change Font...'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   748
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   749
                    #'model:' #changeFont
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   750
                    #'actionValue:' ''
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   751
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   752
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   753
                    #'name:' 'viewClassesFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   754
                    #'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 0.5 -80 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   755
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   756
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   757
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   758
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   759
                           #(#SelectionInTreeViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   760
                              #'name:' 'viewClassesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   761
                              #'layout:' #(#LayoutFrame 15 0.0 17 0.0 15 1.0 17 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   762
                              #'model:' #selectionOfViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   763
                              #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   764
                              #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   765
                              #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   766
                              #'miniScrollerVertical:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   767
                              #'valueChangeSelector:' #updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   768
                              #'hierarchicalList:' #listOfViewClasses
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   769
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   770
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   771
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   772
                    #'label:' 'View Classes'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   773
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   774
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   775
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   776
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   777
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   778
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   779
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   780
windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   781
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   782
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   783
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   784
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   785
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   786
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   787
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   788
     NewLauncher new openInterface:#windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   789
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   790
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   791
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   792
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   793
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   794
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   795
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   796
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   797
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   798
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   799
              #'layout:' #(#LayoutFrame 71 0 497 0 508 0 894 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   800
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   801
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   802
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   803
              #'bounds:' #(#Rectangle 71 497 509 895)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   804
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   805
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   806
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   807
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   808
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   809
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   810
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   811
                    #'name:' 'rawKeysListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   812
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 0.5 0 0.6)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   813
                    #'model:' #listOfRawKeys
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   814
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   815
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   816
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   817
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   818
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   819
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   820
                    #'name:' 'functionsListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   821
                    #'layout:' #(#LayoutFrame 0 0.5 0 0.0 0 1.0 0 0.6)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   822
                    #'model:' #listOfFunctions
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   823
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   824
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   825
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   826
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   827
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   828
                 #(#TextEditorSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   829
                    #'name:' 'keyMacroTextEditor_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   830
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.6 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   831
                    #'model:' #keyMacroText
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   832
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   833
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   834
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   835
                    #'isReadOnly:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   836
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   837
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   838
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   839
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   840
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   841
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   842
windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   843
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   844
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   845
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   846
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   847
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   848
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   849
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   850
     NewLauncher new openInterface:#windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   851
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   852
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   853
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   854
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   855
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   856
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   857
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   858
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   859
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   860
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   861
              #'layout:' #(#LayoutFrame 255 0 459 0 692 0 838 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   862
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   863
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   864
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   865
              #'bounds:' #(#Rectangle 255 459 693 839)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   866
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   867
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   868
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   869
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   870
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   871
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   872
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   873
                    #'name:' 'languagesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   874
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   875
                    #'model:' #selectionOfLanguage
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   876
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   877
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   878
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   879
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   880
                    #'sequenceList:' #listOfLanguages
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   881
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   882
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   883
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   884
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   885
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   886
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   887
windowSpecOfMemorySettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   888
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   889
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   890
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   891
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   892
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   893
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   894
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   895
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   896
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   897
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   898
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   899
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   900
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   901
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   902
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   903
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   904
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   905
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   906
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   907
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   908
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   909
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   910
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   911
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   912
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   913
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   914
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   915
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   916
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   917
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   918
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   919
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   920
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   921
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   922
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   923
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   924
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   925
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   926
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   927
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   928
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   929
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   930
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   931
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   932
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   933
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   934
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   935
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   936
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   937
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   938
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   939
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   940
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   941
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   942
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   943
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   944
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   945
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   946
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   947
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   948
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   949
      )
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   950
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   951
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   952
windowSpecOfMessagesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   953
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   954
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   955
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   956
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   957
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   958
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   959
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   960
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   961
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   962
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   963
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   964
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   965
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   966
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   967
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   968
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   969
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   970
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   971
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   972
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   973
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   974
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   975
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   976
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   977
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   978
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   979
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   980
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   981
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   982
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   983
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   984
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   985
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   986
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   987
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   988
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   989
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   990
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   991
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   992
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   993
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   994
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   995
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   996
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   997
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   998
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   999
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1000
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1001
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1002
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1003
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1004
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1005
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1006
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1007
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1008
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1009
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1010
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1011
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1012
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1013
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1014
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1015
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1016
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1017
windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1018
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1019
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1020
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1021
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1022
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1023
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1024
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1025
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1026
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1027
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1028
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1029
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1030
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1031
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1032
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1033
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1034
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1035
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1036
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1037
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1038
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1039
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1040
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1041
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1042
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1043
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1044
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1045
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1046
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1047
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1048
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1049
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1050
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1051
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1052
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1053
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1054
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1055
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1056
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1057
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1058
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1059
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1060
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1061
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1062
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1063
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1064
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1065
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1066
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1067
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1068
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1069
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1070
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1071
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1072
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1073
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1074
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1075
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1076
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1077
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1078
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1079
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1080
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1081
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1082
windowSpecOfPrinterSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1083
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1084
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1085
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1086
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1087
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1088
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1089
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1090
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1091
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1092
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1093
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1094
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1095
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1096
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1097
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1098
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1099
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1100
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1101
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1102
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1103
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1104
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1105
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1106
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1107
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1108
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1109
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1110
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1111
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1112
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1113
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1114
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1115
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1116
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1117
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1118
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1119
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1120
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1121
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1122
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1123
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1124
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1125
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1126
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1127
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1128
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1129
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1130
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1131
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1132
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1133
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1134
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1135
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1136
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1137
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1138
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1139
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1140
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1141
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1142
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1143
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1144
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1145
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1146
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1147
windowSpecOfScreenSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1148
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1149
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1150
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1151
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1152
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1153
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1154
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1155
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1156
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1157
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1158
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1159
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1160
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1161
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1162
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1163
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1164
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1165
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1166
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1167
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1168
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1169
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1170
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1171
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1172
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1173
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1174
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1175
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1176
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1177
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1178
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1179
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1180
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1181
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1182
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1183
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1184
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1185
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1186
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1187
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1188
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1189
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1190
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1191
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1192
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1193
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1194
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1195
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1196
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1197
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1198
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1199
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1200
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1201
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1202
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1203
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1204
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1205
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1206
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1207
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1208
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1209
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1210
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1211
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1212
windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1213
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1214
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1215
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1216
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1217
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1218
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1219
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1220
     NewLauncher new openInterface:#windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1221
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1222
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1223
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1224
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1225
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1226
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1227
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1228
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1229
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1230
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1231
              #'layout:' #(#LayoutFrame 42 0 472 0 479 0 851 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1232
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1233
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1234
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1235
              #'bounds:' #(#Rectangle 42 472 480 852)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1236
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1237
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1238
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1239
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1240
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1241
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1242
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1243
                    #'name:' 'framedBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1244
                    #'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 159 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1245
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1246
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1247
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1248
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1249
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1250
                              #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1251
                              #'layout:' #(#LayoutFrame 17 0.0 21 0 7 1.0 43 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1252
                              #'model:' #rememberChangedMethods
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1253
                              #'label:' 'Remember changed methods (for previous method in browser)'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1254
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1255
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1256
                              #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1257
                              #'layout:' #(#LayoutFrame 17 0.0 49 0 7 1.0 71 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1258
                              #'model:' #logCompilesInChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1259
                              #'label:' 'Log compiles in changes file'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1260
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1261
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1262
                              #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1263
                              #'layout:' #(#LayoutFrame 17 0.0 77 0 7 1.0 99 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1264
                              #'model:' #logDoItsInChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1265
                              #'label:' 'Log doIts in changes file'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1266
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1267
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1268
                              #'name:' 'label1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1269
                              #'layout:' #(#AlignmentOrigin 230 0 123 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1270
                              #'label:' 'Name of changes file:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1271
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1272
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1273
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1274
                              #'name:' 'inputField1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1275
                              #'layout:' #(#LayoutFrame 233 0.0 109 0 13 1.0 131 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1276
                              #'model:' #nameOfChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1277
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1278
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1279
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1280
                    #'label:' 'Changes Log'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1281
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1282
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1283
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1284
                    #'name:' 'framedBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1285
                    #'layout:' #(#LayoutFrame 0 0.0 159 0 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1286
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1287
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1288
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1289
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1290
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1291
                              #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1292
                              #'layout:' #(#LayoutFrame 17 0.0 26 0 7 1.0 48 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1293
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1294
                              #'model:' #sourceCodeFromSourceCodeManagement
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1295
                              #'label:' 'Source code from Source Code Management'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1296
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1297
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1298
                              #'name:' 'label3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1299
                              #'layout:' #(#AlignmentOrigin 230 0 95 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1300
                              #'label:' 'Directory of source code cache:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1301
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1302
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1303
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1304
                              #'name:' 'label2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1305
                              #'layout:' #(#AlignmentOrigin 230 0 69 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1306
                              #'label:' 'Directory of repository:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1307
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1308
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1309
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1310
                              #'name:' 'inputField2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1311
                              #'layout:' #(#LayoutFrame 233 0 55 0 13 1.0 77 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1312
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1313
                              #'model:' #directoryOfRepository
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1314
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1315
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1316
                              #'name:' 'inputField3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1317
                              #'layout:' #(#LayoutFrame 233 0 81 0 13 1.0 103 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1318
                              #'model:' #directoryOfSourceCodeCache
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1319
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1320
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1321
                              #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1322
                              #'layout:' #(#LayoutFrame 17 0.0 120 0 7 1.0 142 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1323
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1324
                              #'model:' #useLocalSourceCode
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1325
                              #'label:' 'If present, use local source code (suppress checking out)'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1326
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1327
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1328
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1329
                    #'label:' 'Source Code Management'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1330
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1331
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1332
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1333
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1334
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1335
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1336
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1337
windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1338
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1339
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1340
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1341
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1342
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1343
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1344
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1345
     NewLauncher new openInterface:#windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1346
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1347
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1348
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1349
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1350
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1351
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1352
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1353
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1354
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1355
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1356
              #'layout:' #(#LayoutFrame 68 0 262 0 505 0 641 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1357
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1358
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1359
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1360
              #'bounds:' #(#Rectangle 68 262 506 642)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1361
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1362
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1363
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1364
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1365
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1366
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1367
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1368
                    #'name:' 'styleFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1369
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -130 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1370
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1371
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1372
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1373
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1374
                           #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1375
                              #'name:' 'viewStylesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1376
                              #'layout:' #(#LayoutFrame 17 0.0 19 0.0 17 1.0 19 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1377
                              #'model:' #listOfViewStyles
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1378
                              #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1379
                              #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1380
                              #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1381
                              #'useIndex:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1382
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1383
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1384
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1385
                    #'label:' 'Style:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1386
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1387
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1388
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1389
                    #'name:' 'descriptionFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1390
                    #'layout:' #(#LayoutFrame 0 0.0 -130 1 -120 1.0 0 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1391
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1392
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1393
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1394
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1395
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1396
                              #'name:' 'infoLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1397
                              #'layout:' #(#LayoutFrame 16 0.0 17 0.0 16 1.0 17 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1398
                              #'labelChannel:' #infoLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1399
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1400
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1401
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1402
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1403
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1404
                    #'label:' 'Description'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1405
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1406
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1407
                 #(#ViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1408
                    #'name:' 'applyButtonView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1409
                    #'layout:' #(#LayoutFrame -120 1 -130 1 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1410
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1411
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1412
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1413
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1414
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1415
                              #'name:' 'applyButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1416
                              #'layout:' #(#LayoutFrame -113 1.0 -125 1 -6 1.0 -97 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1417
                              #'label:' 'Apply'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1418
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1419
                              #'actionValue:' 'apply'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1420
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1421
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1422
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1423
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1424
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1425
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1426
      )
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  1427
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  1428
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1429
!NewLauncher class methodsFor:'menu specs'!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1430
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1431
menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1432
    "this window spec was automatically generated by the ST/X MenuEditor"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1433
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1434
    "do not manually edit this - the builder may not be able to
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1435
     handle the specification if its corrupted."
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1436
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1437
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1438
     MenuEditor new openOnClass:NewLauncher andSelector:#menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1439
     (Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1440
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1442
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1443
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1444
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1445
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1446
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1447
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1448
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1449
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1450
                #'label:' 'about'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1451
                #'translateLabel:' true
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  1452
                #'labelImage:' #(#ResourceRetriever nil #menuIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1453
                #'submenuChannel:' #menuAbout
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1454
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1455
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1456
                #'label:' 'File'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1457
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1458
                #'value:' #file
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1459
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1460
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1461
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1462
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1463
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1464
                          #'label:' 'File Browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1465
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1466
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1467
                          #'argument:' 'FileBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1468
                          #'labelImage:' #(#ResourceRetriever nil #startFileBrowserIcon 'File Browser')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1469
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1470
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1471
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1472
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1473
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1474
                          #'label:' 'Modules...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1475
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1476
                          #'value:' #objectModuleDialog
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1477
                          #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1478
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1479
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1480
                          #'label:' 'Build Library...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1481
                          #'translateLabel:' true
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  1482
                          #'isVisible:' #applicationBuilderPresent
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1483
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1484
                          #'enabled:' #valueOfEnablingIfAvailable
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1485
                          #'argument:' 'LibraryBuilder'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1486
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1487
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1488
                          #'label:' 'Build Application...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1489
                          #'translateLabel:' true
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  1490
                          #'isVisible:' #applicationBuilderPresent
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1491
                          #'value:' #openApplicationBuilder
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1492
                          #'enabled:' #valueOfEnablingIfAvailable
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1493
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1494
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1495
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1496
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1497
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1498
                          #'label:' 'Save Image'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1499
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1500
                          #'value:' #saveImage
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1501
                          #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1502
                          #'labelImage:' #(#ResourceRetriever nil #saveIcon 'Save Image')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1503
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1504
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1505
                          #'label:' 'Save Image As...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1506
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1507
                          #'value:' #saveImageAs
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1508
                          #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1509
                          #'labelImage:' #(#ResourceRetriever nil #saveIcon 'Save Image As...')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1510
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1511
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1512
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1513
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1514
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1515
                          #'label:' 'Exit...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1516
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1517
                          #'value:' #exit
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1518
                          #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1519
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1520
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1521
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1522
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1523
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1524
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1525
                #'label:' 'Classes'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1526
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1527
                #'value:' #classes
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1528
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1529
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1530
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1531
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1532
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1533
                          #'label:' 'System Browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1534
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1535
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1536
                          #'argument:' 'SystemBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1537
                          #'labelImage:' #(#ResourceRetriever nil #startSystemBrowserIcon 'System Browser')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1538
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1539
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1540
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1541
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1542
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1543
                          #'label:' 'Class Browser...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1544
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1545
                          #'value:' #startClassBrowser
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1546
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1547
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1548
                          #'label:' 'Full Class Browser...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1549
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1550
                          #'value:' #startFullClassBrowser
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1551
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1552
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1553
                          #'label:' 'Class Hierarchy Browser...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1554
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1555
                          #'value:' #startClassHierarchyBrowser
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1556
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1557
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1558
                          #'label:' 'Class Tree'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1559
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1560
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1561
                          #'argument:' 'ClassTreeGraphView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1562
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1563
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1564
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1565
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1566
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1567
                          #'label:' 'Implementors...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1568
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1569
                          #'value:' #browseImplementors
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1570
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1571
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1572
                          #'label:' 'Senders...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1573
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1574
                          #'value:' #browseSenders
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1575
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1576
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1577
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1578
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1579
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1580
                          #'label:' 'Special'
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  1581
                          #'translateLabel:' true
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1582
                          #'value:' #special
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1583
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1584
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1585
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1586
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1587
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1588
                                    #'label:' 'References To Undeclared'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1589
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1590
                                    #'value:' #browseUndeclared
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1591
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1592
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1593
                                    #'label:' 'Resource Methods...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1594
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1595
                                    #'value:' #browseResources
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1596
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1597
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1598
                                    #'label:' 'Show Break/Trace Points'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1599
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1600
                                    #'value:' #browseAllBreakAndTracePoints
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1601
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1602
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1603
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1604
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1605
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1606
                                    #'label:' 'Remove All Break/Trace Points'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1607
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1608
                                    #'value:' #removeAllBreakAndTracePoints
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1609
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1610
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1611
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1612
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1613
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1614
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1615
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1616
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1617
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1618
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1619
                #'label:' 'Tools'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1620
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1621
                #'value:' #tools
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1622
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1623
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1624
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1625
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1626
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1627
                          #'label:' 'Workspace'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1628
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1629
                          #'argument:' 'Workspace'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1630
                          #'labelImage:' #(#ResourceRetriever nil #startWorkspaceIcon 'Workspace')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1631
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1632
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1633
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1634
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1635
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1636
                          #'label:' 'GUI Builder'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1637
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1638
                          #'argument:' 'UIPainter'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1639
                          #'labelImage:' #(#ResourceRetriever nil #startUIPainterIcon 'GUI Builder')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1640
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1641
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1642
                          #'label:' 'Menu Editor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1643
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1644
                          #'argument:' 'MenuEditor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1645
                          #'labelImage:' #(#ResourceRetriever nil #startMenuEditorIcon 'Menu Editor')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1646
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1647
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1648
                          #'label:' 'Image Editor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1649
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1650
                          #'argument:' 'ImageEditor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1651
                          #'labelImage:' #(#ResourceRetriever nil #startImageEditorIcon 'Image Editor')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1652
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1653
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1654
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1655
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1656
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1657
                          #'label:' 'Changes Browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1658
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1659
                          #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1660
                          #'argument:' 'ChangesBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1661
                          #'labelImage:' #(#ResourceRetriever nil #startChangesBrowserIcon 'Changes Browser')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1662
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1663
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1664
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1665
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1666
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1667
                          #'label:' 'Old Launcher'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1668
                          #'translateLabel:' true
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  1669
                          #'value:' #startOldLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1670
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1671
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1672
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1673
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1674
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1675
                          #'label:' 'Monitors'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1676
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1677
                          #'value:' #monitors
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1678
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1679
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1680
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1681
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1682
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1683
                                    #'label:' 'Processes'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1684
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1685
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1686
                                    #'argument:' 'ProcessMonitor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1687
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1688
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1689
                                    #'label:' 'Semaphores'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1690
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1691
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1692
                                    #'argument:' 'SemaphoreMonitor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1693
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1694
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1695
                                    #'label:' 'Memory'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1696
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1697
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1698
                                    #'argument:' 'MemoryMonitor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1699
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1700
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1701
                                    #'label:' 'Irq Latency'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1702
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1703
                                    #'value:' #startLatencyMonitor
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1704
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1705
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1706
                                    #'label:' 'Event View'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1707
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1708
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1709
                                    #'argument:' 'EventMonitor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1710
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1711
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1712
                                    #'label:' 'Event Trace'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1713
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1714
                                    #'value:' #startStopEventTrace
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1715
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1716
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1717
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1718
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1719
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1720
                                    #'label:' 'Memory Usage'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1721
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1722
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1723
                                    #'argument:' 'MemoryUsageView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1724
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1725
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1726
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1727
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1728
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1729
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1730
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1731
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1732
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1733
                          #'label:' 'Views'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1734
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1735
                          #'value:' #views
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1736
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1737
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1738
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1739
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1740
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1741
                                    #'label:' 'Iconify All'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1742
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1743
                                    #'value:' #iconifyAllWindows
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1744
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1745
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1746
                                    #'label:' 'De-iconify All'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1747
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1748
                                    #'value:' #deIconifyAllWindows
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1749
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1750
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1751
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1752
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1753
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1754
                                    #'label:' 'Find And Raise...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1755
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1756
                                    #'value:' #findAndRaiseWindow
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1757
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1758
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1759
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1760
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1761
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1762
                                    #'label:' 'View Tree (all views)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1763
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1764
                                    #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1765
                                    #'argument:' 'WindowTreeView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1766
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1767
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1768
                                    #'label:' 'View Tree'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1769
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1770
                                    #'value:' #startWindowTreeView
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1771
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1772
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1773
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1774
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1775
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1776
                                    #'label:' 'Select And Inspect View'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1777
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1778
                                    #'value:' #viewInspect
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1779
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1780
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1781
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1782
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1783
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1784
                                    #'label:' 'Select And Destroy View'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1785
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1786
                                    #'value:' #viewDestroy
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1787
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1788
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1789
                                    #'label:' 'Find And Destroy...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1790
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1791
                                    #'value:' #findAndDestroyWindow
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1792
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1793
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1794
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1795
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1796
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1797
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1798
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1799
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1800
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1801
                          #'label:' 'Hardcopy'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1802
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1803
                          #'value:' #hardcopy
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1804
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1805
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1806
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1807
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1808
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1809
                                    #'label:' 'Screen'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1810
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1811
                                    #'value:' #fullScreenHardcopy
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1812
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1813
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1814
                                    #'label:' 'Area'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1815
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1816
                                    #'value:' #screenHardcopy
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1817
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1818
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1819
                                    #'label:' 'View'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1820
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1821
                                    #'value:' #viewHardcopy
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1822
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1823
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1824
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1825
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1826
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1827
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1828
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1829
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1830
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1831
                          #'label:' 'Misc'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1832
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1833
                          #'value:' #misc
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1834
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1835
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1836
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1837
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1838
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1839
                                    #'label:' 'Garbage Collect'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1840
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1841
                                    #'value:' #garbageCollect
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1842
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1843
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1844
                                    #'label:' 'Garbage Collect And Compress'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1845
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1846
                                    #'value:' #compressingGarbageCollect
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1847
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1848
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1849
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1850
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1851
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1852
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1853
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1854
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1855
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1856
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1857
                #'label:' 'Projects'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1858
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1859
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1860
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1861
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1862
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1863
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1864
                          #'label:' 'New Project'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1865
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1866
                          #'value:' #newProject
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1867
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1868
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1869
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1870
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1871
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1872
                          #'label:' 'Select Project...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1873
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1874
                          #'value:' #selectProject
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1875
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1876
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1877
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1878
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1879
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1880
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1881
                #'label:' 'Settings'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1882
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1883
                #'submenuChannel:' #menuSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1884
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1885
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1886
                #'label:' 'Demos'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1887
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1888
                #'value:' #demos
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1889
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1890
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1891
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1892
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1893
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1894
                          #'label:' 'Goodies'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1895
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1896
                          #'value:' #goodies
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1897
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1898
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1899
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1900
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1901
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1902
                                    #'label:' 'Clock'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1903
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1904
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1905
                                    #'argument:' 'Clock'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1906
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1907
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1908
                                    #'label:' 'Digital Clock'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1909
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1910
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1911
                                    #'argument:' 'DigitalClockView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1912
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1913
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1914
                                    #'label:' 'Calendar'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1915
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1916
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1917
                                    #'argument:' 'Calendar'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1918
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1919
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1920
                                    #'label:' 'Calculator'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1921
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1922
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1923
                                    #'argument:' 'CalculatorView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1924
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1925
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1926
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1927
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1928
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1929
                                    #'label:' 'Mail Tool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1930
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1931
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1932
                                    #'argument:' 'MailView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1933
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1934
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1935
                                    #'label:' 'News Tool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1936
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1937
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1938
                                    #'argument:' 'NewsView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1939
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1940
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1941
                                    #'label:' 'FTP Tool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1942
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1943
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1944
                                    #'argument:' 'FTPTool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1945
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1946
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1947
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1948
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1949
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1950
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1951
                          #'label:' 'Games'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1952
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1953
                          #'value:' #games
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1954
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1955
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1956
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1957
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1958
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1959
                                    #'label:' 'Tetris'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1960
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1961
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1962
                                    #'argument:' 'Games::Tetris'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1963
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1964
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1965
                                    #'label:' 'Tic Tac Toe'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1966
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1967
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1968
                                    #'argument:' 'TicTacToeGame'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1969
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1970
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1971
                                    #'label:' 'Tic Tac Toe (2 players)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1972
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1973
                                    #'value:' #startTicTacToe2
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1974
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1975
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1976
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1977
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1978
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1979
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1980
                          #'label:' 'Geometric Designs'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1981
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1982
                          #'value:' #geometricDesigns
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1983
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1984
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1985
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1986
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1987
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1988
                                    #'label:' 'Pen Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1989
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1990
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1991
                                    #'argument:' 'PenDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1992
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1993
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1994
                                    #'label:' 'Commander Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1995
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1996
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1997
                                    #'argument:' 'CommanderDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1998
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1999
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2000
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2001
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2002
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2003
                                    #'label:' 'Fractal Plants Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2004
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2005
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2006
                                    #'argument:' 'FractalPlantsDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2007
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2008
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2009
                                    #'label:' 'Fractal Patterns Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2010
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2011
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2012
                                    #'argument:' 'FractalPatternsDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2013
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2014
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2015
                                    #'label:' 'More Fractal Patterns Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2016
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2017
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2018
                                    #'argument:' 'ArmchairUniverseDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2019
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2020
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2021
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2022
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2023
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2024
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2025
                          #'label:' 'Simple Animations'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2026
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2027
                          #'value:' #simpleAnimations
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2028
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2029
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2030
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2031
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2032
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2033
                                    #'label:' 'Walking Man'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2034
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2035
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2036
                                    #'argument:' 'Animation'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2037
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2038
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2039
                                    #'label:' 'Globe Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2040
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2041
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2042
                                    #'argument:' 'GlobeDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2043
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2044
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2045
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2046
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2047
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2048
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2049
                          #'label:' '3D Graphics'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2050
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2051
                          #'value:' #'3Dgraphics'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2052
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2053
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2054
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2055
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2056
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2057
                                    #'label:' 'Plane'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2058
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2059
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2060
                                    #'argument:' 'GLPlaneDemoView2'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2061
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2062
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2063
                                    #'label:' 'Tetra'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2064
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2065
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2066
                                    #'argument:' 'GLTetraDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2067
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2068
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2069
                                    #'label:' 'Cube (wireframe)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2070
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2071
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2072
                                    #'argument:' 'GLWireCubeDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2073
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2074
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2075
                                    #'label:' 'Cube (solid)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2076
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2077
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2078
                                    #'argument:' 'GLCubeDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2079
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2080
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2081
                                    #'label:' 'Sphere (wireframe)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2082
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2083
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2084
                                    #'argument:' 'GLWireSphereDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2085
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2086
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2087
                                    #'label:' 'Doughnut (wireframe)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2088
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2089
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2090
                                    #'argument:' 'GLDoughnutDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2091
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2092
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2093
                                    #'label:' 'Planet'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2094
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2095
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2096
                                    #'argument:' 'GLPlanetDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2097
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2098
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2099
                                    #'label:' 'Teapot'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2100
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2101
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2102
                                    #'argument:' 'GLTeapotDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2103
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2104
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2105
                                    #'label:' 'Logo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2106
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2107
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2108
                                    #'argument:' 'Logo3DView1'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2109
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2110
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2111
                                    #'label:' 'Rubics Cube'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2112
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2113
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2114
                                    #'argument:' 'RubicsCubeView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2115
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2116
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2117
                                    #'label:' 'X/Y Graph'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2118
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2119
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2120
                                    #'argument:' 'GLXYGraph'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2121
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2122
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2123
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2124
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2125
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2126
                                    #'label:' 'Cube (light)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2127
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2128
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2129
                                    #'argument:' 'GLCubeDemoView2'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2130
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2131
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2132
                                    #'label:' 'Cube (light && texture)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2133
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2134
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2135
                                    #'accessCharacterPosition:' 13
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2136
                                    #'argument:' 'GLBrickCubeDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2137
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2138
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2139
                                    #'label:' 'Sphere (light)'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2140
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2141
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2142
                                    #'argument:' 'GLSphereDemoView2'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2143
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2144
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2145
                                    #'label:' 'Colored Octahedron'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2146
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2147
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2148
                                    #'argument:' 'GLOctaHedronDemoView'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2149
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2150
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2151
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2152
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2153
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2154
                                    #'label:' 'VRML Browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2155
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2156
                                    #'enabled:' #valueOfEnablingIfAvailable
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2157
                                    #'argument:' 'VRMLTestCenter'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2158
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2159
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2160
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2161
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2162
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2163
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2164
                          #'label:' 'Graphic Editors'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2165
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2166
                          #'value:' #graphicEditors
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2167
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2168
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2169
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2170
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2171
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2172
                                    #'label:' 'Draw Tool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2173
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2174
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2175
                                    #'argument:' 'DrawTool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2176
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2177
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2178
                                    #'label:' 'Logic Tool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2179
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2180
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2181
                                    #'argument:' 'LogicTool'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2182
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2183
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2184
                                    #'label:' 'Paint Demo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2185
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2186
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2187
                                    #'argument:' 'ColorDrawDemo3'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2188
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2189
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2190
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2191
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2192
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2193
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2194
                          #'label:' 'GUI'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2195
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2196
                          #'value:' #graphicEditors
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2197
                          #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2198
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2199
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2200
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2201
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2202
                                    #'label:' 'Widget Gallery'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2203
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2204
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2205
                                    #'argument:' 'CodingExamples_GUI::GUIDemo'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2206
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2207
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2208
                                    #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2209
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2210
                                 #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2211
                                    #'label:' 'Calculator'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2212
                                    #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2213
                                    #'value:' #'openDemo:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2214
                                    #'argument:' 'CodingExamples_GUI::GUIDemoCalculator'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2215
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2216
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2217
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2218
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2219
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2220
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2221
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2222
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2223
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2224
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2225
                #'label:' 'Help'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2226
                #'translateLabel:' true
1447
39e6892899e6 help-menuitem on the right
Claus Gittinger <cg@exept.de>
parents: 1445
diff changeset
  2227
                #'startGroup:' #right
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2228
                #'value:' #help
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2229
                #'submenu:' 
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2230
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2231
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2232
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2233
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2234
                          #'label:' 'What''s New'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2235
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2236
                          #'value:' #startWhatsNewDocumentation
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2237
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2238
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2239
                          #'label:' 'Index'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2240
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2241
                          #'value:' #startDocumentationIndex
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2242
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2243
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2244
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2245
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2246
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2247
                          #'label:' 'ST/X Online Documentation'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2248
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2249
                          #'value:' #startDocumentationTool
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2250
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2251
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2252
                          #'label:' 'Class Documentation'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2253
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2254
                          #'value:' #startClassDocumentation
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2255
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2256
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2257
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2258
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2259
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2260
                          #'label:' 'Print Documentation...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2261
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2262
                          #'value:' #showBookPrintDocument
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2263
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2264
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2265
                          #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2266
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2267
                       #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2268
                          #'label:' 'Active Help'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2269
                          #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2270
                          #'value:' #'toggleActiveHelp:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2271
                          #'indication:' #activeHelp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2272
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2273
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2274
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2275
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2276
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2277
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2278
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2279
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2280
1466
9f80ba7388b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1465
diff changeset
  2281
    "Modified: / 6.2.1998 / 00:04:46 / cg"
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2282
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2283
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2284
menuAbout
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2285
    "this window spec was automatically generated by the ST/X MenuEditor"
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2286
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2287
    "do not manually edit this - the builder may not be able to
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2288
     handle the specification if its corrupted."
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2289
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2290
    "
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2291
     MenuEditor new openOnClass:NewLauncher andSelector:#menuAbout
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2292
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuAbout)) startUp
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2293
    "
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2294
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2295
    <resource: #menu>
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2296
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2297
    ^
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2298
     
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2299
       #(#Menu
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2300
          
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2301
           #(
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2302
             #(#MenuItem
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2303
                #'label:' 'About Smalltalk/X...'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2304
                #'translateLabel:' true
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2305
                #'value:' #openAbout
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2306
                #'activeHelpKey:' #aboutSTX
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2307
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2308
             #(#MenuItem
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2309
                #'label:' 'Licence Conditions'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2310
                #'translateLabel:' true
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2311
                #'value:' #openLicenceConditions
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2312
                #'activeHelpKey:' #licenceConditions
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2313
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2314
             #(#MenuItem
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2315
                #'label:' '-'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2316
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2317
             #(#MenuItem
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2318
                #'label:' 'About This Application...'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2319
                #'translateLabel:' true
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2320
                #'value:' #openAboutThisApplication
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2321
                #'activeHelpKey:' #aboutThisAppliaction
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2322
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2323
          ) nil
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2324
          nil
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2325
      )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2326
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2327
    "Modified: / 5.2.1998 / 21:41:22 / cg"
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2328
!
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2329
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2330
menuNewSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2331
    "this window spec was automatically generated by the ST/X MenuEditor"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2332
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2333
    "do not manually edit this - the builder may not be able to
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2334
     handle the specification if its corrupted."
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2335
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2336
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2337
     MenuEditor new openOnClass:NewLauncher andSelector:#menuNewSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2338
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuNewSettings)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2339
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2340
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2341
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2342
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2343
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2344
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2345
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2346
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2347
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2348
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2349
                #'label:' 'Style...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2350
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2351
                #'value:' #'openSettingsFor:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2352
                #'argument:' 'StyleSettings'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2353
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2354
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2355
                #'label:' 'System...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2356
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2357
                #'value:' #'openSettingsFor:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2358
                #'argument:' 'SystemSettings'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2359
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2360
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2361
                #'label:' 'Compilation...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2362
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2363
                #'value:' #'openSettingsFor:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2364
                #'argument:' 'CompilationSettings'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2365
                #'labelImage:' #(#ResourceRetriever nil #'```````````````')
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2366
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2367
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2368
                #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2369
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2370
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2371
                #'label:' 'Save Settings...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2372
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2373
                #'value:' #saveSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2374
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2375
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2376
                #'label:' 'Restore Settings...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2377
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2378
                #'value:' #restoreSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2379
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2380
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2381
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2382
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2383
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2384
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2385
    "Modified: / 29.1.1998 / 23:39:06 / cg"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2386
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2387
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2388
menuSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2389
    "this window spec was automatically generated by the ST/X MenuEditor"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2390
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2391
    "do not manually edit this - the builder may not be able to
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2392
     handle the specification if its corrupted."
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2393
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2394
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2395
     MenuEditor new openOnClass:NewLauncher andSelector:#menuSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2396
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuSettings)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2397
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2398
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2399
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2400
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2401
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2402
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2403
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2404
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2405
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2406
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2407
                #'label:' 'View Style...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2408
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2409
                #'value:' #viewStyleSetting
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2410
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2411
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2412
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2413
                #'label:' 'Fonts...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2414
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2415
                #'value:' #fontSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2416
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2417
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2418
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2419
                #'label:' 'Language...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2420
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2421
                #'value:' #languageSetting
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2422
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2423
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2424
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2425
                #'label:' 'Keyboard Mappings...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2426
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2427
                #'value:' #keyboardSetting
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2428
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2429
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2430
                #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2431
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2432
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2433
                #'label:' 'Messages...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2434
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2435
                #'value:' #messageSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2436
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2437
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2438
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2439
                #'label:' 'Compilation...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2440
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2441
                #'value:' #compilerSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2442
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2443
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2444
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2445
                #'label:' 'Object Memory...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2446
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2447
                #'value:' #memorySettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2448
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2449
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2450
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2451
                #'label:' 'Source And Debugger...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2452
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2453
                #'value:' #sourceAndDebuggerSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2454
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2455
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2456
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2457
                #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2458
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2459
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2460
                #'label:' 'Printer...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2461
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2462
                #'value:' #printerSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2463
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2464
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2465
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2466
                #'label:' 'Screen...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2467
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2468
                #'value:' #displaySettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2469
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2470
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2471
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2472
                #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2473
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2474
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2475
                #'label:' 'Misc...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2476
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2477
                #'value:' #miscSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2478
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2479
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2480
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2481
                #'label:' '-'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2482
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2483
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2484
                #'label:' 'Save Settings...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2485
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2486
                #'value:' #saveSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2487
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2488
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2489
                #'label:' 'Restore Settings...'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2490
                #'translateLabel:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2491
                #'value:' #restoreSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2492
                #'enabled:' #enableDangerousMenuItemsInRemoteLauncher
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2493
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2494
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2495
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2496
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2497
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2498
    "Modified: / 29.1.1998 / 23:41:51 / cg"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2499
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2500
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2501
menuToolbar
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2502
    "this window spec was automatically generated by the ST/X MenuEditor"
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2503
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2504
    "do not manually edit this - the builder may not be able to
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2505
     handle the specification if its corrupted."
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2506
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2507
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2508
     MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2509
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2510
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2511
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2512
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2513
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2514
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2515
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2516
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2517
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2518
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2519
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2520
                #'label:' 'open workspace'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2521
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2522
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2523
                #'argument:' 'Workspace'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2524
                #'labelImage:' #(#ResourceRetriever nil #startWorkspaceIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2525
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2526
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2527
                #'label:' 'open file browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2528
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2529
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2530
                #'argument:' 'FileBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2531
                #'labelImage:' #(#ResourceRetriever nil #startFileBrowserIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2532
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2533
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2534
                #'label:' 'save image'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2535
                #'isButton:' true
1454
969bdd045aad saveImg now with confirmation
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  2536
                #'value:' #saveImageAs
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2537
                #'labelImage:' #(#ResourceRetriever nil #saveImageIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2538
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2539
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2540
                #'label:' ''
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2541
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2542
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2543
                #'label:' 'open system browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2544
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2545
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2546
                #'activeHelpKey:' #'#startSystemBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2547
                #'argument:' 'SystemBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2548
                #'labelImage:' #(#ResourceRetriever nil #startSystemBrowserIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2549
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2550
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2551
                #'label:' 'open changes browser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2552
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2553
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2554
                #'argument:' 'ChangesBrowser'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2555
                #'labelImage:' #(#ResourceRetriever nil #startChangesBrowserIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2556
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2557
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2558
                #'label:' ''
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2559
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2560
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2561
                #'label:' 'open GUI Builder'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2562
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2563
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2564
                #'argument:' 'UIPainter'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2565
                #'labelImage:' #(#ResourceRetriever nil #startUIPainterIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2566
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2567
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2568
                #'label:' 'open menu editor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2569
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2570
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2571
                #'argument:' 'MenuEditor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2572
                #'labelImage:' #(#ResourceRetriever nil #startMenuEditorIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2573
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2574
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2575
                #'label:' 'open image editor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2576
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2577
                #'value:' #'openApplication:'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2578
                #'argument:' 'ImageEditor'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2579
                #'labelImage:' #(#ResourceRetriever nil #startImageEditorIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2580
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2581
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2582
                #'label:' ''
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2583
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2584
             #(#MenuItem
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2585
                #'label:' 'garbage collect'
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2586
                #'isButton:' true
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2587
                #'value:' #compressingGarbageCollect
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2588
                #'labelImage:' #(#ResourceRetriever nil #garbageCollectIcon)
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2589
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2590
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2591
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2592
      )
1454
969bdd045aad saveImg now with confirmation
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  2593
969bdd045aad saveImg now with confirmation
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  2594
    "Modified: / 5.2.1998 / 09:33:15 / cg"
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2595
! !
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2596
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2597
!NewLauncher class methodsFor:'resources'!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2598
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2599
garbageCollectIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2600
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2601
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2602
    ImageEditor openOnClass:self andSelector:#garbageCollectIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2603
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2604
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2605
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2606
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2607
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2608
        constantNamed:#'NewLauncher garbageCollectIcon'
1453
6abe92727df3 info bars redesigned
tz
parents: 1449
diff changeset
  2609
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'DQD@@@.;.1D[DQDQD@@QDP@@.;.;,[,@@ADP@ADQ@@.;@@.;.1@@@A@@DQD@B;@@@[.;DCH@D@@QDP@K,@@K.;,Q@2@P@ADQ@K.;@@DQDQDPL @@DQDKB;B0@QDQ@@@C@@@QD[B0B0,ADP@"H"@@@ADQ@@@@@@DQ@P@@@0@@DQ@@@@C 8@@ADQL3@@@Q@@@@;.;.@@DCL0H@@@@@@@@NC @@@PLC@ @@@@@@C.;.8@@A@0LB@@@@@@@@8N@@@@DC@0H@@@@@B (@@AD@@PLC@ @@@@****@LG@@A@0LB@@@@@JB CL3L0@DC@0H@@@B***(@0L@Q@SLCL @@@@(J@L3L3AD@L"H @@@@@QDQC@0QDQD@@@DP@@@ADQD@@@@QD@@@@@@@@ @B@ @B@@HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@H@@@H@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:49.9962); add:(Color grey:66.9978); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@G1@@@C>0@@A1=0@@XO^@@FG30@C0@^@AZ@? @)P?8@@@O>@@B#? @C<?8@@TO>@@_#? @B ?8@E@O>@G9S? @)>?8@?JO>@EO3? @APO @@@@@@]7]7\DUUUDAEUUQ@U7]5\EUUUTAUUUU@]U]W\@@a'); yourself); yourself]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2610
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2611
saveImageIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2612
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2613
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2614
    ImageEditor openOnClass:self andSelector:#saveImageIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2615
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2616
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2617
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2618
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2619
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2620
        constantNamed:#'NewLauncher saveImageIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2621
        ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UPSL3L0A@ET7L3L0?PAUML3L3OT@US\3L3C5@ET43L3L?PAUM3L3LO4@USSL3L3=@ET7L3L0?PAUML3L3O4@US\3L3C=@ET43L3L?PAUM@@@@O4@US?????=@ET?UUUU?PAUO7??6?4@US=T?=+=@ET?ZO?Z?PAUO4C?6/4@U]U**)WU@ET@@@@@@@AUUUUUUUUU%Y%UUUTE%%UUUUTU)UEUUUUEUUUUUUVYUUTEUTUUUUDUAUUUUUUQUPUUVUUUUUTU%P@a'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C??>@@@@@@@@@@@@;*9R<H*(W)BJ*E:@S.9R,B)HT)@*REJP:$9R<@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2622
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2623
startChangesBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2624
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2625
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2626
    ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2627
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2628
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2629
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2630
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2631
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2632
        constantNamed:#'NewLauncher startChangesBrowserIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2633
        ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@B****@@@@@@@@@ @@@B****H@@@@@@@@"@@@C????H @@@@@@@2H@@C????L"@@@@@@@3H@@AUUUUL2@@@@@@@SL@@AUUUUD3@@@_=UUQL@@@EUUUTS@@@A]7UUD@@@@U7]5Q@@@@E7]5T@@@@AUUUU@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH@@@@@@@@LB@L@@@@@@@@@@@@@@@@J@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@a'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@??8@@O?>@@O?? @C??8@C??>@@??? @???8@O??>@O??? C??? C???8@???8@O??>@C??>@@??? @O?? @C??8@@??8@@O?>@@@@@@@@@@@@@Z.$7LH+-YDBJ+TQ@#.=WHH*+UABJ*5PPZ*$7X@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2634
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2635
startFileBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2636
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2637
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2638
    ImageEditor openOnClass:self andSelector:#startFileBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2639
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2640
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2641
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2642
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2643
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2644
        constantNamed:#'NewLauncher startFileBrowserIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2645
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@@@@@@@L0F@@@@@@A @@@@@@@@3@XN;.;.8F@@@@@@@@CLA ;.@@@@@@@@@@@@@L0FC.8O[6=/[0@@@@@@3@X@; [6=/[6@@@@@@CLA DNC6<@@F<@@@@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??<@@_??@@G??0@A??<@@_??8@G??>@A??? @_??8@G??>@A??? @_??8@G??>@A??? @_??@@G??0@A??<@@_??@@G??0@@??<@@G??@@@@@@@G.P=0AADHP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2646
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2647
startImageEditorIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2648
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2649
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2650
    ImageEditor openOnClass:self andSelector:#startImageEditorIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2651
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2652
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2653
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2654
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2655
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2656
        constantNamed:#'NewLauncher startImageEditorIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2657
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"HDQEUVY @@@@@BH"H3L QDUUY&@@@@@@HA@#L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL3L3L "H&Y]7@@@@@@H"H"H"BH"Y%7\@@@@@@#L3L3HDQEUVY @@@@@BH"H"H QDUUY&@@@@@@H3L3L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL#L3L "H&Y]7@@@@@@H2L3L2BH"Y%7\@@@@@@"H"H"HBH"H"H @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@0@0@0L@L@@@@@@@@@@0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC???  ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@;[7/@D>%J@AJ)P @RK5.@D"%J@AH)R @:JW/@@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2658
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2659
startMenuEditorIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2660
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2661
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2662
    ImageEditor openOnClass:self andSelector:#startMenuEditorIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2663
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2664
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2665
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2666
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2667
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2668
        constantNamed:#'NewLauncher startMenuEditorIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2669
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@QH"H DQHQD"H @@@@@ATBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@IRHBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUQIU@RT%IRT%@@@@@@IRHBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@H"HBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@APT@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@T@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC???  ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@6=D$@O(YI@B*GRP@"9T$@H(WI@BJD2P@"=D<@@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2670
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2671
startSystemBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2672
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2673
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2674
    ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2675
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2676
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2677
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2678
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2679
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2680
        constantNamed:#'NewLauncher startSystemBrowserIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2681
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@ADQDQDQG0@@@@@@@@@@D"H"H"H.@@@@@@@@@@@RH"H"H"8@@@@@@@@@@O;.;.;.; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@SL3L3L>@@@@@@@@@@@O;.;.;.8@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@VY&Y&Y.@@@@@@@@@@@O;.;.;.8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@N@NC @@8@@@C @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@8@C @@@@8b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRTQDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2682
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2683
startUIPainterIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2684
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2685
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2686
    ImageEditor openOnClass:self andSelector:#startUIPainterIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2687
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2688
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2689
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2690
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2691
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2692
        constantNamed:#'NewLauncher startUIPainterIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2693
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@3H"H DQHQD"H @@@@@CLBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@IRLBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUSMU@RT%IRT%@@@@@@IRLBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@H"LBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@AP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@@@AP@E@@@@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''8???90O??>TC???  ???8HO??>A#??? X???8@O??>@C??? @???8@@@@@@@@@@@@>QN@@H$Q@@BADP@@.QD@@H$Q@@BIDP@@>_N@@@@a'); yourself); yourself]!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2694
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2695
startWorkspaceIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2696
    "Generated by the Image Editor"
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2697
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2698
    ImageEditor openOnClass:self andSelector:#startWorkspaceIcon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2699
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2700
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2701
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2702
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2703
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2704
        constantNamed:#'NewLauncher startWorkspaceIcon'
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2705
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@QDQDQDQDQDQDQ@0@@@AUPUUUUAUAQDQDB@@@@EUAUUUTE@@DQDPH@@@@P@E@@UPUPTQDQ@ @@@AAPTEAUAUAQDQDB@@@@D@AP@ETET@DQDPH@@@@QDQDQDQDQEADQ@ @@@ADQDQDQDQDTPQDB@@@@DQDQDQDQDQQDDPH@@@@QDQDQDQDQEDDQ@ @@@ADQDQDQDQDQEADB@@@@DQDQDQDQDQDTDPH@@@@QDQDQDQDQDQDQ@0@@@@@@@@@@@@@@@@@@@@@@L"H"H"H"H"H"H0L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@@@@@@@@@@@@ //R@HJJT BB"%P@$(/X@IJJU@BR"%H@[O)R@@@a'); yourself); yourself]! !
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2706
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2707
!NewLauncher methodsFor:'action - application building'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2708
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2709
buildApplication
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2710
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2711
    |dir compilerPath compilerFlags|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2712
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2713
    Transcript showCR: (Text string: 'Starting building of application...' color: Color blue); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2714
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2715
    (dir := self getApplicationDirectory) isNil ifTrue: [^self warn: 'Could not create application directory!!'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2716
    (compilerPath := ByteCodeCompiler ccPath, ' ') isNil ifTrue: [^self warn:'Define first a system compiler!!'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2717
    compilerFlags := self getCompilerFlags.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2718
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2719
    (self generateHFileWithSymbolsIn: dir) isNil ifTrue: [^self warn:'Could not generate h-file with symbols!!'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2720
    (self generateCFileWithModulesIn: dir) isNil ifTrue: [^self warn:'Select first some libraries!!'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2721
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2722
    (self compileModulListFileWith: compilerPath, compilerFlags inDirectory: dir)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2723
        "isNil ifTrue: [^self warn:'Could not compile modules file!!']".
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2724
    (self compileStartupFileWith: compilerPath, compilerFlags inDirectory: dir) 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2725
        "isNil ifTrue: [^self warn:'Could not compile startup file!!']".
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2726
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2727
    self defineSymbolicLinksToTheLibrariesIn: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2728
    self linkLibrariesToTheApplicationIn: dir. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2729
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2730
    Transcript showCR: (Text string: 'Application build.' color: Color blue); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2731
    Display beep.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2732
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2733
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2734
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2735
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2736
compileModulListFileWith: ccPathAndFlags inDirectory: dir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2737
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2738
    |command|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2739
    command := ccPathAndFlags , ' -c -fPIC -O6 -fomit-frame-pointer -m486 -DDEBUG -Di386 ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2740
        'modulList.c'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2741
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2742
    Transcript cr; showCR: (Text string: 'Starting compilation of modules init file...' color: Color yellow).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2743
    self executeCommand: command inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2744
    Transcript showCR: (Text string: 'Modules init file compiled.' color: Color yellow); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2745
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2746
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2747
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2748
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2749
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2750
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2751
compileStartupFileWith: ccPathAndFlags inDirectory: appDir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2752
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2753
    |startupFile command|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2754
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2755
    (startupFile := self valueOfTopDirectory value asFilename construct: self valueOfStartupModule value) exists ifFalse: [^nil].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2756
    startupFile copyTo: (startupFile := appDir asFilename construct: self valueOfStartupModule value asFilename baseName).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2757
    command := ccPathAndFlags , ' -o main.o -c -O -O6 -fomit-frame-pointer -m486 -DDEBUG -Di386 ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2758
        '-DSTARTUP_CLASS="\"', self valueOfStartupClass value, '\"" ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2759
        '-DSTARTUP_SELECTOR="\"', self valueOfStartupSelector value, '\"" ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2760
        '-DCONFIGURATION_STRING="\"', self valueOfConfiguration value, '\"" ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2761
        '-DBUILD_DATE="\"', self valueOfBuildDate value, '\"" ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2762
        startupFile name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2763
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2764
    Transcript cr; showCR: (Text string: 'Starting compilation of startup file...' color: Color yellow).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2765
    self executeCommand: command inDirectory: appDir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2766
    Transcript showCR: (Text string: 'Startup file compiled.' color: Color yellow); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2767
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2768
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2769
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2770
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2771
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2772
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2773
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2774
defineSymbolicLinksToTheLibrariesIn: dir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2775
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2776
    Transcript cr; showCR: (Text string: 'Starting defining of symbolic links to the libraries...' color: Color green).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2777
    self selectionOfLibraries value , (Array with: 'librun')do:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2778
    [:lib|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2779
        self executeCommand: 'ln -s ', ((self valueOfTopDirectory value asFilename construct: 'lib') construct: (lib, '.so ')) name , (lib, '.so') inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2780
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2781
    Transcript showCR: (Text string: 'Symbolic links to the libraries defined.' color: Color green); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2782
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2783
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2784
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2785
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2786
executeCommand: aCommand inDirectory: dir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2787
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2788
    |outStream|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2789
    Transcript showCR: 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2790
        (Text string: 'Execute: "' color: Color yellow), 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2791
        (Text string: aCommand color: Color white), 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2792
        (Text string: '" in directory: "' color: Color yellow), 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2793
        (Text string: dir color: Color white),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2794
        (Text string: '"' color: Color yellow).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2795
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2796
    outStream:= PipeStream readingFrom: aCommand errorDisposition:#inline inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2797
    [      
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2798
        outStream canReadWithoutBlocking
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2799
        ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2800
        [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2801
            outStream readWait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2802
            Transcript showCR: (Text string: (outStream upTo: Character cr) color: Color red).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2803
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2804
    ] doWhile:[outStream atEnd not].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2805
    outStream close
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2806
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2807
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2808
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2809
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2810
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2811
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2812
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2813
generateCFileWithModulesIn: dir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2814
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2815
    |selectionOfLibraries|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2816
    selectionOfLibraries := self selectionOfLibraries remove: #librun; yourself.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2817
    Transcript cr; showCR: (Text string: 'Starting generation of c-file with modules...' color: Color green).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2818
    self executeCommand: 'echo "#include <stcIntern.h>" > modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2819
    self executeCommand: 'echo "typedef void (*vf)();" >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2820
    selectionOfLibraries do:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2821
    [:lib|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2822
        self executeCommand: 'echo "extern void _', lib, '_Init();" >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2823
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2824
    self executeCommand: 'echo "static vf modules[] = {" >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2825
    selectionOfLibraries do:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2826
    [:lib|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2827
        self executeCommand: 'echo "_', lib, '_Init," >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2828
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2829
    self executeCommand: 'echo "(vf)0};" >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2830
    self executeCommand: 'echo "vf *__modules__ = modules;" >> modulList.c' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2831
    Transcript showCR: (Text string: 'C-file of modules generated.' color: Color green); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2832
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2833
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2834
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2835
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2836
generateHFileWithSymbolsIn: dir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2837
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2838
    |symbolsFile realInc|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2839
    ByteCodeCompiler stcCompilationIncludes asArrayOfSubstrings do:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2840
    [:inc|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2841
        realInc := inc readStream.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2842
        realInc upTo: $/. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2843
        realInc := '/', realInc upToEnd.      
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2844
        (symbolsFile := realInc asFilename construct: 'symbols.stc') exists
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2845
        ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2846
        [   
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2847
            "A guck o mol, i honds gfunda"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2848
            Transcript cr; showCR: (Text string: 'Starting generation of h-file with symbols...' color: Color green).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2849
            self executeCommand: 'echo "char *__symbols[] = {" > symbols.h' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2850
            self executeCommand: 'sed ''s/^/"/'' < ', symbolsFile name,' | sed ''s/$/",/'' | sed ''s/\\/\\\\/g'' >> symbols.h' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2851
            self executeCommand: 'echo "0 };" >> symbols.h' inDirectory: dir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2852
            Transcript showCR: (Text string: 'H-file of symbols generated.' color: Color green); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2853
            ^self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2854
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2855
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2856
    ^nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2857
                                       
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2858
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2859
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2860
getApplicationDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2861
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2862
    |appDir|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2863
    (appDir := self valueOfTargetDirectory value asFilename) exists ifFalse:[appDir makeDirectory].   
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2864
    (appDir isReadable and:[appDir isWritable])
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2865
    ifFalse:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2866
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2867
        ^nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2868
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2869
    ^appDir name
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2870
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2871
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2872
getCompilerFlags
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2873
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2874
    |compilerFlags|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2875
    compilerFlags := OperatingSystem getOSDefine ? ''.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2876
    ByteCodeCompiler stcCompilationDefines notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2877
        compilerFlags := compilerFlags , ' ' , ByteCodeCompiler stcCompilationDefines
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2878
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2879
    ByteCodeCompiler stcCompilationIncludes notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2880
        compilerFlags := compilerFlags , ' ' , ByteCodeCompiler stcCompilationIncludes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2881
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2882
    ByteCodeCompiler ccCompilationOptions notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2883
        compilerFlags := compilerFlags , ' ' , ByteCodeCompiler ccCompilationOptions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2884
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2885
    ^compilerFlags
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2886
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2887
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2888
linkLibrariesToTheApplicationIn: appDir
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2889
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2890
    |mainFile command libs|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2891
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2892
    libs := self selectionOfLibraries value collect: [:lib| lib, '.so '].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2893
    libs add: 'librun.so'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2894
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2895
    command := ByteCodeCompiler ccPath, 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2896
        ' -L/usr/X11/lib -Llib -Lbinary -L. -L/usr/local/lib -L/usr/lib -L/lib ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2897
        '-lm -ldl -lXext -lX11 ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2898
        ' -o ' , self valueOfApplicationName value,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2899
        ' modulList.o main.o ',
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2900
        ((libs, self valueOfSystemLibraries value asArrayOfSubstrings) asStringCollection asStringWith: $ ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2901
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2902
    Transcript cr; showCR: (Text string: 'Starting linking of libraries to the application...' color: Color yellow).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2903
    self executeCommand: command inDirectory: appDir.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2904
    Transcript showCR: (Text string: 'Libraries to the application linked.' color: Color yellow); cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2905
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2906
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2907
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2908
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2909
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2910
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2911
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2912
selectionOfLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2913
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2914
    |selectionOfLibraries|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2915
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2916
    selectionOfLibraries := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2917
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2918
    selectionOfLibraries addAll: #(librun libbasic libbasic2 libbasic3 libview libview2 ObjectFileLoader XWorkstation GLXWorkstation).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2919
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2920
    self valueOfLibwidg value ifTrue: [selectionOfLibraries add: #libwidg].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2921
    self valueOfLibwidg2 value ifTrue: [selectionOfLibraries add: #libwidg2].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2922
    self valueOfLibui value ifTrue: [selectionOfLibraries add: #libui].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2923
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2924
    self valueOfLibtool value ifTrue: [selectionOfLibraries add: #libtool].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2925
    self valueOfLibtool2 value ifTrue: [selectionOfLibraries add: #libtool2].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2926
    self valueOfLibcomp value ifTrue: [selectionOfLibraries add: #libcomp].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2927
    self valueOfLibhtml value ifTrue: [selectionOfLibraries add: #libhtml].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2928
     
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2929
    selectionOfLibraries addAll: self valueOfUserLibraries value asArrayOfSubstrings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2930
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2931
    ^selectionOfLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2932
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2933
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2934
!NewLauncher methodsFor:'action - classes'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2935
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2936
browseAllBreakAndTracePoints
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2937
    "open a browser showing all breakPointed/traced methods
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2938
     (but, to get rid of them, there is also a menu itme to remove them all)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2939
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2940
    SystemBrowser browseMethods: WrappedMethod allInstances title:'all breakPointed/traced methods'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2941
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2942
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2943
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2944
browseImplementors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2945
    "open an implementors- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2946
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2947
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2948
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2949
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2950
                    title:(resources at:'Browse implementors of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2951
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2952
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2953
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2954
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2955
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2956
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2957
            SystemBrowser browseImplementorsOf:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2958
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2959
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2960
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2961
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2962
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2963
browseResources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2964
    "open a resource- browser after asking for a resource string"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2965
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2966
    |box resourceHolder valueHolder component rsrc value t anyString|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2967
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2968
    anyString := resources string:'* any *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2969
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2970
    resourceHolder := ValueHolder newString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2971
    valueHolder := '*' asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2972
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2973
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2974
    box label:(resources at:'Resource search:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2975
    component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2976
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2977
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2978
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2979
    component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2980
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2981
    component :=  box addComboBoxOn:resourceHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2982
    component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2983
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2984
    component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2985
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2986
    box addInputFieldOn:valueHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2987
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2988
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2989
    box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2990
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2991
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2992
    box showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2993
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2994
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2995
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2996
        rsrc := resourceHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2997
        value := valueHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2998
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2999
        (rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3000
            t := 'methods with any resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3001
            rsrc := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3002
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3003
            t := 'methods with #' , rsrc , '-resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3004
            rsrc := rsrc withoutSeparators asSymbol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3005
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3006
        (value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3007
            t := t , ' and any value'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3008
            value := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3009
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3010
            t := t , ' and value ' , value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3011
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3012
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3013
            SystemBrowser browseForResource:rsrc
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3014
                          containing:value
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3015
                          in:(Smalltalk allClasses)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3016
                          title:t
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3017
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3018
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3019
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3020
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3021
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3022
browseSenders
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3023
    "open a senders- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3024
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3025
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3026
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3027
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3028
                    title:(resources at:'Browse senders of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3029
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3030
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3031
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3032
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3033
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3034
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3035
            SystemBrowser browseAllCallsOn:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3036
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3037
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3038
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3039
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3040
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3041
browseUndeclared
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3042
    "open a browser on methods refering to undeclared variables"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3043
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3044
    self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3045
        SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3046
            browseReferendsOf:(Smalltalk underclaredPrefix , '*')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3047
            title:(resources string:'references to undeclared variables')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3048
            warnIfNone:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3049
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3050
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3051
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3052
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3053
removeAllBreakAndTracePoints
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3054
    "remove all break- and trace points"
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3055
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3056
    MessageTracer cleanup
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3057
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3058
!
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  3059
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3060
startClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3061
    "open a classBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3062
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3063
    SystemBrowser askThenBrowseClass
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3064
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3065
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3066
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3067
startClassHierarchyBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3068
    "open a classHierarchyBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3069
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3070
    SystemBrowser askThenBrowseClassHierarchy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3071
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3072
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3073
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3074
startFullClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3075
    "open a fullClass systemBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3076
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3077
    SystemBrowser askThenBrowseFullClassProtocol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3078
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3079
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3080
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3081
!NewLauncher methodsFor:'action - demos'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3082
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3083
openDemo:className
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3084
    "open a demo, given its name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3085
     Looks in both the Smalltalk- and the Demos-Namespace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3086
     for that class."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3087
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3088
    self openApplication:className nameSpace:Demos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3089
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3090
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3091
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3092
startTicTacToe2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3093
    "opens a 2-user ticTacToe game"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3094
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3095
    self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3096
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3097
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3098
!NewLauncher methodsFor:'action - file'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3099
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3100
exit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3101
    "saves a snapshot image and exits, after asking for a fileName"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3102
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3103
    |fileName saveAndExit box|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3104
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3105
    box := EnterBox2 title:'Save image before exiting?' 
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  3106
        okText:' Save & Exit ' 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3107
        abortText:'Cancel'
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  3108
        action:[:str|fileName := str. saveAndExit := true].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3109
    box label: 'Exiting ST/X'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3110
    box initialText: ObjectMemory nameForSnapshot.
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  3111
    box okText2:'Exit' action2:[:str|saveAndExit := false]; showAtPointer.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3112
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3113
    saveAndExit notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3114
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3115
        saveAndExit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3116
        ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3117
        [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3118
            self saveImageAs: fileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3119
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3120
        Smalltalk exit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3121
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3122
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3123
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3124
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3125
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3126
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3127
objectModuleDialog
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3128
    "opens a moduleInfo dialog"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3129
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3130
    |allModules moduleNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3131
     allObjects methodObjects methodNames 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3132
     cObjects cObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3133
     otherObjects otherObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3134
     box l handles unloadButton
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3135
     list1 list2 listView1 listView2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3136
     y panel 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3137
     showBuiltIn showModules showMethods showCObjects showOthers
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3138
     moduleListUpdater check canDoIt menu|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3139
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3140
    showBuiltIn := true asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3141
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3142
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3143
    showModules := canDoIt asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3144
    showMethods := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3145
    showCObjects := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3146
    showOthers := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3147
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3148
    list1 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3149
    list2 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3150
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3151
    moduleListUpdater := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3152
            |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3153
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3154
            list2 list:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3155
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3156
            l := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3157
            handles := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3158
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3159
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3160
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3161
                (showBuiltIn value and:[showModules value]) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3162
                    allModules := allModules select:[:i |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3163
                        |wantToSee|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3164
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3165
                        wantToSee := i dynamic.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3166
                        showBuiltIn value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3167
                            wantToSee := wantToSee not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3168
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3169
                        wantToSee
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3170
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3171
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3172
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3173
                "/ sorting by reverse id brings newest ones to the top (a side effect)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3174
                allModules sort:[:a :b | (a id) > (b id)].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3175
                moduleNames := allModules collect:[:entry | entry name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3176
                l := l , moduleNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3177
                handles := handles , allModules.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3178
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3179
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3180
            showMethods value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3181
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3182
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3183
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3184
                                                                'compiled method - removed' , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3185
                                                            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3186
                                                                'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3187
                                                            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3188
                                                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3189
                l := l , methodNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3190
                handles := handles , methodObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3191
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3192
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3193
            showCObjects value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3194
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3195
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3196
                cObjectNames := cObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3197
                l := l , cObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3198
                handles := handles , cObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3199
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3200
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3201
            showOthers value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3202
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3203
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3204
                                                         or:[h isMethodHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3205
                                                         or:[h isClassLibHandle]]) not]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3206
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3207
                l := l , otherObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3208
                handles := handles , otherObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3209
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3210
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3211
            list1 list:l.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3212
            unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3213
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3214
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3215
    showBuiltIn onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3216
    showModules onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3217
    showMethods onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3218
    showCObjects onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3219
    showOthers onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3220
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3221
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3222
    box label:(resources string:'Module dialog').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3223
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3224
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3225
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3226
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3227
    listView1 action:[:sel |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3228
        |info classNames tabs module|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3229
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3230
        listView1 middleButtonMenu:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3231
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3232
        box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3233
            |nm fileName addr entry1 entry2 entry3 method|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3234
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3235
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3236
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3237
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3238
                info := allModules at:sel ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3239
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3240
            info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3241
                "/ selected a method, cObject or unknown
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3242
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3243
                module := handles at:sel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3244
                fileName := module pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3245
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3246
                module isMethodHandle ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3247
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3248
                    (method := module method) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3249
                        nm := '** removed **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3250
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3251
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3252
                                    labels:#('inspect' 'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3253
                                    selectors:#(inspect browse).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3254
                        menu actionAt:#inspect put:[ method inspect ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3255
                        menu actionAt:#browse put:[ |who|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3256
                                                    who := method who.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3257
                                                    SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3258
                                                        openInClass:(who methodClass) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3259
                                                        selector:(who methodSelector) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3260
                                                  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3261
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3262
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3263
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3264
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3265
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3266
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3267
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3268
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3269
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3270
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3271
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3272
                    entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3273
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3274
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3275
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3276
                    (module isFunctionObjectHandle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3277
                    and:[module functions notEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3278
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3279
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3280
                                    labels:#('inspect')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3281
                                    selectors:#(inspect).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3282
                        menu actionAt:#inspect put:[ module functions inspect  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3283
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3284
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3285
                        list2 list:((module functions select:[:f | f notNil])
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3286
                                        collect:[:f | |entry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3287
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3288
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3289
                                                        entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3290
                                                        entry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3291
                                                ]).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3292
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3293
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3294
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3295
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3296
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3297
                unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3298
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3299
                "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3300
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3301
                "/ fill bottom list with class-info
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3302
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3303
                classNames := info classNames asSortedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3304
                classNames := classNames collect:[:cName |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3305
                                |cls entry rev listEntry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3306
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3307
                                listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3308
                                listEntry colAt:1 put:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3309
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3310
                                cls := Smalltalk classNamed:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3311
                                cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3312
                                    listEntry colAt:2 put:'(class removed)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3313
                                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3314
                                    rev := cls binaryRevision.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3315
                                    rev notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3316
                                        cls isLoaded ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3317
                                            entry := '(stub for: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3318
                                        ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3319
                                            entry :='(bin: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3320
                                        ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3321
                                        cls revision ~= rev ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3322
                                            entry := entry , ' / src: ' , cls revision    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3323
                                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3324
                                        listEntry colAt:2 put:entry , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3325
                                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3326
                                       cls revision notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3327
                                            listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3328
                                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3329
                                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3330
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3331
                                listEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3332
                              ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3333
                list2 list:classNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3334
                info dynamic ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3335
                    unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3336
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3337
                    unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3338
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3339
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3340
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3341
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3342
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3343
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3344
    panel := HorizontalPanelView new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3345
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3346
    panel add:(l := Label label:'show:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3347
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3348
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3349
    box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3350
    panel add:(check := CheckBox label:'classLibs' model:showModules).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3351
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3352
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3353
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3354
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3355
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3356
    panel add:(check := CheckBox label:'methods' model:showMethods).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3357
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3358
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3359
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3360
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3361
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3362
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3363
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3364
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3365
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3366
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3367
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3368
    panel add:(check := CheckBox label:'others' model:showOthers).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3369
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3370
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3371
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3372
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3373
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3374
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3375
    panel horizontalLayout:#fitSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3376
    "/ panel horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3377
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3378
    box addComponent:panel tabable:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3379
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3380
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3381
    box addComponent:listView1 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3382
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3383
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3384
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3385
    l := box addTextLabel:(resources string:'contained classes/subsets:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3386
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3387
    l origin:0.0@0.4 corner:1.0@0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3388
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3389
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3390
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3391
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3392
    listView2 model:list2; printItems:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3393
    box addComponent:listView2 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3394
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3395
    listView2 disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3396
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3397
    unloadButton := Button label:(resources string:'unload').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3398
    unloadButton action:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3399
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3400
            box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3401
                |info idx pathName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3402
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3403
                idx := list1 selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3404
                info := allModules at:idx ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3405
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3406
                list1 selectionIndex:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3407
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3408
                info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3409
                    "/ selected a method
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3410
                    "/ idx := idx - allModules size.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3411
                    pathName := (handles at:idx) pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3412
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3413
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3414
                    "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3415
                    pathName := info pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3416
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3417
                ObjectFileLoader unloadObjectFile:pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3418
                moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3419
                unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3420
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3421
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3422
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3423
    moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3424
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3425
    box addButton:unloadButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3426
    box addAbortButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3427
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3428
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3429
    listView2 topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3430
    listView2 bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3431
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3432
"/    box width:(400 min:(box device width * 2 // 3)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3433
"/        height:(450 min:(box device height - 50)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3434
"/        sizeFixed:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3435
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3436
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3437
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3438
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3439
    "Modified: 17.9.1995 / 16:47:50 / claus"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3440
    "Modified: 18.10.1997 / 03:43:39 / cg"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3441
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3442
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3443
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3444
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3445
openApplicationBuilder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3446
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3447
    self valueOfBuildDate value: Date today printString, ' ', Time now printString.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3448
    self openDialogInterface:#windowSpecForApplicationSettings.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3449
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3450
    LibraryBuilder UserLibraries: self valueOfUserLibraries value
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3451
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3452
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3453
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3454
saveImage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3455
    "save image"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3456
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3457
    self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3458
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3459
        (ObjectMemory snapShotOn:ObjectMemory nameForSnapshot) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3460
            self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3461
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3462
    ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3463
        self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3464
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3465
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3466
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3467
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3468
saveImageAs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3469
    "save image, after asking for a file name"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3470
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3471
    self saveImageAs: (
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3472
        FileSelectionBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3473
            request: 'Save Image As' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3474
            fileName: ObjectMemory nameForSnapshot
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3475
            inDirectory: Filename currentDirectory name
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3476
            withFileFilters: #('*.img'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3477
 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3478
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3479
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3480
saveImageAs: aFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3481
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3482
    aFileName notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3483
        self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3484
        [       
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3485
            (ObjectMemory snapShotOn:aFileName) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3486
                self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3487
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3488
        ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3489
            self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3490
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3491
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3492
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3493
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3494
!NewLauncher methodsFor:'action - help'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3495
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3496
activeHelp
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3497
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3498
    ^helpIsOn ? (helpIsOn := false)
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3499
!
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3500
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3501
openLicenceConditions
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3502
    "open an HTML browser on the 'LICENCE' document"
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3503
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3504
    |lang doc|
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3505
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3506
    ((lang := Smalltalk language) = 'de'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3507
    or:[lang = 'german']) ifTrue:[
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3508
        doc := 'german/LICENCE.STX.html'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3509
    ] ifFalse:[
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3510
        doc := 'english/LICENCE.STX.html'
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3511
    ].
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3512
    doc := resources at:'LICENCEFILE' default:doc.
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3513
    self showDocumentation:('../' , doc)
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3514
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3515
    "Created: / 5.2.1998 / 21:43:19 / cg"
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3516
!
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3517
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3518
showBookPrintDocument
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3519
    "open an HTML browser on the 'book'-printing document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3520
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3521
    self showDocumentation:'BOOK.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3522
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3523
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3524
showDocumentation:aRelativeDocFilePath
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3525
    "open an HTML browser on some document"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3526
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3527
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3528
     although that one is not yet finished,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3529
     its better than nothing ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3530
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3531
    HTMLDocumentView notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3532
        "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3533
         temporary kludge;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3534
         not all machines can autoload binaries;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3535
         however, on my SGI (which can) we want it
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3536
         to load automatically.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3537
        "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3538
        HTMLDocumentView isLoaded ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3539
            ErrorSignal catch:[HTMLDocumentView autoload]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3540
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3541
        HTMLDocumentView isLoaded ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3542
            HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3543
            ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3544
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3545
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3546
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3547
    self warn:'Sorry, the ST/X HTML reader is not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3548
included in this release.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3549
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3550
Please use Mosaic, netscape, chimera or any
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3551
other HTML viewer to see the documentation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3552
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3553
The documentation is found in the ''doc/online'' directory.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3554
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3555
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3556
startClassDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3557
    "open an HTML browser on the 'classDoc/TOP' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3558
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3559
    self showDocumentation:'classDoc/TOP.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3560
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3561
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3562
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3563
startDocumentationIndex
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3564
    "open an HTML browser on the 'index' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3565
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3566
    self showDocumentation:'index.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3567
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3568
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3569
startDocumentationTool
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3570
    "open an HTML browser on the 'TOP' document"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3571
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3572
    self showDocumentation:'TOP.html'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3573
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3574
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3575
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3576
startWhatsNewDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3577
    "open an HTML browser on the 'whatsNew.html' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3578
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3579
    self showDocumentation:'whatsNew.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3580
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3581
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3582
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3583
toggleActiveHelp:aBoolean
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3584
    "turn on/off active help"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3585
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3586
    ActiveHelp notNil ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3587
        helpIsOn := aBoolean.
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3588
        helpIsOn ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3589
            ActiveHelp start
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3590
        ] ifFalse:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3591
            ActiveHelp stop
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3592
        ]
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3593
    ].
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3594
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3595
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3596
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3597
!NewLauncher methodsFor:'action - old settings'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3598
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3599
compilerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3600
    "open a dialog on compiler related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3601
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3602
    |box warnings warnSTX warnUnderscore warnDollar warnOldStyle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3603
     allowDollar allowUnderscore immutableArrays
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3604
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3605
     warnCompatibility warnCompatibilityBox warnDollarBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3606
     stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3607
     stcLibraries stcLibraryPath cc ccOptions historyLines fullHistoryUpdate catchRedefs keepSourceOptions keepSource  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3608
     constantFoldingOptions constantFolding justInTimeCompilation 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3609
     warnEnabler check component oldIndent t supportsJustInTimeCompilation y
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3610
     y2 fullDebugSupport yMax
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3611
     compileLazy loadBinaries canLoadBinaries|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3612
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3613
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3614
    loadBinaries := Smalltalk loadBinaries asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3615
    compileLazy := Autoload compileLazy asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3616
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3617
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3618
    warnings := Compiler warnings asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3619
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3620
    warnSTX := Compiler warnSTXSpecials asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3621
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3622
    warnDollar := Compiler warnDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3623
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3624
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3625
    warnCompatibility := Compiler warnPossibleIncompatibilities asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3626
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3627
    allowDollar := Compiler allowDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3628
    immutableArrays := Compiler arraysAreImmutable asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3629
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3630
    constantFoldingOptions := #( nil #level1 #level2 #full ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3631
    constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3632
    constantFolding selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3633
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3634
    stcCompilationOptions := #( always default never).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3635
    stcCompilation := SelectionInList new 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3636
                        list:(resources array:#('always' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3637
                                                'primitive code only' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3638
                                                'never'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3639
                                               )).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3640
    stcCompilation selectionIndex:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3641
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3642
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3643
        justInTimeCompilation := ObjectMemory justInTimeCompilation:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3644
        fullDebugSupport := ObjectMemory fullSingleStepSupport:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3645
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3646
        justInTimeCompilation := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3647
        fullDebugSupport := (Compiler lineNumberInfo == #full) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3648
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3649
    justInTimeCompilation := justInTimeCompilation asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3650
    fullDebugSupport := fullDebugSupport asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3651
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3652
    stcIncludes := Compiler stcCompilationIncludes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3653
    stcDefines := Compiler stcCompilationDefines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3654
    stcOptions := Compiler stcCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3655
    ccOptions := Compiler ccCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3656
    cc := Compiler ccPath asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3657
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3658
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3659
        (t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3660
            stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3661
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3662
        (t := ObjectFileLoader libPath) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3663
            stcLibraryPath := t asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3664
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3665
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3666
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3667
    catchRedefs := Class catchMethodRedefinitions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3668
    historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3669
    historyLines ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3670
        fullHistoryUpdate := false    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3671
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3672
        fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3673
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3674
    historyLines := historyLines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3675
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3676
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3677
    keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3678
    keepSource selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3679
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3680
    warnEnabler := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3681
              warnings value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3682
                warnSTXBox enable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3683
                warnOldStyleBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3684
                warnCommonMistakesBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3685
                warnCompatibilityBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3686
                allowUnderscore value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3687
                    warnUnderscoreBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3688
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3689
                    warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3690
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3691
                allowDollar value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3692
                    warnDollarBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3693
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3694
                    warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3695
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3696
              ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3697
                warnSTXBox disable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3698
                warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3699
                warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3700
                warnOldStyleBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3701
                warnCommonMistakesBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3702
                warnCompatibilityBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3703
              ]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3704
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3705
    warnings onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3706
    allowUnderscore onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3707
    allowDollar onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3708
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3709
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3710
    box label:(resources string:'Compiler settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3711
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3712
    box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3713
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3714
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3715
    HistoryManager isNil ifTrue:[check disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3716
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3717
    check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3718
    check left:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3719
    HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3720
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3721
    box addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3722
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3723
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3724
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3725
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3726
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3727
    check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3728
    canLoadBinaries ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3729
        loadBinaries value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3730
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3731
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3732
    supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3733
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3734
                        addCheckBox:(resources string:'just in time compilation to machine code') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3735
                        on:justInTimeCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3736
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3737
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3738
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3739
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3740
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3741
        compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3742
        stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3743
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3744
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3745
                        addLabelledInputField:(resources string:'include directories:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3746
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3747
                        on:stcIncludes 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3748
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3749
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3750
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3751
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3752
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3753
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3754
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3755
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3756
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3757
                        addLabelledInputField:(resources string:'defines:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3758
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3759
                        on:stcDefines 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3760
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3761
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3762
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3763
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3764
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3765
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3766
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3767
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3768
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3769
                        addLabelledInputField:(resources string:'stc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3770
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3771
                        on:stcOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3772
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3773
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3774
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3775
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3776
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3777
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3778
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3779
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3780
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3781
                        addLabelledInputField:(resources string:'cc command:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3782
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3783
                        on:cc 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3784
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3785
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3786
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3787
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3788
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3789
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3790
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3791
                        addLabelledInputField:(resources string:'cc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3792
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3793
                        on:ccOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3794
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3795
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3796
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3797
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3798
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3799
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3800
        stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3801
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3802
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3803
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3804
                            addLabelledInputField:(resources string:'C-libraries:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3805
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3806
                            on:stcLibraries 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3807
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3808
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3809
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3810
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3811
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3812
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3813
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3814
        stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3815
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3816
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3817
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3818
                            addLabelledInputField:(resources string:'stc libPath:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3819
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3820
                            on:stcLibraryPath 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3821
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3822
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3823
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3824
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3825
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3826
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3827
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3828
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3829
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3830
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3831
        "/ if there is no compiler around,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3832
        "/ change to compile nothing, and disable the checkBoxes
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3833
        Compiler canCreateMachineCode ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3834
            stcCompilation selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3835
            compilationList disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3836
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3837
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3838
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3839
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3840
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3841
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3842
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3843
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3844
    component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3845
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3846
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3847
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3848
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3849
    y2 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3850
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3851
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3852
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3853
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3854
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3855
    component superView left:0.5; width:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3856
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3857
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3858
    component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3859
    component left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3860
    box yPosition:(box yPosition max:y2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3861
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3862
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3863
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3864
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3865
    box addCheckBox:(resources string:'warnings') on:warnings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3866
"/    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3867
    oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3868
    box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3869
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3870
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3871
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3872
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3873
    warnSTXBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3874
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3875
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3876
    warnUnderscoreBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3877
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3878
    warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3879
    warnDollarBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3880
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3881
    yMax := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3882
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3883
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3884
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3885
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3886
    warnOldStyleBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3887
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3888
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3889
    warnCommonMistakesBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3890
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3891
    warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3892
    warnCompatibilityBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3893
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3894
    box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3895
    box yPosition:(yMax max: box yPosition).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3896
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3897
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3898
        addHelpButtonFor:'Launcher/compilerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3899
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3900
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3901
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3902
    warnEnabler value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3903
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3904
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3905
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3906
        HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3907
            HistoryManager fullHistoryUpdate:fullHistoryUpdate value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3908
            historyLines value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3909
                HistoryManager activate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3910
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3911
                HistoryManager deactivate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3912
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3913
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3914
        Class catchMethodRedefinitions:catchRedefs value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3915
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3916
        Compiler warnings:warnings value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3917
        Compiler warnSTXSpecials:warnSTX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3918
        Compiler warnOldStyleAssignment:warnOldStyle value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3919
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3920
        Compiler warnDollarInIdentifier:warnDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3921
        Compiler warnCommonMistakes:warnCommonMistakes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3922
        Compiler warnPossibleIncompatibilities:warnCompatibility value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3923
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3924
        Compiler allowDollarInIdentifier:allowDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3925
        Compiler arraysAreImmutable:immutableArrays value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3926
        fullDebugSupport value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3927
            Compiler lineNumberInfo:#full.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3928
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3929
            Compiler lineNumberInfo:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3930
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3931
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3932
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3933
        Compiler stcCompilationIncludes:stcIncludes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3934
        Compiler stcCompilationDefines:stcDefines value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3935
        Compiler stcCompilationOptions:stcOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3936
        Compiler ccCompilationOptions:ccOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3937
        Compiler ccPath:cc value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3938
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3939
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3940
        supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3941
            justInTimeCompilation value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3942
                Method allInstancesDo:[:m | m checked:false].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3943
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3944
            ObjectMemory justInTimeCompilation:justInTimeCompilation value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3945
            ObjectMemory fullSingleStepSupport:fullDebugSupport value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3946
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3947
        ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3948
            stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3949
                ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3950
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3951
            stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3952
                ObjectFileLoader libPath:(stcLibraryPath value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3953
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3954
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3955
        Autoload compileLazy:compileLazy value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3956
        Smalltalk loadBinaries:loadBinaries value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3957
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3958
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3959
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3960
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3961
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3962
displaySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3963
    "open a dialog on display related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3964
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3965
    |box listOfSizes sizeInfos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3966
     sizes sizeNames sizeList sizeX sizeY deepIcons
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3967
     isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3968
     y component screen visual clipEncodings clipEncodingSyms clipEncodingList|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3969
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3970
    listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3971
    listOfSizes == #default ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3972
        "/ nothing in resource file; offer at least some.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3973
        sizeInfos := #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3974
                           ( '11.3'' (235mm x 175mm) LCD'   (235 175)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3975
                           ( '17''   (325mm x 245mm)'       (325 245)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3976
                           ( '19''   (340mm x 270mm)'       (340 270)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3977
                           ( '20''   (350mm x 280mm)'       (350 280)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3978
                           ( '21''   (365mm x 285mm)'       (365 285)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3979
                       ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3980
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3981
        sizeInfos := resources array:listOfSizes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3982
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3983
    sizeNames := sizeInfos collect:[:entry | entry at:1].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3984
    sizes := sizeInfos collect:[:entry | entry at:2].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3985
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3986
    screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3987
    visual := screen visualType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3988
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3989
    isColorMonitor := screen hasColors asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3990
    deepIcons := screen supportsDeepIcons asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3991
    useFixPalette := screen fixColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3992
    useFixGrayPalette := screen fixGrayColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3993
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3994
    sizeList := SelectionInList with:sizeNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3995
    sizeX := screen widthInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3996
    sizeY := screen heightInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3997
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3998
    clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3999
    clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4000
    clipEncodingList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4001
    clipEncodingList list:clipEncodings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4002
    clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4003
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4004
    ditherList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4005
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4006
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4007
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4008
        ditherSyms := #(threshold ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4009
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4010
        visual ~~ #TrueColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4011
            ditherStyles := #('nearest color' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4012
            ditherSyms := #(ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4013
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4014
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4015
    ditherSyms notNil ifTrue:[    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4016
        ditherList list:ditherStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4017
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4018
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4019
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4020
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4021
    box label:(resources string:'Display screen settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4022
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4023
    (box addTextLabel:(resources string:'Actual visible screen area:'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4024
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4025
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4026
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4027
        label:'monitor size'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4028
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4029
    idx := sizes findFirst:[:entry |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4030
                                ((entry at:1) = sizeX value)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4031
                                and:[((entry at:2) = sizeY value)]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4032
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4033
    idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4034
        sizeList selectionIndex:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4035
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4036
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4037
    sizeList onChangeSend:#value to:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4038
                                        |idx|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4039
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4040
                                        idx := sizeList selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4041
                                        sizeX value:((sizes at:idx) at:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4042
                                        sizeY value:((sizes at:idx) at:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4043
                                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4044
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4045
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4046
    component := box addTextLabel:(resources string:'screen size:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4047
    component width:0.3; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4048
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4049
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4050
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4051
    component width:0.25; left:0.3; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4052
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4053
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4054
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4055
              model:sizeX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4056
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4057
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4058
    component := box addTextLabel:(' x ').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4059
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4060
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4061
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4062
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4063
    component width:0.25; left:0.65; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4064
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4065
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4066
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4067
              model:sizeY.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4068
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4069
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4070
    component := box addTextLabel:('(mm)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4071
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4072
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4073
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4074
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4075
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4076
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4077
    (box addTextLabel:(resources string:'Screen: depth: %1 visual: %2  (%3)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4078
                                 with:Screen current depth printString
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4079
                                 with:Screen current visualType
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4080
                                 with:Screen current serverVendor))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4081
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4082
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4083
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4084
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4085
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4086
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4087
    box addCheckBox:(resources string:'color monitor') on:isColorMonitor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4088
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4089
    visual == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4090
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4091
        component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4092
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4093
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4094
        component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4095
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4096
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4097
    ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4098
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4099
        component := box addPopUpList:(resources string:'image display:') on:ditherList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4100
        component defaultLabel:'image display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4101
        component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4102
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4103
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4104
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4105
    box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4106
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4107
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4108
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4109
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4110
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4111
    component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4112
    component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4113
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4114
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4115
        addHelpButtonFor:'Launcher/screenSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4116
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4117
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4118
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4119
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4120
        Image flushDeviceImages.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4121
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4122
        screen visualType == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4123
            useFixPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4124
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4125
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4126
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4127
                    Color getColorsRed:4 green:8 blue:4 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4128
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4129
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4130
                screen releaseFixColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4131
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4132
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4133
            useFixGrayPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4134
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4135
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4136
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4137
                    Color getGrayColors:32 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4138
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4139
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4140
                screen releaseFixGrayColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4141
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4142
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4143
        screen hasColors:isColorMonitor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4144
        screen widthInMillimeter:sizeX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4145
        screen heightInMillimeter:sizeY value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4146
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4147
        screen supportsDeepIcons:deepIcons value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4148
        ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4149
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4150
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4151
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4152
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4153
            View defaultStyle:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4154
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4155
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4156
        screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4157
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4158
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4159
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4160
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4161
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4162
fontBoxForEncoding:encodingMatch
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4163
    "open a fontBox, showing fonts which match some encoding
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4164
     (used when changing to japanese ...)"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4165
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4166
    |box y b
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4167
     labelDef buttonDef listDef menuDef textDef
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4168
     models labels allOfThem filter|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4169
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4170
    encodingMatch notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4171
        filter := [:f | f encoding notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4172
                        and:[encodingMatch match:f encoding]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4173
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4174
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4175
    models := OrderedCollection new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4176
    labels := OrderedCollection new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4177
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4178
    models add:(allOfThem := nil asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4179
    models add:(labelDef := Label defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4180
    models add:(buttonDef := Button defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4181
    models add:(listDef := SelectionInListView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4182
    models add:(menuDef := MenuView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4183
    models add:(textDef := TextView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4184
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4185
    box := Dialog new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4186
    box label:(resources string:'Font settings').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4187
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4188
    models
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4189
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4190
    do:[:model :title |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4191
        |y2 lbl f i|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4192
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4193
        f := model value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4194
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4195
        (box addTextLabel:title) adjust:#left.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4196
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4197
        y := box yPosition.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4198
        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4199
        b relativeExtent:nil; extent:(b preferredExtent).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4200
        y2 := box yPosition.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4201
        box yPosition:y.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4202
        i := box leftIndent.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4203
        box leftIndent:(b widthIncludingBorder + View viewSpacing).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4204
        (lbl := box addTextLabel:'')
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4205
            adjust:#left;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4206
            font:(model value);
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4207
            labelChannel:(BlockValue 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4208
                            with:[:v | |f|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4209
                                f := v value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4210
                                f isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4211
                                    ''
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4212
                                ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4213
                                    f userFriendlyName
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4214
                                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4215
                            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4216
                            argument:model).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4217
        labels add:lbl.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4218
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4219
        box leftIndent:i.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4220
        box yPosition:(box yPosition max:y2).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4221
        box addVerticalSpace.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4222
        box addHorizontalLine.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4223
        box addVerticalSpace.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4224
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4225
        b action:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4226
            |f|
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  4227
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4228
            f := FontPanel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4229
                fontFromUserInitial:(model value) 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4230
                              title:(resources string:'font for %1' with:title)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4231
                             filter:filter.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4232
            f notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4233
                model == allOfThem ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4234
                    models do:[:m | m value:f].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4235
                    labels do:[:l | l font:f]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4236
                ] ifFalse:[
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  4237
                    model value:f.  
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4238
                    lbl font:f.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4239
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4240
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4241
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4242
        model == allOfThem ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4243
            box addVerticalSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4244
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4245
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4246
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4247
    box addAbortButton; addOkButton.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4248
    (box addButton:(Button label:(resources string:'defaults')) before:nil)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4249
        action:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4250
            "/ fetch defaults
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4251
            View updateAllStyleCaches.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4252
            labelDef value: Label defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4253
            buttonDef value: Button defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4254
            listDef value: SelectionInListView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4255
            menuDef value: MenuView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4256
            textDef value: TextView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4257
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4258
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4259
    box open.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4260
    box accepted ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4261
        Label defaultFont:labelDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4262
        Button defaultFont:buttonDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4263
        Toggle defaultFont:buttonDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4264
        SelectionInListView defaultFont:listDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4265
        MenuView defaultFont:menuDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4266
        PullDownMenu defaultFont:menuDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4267
        TextView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4268
        EditTextView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4269
        CodeView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4270
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4271
    box destroy.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4272
    ^ box accepted
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4273
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4274
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4275
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  4276
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4277
fontSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4278
    "open a dialog on font related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4279
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4280
    (self fontBoxForEncoding:nil) ifTrue:[self reOpen]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4281
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4282
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4283
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4284
keyboardSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4285
    "open a dialog on keyboard related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4286
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4287
    |mappings listOfRawKeys listOfFunctions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4288
     box l
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4289
     list1 list2 listView1 listView2 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4290
     frame selectionForwarder macroForwarder macroTextView y|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4291
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4292
    mappings := Screen current keyboardMap.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4293
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4294
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4295
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4296
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4297
    selectionForwarder := Plug new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4298
    selectionForwarder respondTo:#showFunction
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4299
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4300
                        |raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4301
                        raw := list1 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4302
                        list2 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4303
                        list2 selection:(mappings at:raw asSymbol) asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4304
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4305
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4306
    selectionForwarder respondTo:#showRawKey
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4307
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4308
                        |f raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4309
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4310
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4311
                        list1 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4312
                        raw := mappings keyAtValue:f asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4313
                        raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4314
                            raw := mappings keyAtValue:f first.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4315
                            raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4316
                                raw := mappings keyAtValue:f asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4317
                            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4318
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4319
                        list1 selection:raw.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4320
                        list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4321
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4322
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4323
    macroForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4324
                        |f macro indent|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4325
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4326
                        (f startsWith:'Cmd') ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4327
                            f := f copyFrom:4
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4328
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4329
                        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4330
                        macro notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4331
                            macro := macro asStringCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4332
                            indent := macro
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4333
                                         inject:99999 into:[:min :element |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4334
                                             |stripped|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4335
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4336
                                             stripped := element withoutLeadingSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4337
                                             stripped size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4338
                                                 min
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4339
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4340
                                                 min min:(element size - stripped size)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4341
                                             ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4342
                                         ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4343
                            indent ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4344
                                macro := macro collect:[:line | 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4345
                                             line size > indent ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4346
                                                line copyFrom:indent+1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4347
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4348
                                                line
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4349
                                             ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4350
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4351
                            ].                        
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4352
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4353
                        macroTextView contents:macro.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4354
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4355
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4356
    list1 := SelectionInList with:listOfRawKeys.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4357
    list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4358
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4359
    list2 := SelectionInList with:listOfFunctions.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4360
    list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4361
    list2 onChangeSend:#value to:macroForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4362
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4363
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4364
    box label:(resources string:'Keyboard mappings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4365
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4366
    l := box addTextLabel:(resources string:'KEY_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4367
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4368
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4369
    frame := View new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4370
    frame extent:300 @ 300.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4371
    frame borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4372
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4373
    listView1 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4374
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4375
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4376
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4377
    listView2 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4378
    listView2 model:list2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4379
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4380
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4381
    frame topInset:box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4382
    box addComponent:frame withExtent:350@200.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4383
    box makeTabable:listView1. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4384
    box makeTabable:listView2. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4385
    frame origin:0.0@0.0 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4386
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4387
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4388
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4389
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4390
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4391
    l origin:0.0@0.6 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4392
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4393
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4394
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4395
    macroTextView := HVScrollableView for:TextView miniScroller:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4396
    box addComponent:macroTextView tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4397
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4398
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4399
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4400
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4401
        addHelpButtonFor:'Launcher/keyboardSetting.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4402
        "addAbortButton;" 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4403
        addOkButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4404
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4405
    macroTextView topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4406
    macroTextView bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4407
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4408
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4409
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4410
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4411
        "no action yet ..."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4412
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4413
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4414
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4415
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4416
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4417
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4418
languageSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4419
    "open a dialog on language related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4420
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4421
    |listOfLanguages translatedLanguages switch box languageList flags|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4422
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4423
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4424
     get list of supported languages from the launchers resources ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4425
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4426
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4427
    listOfLanguages := listOfLanguages asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4428
    translatedLanguages := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4429
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4430
                                        item isString ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4431
                                            item
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4432
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4433
                                            item at:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4434
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4435
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4436
    flags := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4437
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4438
                                        item isArray ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4439
                                            item at:2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4440
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4441
                                            nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4442
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4443
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4444
    flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4445
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4446
    languageList := translatedLanguages with:flags collect:[:lang :flag |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4447
                                LabelAndIcon icon:flag string:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4448
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4449
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4450
    box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4451
    box label:(resources string:'Language selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4452
    box list:languageList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4453
    box initialText:(Language).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4454
    box action:[:newLanguage |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4455
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4456
            |fontPref idx language oldLanguage enc answer matchingFonts|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4457
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4458
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4459
            idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4460
                language := listOfLanguages at:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4461
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4462
                language := newLanguage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4463
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4464
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4465
            "/ check if the new language needs a differently encoded font;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4466
            "/ ask user to switch font and allow cancellation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4467
            "/ Otherwise, you are left with unreadable menu & button items ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4468
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4469
            oldLanguage := Smalltalk language.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4470
            Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4471
            ResourcePack flushCachedResourcePacks.
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  4472
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4473
            Smalltalk language:oldLanguage.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4474
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4475
            switch := true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4476
            enc := MenuView defaultFont encoding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4477
            (fontPref match:enc) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4478
                "/ look if there is one at all.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4479
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4480
                matchingFonts size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4481
                    (Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4482
                        confirm:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4483
                                    string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4484
                                      with:fontPref) withCRs)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4485
                    ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4486
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4487
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4488
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4489
                    answer := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4490
                                confirmWithCancel:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4491
                                                        string:'menu font is not %1-encoded.\\Change it ?'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4492
                                                        with:fontPref) withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4493
                                           labels:(resources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4494
                                                        array:#('cancel' 'no' 'yes'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4495
                                           default:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4496
                    answer isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4497
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4498
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4499
                        answer ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4500
                            switch := (self fontBoxForEncoding:fontPref)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4501
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4502
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4503
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4504
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4505
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4506
            switch ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4507
                transcript showCR:'change language to ' , newLanguage , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4508
                Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4509
                ResourcePack flushCachedResourcePacks
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4510
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4511
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4512
        switch ifTrue:[
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  4513
            self reOpen.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4514
            DebugView newDebugger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4515
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4516
    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4517
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4518
        addHelpButtonFor:'Launcher/languageSetting.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4519
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4520
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4521
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  4522
    "Modified: / 6.2.1998 / 00:01:01 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4523
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4524
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4525
memorySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4526
    "open a dialog on objectMemory related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4527
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4528
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4529
     compressLimit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4530
     oldIncr component fields codeLimit codeTrigger stackLimit|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4531
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4532
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4533
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4534
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4535
    igcLimit := ObjectMemory incrementalGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4536
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4537
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4538
    newSpaceSize := ObjectMemory newSpaceSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4539
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4540
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4541
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4542
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4543
    stackLimit := Process defaultMaximumStackSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4544
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4545
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4546
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4547
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4548
    fields := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4549
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4550
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4551
    box label:(resources string:'Memory manager settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4552
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4553
    (box addTextLabel:'Warning - invalid settings may result in failures or poor performance
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4554
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4555
You have been warned.') adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4556
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4557
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4558
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4559
                    addLabelledInputField:(resources string:'size of newSpace:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4560
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4561
                    on:nil "/ newSpaceSize 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4562
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4563
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4564
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4565
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4566
    component model:newSpaceSize.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4567
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4568
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4569
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4570
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4571
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4572
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4573
                    addLabelledInputField:(resources string:'incremental GC allocation trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4574
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4575
                    on:nil "/ igcLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4576
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4577
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4578
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4579
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4580
    component model:igcLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4581
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4582
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4583
    box addTextLabel:'(start IGC whenever this amount has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4584
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4585
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4586
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4587
                    addLabelledInputField:(resources string:'incremental GC freespace trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4588
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4589
                    on:nil "/ igcFreeLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4590
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4591
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4592
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4593
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4594
    component model:igcFreeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4595
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4596
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4597
    box addTextLabel:'(start IGC whenever freespace drops below this)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4598
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4599
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4600
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4601
                    addLabelledInputField:(resources string:'incremental GC amount:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4602
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4603
                    on:nil "/ igcFreeAmount 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4604
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4605
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4606
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4607
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4608
    component model:igcFreeAmount.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4609
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4610
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4611
    box addTextLabel:'(try to keep this amount for peak requests)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4612
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4613
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4614
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4615
                    addLabelledInputField:(resources string:'oldspace increment:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4616
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4617
                    on:nil "/ oldIncr 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4618
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4619
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4620
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4621
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4622
    component model:oldIncr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4623
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4624
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4625
    box addTextLabel:'(increase oldSpace in chunks of this size)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4626
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4627
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4628
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4629
                    addLabelledInputField:(resources string:'oldspace compress limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4630
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4631
                    on:nil "/ compressLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4632
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4633
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4634
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4635
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4636
    component model:compressLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4637
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4638
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4639
    box addTextLabel:'(suppress compressing GC if more memory is in use)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4640
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4641
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4642
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4643
                    addLabelledInputField:(resources string:'stack limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4644
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4645
                    on:nil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4646
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4647
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4648
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4649
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4650
    component model:stackLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4651
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4652
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4653
    box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4654
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4655
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4656
    ObjectMemory supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4657
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4658
                        addLabelledInputField:(resources string:'dynamic code limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4659
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4660
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4661
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4662
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4663
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4664
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4665
        component model:codeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4666
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4667
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4668
        box addTextLabel:'(flush dynamic compiled code to stay within this limit)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4669
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4670
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4671
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4672
                        addLabelledInputField:(resources string:'dynamic code GC trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4673
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4674
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4675
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4676
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4677
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4678
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4679
        component model:codeTrigger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4680
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4681
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4682
        box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4683
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4684
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4685
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4686
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4687
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4688
        addHelpButtonFor:'Launcher/memorySettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4689
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4690
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4691
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4692
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4693
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4694
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4695
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4696
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4697
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4698
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4699
        fields do:[:comp | comp accept].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4700
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4701
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4702
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4703
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4704
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4705
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4706
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4707
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4708
            ObjectMemory incrementalGCLimit:igcLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4709
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4710
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4711
            ObjectMemory newSpaceSize:newSpaceSize value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4712
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4713
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4714
            ObjectMemory oldSpaceIncrement:oldIncr value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4715
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4716
        stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4717
            Process defaultMaximumStackSize:stackLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4718
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4719
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4720
        ObjectMemory dynamicCodeLimit:codeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4721
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4722
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4723
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4724
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4725
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4726
messageSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4727
    "open a dialog on infoMessage related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4728
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4729
    |box vmInfo vmErrors displayErrors classInfos|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4730
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4731
    vmInfo := ObjectMemory infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4732
    vmErrors := ObjectMemory debugPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4733
    classInfos := Object infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4734
    displayErrors := DeviceWorkstation errorPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4735
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4736
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4737
    box label:(resources string:'Messages').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4738
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4739
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4740
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4741
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4742
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4743
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4744
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4745
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4746
    box addHelpButtonFor:'Launcher/messageSettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4747
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4748
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4749
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4750
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4751
        ObjectMemory infoPrinting:vmInfo value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4752
        ObjectMemory debugPrinting:vmErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4753
        Object infoPrinting:classInfos value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4754
        DeviceWorkstation errorPrinting:displayErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4755
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4756
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4757
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4758
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4759
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4760
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4761
miscSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4762
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4763
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4764
    |box shadows takeFocus returnFocus
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4765
     hostNameInLabel showAccelerators 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4766
     preemptive hostNameInLabelHolder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4767
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4768
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4769
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4770
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4771
    shadows := PopUpView shadows asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4772
    hostNameInLabel := StandardSystemView includeHostNameInLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4773
    hostNameInLabelHolder := hostNameInLabel asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4774
    returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4775
    takeFocus := StandardSystemView takeFocusWhenMapped asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4776
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4777
    showAccelerators := MenuView showAcceleratorKeys asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4778
    preemptive := Processor isTimeSlicing asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4779
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4780
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4781
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4782
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4783
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4784
    box label:(resources string:'Other settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4785
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4786
    box addCheckBox:(resources string:'shadows under popup views') on:shadows.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4787
    box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4788
    box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4789
    box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4790
    box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4791
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4792
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4793
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4794
    box addCheckBox:(resources string:'preemptive scheduling') on:preemptive.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4795
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4796
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4797
        addHelpButtonFor:'Launcher/miscSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4798
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4799
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4800
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4801
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4802
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4803
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4804
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4805
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4806
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4807
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4808
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4809
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4810
        PopUpView shadows:shadows value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4811
        hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4812
            StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4813
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4814
            Screen allScreens do:[:aDisplay |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4815
                aDisplay allViewsDo:[:aView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4816
                    |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4817
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4818
                    aView isTopView ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4819
                        l := aView label.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4820
                        aView label:(l , ' '); label:l.  "/ force a change
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4821
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4822
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4823
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4824
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4825
        StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4826
        StandardSystemView takeFocusWhenMapped:takeFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4827
        MenuView showAcceleratorKeys:showAccelerators value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4828
        Processor isTimeSlicing ~~ preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4829
            preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4830
                Processor startTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4831
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4832
                Processor stopTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4833
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4834
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4835
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4836
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4837
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4838
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4839
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4840
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4841
printerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4842
    "open a dialog on printer related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4843
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4844
    |box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4845
     possiblePrinters possibleTypes printerType printCommand 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4846
     pageFormat landscape updater
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4847
     formatLabel formatComponent landscapeLabel landscapeComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4848
     topMargin leftMargin rightMargin bottomMargin unitList unit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4849
     topMarginComponent leftMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4850
     rightMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4851
     bottomMarginComponent supportsColor supportsColorComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4852
     y y1 commandListPop component commandList row|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4853
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4854
    possiblePrinters := PrinterStream withAllSubclasses asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4855
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4856
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4857
    printerType := SelectionInList new list:(resources array:possibleTypes).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4858
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4859
    printCommand := Printer printCommand asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4860
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4861
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4862
    pageFormat selection:(Printer pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4863
    landscape := Printer landscape asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4864
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4865
    topMargin := Printer topMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4866
    leftMargin := Printer leftMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4867
    rightMargin := Printer rightMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4868
    bottomMargin := Printer bottomMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4869
    supportsColor := Printer supportsColor asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4870
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4871
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4872
    box label:(resources string:'Printer settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4873
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4874
"/ either use a popUpList ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4875
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4876
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4877
"/ or a comboList;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4878
"/ which one looks better ?
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4879
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4880
    component := box addTextLabel:(resources string:'printer type:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4881
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4882
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4883
    component := box addComboListOn:printerType tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4884
    component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4885
    component width:0.75; left:0.25.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4886
"/ end of question
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4887
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4888
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4889
    component := box addTextLabel:(resources string:'print command:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4890
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4891
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4892
    commandListPop := box addComboBoxOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4893
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4894
    commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4895
    "/ some common print commands ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4896
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4897
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4898
    commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4899
        commandList := PrinterStream defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4900
        commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4901
            commandList := #('lpr' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4902
                             'lp' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4903
                            ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4904
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4905
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4906
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4907
    commandListPop list:commandList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4908
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4909
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4910
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4911
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4912
    row := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4913
    row add:(formatLabel := Label label:(resources string:'page format:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4914
    formatLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4915
    row add:(formatComponent := PopUpList on:pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4916
    formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4917
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4918
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4919
    landscapeLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4920
    row add:(landscapeComponent := CheckToggle on:landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4921
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4922
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4923
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4924
        addRow:(1 to:2)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4925
        fromX:0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4926
        toX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4927
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4928
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4929
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4930
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4931
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4932
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4933
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4934
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4935
        addRow:(3 to:4)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4936
        fromX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4937
        toX:1.0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4938
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4939
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4940
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4941
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4942
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4943
    box yPosition:(box yPosition max:y1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4944
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4945
    box makeTabable:(formatComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4946
    box makeTabable:(landscapeComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4947
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4948
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4949
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4950
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4951
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4952
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4953
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4954
    topMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4955
        addLabelledInputField:(resources string:'top margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4956
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4957
        on:nil "/ topMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4958
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4959
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4960
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4961
    topMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4962
    topMarginComponent model:topMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4963
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4964
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4965
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4966
    unitList := SelectionInList with:#('inch' 'mm').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4967
    unitList selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4968
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4969
    component := box addComponent:(PopUpList on:unitList).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4970
    component
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4971
        left:0.6;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4972
        width:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4973
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4974
    box yPosition:y1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4975
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4976
    leftMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4977
        addLabelledInputField:(resources string:'left margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4978
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4979
        on:nil "/ leftMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4980
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4981
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4982
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4983
    leftMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4984
    leftMarginComponent model:leftMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4985
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4986
    rightMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4987
        addLabelledInputField:(resources string:'right margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4988
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4989
        on:nil "/ rightMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4990
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4991
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4992
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4993
    rightMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4994
    rightMarginComponent model:rightMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4995
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4996
    bottomMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4997
        addLabelledInputField:(resources string:'bottom margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4998
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4999
        on:nil "/ bottomMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5000
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5001
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5002
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5003
    bottomMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5004
    bottomMarginComponent model:bottomMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5005
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5006
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5007
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5008
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5009
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5010
    updater := [ |p fg hasPageSize hasMargins|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5011
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5012
                       printerType selectionIndex ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5013
                           p := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5014
                           hasPageSize := p supportsPageSizes. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5015
                           hasMargins := p supportsMargins. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5016
                       ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5017
                           hasPageSize := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5018
                           hasMargins := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5019
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5020
                       hasPageSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5021
                          fg := Button new foregroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5022
                          formatComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5023
                          landscapeComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5024
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5025
                          formatComponent label:p pageFormat.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5026
                          pageFormat value:(p pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5027
                          landscape value:(p landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5028
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5029
                          fg := Button new disabledForegroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5030
                          formatComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5031
                          landscapeComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5032
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5033
                          formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5034
                          landscape value:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5035
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5036
                       hasMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5037
                          unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5038
                              unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5039
                          ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5040
                              unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5041
                          ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5042
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5043
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5044
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5045
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5046
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5047
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5048
                          topMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5049
                          leftMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5050
                          rightMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5051
                          bottomMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5052
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5053
                          topMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5054
                          leftMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5055
                          rightMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5056
                          bottomMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5057
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5058
                       formatLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5059
                       landscapeLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5060
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5061
                       p notNil ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5062
                           commandList := p defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5063
                           commandList notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5064
                                commandListPop list:commandList 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5065
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5066
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5067
                           printCommand value:(p printCommand).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5068
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5069
                       p supportsPostscript ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5070
                           supportsColorComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5071
                           supportsColor value:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5072
                       ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5073
                           supportsColorComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5074
                           supportsColor value:(Printer supportsColor).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5075
                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5076
                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5077
    unitList onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5078
    printerType onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5079
    updater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5080
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5081
    box addVerticalSpace;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5082
        addHelpButtonFor:'Launcher/printerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5083
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5084
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5085
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5086
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5087
        Printer := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5088
        Printer printCommand:printCommand value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5089
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5090
        Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5091
            Printer pageFormat:(pageFormat selection).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5092
            Printer landscape:(landscape value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5093
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5094
        Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5095
            unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5096
                unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5097
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5098
                unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5099
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5100
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5101
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5102
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5103
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5104
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5105
        Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5106
            Printer supportsColor:supportsColor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5107
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5108
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5109
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5110
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5111
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5112
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5113
restoreSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5114
    "restore settings from a settings-file."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5115
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5116
    "a temporary kludge - we need a central systemSettings object for this,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5117
     which can be saved/restored with a single store/read."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5118
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5119
    |fileName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5120
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5121
    fileName := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5122
        requestFileName:(resources string:'restore settings from:') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5123
        default:'settings.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5124
        ok:(resources string:'restore') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5125
        abort:(resources string:'cancel') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5126
        pattern:'*.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5127
        fromDirectory:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5128
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5129
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5130
        "/ canceled
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5131
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5132
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5133
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5134
    self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5135
        Smalltalk fileIn:fileName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5136
        self reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5137
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5138
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5139
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5140
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5141
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5142
saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5143
    "save settings to a settings-file."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5144
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5145
    "a temporary kludge - we need a central systemSettings object for this,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5146
     which can be saved/restored with a single store/read."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5147
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5148
    |s screen fileName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5149
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5150
    fileName := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5151
        requestFileName:(resources string:'save settings in:') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5152
        default:'settings.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5153
        ok:(resources string:'save') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5154
        abort:(resources string:'cancel') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5155
        pattern:'*.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5156
        fromDirectory:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5157
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5158
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5159
        "/ canceled
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5160
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5161
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5162
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5163
    s := fileName asFilename writeStream.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5164
    s isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5165
        self warn:'cannot write the ''' , fileName , ''' file'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5166
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5167
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5168
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5169
    s nextPutLine:'"/ ST/X saved settings';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5170
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5171
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5172
      nextPutLine:'"/';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5173
      nextPutLine:'"/ this file was automatically generated by the';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5174
      nextPutLine:'"/ ''save settings'' function of the Launcher';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5175
      nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5176
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5177
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5178
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5179
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5180
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5181
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5182
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5183
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5184
    s nextPutLine:'"/ Display settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5185
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5186
    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5187
    s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5188
      screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5189
      screen fixColors notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5190
        s nextPutLine:'  Image flushDeviceImages.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5191
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5192
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5193
        s nextPutLine:'  ].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5194
      ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5195
        s nextPutLine:'  Display releaseFixColors.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5196
      ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5197
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5198
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5199
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5200
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5201
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5202
      s nextPutLine:'  View defaultStyle:(View defaultStyle). "/ to flush any device images'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5203
    s nextPutLine:'].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5204
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5205
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5206
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5207
    s nextPutLine:'"/ Compiler settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5208
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5209
    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5210
      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5211
      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5212
      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5213
      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5214
      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5215
      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5216
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5217
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5218
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5219
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5220
      nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5221
      nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5222
      nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5223
      nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5224
      nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5225
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5226
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5227
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5228
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5229
    HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5230
        HistoryManager isActive ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5231
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5232
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5233
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5234
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5235
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5236
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5237
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5238
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5239
        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5240
        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5241
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5242
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5243
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5244
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5245
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5246
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5247
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5248
    s nextPutLine:'"/ Info & Debug Messages:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5249
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5250
    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5251
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5252
      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5253
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5254
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5255
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5256
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5257
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5258
    s nextPutLine:'"/ Misc settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5259
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5260
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5261
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5262
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5263
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5264
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5265
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5266
      "/ claus - I dont think its a good idea to save those ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5267
      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5268
      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5269
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5270
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5271
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5272
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5273
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5274
    (Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5275
        s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5276
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5277
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5278
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5279
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5280
    s nextPutLine:'"/ Printer settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5281
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5282
    s nextPutLine:'Printer := ' , (Printer name) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5283
      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5284
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5285
    Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5286
        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5287
        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5288
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5289
    Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5290
        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5291
        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5292
        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5293
        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5294
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5295
    Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5296
        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5297
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5298
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5299
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5300
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5301
    s nextPutLine:'"/ Font settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5302
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5303
    s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5304
    s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5305
    s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5306
    s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5307
    s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5308
    s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5309
    s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5310
    s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5311
    s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5312
    s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5313
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5314
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5315
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5316
    s nextPutLine:'"/ Language setting:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5317
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5318
    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5319
    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5320
    s close.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5321
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5322
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5323
     Transcript topView application saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5324
    " 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5325
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5326
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5327
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5328
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5329
sourceAndDebuggerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5330
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5331
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5332
    |box check logDoits updChanges changeFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5333
     useManager hasManager 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5334
     repository repositoryHolder localSourceFirst 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5335
     sourceCacheDir cacheEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5336
     component localCheck oldIndent nm fn manager
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5337
     keepMethodHistory showErrorNotifier showVerboseStack|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5338
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5339
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5340
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5341
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5342
    keepMethodHistory := Class methodHistory notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5343
    logDoits := Smalltalk logDoits asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5344
    updChanges := Class updatingChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5345
    changeFileName := ObjectMemory nameForChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5346
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5347
    hasManager := AbstractSourceCodeManager notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5348
                  and:[AbstractSourceCodeManager isLoaded].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5349
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5350
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5351
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5352
        localSourceFirst := Class tryLocalSourceFirst asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5353
        manager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5354
            repository := manager repositoryName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5355
            repository notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5356
                repositoryHolder := repository asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5357
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5358
                repositoryHolder := '' asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5359
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5360
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5361
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5362
        useManager := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5363
        localSourceFirst := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5364
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5365
    showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5366
    showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5367
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5368
    sourceCacheDir := nil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5369
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5370
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5371
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5372
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5373
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5374
    box label:(resources string:'Source & Debugger settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5375
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5376
    box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5377
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5378
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5379
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5380
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5381
                    addLabelledInputField:(resources string:'change file name:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5382
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5383
                    on:changeFileName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5384
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5385
                    separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5386
    component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5387
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5388
"/    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5389
"/    component := box addTextLabel:(resources string:'change file name:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5390
"/    component width:0.5; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5391
"/    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5392
"/    component := box addInputFieldOn:changeFileName tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5393
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5394
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5395
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5396
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5397
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5398
        check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5399
        oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5400
        box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5401
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5402
        repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5403
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5404
                            addLabelledInputField:(resources string:'repository:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5405
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5406
                            on:repositoryHolder 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5407
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5408
                            separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5409
            component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5410
            component enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5411
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5412
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5413
        cacheEntry := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5414
                        addLabelledInputField:(resources string:'source cache dir:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5415
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5416
                        on:sourceCacheDir 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5417
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5418
                        separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5419
        cacheEntry immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5420
        cacheEntry enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5421
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5422
        localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5423
        localCheck enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5424
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5425
        box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5426
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5427
        (AbstractSourceCodeManager isNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5428
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5429
            useManager value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5430
            cacheEntry disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5431
            check disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5432
            localCheck enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5433
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5434
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5435
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5436
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5437
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5438
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5439
    box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5440
    box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5441
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5442
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5443
        addHelpButtonFor:'Launcher/sourceSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5444
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5445
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5446
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5447
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5448
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5449
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5450
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5451
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5452
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5453
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5454
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5455
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5456
        Class keepMethodHistory:keepMethodHistory value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5457
        Smalltalk logDoits:logDoits value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5458
        Class updateChanges:updChanges value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5459
        ObjectMemory nameForChanges:changeFileName value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5460
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5461
        (hasManager and:[useManager value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5462
            manager isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5463
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5464
                manager := Smalltalk at:#SourceCodeManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5465
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5466
            Class tryLocalSourceFirst:(localSourceFirst value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5467
            localSourceFirst value ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5468
                nm := sourceCacheDir value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5469
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5470
                (fn := nm asFilename) exists ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5471
                    (self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5472
                        fn makeDirectory; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5473
                           makeReadableForAll;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5474
                           makeWritableForAll;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5475
                           makeExecutableForAll.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5476
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5477
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5478
                (fn exists 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5479
                and:[fn isDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5480
                and:[fn isReadable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5481
                and:[fn isWritable]]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5482
                    AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5483
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5484
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5485
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5486
            repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5487
                repositoryHolder value size > 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5488
                    manager initializeForRepository:repositoryHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5489
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5490
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5491
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5492
            showErrorNotifier value ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5493
                Exception emergencyHandler:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5494
            ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5495
                Exception emergencyHandler:(Launcher notifyingEmergencyHandler)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5496
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5497
            DebugView defaultVerboseBacktrace:(showVerboseStack value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5498
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5499
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5500
            Smalltalk at:#SourceCodeManager put:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5501
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5502
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5503
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5504
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5505
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5506
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5507
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5508
viewStyleSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5509
    "open a dialog on viewStyle related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5510
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5511
    |listOfStyles resourceDir dir box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5512
     list listView scrView infoLabel infoForwarder newStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5513
     someRsrcFile b didApply|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5514
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5515
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5516
     search resources directory for a list of .style files ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5517
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5518
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5519
    someRsrcFile notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5520
        resourceDir := someRsrcFile asFilename directoryName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5521
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5522
        resourceDir := Smalltalk getSystemFileName:'resources'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5523
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5524
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5525
    resourceDir isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5526
        self warn:'no styles found (missing ''resources'' directory)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5527
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5528
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5529
    dir := resourceDir asFilename directoryContents.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5530
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5531
    listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5532
    listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5533
    Filename isCaseSensitive ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5534
        listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5535
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5536
    listOfStyles sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5537
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5538
"/ old code: used a standard ListSelectionBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5539
"/ changed to intercept selection and add info-output.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5540
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5541
"/    box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5542
"/    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5543
"/    box list:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5544
"/    box initialText:View defaultStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5545
"/    box selectAction:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5546
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5547
"/    box action:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5548
"/        transcript topView withCursor:Cursor wait do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5549
"/            transcript showCR:'change style to ' , newStyle , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5550
"/            View defaultStyle:newStyle asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5551
"/        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5552
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5553
"/    box showAtPointer
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5554
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5555
"/ new code: build box 'by 'hand'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5556
"/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5557
    infoForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5558
                        |nm sheet comment|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5559
                        nm := list selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5560
                        sheet := ViewStyle fromFile:(nm , '.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5561
                        comment := sheet at:#comment ifAbsent:''.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5562
                        infoLabel label:comment withCRs asStringCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5563
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5564
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5565
    list := SelectionInList with:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5566
    list onChangeSend:#value to:infoForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5567
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5568
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5569
    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5570
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5571
    (box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5572
    listView := SelectionInListView on:list.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5573
    listView doubleClickAction:[:sel | box accept value:true. box hide].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5574
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5575
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5576
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5577
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5578
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5579
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5580
    box addAbortButton.
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  5581
    "b := box addButton:(Button label:(resources string:'apply'))."
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  5582
    "b action:[didApply := true. self changeViewStyleTo:(list selection)]."
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5583
    box addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5584
    list selection:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5585
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5586
    box stickAtBottomWithVariableHeight:scrView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5587
    box stickAtBottomWithFixHeight:infoLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5588
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5589
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5590
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5591
        ((newStyle := list selection) ~= View defaultStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5592
        or:[didApply ~~ true]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5593
            self changeViewStyleTo:newStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5594
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5595
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5596
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5597
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5598
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5599
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5600
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5601
!NewLauncher methodsFor:'action - projects'!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5602
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5603
newProject 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5604
    "creates a new project & opens a projectView for it"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5605
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5606
    Project notNil ifTrue: [(ProjectView for: Project new) open]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5607
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5608
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5609
selectProject
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5610
    "asks for and switch to another project"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5611
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5612
    |list box|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5613
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5614
    Project notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5615
        list := Project allInstances.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5616
        box := ListSelectionBox new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5617
        box list:(list collect:[:p | p name]).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5618
        box title:(resources string:'select a project').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5619
        box action:[:selection |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5620
            |project|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5621
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5622
            project := list detect:[:p | p name = selection] ifNone:[nil].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5623
            project isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5624
                transcript showCR:'no such project.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5625
            ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5626
                project showViews.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5627
                Project current:project
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5628
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5629
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5630
        box showAtPointer.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5631
        box destroy
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5632
    ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5633
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5634
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5635
!NewLauncher methodsFor:'action - settings'!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5636
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5637
changeFont
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5638
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5639
    |viewClassName updateFontLabelBlock viewClass|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5640
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5641
    viewClassName := (self settingsAspects at: #selectionOfViewClass) value name.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5642
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5643
    viewClass := Smalltalk at: viewClassName asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5644
    viewClass defaultFont: (self chooseFontFromViewClass: viewClass).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5645
    self updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5646
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5647
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5648
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5649
changeFontFor: viewClassName
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5650
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5651
    viewClassName = 'All'     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5652
    ifTrue: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5653
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5654
        |choosedFontForAll|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5655
        choosedFontForAll := self chooseFontFromViewClass: View.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5656
        SimpleView withAllSubclasses do: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5657
        [:viewCls|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5658
            viewCls defaultFont: choosedFontForAll.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5659
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5660
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5661
    viewClassName = 'Default' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5662
    ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5663
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5664
        SimpleView updateAllStyleCaches.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5665
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5666
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5667
    self updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5668
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5669
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5670
chooseFontFromViewClass: aViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5671
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5672
    ^FontPanel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5673
        fontFromUserInitial: aViewClass defaultFont 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5674
        title:(resources string:'font for %1' with:aViewClass name)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5675
        filter:nil
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5676
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5677
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5678
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5679
createAspectsForFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5680
    "create aspects for font settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5681
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5682
    |listOfViewClasses selectionOfViewClass updatePreviewFontLabelBlock|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5683
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5684
    listOfViewClasses := (TreeItem newAsTreeFromSmalltalkClass: (Smalltalk at:#SimpleView)).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5685
    selectionOfViewClass := listOfViewClasses asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5686
    selectionOfViewClass onChangeSend:#updatePreviewFontLabel to: self.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5687
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5688
    self settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5689
        at: #listOfViewClasses           put: listOfViewClasses;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5690
        at: #selectionOfViewClass        put: selectionOfViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5691
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5692
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5693
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5694
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5695
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5696
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5697
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5698
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5699
createAspectsForKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5700
    "create aspects for keyboard settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5701
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5702
    |mappings listOfRawKeys listOfFunctions list1 list2 selectionForwarder macroForwarder keyMacroText|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5703
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5704
    mappings := Screen current keyboardMap.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5705
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5706
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5707
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5708
    keyMacroText := ValueHolder new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5709
    selectionForwarder := Plug new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5710
    selectionForwarder respondTo:#showFunction
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5711
    with:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5712
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5713
        |raw|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5714
        raw := list1 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5715
        list2 retractInterestsFor:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5716
        list2 selection:(mappings at:raw asSymbol) asString.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5717
        list2 onChangeSend:#showRawKey to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5718
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5719
    selectionForwarder respondTo:#showRawKey
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5720
    with:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5721
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5722
        |f raw|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5723
        f := list2 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5724
        list1 retractInterestsFor:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5725
        raw := mappings keyAtValue:f asString.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5726
        raw isNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5727
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5728
        [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5729
            raw := mappings keyAtValue:f first.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5730
            raw isNil ifTrue: [raw := mappings keyAtValue:f asSymbol]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5731
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5732
        list1 selection:raw.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5733
        list1 onChangeSend:#showFunction to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5734
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5735
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5736
    macroForwarder := 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5737
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5738
        |f macro indent|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5739
        f := list2 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5740
        (f startsWith:'Cmd') ifTrue:[f := f copyFrom:4].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5741
        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5742
        macro notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5743
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5744
        [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5745
            macro := macro asStringCollection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5746
            indent := macro
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5747
                inject:99999 into:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5748
                [:min :element|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5749
                     |stripped|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5750
                     stripped := element withoutLeadingSeparators.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5751
                     stripped size == 0 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5752
                        ifTrue:[min] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5753
                        ifFalse:[min min:(element size - stripped size)]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5754
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5755
            indent ~~ 0 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5756
            ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5757
            [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5758
                macro := macro collect:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5759
                [:line | 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5760
                     line size > indent 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5761
                        ifTrue:[line copyFrom:indent+1] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5762
                        ifFalse:[line]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5763
                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5764
            ]                        
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5765
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5766
        keyMacroText value:macro
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5767
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5768
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5769
    list1 := SelectionInList with:listOfRawKeys.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5770
    list1 onChangeSend:#showFunction to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5771
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5772
    list2 := SelectionInList with:listOfFunctions.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5773
    list2 onChangeSend:#showRawKey to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5774
    list2 onChangeSend:#value to:macroForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5775
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5776
    self settingsAspects 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5777
        at: #listOfRawKeys   put: list1;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5778
        at: #listOfFunctions put: list2;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5779
        at: #keyMacroText    put: keyMacroText;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5780
        at: #help            put: [self showDocumentation:'Launcher/keyboardSetting.html'];
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5781
        at: #dismiss         put: []
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5782
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5783
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5784
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5785
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5786
createAspectsForLanguageSettings 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5787
    "create aspects for language settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5788
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5789
    |listOfLanguages translatedLanguages switch box languageList flags|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5790
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5791
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5792
    listOfLanguages := listOfLanguages asOrderedCollection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5793
    translatedLanguages := listOfLanguages collect:[:lang | |item|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5794
                                        item := resources at:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5795
                                        item isString ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5796
                                            item
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5797
                                        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5798
                                            item at:1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5799
                                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5800
                                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5801
    flags := listOfLanguages collect:[:lang | |item|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5802
                                        item := resources at:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5803
                                        item isArray ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5804
                                            item at:2
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5805
                                        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5806
                                            nil
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5807
                                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5808
                                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5809
    flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5810
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5811
    languageList := translatedLanguages with:flags collect:[:lang :flag |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5812
                                LabelAndIcon icon:flag string:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5813
                        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5814
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5815
    self settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5816
        at: #listOfLanguages put: languageList asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5817
        at: #selectionOflanguage put: Language asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5818
        at: #apply put: [:newLanguage |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5819
        self withWaitCursorDo:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5820
            |fontPref idx language oldLanguage enc answer matchingFonts|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5821
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5822
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5823
            idx ~~ 0 ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5824
                language := listOfLanguages at:idx
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5825
            ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5826
                language := newLanguage
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5827
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5828
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5829
            "/ check if the new language needs a differently encoded font;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5830
            "/ ask user to switch font and allow cancellation.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5831
            "/ Otherwise, you are left with unreadable menu & button items ...
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5832
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5833
            oldLanguage := Smalltalk language.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5834
            Smalltalk language:language asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5835
            ResourcePack flushCachedResourcePacks.
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5836
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5837
            Smalltalk language:oldLanguage.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5838
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5839
            switch := true.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5840
            enc := MenuView defaultFont encoding.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5841
            (fontPref match:enc) ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5842
                "/ look if there is one at all.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5843
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5844
                matchingFonts size == 0 ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5845
                    (Dialog 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5846
                        confirm:(resources 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5847
                                    string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5848
                                      with:fontPref) withCRs)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5849
                    ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5850
                        switch := false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5851
                    ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5852
                ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5853
                    answer := Dialog 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5854
                                confirmWithCancel:(resources 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5855
                                                        string:'menu font is not %1-encoded.\\Change it ?'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5856
                                                        with:fontPref) withCRs
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5857
                                           labels:(resources
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5858
                                                        array:#('cancel' 'no' 'yes'))
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5859
                                           default:3.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5860
                    answer isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5861
                        switch := false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5862
                    ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5863
                        answer ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5864
                            switch := (self fontBoxForEncoding:fontPref)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5865
                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5866
                    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5867
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5868
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5869
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5870
            switch ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5871
                transcript showCR:'change language to ' , newLanguage , ' ...'.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5872
                Smalltalk language:language asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5873
                ResourcePack flushCachedResourcePacks
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5874
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5875
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5876
        switch ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5877
            self reOpen.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5878
            DebugView newDebugger.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5879
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5880
    ].
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5881
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5882
    "Modified: / 6.2.1998 / 00:00:58 / cg"
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5883
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5884
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5885
createAspectsForMemorySettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5886
    "create aspects for memory settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5887
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5888
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5889
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5890
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5891
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5892
createAspectsForMessagesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5893
    "create aspects for messages settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5894
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5895
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5896
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5897
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5898
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5899
createAspectsForMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5900
    "create aspects for misc settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5901
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5902
    |shadowsUnderPopupViews boxesReturnsFocus viewsCatchFocus hostnameInWindowLabels showAccelerators|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5903
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5904
    shadowsUnderPopupViews := PopUpView shadows asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5905
    shadowsUnderPopupViews onChangeSend: #value  to: [PopUpView shadows: shadowsUnderPopupViews value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5906
    boxesReturnsFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5907
    boxesReturnsFocus onChangeSend: #value  to: [StandardSystemView returnFocusWhenClosingModalBoxes: boxesReturnsFocus value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5908
    viewsCatchFocus := StandardSystemView takeFocusWhenMapped asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5909
    viewsCatchFocus onChangeSend: #value  to: [StandardSystemView takeFocusWhenMapped: viewsCatchFocus value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5910
    hostnameInWindowLabels := StandardSystemView includeHostNameInLabel asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5911
    hostnameInWindowLabels onChangeSend: #value  to: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5912
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5913
        hostnameInWindowLabels value ~~ StandardSystemView includeHostNameInLabel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5914
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5915
        [ 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5916
            StandardSystemView includeHostNameInLabel:hostnameInWindowLabels value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5917
            Screen allScreens do:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5918
            [:aDisplay|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5919
                aDisplay allViewsDo:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5920
                [:aView|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5921
                    |l|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5922
                    aView isTopView ifTrue: [l := aView label.aView label:(l , ' '); label:l]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5923
                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5924
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5925
        ] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5926
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5927
    showAccelerators := MenuView showAcceleratorKeys asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5928
    showAccelerators onChangeSend: #value  to: [MenuView showAcceleratorKeys: showAccelerators value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5929
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5930
    self settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5931
        at: #shadowsUnderPopupViews put: shadowsUnderPopupViews;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5932
        at: #boxesReturnsFocus      put: boxesReturnsFocus;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5933
        at: #viewsCatchFocus        put: viewsCatchFocus;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5934
        at: #hostnameInWindowLabels put: hostnameInWindowLabels;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5935
        at: #showAccelerators       put: showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5936
    
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5937
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5938
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5939
createAspectsForPrinterSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5940
    "create aspects for printer settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5941
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5942
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5943
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5944
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5945
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5946
createAspectsForScreenSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5947
    "create aspects for screen settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5948
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5949
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5950
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5951
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5952
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5953
createAspectsForSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5954
    "create aspects for sources settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5955
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5956
    |rememberChangedMethods logCompilesInChangesFile logDoItsInChangesFile 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5957
    sourceCodeFromSourceCodeManagement hasSourceCodeManager manager directoryOfSourceCodeCache
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5958
    nameOfChangesFile directoryOfRepository useLocalSourceCode|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5959
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5960
    rememberChangedMethods := Class methodHistory notNil asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5961
    rememberChangedMethods onChangeSend: #value to: [Class keepMethodHistory: rememberChangedMethods value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5962
    logCompilesInChangesFile := Class updatingChanges asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5963
    logCompilesInChangesFile onChangeSend: #value to: [Class updateChanges: logCompilesInChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5964
    logDoItsInChangesFile := Smalltalk logDoits asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5965
    logDoItsInChangesFile onChangeSend: #value to: [Smalltalk logDoits: logDoItsInChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5966
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5967
    nameOfChangesFile := ObjectMemory nameForChanges asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5968
    nameOfChangesFile onChangeSend: #value to: [ObjectMemory nameForChanges:nameOfChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5969
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5970
    hasSourceCodeManager := AbstractSourceCodeManager notNil and:[AbstractSourceCodeManager isLoaded].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5971
    sourceCodeFromSourceCodeManagement := (hasSourceCodeManager and: [(manager := Smalltalk at:#SourceCodeManager) notNil]) asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5972
    sourceCodeFromSourceCodeManagement onChangeSend: #value to: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5973
    [sourceCodeFromSourceCodeManagement value 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5974
        ifTrue:  [Smalltalk at:#SourceCodeManager put: AbstractSourceCodeManager defaultManager]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5975
        ifFalse: [Smalltalk at:#SourceCodeManager put: nil]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5976
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5977
    manager notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5978
    ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5979
    [   
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5980
        |repository|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5981
        repository := manager repositoryName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5982
        repository notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5983
            directoryOfRepository := repository asValue
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5984
        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5985
            directoryOfRepository := '' asValue
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5986
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5987
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5988
    directoryOfRepository onChangeSend: #value to: [manager initializeForRepository: directoryOfRepository value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5989
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5990
    directoryOfSourceCodeCache := AbstractSourceCodeManager cacheDirectoryName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5991
    directoryOfSourceCodeCache onChangeSend: #value to: [].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5992
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5993
    useLocalSourceCode := Class tryLocalSourceFirst asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5994
    useLocalSourceCode onChangeSend: #value to: [Class tryLocalSourceFirst: useLocalSourceCode value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5995
    
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5996
    self settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5997
        at: #rememberChangedMethods put: rememberChangedMethods;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5998
        at: #logCompilesInChangesFile put: logCompilesInChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5999
        at: #logDoItsInChangesFile put: logDoItsInChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6000
        at: #hasSourceCodeManager  put: hasSourceCodeManager asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6001
        at: #nameOfChangesFile put: nameOfChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6002
        at: #sourceCodeFromSourceCodeManagement put: sourceCodeFromSourceCodeManagement;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6003
        at: #directoryOfRepository put: directoryOfRepository;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6004
        at: #directoryOfSourceCodeCache put: directoryOfSourceCodeCache;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6005
        at: #useLocalSourceCode put: useLocalSourceCode
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6006
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6007
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6008
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6009
createAspectsForViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6010
    "open a dialog on viewStyle related settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6011
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6012
    |listOfStyles resourceDir dir listOfViewStyles selection infoLabel infoForwarder someRsrcFile|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6013
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6014
    "search resources directory for a list of .style files ..."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6015
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6016
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6017
    someRsrcFile notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6018
        ifTrue:[resourceDir := someRsrcFile asFilename directoryName] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6019
        ifFalse:[resourceDir := Smalltalk getSystemFileName:'resources'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6020
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6021
    resourceDir isNil ifTrue:[self warn:'no styles found (missing ''resources'' directory)'. ^ self].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6022
    dir := resourceDir asFilename directoryContents.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6023
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6024
    listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6025
    listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6026
    Filename isCaseSensitive 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6027
    ifFalse:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6028
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6029
        listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6030
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6031
    listOfStyles sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6032
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6033
    infoLabel := ValueHolder with: View defaultStyle.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6034
    selection := ValueHolder with: (listOfStyles indexOf: View defaultStyle).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6035
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6036
    infoForwarder := 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6037
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6038
        |nm sheet comment|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6039
        nm := listOfViewStyles selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6040
        sheet := ViewStyle fromFile:(nm , '.style').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6041
        comment := sheet at:#comment ifAbsent:''.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6042
        infoLabel value:comment withCRs asStringCollection asString trimBlanks
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6043
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6044
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6045
    listOfViewStyles := SelectionInList with:listOfStyles.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6046
    listOfViewStyles onChangeSend:#value to:infoForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6047
    listOfViewStyles selectionIndexHolder: selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6048
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6049
    self settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6050
        at: #listOfViewStyles put: listOfViewStyles;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6051
        at: #infoLabel        put: infoLabel;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6052
        at: #apply            put: [self changeViewStyleTo: (listOfStyles at: selection value)]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6053
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6054
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6055
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6056
doForCurrentSettings: aDoKey
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6057
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6058
    (self settingsAspects at: aDoKey asSymbol ifAbsent: [^self warn: 'No action found for ', aDoKey, '!!']) value
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6059
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6060
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6061
openSettingsFor: aSetting
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6062
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6063
    self settingsAspects at: #settingsCanvas put: SubCanvas new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6064
    aSetting = 'StyleSettings' ifTrue: [self selectionOfSettings value: 'Views'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6065
    aSetting = 'SystemSettings' ifTrue: [self selectionOfSettings value: 'Sources'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6066
    super openDialogInterface: (#windowSpecFor, aSetting) asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6067
    settingsAspects := nil.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6068
    self removeAllTemporalViews.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6069
    self builder bindings removeKey: #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6070
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6071
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6072
settingsAspects
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6073
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6074
    ^settingsAspects ? (settingsAspects := IdentityDictionary new)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6075
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6076
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6077
settingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6078
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6079
    ^settingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6080
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6081
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6082
settingsSelection: aSettingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6083
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6084
    settingsSelection := aSettingsSelection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6085
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6086
    self perform: ('createAspectsFor', settingsSelection, 'Settings') asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6087
    (self settingsAspects at: #settingsCanvas) client: self spec: ('windowSpecOf', settingsSelection, 'Settings') asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6088
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6089
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6090
updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6091
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6092
    |viewClassFont viewClass viewClassName|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6093
    viewClassFont := (viewClass := Smalltalk at: (self settingsAspects at: #selectionOfViewClass) value name ifAbsent: [SimpleView]) defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6094
    (self builder componentAt: #fontFamilyLabel_Temporal)   label: 'Family:  '  , viewClassFont family asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6095
    (self builder componentAt: #fontFaceLabel_Temporal)     label: 'Face:  '    , viewClassFont face asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6096
    (self builder componentAt: #fontStyleLabel_Temporal)    label: 'Style:  '   , viewClassFont style asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6097
    (self builder componentAt: #fontSizeLabel_Temporal)     label: 'Size:  '    , viewClassFont size printString asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6098
    (self builder componentAt: #fontEncodingLabel_Temporal) label: 'Encoding:  ', viewClassFont encoding asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6099
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6100
     (viewClassName := viewClass name) size > 10
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6101
        ifTrue:  [viewClassName := (viewClassName copyFrom: 1 to: 10) asBoldText, '...']
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6102
        ifFalse: [viewClassName := viewClassName asBoldText].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6103
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6104
    (self builder componentAt: #changeFontButton_Temporal)  
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6105
        sizeFixed: true;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6106
        label: 'Change Font of ', viewClassName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6107
    
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6108
    (self builder componentAt: #previewFontLabel_Temporal)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6109
         font: viewClassFont;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6110
         label: 'The quick brown fox jumps over the lazy dog
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6111
1234567890!!@#$%^&*(){}[]:"~;,./<>?äöüÄÖÜßéèêÅ©'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6112
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6113
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6114
!NewLauncher methodsFor:'action - tools'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6115
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6116
compressingGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6117
    "perform a compressing garbageCollect"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6118
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6119
    ObjectMemory verboseGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6120
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6121
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6122
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6123
deIconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6124
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6125
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6126
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6127
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6128
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6129
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6130
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6131
            aTopView expand
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6132
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6133
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6134
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6135
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6136
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6137
findAndDestroyWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6138
    "find a window (by name) and destroy it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6139
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6140
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6141
    v := self findWindow:'select view to close:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6142
    v notNil ifTrue:[v destroy]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6143
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6144
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6145
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6146
findAndRaiseWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6147
    "find a window (by name) and raise it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6148
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6149
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6150
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6151
    v := self findWindow:'select view to raise deiconified:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6152
    v notNil ifTrue:[v raiseDeiconified]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6153
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6154
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6155
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6156
fullScreenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6157
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6158
     save the contents of the whole screen."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6159
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6160
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6161
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6162
                        self 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6163
                            saveScreenImage:(Image fromScreen) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6164
                            defaultName:'screen'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6165
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6166
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6167
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6168
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6169
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6170
garbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6171
    "perform a non-compressing garbageCollect"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6172
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6173
    ObjectMemory reclaimSymbols
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6174
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6175
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6176
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6177
iconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6178
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6179
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6180
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6181
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6182
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6183
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6184
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6185
            aTopView collapse
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6186
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6187
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6188
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6189
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6190
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6191
pickAView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6192
    "let user pick a view and return it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6193
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6194
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6195
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6196
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6197
    v := Screen current viewFromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6198
    v isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6199
        self warn:'Sorry, this is not a smalltalk view'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6200
        ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6201
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6202
    ^ v
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6203
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6204
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6205
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6206
screenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6207
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6208
     let user specify a rectangular area on the screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6209
     and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6210
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6211
    |area|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6212
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6213
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6214
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6215
                        [Screen current leftButtonPressed] whileTrue:[Processor yield].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6216
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6217
                        area := Rectangle fromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6218
                        (area width > 0 and:[area height > 0]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6219
                            self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6220
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6221
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6222
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6223
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6224
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6225
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6226
startLatencyMonitor
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6227
    "open an interruptLatencyMonitor view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6228
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6229
    InterruptLatencyMonitor notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6230
        Autoload autoloadFailedSignal catch:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6231
            InterruptLatencyMonitor autoload.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6232
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6233
        InterruptLatencyMonitor isLoaded ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6234
            InterruptLatencyMonitor open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6235
            ^ self.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6236
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6237
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6238
    self warn:'Sorry - the irq latency monitor is only available
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6239
in the full commercial release'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6240
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6241
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6242
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6243
startOldLauncher
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6244
    Launcher openAt:(self window origin)
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6245
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6246
    "Created: / 5.2.1998 / 19:33:41 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6247
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6248
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6249
startStopEventTrace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6250
    "start/stop event tracing for a particular view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6251
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6252
    |v wg|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6253
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6254
    v := Screen current viewFromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6255
    v notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6256
        v := v topView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6257
        wg := v windowGroup.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6258
        wg notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6259
            "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6260
            "/ toggle eventTrace in its windowGroup
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6261
            "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6262
            wg traceEvents:(wg preEventHook isNil)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6263
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6264
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6265
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6266
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6267
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6268
startWindowTreeView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6269
    "open a windowTree view (on a topView)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6270
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6271
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6272
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6273
    v := self pickAView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6274
    v notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6275
        WindowTreeView openOn:v topView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6276
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6277
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6278
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6279
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6280
viewDestroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6281
    "let user pick a view and destroy it.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6282
     Even allow destroying non-smalltalk views
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6283
     (also for views which I forgot due to some error)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6284
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6285
    |device v id i c|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6286
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6287
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6288
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6289
    device := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6290
    i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6291
    i isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6292
        c := Cursor crossHair
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6293
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6294
        c := Cursor fromImage:i
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6295
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6296
    id := device viewIdFromPoint:(device pointFromUserShowing:c).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6297
    (v := device viewFromId:id) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6298
        v topView destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6299
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6300
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6301
    id = device rootView id ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6302
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6303
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6304
    (Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6305
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6306
        device destroyView:nil withId:id
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6307
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6308
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6309
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6310
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6311
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6312
viewHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6313
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6314
     let user specify a view and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6315
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6316
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6317
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6318
                        |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6319
                        (v := Screen current viewFromUser) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6320
                            self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6321
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6322
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6323
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6324
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6325
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6326
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6327
viewInspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6328
    "let user pick a view and inspect it. Only smalltalk views are allowed"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6329
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6330
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6331
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6332
    (v := self pickAView) notNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6333
    ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6334
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6335
        v inspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6336
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6337
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6338
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6339
1417
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6340
!NewLauncher methodsFor:'active help'!
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6341
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6342
defaultInfoLabel
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6343
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6344
    ^self updateInfo
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6345
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6346
! !
9c3590232965 after showing help text returns to default info label text
tz
parents: 1414
diff changeset
  6347
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6348
!NewLauncher methodsFor:'aspects'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6349
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6350
applicationBuilderPresent
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6351
    ^ false asValue
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6352
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6353
    "Created: / 5.2.1998 / 23:56:10 / cg"
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6354
!
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6355
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6356
enableDangerousMenuItemsInRemoteLauncher
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6357
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6358
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6359
    (holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6360
        builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher put:(holder :=  true asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6361
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6362
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6363
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6364
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6365
selectionOfSettings
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6366
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6367
    |holder|
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6368
    (holder := builder bindingAt:#selectionOfSettings) isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6369
        builder aspectAt:#selectionOfSettings put:(holder :=  
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6370
        AspectAdaptor new subject: self; forAspect: #settingsSelection)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6371
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6372
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6373
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6374
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6375
valueOfApplicationName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6376
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6377
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6378
    (holder := builder bindingAt:#valueOfApplicationName) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6379
        builder aspectAt:#valueOfApplicationName put:(holder :=  'application' asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6380
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6381
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6382
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6383
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6384
valueOfBuildDate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6385
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6386
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6387
    (holder := builder bindingAt:#valueOfBuildDate) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6388
        builder aspectAt:#valueOfBuildDate put:(holder :=  ValueHolder new).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6389
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6390
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6391
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6392
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6393
valueOfConfiguration
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6394
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6395
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6396
    (holder := builder bindingAt:#valueOfConfiguration) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6397
        builder aspectAt:#valueOfConfiguration put:(holder :=  Smalltalk configuration asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6398
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6399
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6400
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6401
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6402
valueOfDefaultLibs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6403
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6404
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6405
    (holder := builder bindingAt:#valueOfDefaultLibs) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6406
        builder aspectAt:#valueOfDefaultLibs put:(holder :=  true asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6407
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6408
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6409
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6410
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6411
valueOfEnablingIfAvailable
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6412
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6413
    |holder|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6414
    (holder := builder bindingAt:#valueOfEnablingIfAvailable) isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6415
        builder aspectAt:#valueOfEnablingIfAvailable put:(holder := false asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6416
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6417
    ^ holder
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6418
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6419
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6420
valueOfLibcomp
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6421
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6422
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6423
    (holder := builder bindingAt:#valueOfLibcomp) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6424
        builder aspectAt:#valueOfLibcomp put:(holder :=  false asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6425
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6426
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6427
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6428
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6429
valueOfLibhtml
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6430
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6431
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6432
    (holder := builder bindingAt:#valueOfLibhtml) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6433
        builder aspectAt:#valueOfLibhtml put:(holder :=  false asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6434
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6435
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6436
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6437
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6438
valueOfLibtool
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6439
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6440
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6441
    (holder := builder bindingAt:#valueOfLibtool) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6442
        builder aspectAt:#valueOfLibtool put:(holder :=  false asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6443
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6444
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6445
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6446
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6447
valueOfLibtool2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6448
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6449
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6450
    (holder := builder bindingAt:#valueOfLibtool2) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6451
        builder aspectAt:#valueOfLibtool2 put:(holder :=  false asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6452
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6453
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6454
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6455
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6456
valueOfLibui
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6457
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6458
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6459
    (holder := builder bindingAt:#valueOfLibui) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6460
        builder aspectAt:#valueOfLibui put:(holder :=  false asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6461
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6462
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6463
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6464
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6465
valueOfLibwidg
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6466
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6467
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6468
    (holder := builder bindingAt:#valueOfLibwidg) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6469
        builder aspectAt:#valueOfLibwidg put:(holder :=  true asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6470
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6471
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6472
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6473
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6474
valueOfLibwidg2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6475
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6476
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6477
    (holder := builder bindingAt:#valueOfLibwidg2) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6478
        builder aspectAt:#valueOfLibwidg2 put:(holder :=  true asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6479
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6480
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6481
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6482
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6483
valueOfStartupClass
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6484
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6485
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6486
    (holder := builder bindingAt:#valueOfStartupClass) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6487
        builder aspectAt:#valueOfStartupClass put:(holder :=  'Smalltalk' asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6488
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6489
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6490
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6491
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6492
valueOfStartupModule
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6493
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6494
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6495
    (holder := builder bindingAt:#valueOfStartupModule) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6496
        builder aspectAt:#valueOfStartupModule put:(holder :=  'librun/main.c' asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6497
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6498
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6499
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6500
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6501
valueOfStartupSelector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6502
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6503
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6504
    (holder := builder bindingAt:#valueOfStartupSelector) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6505
        builder aspectAt:#valueOfStartupSelector put:(holder :=  'start' asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6506
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6507
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6508
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6509
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6510
valueOfSystemLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6511
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6512
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6513
    (holder := builder bindingAt:#valueOfSystemLibraries) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6514
        builder aspectAt:#valueOfSystemLibraries put:(holder :=  '/usr/lib/libc.a /home/tz/stx/support/VGL/vogl/src/libvogl.a' asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6515
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6516
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6517
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6518
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6519
valueOfTargetDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6520
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6521
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6522
    (holder := builder bindingAt:#valueOfTargetDirectory) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6523
        builder aspectAt:#valueOfTargetDirectory put:(holder :=  (Filename homeDirectory asFilename construct: 'application') name asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6524
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6525
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6526
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6527
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6528
valueOfTopDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6529
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6530
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6531
    (holder := builder bindingAt:#valueOfTopDirectory) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6532
        builder aspectAt:#valueOfTopDirectory put:(holder :=  ((PipeStream readingFrom: 'echo $STX_LIBDIR') nextLine, '/..') asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6533
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6534
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6535
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6536
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6537
valueOfUserLibraries
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6538
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6539
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6540
    (holder := builder bindingAt:#valueOfUserLibraries) isNil ifTrue:[
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6541
        builder aspectAt:#valueOfUserLibraries put:(holder :=  LibraryBuilder UserLibraries asValue).
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6542
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6543
    ^ holder
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6544
!
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6545
1466
9f80ba7388b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1465
diff changeset
  6546
vrmlBrowserPresent
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6547
    ^ false asValue
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  6548
1466
9f80ba7388b2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1465
diff changeset
  6549
    "Created: / 6.2.1998 / 00:04:02 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6550
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6551
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6552
!NewLauncher methodsFor:'binding access'!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6553
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6554
aspectFor:aKey
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6555
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6556
    ^self settingsAspects at: aKey ifAbsent: [super aspectFor:aKey]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6557
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  6558
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6559
!NewLauncher methodsFor:'change & update'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6560
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6561
update:something with:aParameter from:changedObject
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6562
    "care for project changes & update my infoView"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6563
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6564
    ((something == #currentProject) or:[changedObject == Project]) ifTrue: [self updateInfo]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6565
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6566
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6567
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6568
updateInfo
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6569
    "update the infoView from the current project"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6570
1420
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  6571
    |project projectName projectDir packageName defNameSpace msg args projectInfo|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6572
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6573
    (Project isNil or:[(project := Project current) isNil]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6574
        projectName := '* none *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6575
        projectDir := '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6576
        packageName := '* none *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6577
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6578
        projectName := project name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6579
        projectDir := project directory.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6580
        packageName := project packageName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6581
        defNameSpace := project defaultNameSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6582
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6583
    defNameSpace isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6584
        defNameSpace := Smalltalk.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6585
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6586
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6587
    defNameSpace == Smalltalk ifTrue:[
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  6588
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'''.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6589
        args := Array 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6590
                    with:projectName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6591
                    with:packageName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6592
                    with:(projectDir contractTo:30).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6593
    ] ifFalse:[
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  6594
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2''  nameSpace: %4'.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6595
        args := Array 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6596
                        with:projectName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6597
                        with:packageName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6598
                        with:(projectDir contractTo:30)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6599
                        with:defNameSpace name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6600
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6601
1420
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  6602
    self valueOfInfoLabel value:(projectInfo := resources string:msg withArgs:args).
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  6603
    ^projectInfo
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6604
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6605
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6606
!NewLauncher methodsFor:'private'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6607
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6608
changeViewStyleTo:newStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6609
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6610
    newStyle notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6611
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6612
            transcript showCR:'change style to ' , newStyle , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6613
            View defaultStyle:newStyle asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6614
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6615
        self reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6616
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6617
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6618
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6619
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6620
findWindow:title
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6621
    "a helper for find & destroy and find & raise operations;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6622
     let user choose a view and return it; return nil on cancel"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6623
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6624
    |knownTopViews nameList box|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6625
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6626
    knownTopViews := IdentitySet new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6627
    Screen allScreens do:[:aScreen |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6628
        aScreen knownViews do:[:aView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6629
            |top showIt wg|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6630
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6631
            aView notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6632
                top := aView topView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6633
                (top isKindOf:DebugView) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6634
                    "/ although modal, show it.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6635
                    showIt := top realized
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6636
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6637
                    wg := top windowGroup.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6638
                    showIt := (wg notNil and:[wg isModal not]).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6639
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6640
                showIt ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6641
                    knownTopViews add:top
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6642
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6643
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6644
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6645
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6646
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6647
    knownTopViews := knownTopViews asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6648
    knownTopViews sort:[:v1 :v2 | |l1 l2|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6649
                                l1 := v1 label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6650
                                l2 := v2 label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6651
                                l1 < l2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6652
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6653
    nameList := knownTopViews collect:[:v | 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6654
                                        |isDead wg p l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6655
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6656
                                        l := v label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6657
                                        ((wg := v windowGroup) notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6658
                                        and:[(p := wg process) notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6659
                                        and:[p state ~~ #dead]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6660
                                            l  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6661
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6662
                                            l , ' (dead ?)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6663
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6664
                                      ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6665
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6666
    box := ListSelectionBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6667
    box noEnterField.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6668
    box list:nameList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6669
    box label:(resources string:'view selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6670
    box title:(resources string:title) withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6671
    box action:[:selection |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6672
        |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6673
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6674
        v := knownTopViews at:box selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6675
        box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6676
        ^ v
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6677
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6678
    box extent:400@300.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6679
    box showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6680
    ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6681
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6682
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6683
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6684
openApplication: className
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6685
     "open an application, given by the classe name."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6686
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6687
    self openApplication:className nameSpace:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6688
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6689
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6690
openApplication:className nameSpace:aNameSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6691
    "open some application, given the classes name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6692
     Look for it in Smalltalk and the given nameSpace"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6693
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6694
    self openApplication:className nameSpace:aNameSpace with:#open
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6695
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6696
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6697
openApplication:className nameSpace:aNameSpace with:aSelector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6698
    "open some application, given the classes name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6699
     Look for it in Smalltalk and the given nameSpace"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6700
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6701
    |cls|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6702
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6703
    cls := Smalltalk at:className asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6704
    cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6705
        "/ look if its in the nameSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6706
        aNameSpace notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6707
            cls := aNameSpace at:className asSymbol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6708
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6709
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6710
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6711
    cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6712
        self warn:(resources string:'Sorry, the %1 class is not available.' with:className).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6713
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6714
        Autoload autoloadFailedSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6715
            self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6716
        ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6717
            self withWaitCursorDo:[cls perform:aSelector]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6718
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6719
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6720
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6721
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6722
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6723
reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6724
    "reopen a new launcher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6725
     for now (since style & language settings currently do
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6726
     not affect living views ...)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6727
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6728
    |contents builder newLauncher|
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6729
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6730
    contents := transcript endEntry; list.
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6731
    builder := self class openAt:(self window origin).
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6732
    builder window waitUntilVisible.
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6733
    newLauncher := builder application.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6734
    newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6735
    DebugView newDebugger.
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6736
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6737
    "Modified: / 5.2.1998 / 20:08:31 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6738
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6739
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6740
saveAllViews
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6741
    "tell each topview that we are going to terminate and give it chance
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6742
     to save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6743
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6744
    ObjectMemory changed:#aboutToExit
1437
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6745
!
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6746
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6747
saveScreenImage:anImage defaultName:defaultName
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6748
    "save an image into a file 
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6749
     - ask user for filename using a fileSelectionBox."
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6750
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6751
    |fileName|
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6752
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6753
    fileName := Dialog
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6754
                    requestFileName:(resources string:'save image in:')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6755
                    default:(defaultName , '.tiff')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6756
                    ok:(resources string:'save')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6757
                    abort:(resources string:'cancel')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6758
                    pattern:'*.tiff'.
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6759
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6760
    fileName notNil ifTrue:[
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6761
        anImage saveOn:fileName
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6762
    ].
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6763
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6764
    "Modified: / 21.2.1996 / 13:09:28 / cg"
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6765
    "Created: / 29.1.1998 / 23:20:36 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6766
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6767
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6768
!NewLauncher methodsFor:'queries'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6769
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6770
preferredExtent
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6771
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  6772
    ^super preferredExtent max: Screen current extent//(2.5@3.5)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6773
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6774
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6775
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6776
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6777
processName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6778
    "for monitors only - my name"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6779
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6780
    ^ 'ST/X Launcher'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6781
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6782
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6783
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6784
transcript
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6785
    "my transcript"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6786
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6787
    ^ transcript
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6788
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6789
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6790
!NewLauncher methodsFor:'startup / release'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6791
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6792
addTopViewsToCurrentProject
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6793
    "ignored here - the launcher is always global (i.e. not project private)."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6794
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6795
    ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6796
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6797
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6798
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6799
allButOpenInterface:anInterface
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6800
    "sent by my superclass to open up my interface"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6801
1432
5c1e5f5ade52 colored icon ;-)
tz
parents: 1430
diff changeset
  6802
    |icn w sz|
5c1e5f5ade52 colored icon ;-)
tz
parents: 1430
diff changeset
  6803
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6804
    "/ if there is already a transcript on my device,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6805
    "/ I am a slave launcher with limited functionality.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6806
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6807
    Transcript notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6808
        Transcript ~~ Stderr ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6809
            isMainLauncher := (Transcript graphicsDevice == device).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6810
            self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6811
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6812
            isMainLauncher := true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6813
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6814
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6815
        isMainLauncher := true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6816
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6817
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6818
    super allButOpenInterface:anInterface.
1432
5c1e5f5ade52 colored icon ;-)
tz
parents: 1430
diff changeset
  6819
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6820
    self setupTranscript; updateInfo.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6821
    Project notNil ifTrue: [Project addDependent:self].
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6822
    self class openLaunchers add: self.
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6823
    ^ builder
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6824
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6825
    "Created: / 5.2.1998 / 19:45:07 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6826
    "Modified: / 5.2.1998 / 19:56:43 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6827
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6828
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6829
closeRequest
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6830
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6831
    (self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6832
        super closeRequest
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6833
    ]
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6834
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6835
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6836
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6837
destroy
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6838
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6839
self halt.
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6840
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6841
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6842
postOpenWith:aBuilder
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6843
    "increase my priority"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6844
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6845
    self builder window windowGroup process priority:(Processor userSchedulingPriority + 1).
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6846
    super postOpenWith:aBuilder
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6847
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6848
    "Modified: / 5.2.1998 / 19:55:23 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6849
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6850
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6851
restarted
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6852
    "image restart - since WindowGroup recreates the process with
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6853
     the default priority, we have to raise the prio again.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6854
     Mhmh - this looks like a bug to me ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6855
     Also, the cursor (which was stored as a write or waitCursor) must
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6856
     be reset to normal."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6857
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6858
    Processor activeProcess priority:(Processor userSchedulingPriority + 1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6859
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6860
    super restarted
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6861
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6862
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6863
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6864
saveAndTerminateRequest
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6865
    "some windowManagers can send this, to shutDown an application
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6866
     but let it save its state before, for later restart. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6867
     Although I have not yet encountered such a windowManager,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6868
     we are already prepared for this ;-)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6869
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6870
    self snapshot.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6871
    super saveAndTerminateRequest
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6872
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6873
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6874
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6875
setupTranscript 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6876
    "create the transcript view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6877
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6878
    |launcher oldLauncher|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6879
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6880
    "/ check if this is an additional launcher on a remote display.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6881
    "/ if so, do not close the real launcher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6882
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6883
    (Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6884
        isMainLauncher ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6885
            launcher := Transcript topView application
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6886
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6887
            launcher := self class current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6888
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6889
        launcher notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6890
            launcher window graphicsDevice == device ifTrue:[
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6891
                OpenLaunchers notNil ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6892
                    OpenLaunchers removeIdentical:launcher ifAbsent:nil.
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6893
                ].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6894
                (oldLauncher := Smalltalk at: #Launcher) notNil
1433
cd876a0d81c9 OpenLaunchers method made lowercase (method selector convention)
Claus Gittinger <cg@exept.de>
parents: 1432
diff changeset
  6895
                    ifTrue: [oldLauncher openLaunchers removeIdentical:launcher ifAbsent:nil].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6896
                launcher close
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6897
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6898
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6899
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6900
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6901
    transcript := (builder componentAt: #transcriptView) subViews first.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6902
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6903
    isMainLauncher ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6904
        transcript beTranscript.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6905
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6906
        transcript showCR:'**************** Notice ***********************'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6907
        transcript showCR:'**       this is NOT the Transcript          **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6908
        transcript showCR:'** The real Transcript is on the main screen **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6909
        transcript showCR:'**                                           **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6910
        transcript showCR:'** Menus affecting common state are disabled **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6911
        transcript showCR:'***********************************************'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6912
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6913
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6914
    "Modified: / 29.1.1998 / 22:06:03 / cg"
1413
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6915
!
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6916
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6917
uninitialize
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6918
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6919
    super uninitialize.
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6920
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6921
    Display beep.
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6922
    OpenLaunchers notNil ifTrue:[OpenLaunchers removeIdentical:self ifAbsent:nil].
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  6923
    Project notNil ifTrue:[Project removeDependent:self]
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6924
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6925
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6926
!NewLauncher class methodsFor:'documentation'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6927
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6928
version
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  6929
    ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.35 1998-02-07 13:12:53 tz Exp $'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6930
! !